/linux-6.3-rc2/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); 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 | 103 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws() 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() 461 drvr->proto->txdata = brcmf_proto_bcdc_txdata; in brcmf_proto_bcdc_attach() 466 drvr->proto->add_if = brcmf_proto_bcdc_add_if; in brcmf_proto_bcdc_attach() 467 drvr->proto->del_if = brcmf_proto_bcdc_del_if; in brcmf_proto_bcdc_attach() 471 drvr->proto->pd = bcdc; in brcmf_proto_bcdc_attach() 485 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_detach() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/include/linux/ |
A D | tracepoint.h | 256 static inline void trace_##name(proto) \ 320 int __traceiter_##_name(void *__data, proto) \ 338 #define DEFINE_TRACE(name, proto, args) \ argument 353 static inline void trace_##name(proto) \ 379 #define DEFINE_TRACE(name, proto, args) argument 429 #define DECLARE_TRACE(name, proto, args) \ argument 432 PARAMS(void *__data, proto)) 437 PARAMS(void *__data, proto)) 560 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \ 570 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \ [all …]
|
/linux-6.3-rc2/drivers/ata/pata_parport/ |
A D | pata_parport.c | 31 pi->proto->connect(pi); in pi_connect() 36 pi->proto->disconnect(pi); in pi_disconnect() 284 pi->proto->connect(pi); in default_test_proto() 295 pi->proto->disconnect(pi); in default_test_proto() 308 if (pi->proto->test_proto) in pi_test_proto() 354 e = pi->proto->max_units; in pi_probe_unit() 357 if (pi->proto->test_port) { in pi_probe_unit() 407 struct pi_protocol *proto; member 415 return pi->pardev->port == match->parport && pi->proto == match->proto; in pi_find_dev() 455 pi->proto = pr; in pi_init_one() [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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 | trace_events.h | 41 PARAMS(proto), \ 46 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args)); 61 #define DEFINE_EVENT(template, name, proto, args) \ argument 75 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument 77 TRACE_EVENT(name, PARAMS(proto), PARAMS(args), \ 121 #define DEFINE_EVENT(template, name, proto, args) argument 363 #define _TRACE_PERF_PROTO(call, proto) \ argument 365 perf_trace_##call(void *__data, proto); 371 #define _TRACE_PERF_PROTO(call, proto) argument 381 trace_event_raw_event_##call(void *__data, proto) \ [all …]
|
A D | bpf_probe.h | 43 #define __BPF_DECLARE_TRACE(call, proto, args) \ argument 45 __bpf_trace_##call(void *__data, proto) \ 53 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) 65 typedef void (*btf_trace_##call)(void *__data, proto); \ 88 FIRST(proto); \ 98 #define DEFINE_EVENT(template, call, proto, args) \ argument 103 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args)) 106 #define DECLARE_TRACE(call, proto, args) \ argument 107 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \ 111 #define DECLARE_TRACE_WRITABLE(call, proto, args, size) \ argument [all …]
|
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 68 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) argument 108 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, func, print) \ argument 122 struct trace_custom_event_data_offsets_##call *__data_offsets, proto) \ 143 trace_custom_event_raw_event_##call(void *__data, proto) \ 175 #define DEFINE_CUSTOM_EVENT(template, call, proto, args) \ argument [all …]
|
/linux-6.3-rc2/net/netfilter/ |
A D | nf_conntrack_proto_tcp.c | 854 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 870 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new() 1052 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_end = in nf_conntrack_tcp_packet() 1053 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet() 1054 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxend = in nf_conntrack_tcp_packet() 1055 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet() 1056 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxwin = in nf_conntrack_tcp_packet() 1059 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_scale = in nf_conntrack_tcp_packet() 1062 ct->proto.tcp.seen[ct->proto.tcp.last_dir].flags = in nf_conntrack_tcp_packet() 1070 ct->proto.tcp.last_end = in nf_conntrack_tcp_packet() [all …]
|
A D | nf_conntrack_proto_sctp.c | 253 memset(&ct->proto.sctp, 0, sizeof(ct->proto.sctp)); in sctp_new() 416 if (ct->proto.sctp.vtag[dir] == 0) { in nf_conntrack_sctp_packet() 418 ct->proto.sctp.vtag[dir] = sh->vtag; in nf_conntrack_sctp_packet() 424 ct->proto.sctp.last_dir = dir; in nf_conntrack_sctp_packet() 431 if (ct->proto.sctp.vtag[dir] == 0) { in nf_conntrack_sctp_packet() 440 ct->proto.sctp.last_dir == dir) in nf_conntrack_sctp_packet() 445 ct->proto.sctp.vtag[!dir] = 0; in nf_conntrack_sctp_packet() 451 old_state = ct->proto.sctp.state; in nf_conntrack_sctp_packet() 486 ct->proto.sctp.state = new_state; in nf_conntrack_sctp_packet() 516 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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/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-6.3-rc2/scripts/ |
A D | bpf_doc.py | 41 self.proto = proto 105 proto = self.parse_symbol() 107 ret = self.parse_ret(proto) 108 return APIElement(proto=proto, desc=desc, ret=ret) 111 proto = self.parse_proto() 114 return Helper(proto=proto, desc=desc, ret=ret) 143 def parse_desc(self, proto): argument 169 def parse_ret(self, proto): argument 290 name = proto['name'] 597 for a in proto['args']: [all …]
|
/linux-6.3-rc2/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-6.3-rc2/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 …]
|