| /linux/include/trace/ |
| H A D | define_trace.h | 27 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument 28 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) 31 #define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \ argument 33 PARAMS(proto), \ 40 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument 42 DEFINE_TRACE_FN(name, reg, unreg, PARAMS(proto), PARAMS(args)) 45 #define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \ argument 47 DEFINE_TRACE_FN(name, reg, unreg, PARAMS(proto), PARAMS(args)) 50 #define TRACE_EVENT_SYSCALL(name, proto, args, struct, assign, print, reg, unreg) \ argument 51 DEFINE_TRACE_SYSCALL(name, reg, unreg, PARAMS(proto), PARAMS(args)) [all …]
|
| H A D | bpf_probe.h | 45 #define __BPF_DECLARE_TRACE(call, proto, args) \ argument 47 __bpf_trace_##call(void *__data, proto) \ 53 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument 54 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) 56 #define __BPF_DECLARE_TRACE_SYSCALL(call, proto, args) \ argument 58 __bpf_trace_##call(void *__data, proto) \ 67 #define DECLARE_EVENT_SYSCALL_CLASS(call, proto, args, tstruct, assign, print) \ argument 68 __BPF_DECLARE_TRACE_SYSCALL(call, PARAMS(proto), PARAMS(args)) 75 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument 80 typedef void (*btf_trace_##call)(void *__data, proto); \ [all …]
|
| H A D | trace_custom_events.h | 27 #define TRACE_CUSTOM_EVENT(name, proto, args, tstruct, assign, print) \ argument 29 PARAMS(proto), \ 34 DEFINE_CUSTOM_EVENT(name, name, PARAMS(proto), PARAMS(args)); 41 #define DECLARE_CUSTOM_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument 51 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) \ argument 62 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument 68 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) argument 77 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument 108 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, func, print) \ argument 120 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument [all …]
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
| H A D | proto.c | 15 #include "proto.h" 22 struct brcmf_proto *proto; in brcmf_proto_attach() local 26 proto = kzalloc_obj(*proto, GFP_ATOMIC); in brcmf_proto_attach() 27 if (!proto) in brcmf_proto_attach() 30 drvr->proto = proto; in brcmf_proto_attach() 39 bphy_err(drvr, "Unsupported proto type %d\n", in brcmf_proto_attach() 43 if (!proto->tx_queue_data || (proto->hdrpull == NULL) || in brcmf_proto_attach() 44 (proto->query_dcmd == NULL) || (proto->set_dcmd == NULL) || in brcmf_proto_attach() 45 (proto->configure_addr_mode == NULL) || in brcmf_proto_attach() 46 (proto->delete_peer == NULL) || (proto->add_tdls_peer == NULL) || in brcmf_proto_attach() [all …]
|
| H A D | proto.h | 61 return drvr->proto->hdrpull(drvr, do_fws, skb, ifp); in brcmf_proto_hdrpull() 67 return drvr->proto->query_dcmd(drvr, ifidx, cmd, buf, len,fwerr); in brcmf_proto_query_dcmd() 73 return drvr->proto->set_dcmd(drvr, ifidx, cmd, buf, len, fwerr); in brcmf_proto_set_dcmd() 79 return drvr->proto->tx_queue_data(drvr, ifidx, skb); in brcmf_proto_tx_queue_data() 85 return drvr->proto->txdata(drvr, ifidx, offset, skb); in brcmf_proto_txdata() 91 drvr->proto->configure_addr_mode(drvr, ifidx, addr_mode); in brcmf_proto_configure_addr_mode() 96 drvr->proto->delete_peer(drvr, ifidx, peer); in brcmf_proto_delete_peer() 101 drvr->proto->add_tdls_peer(drvr, ifidx, peer); in brcmf_proto_add_tdls_peer() 114 ifp->drvr->proto->rxreorder(ifp, skb); in brcmf_proto_rxreorder() 120 if (!drvr->proto->add_if) in brcmf_proto_add_if() [all …]
|
| H A D | bcdc.c | 22 #include "proto.h" 103 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws() 112 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg() 143 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt() 161 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd() 219 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_set_dcmd() 337 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_tx_queue_data() 368 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd; in brcmf_proto_bcdc_txcomplete() 427 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_init_done() 457 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull; in brcmf_proto_bcdc_attach() [all …]
|
| /linux/drivers/ata/pata_parport/ |
| H A D | pata_parport.c | 31 pi->proto->connect(pi); in pi_connect() 36 pi->proto->disconnect(pi); in pi_disconnect() 50 pi->proto->write_regr(pi, 0, ATA_REG_DEVICE, tmp); in pata_parport_dev_select() 58 pi->proto->write_regr(pi, 1, 6, ctl); in pata_parport_set_devctl() 68 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0x55); in pata_parport_devchk() 69 pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0xaa); in pata_parport_devchk() 71 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0xaa); in pata_parport_devchk() 72 pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0x55); in pata_parport_devchk() 74 pi->proto->write_regr(pi, 0, ATA_REG_NSECT, 0x55); in pata_parport_devchk() 75 pi->proto->write_regr(pi, 0, ATA_REG_LBAL, 0xaa); in pata_parport_devchk() [all …]
|
| /linux/include/linux/ |
| H A D | tracepoint.h | 238 #define DEFINE_RUST_DO_TRACE(name, proto, args) argument 239 #define __DEFINE_RUST_DO_TRACE(name, proto, args) \ argument 240 notrace void rust_do_trace_##name(proto) \ 265 #define __DECLARE_TRACE_COMMON(name, proto, args, data_proto) \ argument 269 extern void rust_do_trace_##name(proto); \ 299 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument 300 __DECLARE_TRACE_COMMON(name, PARAMS(proto), PARAMS(args), PARAMS(data_proto)) \ 301 static inline void __do_trace_##name(proto) \ 309 static inline void trace_##name(proto) \ 318 static inline void trace_call__##name(proto) \ [all …]
|
| /linux/drivers/net/wan/ |
| H A D | hdlc.c | 17 * - proto->open(), close(), start(), stop() calls are serialized. 19 * - proto->start() and stop() are called with spin_lock_irq held. 63 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv() 64 return hdlc->proto->netif_rx(skb); in hdlc_rcv() 71 if (hdlc->proto->xmit) in hdlc_start_xmit() 72 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit() 82 if (hdlc->proto->start) in hdlc_proto_start() 83 hdlc->proto->start(dev); in hdlc_proto_start() 90 if (hdlc->proto->stop) in hdlc_proto_stop() 91 hdlc->proto->stop(dev); in hdlc_proto_stop() [all …]
|
| /linux/net/8021q/ |
| H A D | vlan_core.c | 164 __be16 proto; member 169 static bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto) in vlan_hw_filter_capable() argument 171 if (proto == htons(ETH_P_8021Q) && in vlan_hw_filter_capable() 174 if (proto == htons(ETH_P_8021AD) && in vlan_hw_filter_capable() 181 __be16 proto, u16 vid) in vlan_vid_info_get() argument 186 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get() 192 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument 199 vid_info->proto = proto; in vlan_vid_info_alloc() 205 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_add_rx_filter_info() argument 207 if (!vlan_hw_filter_capable(dev, proto)) in vlan_add_rx_filter_info() [all …]
|
| /linux/net/802/ |
| H A D | psnap.c | 31 struct datalink_proto *proto = NULL, *p; in find_snap_client() local 35 proto = p; in find_snap_client() 39 return proto; in find_snap_client() 49 struct datalink_proto *proto; in snap_rcv() local 58 proto = find_snap_client(skb->data); in snap_rcv() 59 if (proto) { in snap_rcv() 63 rc = proto->rcvfunc(skb, dev, &snap_packet_type, orig_dev); in snap_rcv() 67 if (unlikely(!proto)) in snap_rcv() 128 struct datalink_proto *proto = NULL; in register_snap_client() local 135 proto = kmalloc_obj(*proto, GFP_ATOMIC); in register_snap_client() [all …]
|
| H A D | p8022.c | |
| H A D | stp.c | 35 const struct stp_proto *proto; in stp_pdu_rcv() local 43 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv() 45 if (proto && in stp_pdu_rcv() 46 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv() 49 proto = rcu_dereference(stp_proto); in stp_pdu_rcv() 51 if (!proto) in stp_pdu_rcv() 54 proto->rcv(proto, skb, dev); in stp_pdu_rcv() 62 int stp_proto_register(const struct stp_proto *proto) in stp_proto_register() argument 74 if (is_zero_ether_addr(proto->group_address)) in stp_proto_register() 75 rcu_assign_pointer(stp_proto, proto); in stp_proto_register() [all …]
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_proto_tcp.c | 271 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]); in tcp_print_conntrack() 515 struct ip_ct_tcp *state = &ct->proto.tcp; in tcp_in_window() 753 if (ct->proto.tcp.last_dir != dir && in nf_tcp_handle_invalid() 754 (ct->proto.tcp.last_index == TCP_FIN_SET || in nf_tcp_handle_invalid() 755 ct->proto.tcp.last_index == TCP_RST_SET)) { in nf_tcp_handle_invalid() 769 index, dir, ct->proto.tcp.last_index, timeout); in nf_tcp_handle_invalid() 774 ct->proto.tcp.last_index = index; in nf_tcp_handle_invalid() 775 ct->proto.tcp.last_dir = dir; in nf_tcp_handle_invalid() 857 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 859 ct->proto.tcp.seen[0].td_end = in tcp_new() [all …]
|
| H A D | nf_conntrack_proto_sctp.c | 136 seq_printf(s, "%s ", sctp_conntrack_names[ct->proto.sctp.state]); in sctp_print_conntrack() 248 memset(&ct->proto.sctp, 0, sizeof(ct->proto.sctp)); in sctp_new() 276 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = ih->init_tag; in sctp_new() 280 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = sh->vtag; in sctp_new() 286 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = sh->vtag; in sctp_new() 289 ct->proto.sctp.state = SCTP_CONNTRACK_NONE; in sctp_new() 373 sh->vtag != ct->proto.sctp.vtag[dir]) { in nf_conntrack_sctp_packet() 376 sh->vtag, ct->proto.sctp.vtag[dir], dir); in nf_conntrack_sctp_packet() 393 sh->vtag != ct->proto.sctp.vtag[dir]) || in nf_conntrack_sctp_packet() 395 sh->vtag != ct->proto.sctp.vtag[!dir])) in nf_conntrack_sctp_packet() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | reuseport_addr_any.c | 29 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, 70 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 82 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd() 87 static int connect_and_send(int family, int proto) in build_rcv_fd() 133 fd = socket(family, proto, 0); in connect_and_send() 149 static int receive_once(int epfd, int proto) in connect_and_send() 159 if (proto == SOCK_STREAM) { in connect_and_send() 175 static void test(int *rcv_fds, int count, int family, int proto, int fd) in receive_once() 191 send_fd = connect_and_send(family, proto); in receive_once() 193 recv_fd = receive_once(epfd, proto); 34 build_rcv_fd(int family,int proto,int * rcv_fds,int count,const char * addr_str) build_rcv_fd() argument 101 connect_and_send(int family,int proto) connect_and_send() argument 168 receive_once(int epfd,int proto) receive_once() argument 194 test(int * rcv_fds,int count,int family,int proto,int fd) test() argument 221 run_one_test(int fam_send,int fam_rcv,int proto,const char * addr_str) run_one_test() argument 244 test_proto(int proto,const char * proto_str) test_proto() argument [all...] |
| H A D | sk_so_peek_off.c | 13 static char *afstr(int af, int proto) in afstr() argument 15 if (proto == IPPROTO_TCP) in afstr() 21 int sk_peek_offset_probe(sa_family_t af, int proto) in sk_peek_offset_probe() argument 23 int type = (proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM); in sk_peek_offset_probe() 28 s = socket(af, type, proto); in sk_peek_offset_probe() 35 printf("%s does not support SO_PEEK_OFF\n", afstr(af, proto)); in sk_peek_offset_probe() 57 static int sk_peek_offset_test(sa_family_t af, int proto) in sk_peek_offset_test() argument 59 int type = (proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM); in sk_peek_offset_test() 75 s[0] = recv_sock = socket(af, type, proto); in sk_peek_offset_test() 76 s[1] = socket(af, type, proto); in sk_peek_offset_test() [all …]
|
| H A D | reuseport_bpf_cpu.c | 34 static void build_rcv_group(int *rcv_fd, size_t len, int family, int proto) in build_rcv_group() argument 60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group() 72 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group() 94 static void send_from_cpu(int cpu_id, int family, int proto) in send_from_cpu() argument 134 fd = socket(family, proto, 0); in send_from_cpu() 151 void receive_on_cpu(int *rcv_fd, int len, int epfd, int cpu_id, int proto) in receive_on_cpu() argument 161 if (proto == SOCK_STREAM) { in receive_on_cpu() 184 static void test(int *rcv_fd, int len, int family, int proto) in test() argument 189 build_rcv_group(rcv_fd, len, family, proto); in test() 204 send_from_cpu(cpu, family, proto); in test() [all...] |
| /linux/drivers/s390/net/ |
| H A D | qeth_l3.h | 33 enum qeth_prot_versions proto; member 48 enum qeth_prot_versions proto) in qeth_l3_init_ipaddr() argument 52 addr->proto = proto; in qeth_l3_init_ipaddr() 60 if (a1->proto != a2->proto) in qeth_l3_addr_match_ip() 62 if (a1->proto == QETH_PROT_IPV6) in qeth_l3_addr_match_ip() 71 * so 'proto' and 'addr' match for sure. in qeth_l3_addr_match_all() 82 if (a1->proto == QETH_PROT_IPV6) in qeth_l3_addr_match_all() 89 if (addr->proto == QETH_PROT_IPV6) in qeth_l3_ipaddr_hash() 97 enum qeth_prot_versions proto; member 104 int qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const u8 *addr, [all …]
|
| H A D | qeth_l3_sys.c | 20 enum qeth_prot_versions proto, u8 *addr) in qeth_l3_string_to_ipaddr() argument 24 if ((proto == QETH_PROT_IPV4 && !in4_pton(buf, -1, addr, -1, &end)) || in qeth_l3_string_to_ipaddr() 25 (proto == QETH_PROT_IPV6 && !in6_pton(buf, -1, addr, -1, &end))) in qeth_l3_string_to_ipaddr() 367 enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_show() argument 375 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show() 378 qeth_l3_ipaddr_to_string(proto, ipatoe->addr, addr_str); in qeth_l3_dev_ipato_add_show() 395 static int qeth_l3_parse_ipatoe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_ipatoe() argument 408 rc = qeth_l3_string_to_ipaddr(buf, proto, addr); in qeth_l3_parse_ipatoe() 416 if (*mask_bits > ((proto == QETH_PROT_IPV4) ? 32 : 128)) in qeth_l3_parse_ipatoe() 423 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_store() argument [all …]
|
| /linux/net/nfc/ |
| H A D | af_nfc.c | 18 static int nfc_sock_create(struct net *net, struct socket *sock, int proto, in nfc_sock_create() argument 26 if (proto < 0 || proto >= NFC_SOCKPROTO_MAX) in nfc_sock_create() 30 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) { in nfc_sock_create() 31 rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern); in nfc_sock_create() 32 module_put(proto_tab[proto]->owner); in nfc_sock_create() 52 rc = proto_register(nfc_proto->proto, 0); in nfc_proto_register() 64 proto_unregister(nfc_proto->proto); in nfc_proto_register() 76 proto_unregister(nfc_proto->proto); in nfc_proto_unregister()
|
| /linux/samples/bpf/ |
| H A D | sockex2_kern.c | 29 static inline int proto_ports_offset(__u64 proto) in proto_ports_offset() argument 31 switch (proto) { in proto_ports_offset() 104 __u64 proto = load_half(skb, 12); in flow_dissector() 107 if (proto == ETH_P_8021AD) { in flow_dissector() 108 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector() 113 if (proto == ETH_P_8021Q) { in flow_dissector() 114 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector() 119 if (likely(proto == ETH_P_IP)) in flow_dissector() 121 else if (proto == ETH_P_IPV6) in flow_dissector() 130 __be16 proto; in flow_dissector() 105 __u64 proto = load_half(skb, 12); flow_dissector() local 131 __be16 proto; flow_dissector() member [all...] |
| /linux/scripts/ |
| H A D | bpf_doc.py | 37 @proto: prototype of the API symbol 41 def __init__(self, proto='', desc='', ret=''): argument 42 self.proto = proto 48 'proto': self.proto, 57 @proto: function prototype of the helper function 61 def __init__(self, proto='', desc='', ret='', attrs=[]): argument 62 super().__init__(proto, desc, ret) 75 capture = proto_re.match(self.proto) 125 proto = self.parse_symbol() 126 desc = self.parse_desc(proto) [all …]
|
| /linux/net/ipv6/ |
| H A D | esp6_offload.c | 64 if (NAPI_GRO_CB(skb)->proto == IPPROTO_UDP) in esp6_gro_receive() 138 u8 proto = iph->nexthdr; in esp6_gso_encap() local 145 ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &proto, &frag); in esp6_gso_encap() 154 xo->proto = proto; in esp6_gso_encap() 162 const struct xfrm_mode *inner_mode = xfrm_ip2inner_mode(x, xo->proto); in xfrm6_tunnel_gso_segment() 178 ops = rcu_dereference(inet6_offloads[xo->proto]); in xfrm6_transport_gso_segment() 192 u8 proto = xo->proto; in xfrm6_beet_gso_segment() local 200 if (proto == IPPROTO_BEETPH) { in xfrm6_beet_gso_segment() 205 proto = ph->nexthdr; in xfrm6_beet_gso_segment() 210 if (proto == IPPROTO_TCP) in xfrm6_beet_gso_segment() [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | tc_flower_port_range.sh | 78 local proto=$1; shift 95 tc filter add dev $swp1 ingress protocol $proto handle 101 pref 1 \ 100 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \ 144 tc filter del dev $swp2 egress protocol $proto pref 1 handle 101 flower 145 tc filter del dev $swp1 ingress protocol $proto pref 1 handle 101 flower 152 local proto=ipv4 159 __test_port_range $proto $ip_proto $sip $dip $mode "$name" 164 local proto=ipv4 171 __test_port_range $proto $ip_proto $sip $dip $mode "$name" 176 local proto=ipv6 [all …]
|