/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | proto.c | 26 proto = kzalloc(sizeof(*proto), GFP_ATOMIC); in brcmf_proto_attach() 27 if (!proto) in brcmf_proto_attach() 30 drvr->proto = proto; 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() 46 (proto->delete_peer == NULL) || (proto->add_tdls_peer == NULL) || in brcmf_proto_attach() 54 kfree(proto); in brcmf_proto_attach() 55 drvr->proto = NULL; in brcmf_proto_attach() 63 if (drvr->proto) { in brcmf_proto_detach() 68 kfree(drvr->proto); in brcmf_proto_detach() [all …]
|
A D | proto.h | 96 drvr->proto->delete_peer(drvr, ifidx, peer); in brcmf_proto_delete_peer() 114 ifp->drvr->proto->rxreorder(ifp, skb, inirq); in brcmf_proto_rxreorder() 120 if (!drvr->proto->add_if) in brcmf_proto_add_if() 122 drvr->proto->add_if(ifp); in brcmf_proto_add_if() 128 if (!drvr->proto->del_if) in brcmf_proto_del_if() 130 drvr->proto->del_if(ifp); in brcmf_proto_del_if() 136 if (!drvr->proto->reset_if) in brcmf_proto_reset_if() 138 drvr->proto->reset_if(ifp); in brcmf_proto_reset_if() 144 if (!drvr->proto->init_done) in brcmf_proto_init_done() 146 return drvr->proto->init_done(drvr); in brcmf_proto_init_done() [all …]
|
A D | bcdc.c | 101 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws() 335 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_tx_queue_data() 366 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd; in brcmf_proto_bcdc_txcomplete() 426 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_init_done() 456 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull; in brcmf_proto_bcdc_attach() 460 drvr->proto->txdata = brcmf_proto_bcdc_txdata; in brcmf_proto_bcdc_attach() 465 drvr->proto->add_if = brcmf_proto_bcdc_add_if; in brcmf_proto_bcdc_attach() 466 drvr->proto->del_if = brcmf_proto_bcdc_del_if; in brcmf_proto_bcdc_attach() 470 drvr->proto->pd = bcdc; in brcmf_proto_bcdc_attach() 484 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_detach() [all …]
|
/linux/include/linux/ |
A D | tracepoint.h | 245 static inline void trace_##name(proto) \ 309 int __traceiter_##_name(void *__data, proto) \ 327 #define DEFINE_TRACE(name, proto, args) \ argument 342 static inline void trace_##name(proto) \ 368 #define DEFINE_TRACE(name, proto, args) argument 418 #define DECLARE_TRACE(name, proto, args) \ argument 421 PARAMS(void *__data, proto)) 426 PARAMS(void *__data, proto)) 549 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \ 559 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \ [all …]
|
/linux/net/802/ |
A D | psnap.c | 35 proto = p; in find_snap_client() 39 return proto; in find_snap_client() 49 struct datalink_proto *proto; in snap_rcv() local 59 if (proto) { in snap_rcv() 67 if (unlikely(!proto)) in snap_rcv() 135 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in register_snap_client() 136 if (proto) { in register_snap_client() 138 proto->rcvfunc = rcvfunc; in register_snap_client() 146 return proto; in register_snap_client() 155 list_del_rcu(&proto->node); in unregister_snap_client() [all …]
|
A D | p8022.c | 38 struct datalink_proto *proto; in register_8022_client() local 40 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in register_8022_client() 41 if (proto) { in register_8022_client() 42 proto->type[0] = type; in register_8022_client() 43 proto->header_length = 3; in register_8022_client() 46 if (!proto->sap) { in register_8022_client() 47 kfree(proto); in register_8022_client() 48 proto = NULL; in register_8022_client() 51 return proto; in register_8022_client() 56 llc_sap_put(proto->sap); in unregister_8022_client() [all …]
|
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() 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() 78 GARP_ADDR_MIN], proto); in stp_proto_register() [all …]
|
/linux/drivers/net/wan/ |
A D | hdlc.c | 71 if (hdlc->proto->xmit) in hdlc_start_xmit() 82 if (hdlc->proto->start) in hdlc_proto_start() 90 if (hdlc->proto->stop) in hdlc_proto_stop() 151 if (!hdlc->proto) in hdlc_open() 212 while (proto) { in hdlc_ioctl() 216 proto = proto->next; in hdlc_ioctl() 291 dev_to_hdlc(dev)->proto = proto; in attach_hdlc_protocol() 302 if (hdlc->proto) { in detach_hdlc_protocol() 313 hdlc->proto = NULL; in detach_hdlc_protocol() 327 first_proto = proto; in register_hdlc_protocol() [all …]
|
A D | hdlc_ppp.c | 62 struct proto { struct 304 struct proto *proto = get_proto(dev, pid); in ppp_cp_event() local 319 mod_timer(&proto->timer, proto->timeout = in ppp_cp_event() 324 proto->restart_counter = (proto->state == STOPPING) ? in ppp_cp_event() 348 mod_timer(&proto->timer, proto->timeout = in ppp_cp_event() 438 struct proto *proto; in ppp_rx() local 564 struct proto *proto = from_timer(proto, t, timer); in ppp_timer() local 582 ppp_cp_event(proto->dev, proto->pid, TO_GOOD, 0, 0, in ppp_timer() 589 ppp_cp_event(proto->dev, proto->pid, TO_BAD, 0, 0, in ppp_timer() 621 struct proto *proto = &ppp->protos[i]; in ppp_start() local [all …]
|
/linux/include/trace/ |
A D | define_trace.h | 28 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) 33 PARAMS(proto), \ 40 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument 53 #define DEFINE_EVENT_NOP(template, name, proto, args) argument 56 #define DEFINE_EVENT(template, name, proto, args) \ argument 57 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) 65 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) 69 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 72 #define DECLARE_TRACE(name, proto, args) \ argument 73 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args)) [all …]
|
A D | bpf_probe.h | 58 #define __BPF_DECLARE_TRACE(call, proto, args) \ argument 60 __bpf_trace_##call(void *__data, proto) \ 68 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) 80 typedef void (*btf_trace_##call)(void *__data, proto); \ 103 FIRST(proto); \ 113 #define DEFINE_EVENT(template, call, proto, args) \ argument 118 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 121 #define DECLARE_TRACE(call, proto, args) \ argument 122 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \ 126 #define DECLARE_TRACE_WRITABLE(call, proto, args, size) \ argument [all …]
|
/linux/net/netfilter/ |
A D | nf_conntrack_proto_tcp.c | 774 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 790 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 936 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_end = in nf_conntrack_tcp_packet() 937 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet() 938 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxend = in nf_conntrack_tcp_packet() 939 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet() 940 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxwin = in nf_conntrack_tcp_packet() 943 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_scale = in nf_conntrack_tcp_packet() 946 ct->proto.tcp.seen[ct->proto.tcp.last_dir].flags = in nf_conntrack_tcp_packet() 955 ct->proto.tcp.last_end = in nf_conntrack_tcp_packet() [all …]
|
A D | nf_conntrack_proto_sctp.c | 280 memset(&ct->proto.sctp, 0, sizeof(ct->proto.sctp)); in sctp_new() 434 if (ct->proto.sctp.vtag[dir] == 0) { in nf_conntrack_sctp_packet() 436 ct->proto.sctp.vtag[dir] = sh->vtag; in nf_conntrack_sctp_packet() 442 ct->proto.sctp.last_dir = dir; in nf_conntrack_sctp_packet() 449 if (ct->proto.sctp.vtag[dir] == 0) { in nf_conntrack_sctp_packet() 458 ct->proto.sctp.last_dir == dir) in nf_conntrack_sctp_packet() 463 ct->proto.sctp.vtag[!dir] = 0; in nf_conntrack_sctp_packet() 469 old_state = ct->proto.sctp.state; in nf_conntrack_sctp_packet() 494 ct->proto.sctp.state = new_state; in nf_conntrack_sctp_packet() 528 switch (ct->proto.sctp.state) { in sctp_can_early_drop() [all …]
|
A D | nf_conntrack_proto_dccp.c | 411 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new() 414 ct->proto.dccp.handshake_seq = 0; in dccp_new() 503 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet() 504 old_state = ct->proto.dccp.state; in nf_conntrack_dccp_packet() 542 ct->proto.dccp.last_dir = dir; in nf_conntrack_dccp_packet() 543 ct->proto.dccp.last_pkt = type; in nf_conntrack_dccp_packet() 554 ct->proto.dccp.last_dir = dir; in nf_conntrack_dccp_packet() 555 ct->proto.dccp.last_pkt = type; in nf_conntrack_dccp_packet() 556 ct->proto.dccp.state = new_state; in nf_conntrack_dccp_packet() 572 switch (ct->proto.dccp.state) { in dccp_can_early_drop() [all …]
|
/linux/net/8021q/ |
A D | vlan_core.c | 164 __be16 proto; member 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() 199 vid_info->proto = proto; in vlan_vid_info_alloc() 261 if (vlan_vid_info->proto == proto) { in vlan_filter_push_vids() 274 if (vlan_vid_info->proto == proto) in vlan_filter_push_vids() 288 if (vlan_vid_info->proto == proto) in vlan_filter_drop_vids() 290 vlan_vid_info->proto, in vlan_filter_drop_vids() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | reuseport_addr_any.c | 75 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd() 89 else if (proto == SOCK_DCCP) { in build_rcv_fd() 147 fd = socket(family, proto, 0); in connect_and_send() 151 if (proto == SOCK_DCCP && in connect_and_send() 168 static int receive_once(int epfd, int proto) in receive_once() argument 178 if (proto == SOCK_STREAM || proto == SOCK_DCCP) { in receive_once() 210 send_fd = connect_and_send(family, proto); in test() 212 recv_fd = receive_once(epfd, proto); in test() 238 test(rcv_fds, 9, fam_send, proto, rcv_fds[4]); in run_one_test() 246 if (proto == SOCK_DCCP) { in test_proto() [all …]
|
A D | reuseport_bpf_cpu.c | 60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group() 134 fd = socket(family, proto, 0); in send_from_cpu() 161 if (proto == SOCK_STREAM) { in receive_on_cpu() 189 build_rcv_group(rcv_fd, len, family, proto); in test() 204 send_from_cpu(cpu, family, proto); in test() 205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 210 send_from_cpu(cpu, family, proto); in test() 211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 216 send_from_cpu(cpu, family, proto); in test() 217 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() [all …]
|
/linux/drivers/block/paride/ |
A D | paride.c | 139 pi->proto->connect(pi); in pi_connect() 146 pi->proto->disconnect(pi); in pi_disconnect() 175 pi->proto->connect(pi); in default_test_proto() 186 pi->proto->disconnect(pi); in default_test_proto() 201 if (pi->proto->test_proto) in pi_test_proto() 314 e = pi->proto->max_units; in pi_probe_unit() 375 if (!proto) in pi_init() 380 pi->proto = proto; in pi_init() 382 if (proto->init_proto && proto->init_proto(pi) < 0) { in pi_init() 383 pi->proto = NULL; in pi_init() [all …]
|
/linux/net/ipv4/ |
A D | gre_demux.c | 48 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol() 83 tpi->proto = greh->protocol; in gre_parse_header() 121 tpi->proto = proto; in gre_parse_header() 148 const struct gre_protocol *proto; in gre_rcv() local 160 proto = rcu_dereference(gre_proto[ver]); in gre_rcv() 161 if (!proto || !proto->handler) in gre_rcv() 163 ret = proto->handler(skb); in gre_rcv() 176 const struct gre_protocol *proto; in gre_err() local 185 proto = rcu_dereference(gre_proto[ver]); in gre_err() 186 if (proto && proto->err_handler) in gre_err() [all …]
|
/linux/drivers/firmware/arm_scmi/ |
A D | bus.c | 81 const struct scmi_protocol *proto; in scmi_protocol_get() local 84 if (!proto || !try_module_get(proto->owner)) { in scmi_protocol_get() 91 return proto; in scmi_protocol_get() 96 const struct scmi_protocol *proto; in scmi_protocol_put() local 99 if (proto) in scmi_protocol_put() 100 module_put(proto->owner); in scmi_protocol_put() 228 if (!proto) { in scmi_protocol_register() 233 if (!proto->instance_init) { in scmi_protocol_register() 240 proto->id, proto->id + 1, GFP_ATOMIC); in scmi_protocol_register() 242 if (ret != proto->id) { in scmi_protocol_register() [all …]
|
/linux/drivers/s390/net/ |
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() 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, 110 enum qeth_prot_versions proto, u8 *addr, [all …]
|
/linux/net/nfc/ |
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/scripts/ |
A D | bpf_doc.py | 38 self.proto = proto 59 capture = proto_re.match(self.proto) 92 proto = self.parse_symbol() 95 return APIElement(proto=proto, desc=desc, ret=ret) 98 proto = self.parse_proto() 101 return Helper(proto=proto, desc=desc, ret=ret) 445 proto = helper.proto_break_down() 453 for a in proto['args']: 500 print('**%s**' % (command.proto)) 658 print(" * %s" % proto['name']) [all …]
|
/linux/samples/bpf/ |
A D | sockex2_kern.c | 31 switch (proto) { in proto_ports_offset() 108 if (proto == ETH_P_8021AD) { in flow_dissector() 114 if (proto == ETH_P_8021Q) { in flow_dissector() 120 if (likely(proto == ETH_P_IP)) in flow_dissector() 122 else if (proto == ETH_P_IPV6) in flow_dissector() 131 __be16 proto; in flow_dissector() member 142 proto = gre_proto; in flow_dissector() 151 if (proto == ETH_P_8021Q) { in flow_dissector() 152 proto = load_half(skb, in flow_dissector() 158 if (proto == ETH_P_IP) in flow_dissector() [all …]
|
/linux/net/ipv6/ |
A D | ip6_offload.c | 47 if (proto != NEXTHDR_HOP) { in ipv6_gso_pull_exthdrs() 67 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs() 71 return proto; in ipv6_gso_pull_exthdrs() 80 int proto; in ipv6_gso_segment() local 166 proto = iph->nexthdr; in ipv6_exthdrs_len() 168 if (proto != NEXTHDR_HOP) { in ipv6_exthdrs_len() 178 proto = opth->nexthdr; in ipv6_exthdrs_len() 194 int proto; in ipv6_gro_receive() local 212 proto = iph->nexthdr; in ipv6_gro_receive() 217 proto = ipv6_gso_pull_exthdrs(skb, proto); in ipv6_gro_receive() [all …]
|