Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 1005) sorted by relevance

12345678910>>...41

/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dproto.c22 struct brcmf_proto *proto; in brcmf_proto_attach() local
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()
45 (proto->configure_addr_mode == NULL) || in brcmf_proto_attach()
46 (proto->delete_peer == NULL) || (proto->add_tdls_peer == NULL) || in brcmf_proto_attach()
47 (proto->debugfs_create == NULL)) { in brcmf_proto_attach()
54 kfree(proto); in brcmf_proto_attach()
[all …]
Dproto.h61 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 …]
Dbcdc.c103 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()
458 drvr->proto->query_dcmd = brcmf_proto_bcdc_query_dcmd; in brcmf_proto_bcdc_attach()
[all …]
/linux-6.6.21/include/linux/
Dtracepoint.h228 #define __DECLARE_TRACE_RCU(name, proto, args, cond) \ argument
229 static inline void trace_##name##_rcuidle(proto) \
237 #define __DECLARE_TRACE_RCU(name, proto, args, cond) argument
251 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
255 static inline void trace_##name(proto) \
265 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
301 #define DEFINE_TRACE_FN(_name, _reg, _unreg, proto, args) \ argument
305 int __traceiter_##_name(void *__data, proto); \
306 void __probestub_##_name(void *__data, proto); \
319 int __traceiter_##_name(void *__data, proto) \
[all …]
/linux-6.6.21/net/802/
Dpsnap.c31 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_transport_header(skb)); 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(sizeof(*proto), GFP_ATOMIC); in register_snap_client()
[all …]
Dp8022.c38 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()
44 proto->request = p8022_request; in register_8022_client()
45 proto->sap = llc_sap_open(type, func); 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()
[all …]
Dstp.c35 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-6.6.21/drivers/ata/pata_parport/
Dpata_parport.c31 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-6.6.21/drivers/net/wan/
Dhdlc.c63 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()
151 if (!hdlc->proto) in hdlc_open()
154 if (hdlc->proto->open) { in hdlc_open()
[all …]
Dhdlc_ppp.c62 struct proto { struct
73 struct proto protos[IDX_COUNT]; argument
110 static inline struct proto *get_proto(struct net_device *dev, u16 pid) in get_proto()
304 struct proto *proto = get_proto(dev, pid); in ppp_cp_event() local
306 old_state = proto->state; in ppp_cp_event()
312 proto_name(pid), event_names[event], state_names[proto->state]); in ppp_cp_event()
317 proto->state = action & STATE_MASK; in ppp_cp_event()
319 mod_timer(&proto->timer, proto->timeout = in ppp_cp_event()
322 proto->restart_counter = 0; in ppp_cp_event()
324 proto->restart_counter = (proto->state == STOPPING) ? in ppp_cp_event()
[all …]
/linux-6.6.21/include/trace/
Ddefine_trace.h27 #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_NOP(name, proto, args, struct, assign, print) argument
53 #define DEFINE_EVENT_NOP(template, name, proto, args) argument
[all …]
Dtrace_events.h39 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
41 PARAMS(proto), \
46 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
51 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument
61 #define DEFINE_EVENT(template, name, proto, args) \ argument
66 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
67 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
70 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
71 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
75 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
[all …]
Dbpf_probe.h45 #define __BPF_DECLARE_TRACE(call, proto, args) \ argument
47 __bpf_trace_##call(void *__data, proto) \
54 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
55 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args))
62 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument
67 typedef void (*btf_trace_##call)(void *__data, proto); \
83 #define __CHECK_WRITABLE_BUF_SIZE(call, proto, args, size) \ argument
90 FIRST(proto); \
95 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument
96 __CHECK_WRITABLE_BUF_SIZE(call, PARAMS(proto), PARAMS(args), size) \
[all …]
Dtrace_custom_events.h27 #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-6.6.21/net/netfilter/
Dnf_conntrack_proto_tcp.c271 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()
856 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new()
858 ct->proto.tcp.seen[0].td_end = in tcp_new()
[all …]
Dnf_conntrack_proto_sctp.c141 seq_printf(s, "%s ", sctp_conntrack_names[ct->proto.sctp.state]); in sctp_print_conntrack()
253 memset(&ct->proto.sctp, 0, sizeof(ct->proto.sctp)); in sctp_new()
281 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = ih->init_tag; in sctp_new()
285 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = sh->vtag; in sctp_new()
291 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = sh->vtag; in sctp_new()
294 ct->proto.sctp.state = SCTP_CONNTRACK_NONE; in sctp_new()
378 sh->vtag != ct->proto.sctp.vtag[dir]) { in nf_conntrack_sctp_packet()
381 sh->vtag, ct->proto.sctp.vtag[dir], dir); in nf_conntrack_sctp_packet()
398 sh->vtag != ct->proto.sctp.vtag[dir]) || in nf_conntrack_sctp_packet()
400 sh->vtag != ct->proto.sctp.vtag[!dir])) in nf_conntrack_sctp_packet()
[all …]
Dnf_conntrack_proto_dccp.c411 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
412 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
413 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new()
414 ct->proto.dccp.last_pkt = DCCP_PKT_REQUEST; in dccp_new()
415 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
416 ct->proto.dccp.handshake_seq = 0; in dccp_new()
551 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
552 old_state = ct->proto.dccp.state; in nf_conntrack_dccp_packet()
561 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
562 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet()
[all …]
/linux-6.6.21/net/8021q/
Dvlan_core.c164 __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-6.6.21/net/ipv4/
Dgre_demux.c31 int gre_add_protocol(const struct gre_protocol *proto, u8 version) in gre_add_protocol() argument
36 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? in gre_add_protocol()
41 int gre_del_protocol(const struct gre_protocol *proto, u8 version) in gre_del_protocol() argument
48 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol()
63 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument
83 tpi->proto = greh->protocol; in gre_parse_header()
114 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { 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()
[all …]
/linux-6.6.21/tools/testing/selftests/net/
Dreuseport_addr_any.c34 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, in build_rcv_fd() argument
75 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
87 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd()
89 else if (proto == SOCK_DCCP) { in build_rcv_fd()
101 static int connect_and_send(int family, int proto) in connect_and_send() argument
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()
194 static void test(int *rcv_fds, int count, int family, int proto, int fd) in test() argument
[all …]
Dreuseport_bpf_cpu.c34 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-6.6.21/scripts/
Dbpf_doc.py40 def __init__(self, proto='', desc='', ret=''): argument
41 self.proto = proto
66 capture = proto_re.match(self.proto)
105 proto = self.parse_symbol()
106 desc = self.parse_desc(proto)
107 ret = self.parse_ret(proto)
108 return APIElement(proto=proto, desc=desc, ret=ret)
111 proto = self.parse_proto()
112 desc = self.parse_desc(proto)
113 ret = self.parse_ret(proto)
[all …]
/linux-6.6.21/drivers/s390/net/
Dqeth_l3.h33 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.6.21/net/nfc/
Daf_nfc.c18 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.6.21/samples/bpf/
Dsockex2_kern.c29 static inline int proto_ports_offset(__u64 proto) in proto_ports_offset() argument
31 switch (proto) { in proto_ports_offset()
105 __u64 proto = load_half(skb, 12); in flow_dissector() local
108 if (proto == ETH_P_8021AD) { in flow_dissector()
109 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
114 if (proto == ETH_P_8021Q) { in flow_dissector()
115 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, 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
[all …]

12345678910>>...41