Home
last modified time | relevance | path

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

12345678910>>...41

/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dproto.c26 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 …]
H A Dproto.h96 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 …]
H A Dbcdc.c103 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/include/linux/
H A Dtracepoint.h256 static inline void trace_##name(proto) \
321 int __traceiter_##_name(void *__data, proto) \
342 #define DEFINE_TRACE(name, proto, args) \ argument
357 static inline void trace_##name(proto) \
383 #define DEFINE_TRACE(name, proto, args) argument
433 #define DECLARE_TRACE(name, proto, args) \ argument
436 PARAMS(void *__data, proto))
441 PARAMS(void *__data, proto))
564 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
574 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
[all …]
/linux/net/802/
H A Dpsnap.c35 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 …]
H A 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()
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 …]
H A 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()
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/ata/pata_parport/
H A Dpata_parport.c31 pi->proto->connect(pi); in pi_connect()
36 pi->proto->disconnect(pi); in pi_disconnect()
358 pi->proto->connect(pi); in default_test_proto()
369 pi->proto->disconnect(pi); in default_test_proto()
382 if (pi->proto->test_proto) in pi_test_proto()
428 e = pi->proto->max_units; in pi_probe_unit()
431 if (pi->proto->test_port) { in pi_probe_unit()
482 struct pi_protocol *proto; member
490 return pi->pardev->port == match->parport && pi->proto == match->proto; in pi_find_dev()
533 pi->proto = pr; in pi_init_one()
[all …]
/linux/drivers/net/wan/
H A Dhdlc.c71 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 …]
H A Dhdlc_ppp.c62 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/
H A Ddefine_trace.h28 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 …]
H A Dtrace_events.h41 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 …]
H A Dbpf_probe.h45 #define __BPF_DECLARE_TRACE(call, proto, args) \ argument
47 __bpf_trace_##call(void *__data, proto) \
54 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args))
66 typedef void (*btf_trace_##call)(void *__data, proto); \
89 FIRST(proto); \
99 #define DEFINE_EVENT(template, call, proto, args) \ argument
104 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
107 #define DECLARE_TRACE(call, proto, args) \ argument
108 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args)) \
112 #define DECLARE_TRACE_WRITABLE(call, proto, args, size) \ argument
[all …]
H A 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
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/net/netfilter/
H A Dnf_conntrack_proto_tcp.c857 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new()
873 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new()
1055 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_end = in nf_conntrack_tcp_packet()
1056 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet()
1057 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxend = in nf_conntrack_tcp_packet()
1058 ct->proto.tcp.last_end; in nf_conntrack_tcp_packet()
1059 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_maxwin = in nf_conntrack_tcp_packet()
1062 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_scale = in nf_conntrack_tcp_packet()
1065 ct->proto.tcp.seen[ct->proto.tcp.last_dir].flags = in nf_conntrack_tcp_packet()
1073 ct->proto.tcp.last_end = in nf_conntrack_tcp_packet()
[all …]
H A Dnf_conntrack_proto_sctp.c253 memset(&ct->proto.sctp, 0, sizeof(ct->proto.sctp)); in sctp_new()
416 ct->proto.sctp.init[dir] = 0; in nf_conntrack_sctp_packet()
417 ct->proto.sctp.init[!dir] = 0; in nf_conntrack_sctp_packet()
427 ct->proto.sctp.last_dir = dir; in nf_conntrack_sctp_packet()
448 ct->proto.sctp.vtag[!dir] = 0; in nf_conntrack_sctp_packet()
454 old_state = ct->proto.sctp.state; in nf_conntrack_sctp_packet()
474 if (ct->proto.sctp.init[dir] && ct->proto.sctp.init[!dir]) in nf_conntrack_sctp_packet()
475 ct->proto.sctp.init[!dir] = 0; in nf_conntrack_sctp_packet()
476 ct->proto.sctp.init[dir] = 1; in nf_conntrack_sctp_packet()
501 if (ct->proto.sctp.init[dir] && ct->proto.sctp.init[!dir] && in nf_conntrack_sctp_packet()
[all …]
H A Dnf_conntrack_proto_dccp.c413 ct->proto.dccp.state = CT_DCCP_NONE; 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()
590 ct->proto.dccp.last_dir = dir; in nf_conntrack_dccp_packet()
591 ct->proto.dccp.last_pkt = type; in nf_conntrack_dccp_packet()
602 ct->proto.dccp.last_dir = dir; in nf_conntrack_dccp_packet()
603 ct->proto.dccp.last_pkt = type; in nf_conntrack_dccp_packet()
604 ct->proto.dccp.state = new_state; in nf_conntrack_dccp_packet()
620 switch (ct->proto.dccp.state) { in dccp_can_early_drop()
[all …]
/linux/net/8021q/
H A Dvlan_core.c164 __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/include/net/
H A Dproto_memory.h17 proto_memory_pressure(const struct proto *prot) in proto_memory_pressure()
42 proto_memory_allocated(const struct proto *prot) in proto_memory_allocated()
53 static inline void proto_memory_pcpu_drain(struct proto *proto) in proto_memory_pcpu_drain() argument
55 int val = this_cpu_xchg(*proto->per_cpu_fw_alloc, 0); in proto_memory_pcpu_drain()
58 atomic_long_add(val, proto->memory_allocated); in proto_memory_pcpu_drain()
64 struct proto *proto = sk->sk_prot; in sk_memory_allocated_add() local
66 val = this_cpu_add_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_add()
69 proto_memory_pcpu_drain(proto); in sk_memory_allocated_add()
75 struct proto *proto = sk->sk_prot; in sk_memory_allocated_sub() local
77 val = this_cpu_sub_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_sub()
[all …]
/linux/net/ipv4/
H A Dgre_demux.c48 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/tools/testing/selftests/net/
H A Dreuseport_addr_any.c75 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 …]
/linux/scripts/
H A Dbpf_doc.py41 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/drivers/s390/net/
H A 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/net/nfc/
H A 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/samples/bpf/
H A Dsockex2_kern.c31 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 …]

12345678910>>...41