Home
last modified time | relevance | path

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

12345678910>>...32

/Linux-v5.4/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.c101 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws()
110 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
141 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
159 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_query_dcmd()
217 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_set_dcmd()
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()
457 drvr->proto->query_dcmd = brcmf_proto_bcdc_query_dcmd; in brcmf_proto_bcdc_attach()
[all …]
/Linux-v5.4/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 …]
Dp8023.c40 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in make_8023_client() local
42 if (proto) { in make_8023_client()
43 proto->header_length = 0; in make_8023_client()
44 proto->request = p8023_request; in make_8023_client()
46 return proto; in make_8023_client()
/Linux-v5.4/include/linux/
Dtracepoint.h162 #define __DO_TRACE(tp, proto, args, cond, rcuidle) \ argument
193 ((void(*)(proto))(it_func))(args); \
206 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) \ argument
207 static inline void trace_##name##_rcuidle(proto) \
216 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) argument
231 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
233 static inline void trace_##name(proto) \
246 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
299 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
300 static inline void trace_##name(proto) \
[all …]
/Linux-v5.4/drivers/net/wan/
Dhdlc.c56 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv()
57 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
64 if (hdlc->proto->xmit) in hdlc_start_xmit()
65 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
73 if (hdlc->proto->start) in hdlc_proto_start()
74 hdlc->proto->start(dev); in hdlc_proto_start()
82 if (hdlc->proto->stop) in hdlc_proto_stop()
83 hdlc->proto->stop(dev); in hdlc_proto_stop()
147 if (hdlc->proto == NULL) in hdlc_open()
150 if (hdlc->proto->open) { in hdlc_open()
[all …]
Dhdlc_ppp.c62 struct proto { struct
73 struct proto protos[IDX_COUNT]; argument
109 static inline struct proto* get_proto(struct net_device *dev, u16 pid) in get_proto()
306 struct proto *proto = get_proto(dev, pid); in ppp_cp_event() local
308 old_state = proto->state; in ppp_cp_event()
314 proto_name(pid), event_names[event], state_names[proto->state]); in ppp_cp_event()
319 proto->state = action & STATE_MASK; in ppp_cp_event()
321 mod_timer(&proto->timer, proto->timeout = in ppp_cp_event()
324 proto->restart_counter = 0; in ppp_cp_event()
326 proto->restart_counter = (proto->state == STOPPING) ? in ppp_cp_event()
[all …]
/Linux-v5.4/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()
61 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument
81 tpi->proto = greh->protocol; in gre_parse_header()
112 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { in gre_parse_header()
113 tpi->proto = proto; in gre_parse_header()
140 const struct gre_protocol *proto; in gre_rcv() local
152 proto = rcu_dereference(gre_proto[ver]); in gre_rcv()
[all …]
/Linux-v5.4/net/netfilter/
Dnf_conntrack_proto_tcp.c279 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]); in tcp_print_conntrack()
765 const struct ip_ct_tcp_state *sender = &ct->proto.tcp.seen[0]; in tcp_new()
766 const struct ip_ct_tcp_state *receiver = &ct->proto.tcp.seen[1]; in tcp_new()
778 memset(&ct->proto.tcp, 0, sizeof(ct->proto.tcp)); in tcp_new()
780 ct->proto.tcp.seen[0].td_end = in tcp_new()
783 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window); in tcp_new()
784 if (ct->proto.tcp.seen[0].td_maxwin == 0) in tcp_new()
785 ct->proto.tcp.seen[0].td_maxwin = 1; in tcp_new()
786 ct->proto.tcp.seen[0].td_maxend = in tcp_new()
787 ct->proto.tcp.seen[0].td_end; in tcp_new()
[all …]
Dnf_conntrack_proto_dccp.c407 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
408 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
409 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new()
410 ct->proto.dccp.last_pkt = DCCP_PKT_REQUEST; in dccp_new()
411 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
412 ct->proto.dccp.handshake_seq = 0; in dccp_new()
502 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
503 old_state = ct->proto.dccp.state; in nf_conntrack_dccp_packet()
512 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in nf_conntrack_dccp_packet()
513 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in nf_conntrack_dccp_packet()
[all …]
/Linux-v5.4/net/8021q/
Dvlan_core.c163 __be16 proto; member
168 static bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto) in vlan_hw_filter_capable() argument
170 if (proto == htons(ETH_P_8021Q) && in vlan_hw_filter_capable()
173 if (proto == htons(ETH_P_8021AD) && in vlan_hw_filter_capable()
180 __be16 proto, u16 vid) in vlan_vid_info_get() argument
185 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get()
191 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument
198 vid_info->proto = proto; in vlan_vid_info_alloc()
204 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_add_rx_filter_info() argument
206 if (!vlan_hw_filter_capable(dev, proto)) in vlan_add_rx_filter_info()
[all …]
/Linux-v5.4/tools/testing/selftests/net/
Dreuseport_addr_any.c30 static void build_rcv_fd(int family, int proto, int *rcv_fds, int count, in build_rcv_fd() argument
71 rcv_fds[i] = socket(family, proto, 0); in build_rcv_fd()
83 if (proto == SOCK_STREAM && listen(rcv_fds[i], 10)) in build_rcv_fd()
85 else if (proto == SOCK_DCCP) { in build_rcv_fd()
97 static int connect_and_send(int family, int proto) in connect_and_send() argument
143 fd = socket(family, proto, 0); in connect_and_send()
147 if (proto == SOCK_DCCP && in connect_and_send()
164 static int receive_once(int epfd, int proto) in receive_once() argument
174 if (proto == SOCK_STREAM || proto == SOCK_DCCP) { in receive_once()
190 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-v5.4/drivers/block/paride/
Dparide.c47 pi->proto->write_regr(pi, cont, regr, val); in pi_write_regr()
54 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr()
61 pi->proto->write_block(pi, buf, count); in pi_write_block()
68 pi->proto->read_block(pi, buf, count); in pi_read_block()
139 pi->proto->connect(pi); in pi_connect()
146 pi->proto->disconnect(pi); in pi_disconnect()
163 if (pi->proto->release_proto) in pi_release()
164 pi->proto->release_proto(pi); in pi_release()
165 module_put(pi->proto->owner); in pi_release()
175 pi->proto->connect(pi); in default_test_proto()
[all …]
/Linux-v5.4/include/trace/
Ddefine_trace.h27 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
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
45 #define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \ argument
50 #define TRACE_EVENT_NOP(name, proto, args, struct, assign, print) argument
53 #define DEFINE_EVENT_NOP(template, name, proto, args) argument
56 #define DEFINE_EVENT(template, name, proto, args) \ argument
60 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
64 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
[all …]
Dtrace_events.h73 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
75 PARAMS(proto), \
80 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
111 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument
121 #define DEFINE_EVENT(template, name, proto, args) \ argument
126 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
127 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
130 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
131 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
135 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
[all …]
/Linux-v5.4/drivers/s390/net/
Dqeth_l3.h37 enum qeth_prot_versions proto; member
52 enum qeth_prot_versions proto) in qeth_l3_init_ipaddr() argument
56 addr->proto = proto; in qeth_l3_init_ipaddr()
63 if (a1->proto != a2->proto) in qeth_l3_addr_match_ip()
65 if (a1->proto == QETH_PROT_IPV6) in qeth_l3_addr_match_ip()
87 if (a1->proto == QETH_PROT_IPV6) in qeth_l3_addr_match_all()
97 if (addr->proto == QETH_PROT_IPV6) { in qeth_l3_ipaddr_hash()
102 if (addr->proto == QETH_PROT_IPV4) { in qeth_l3_ipaddr_hash()
111 enum qeth_prot_versions proto; member
125 enum qeth_prot_versions proto, u8 *addr,
[all …]
/Linux-v5.4/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()
73 proto_unregister(nfc_proto->proto); in nfc_proto_unregister()
/Linux-v5.4/samples/bpf/
Dsockex2_kern.c28 static inline int proto_ports_offset(__u64 proto) in proto_ports_offset() argument
30 switch (proto) { in proto_ports_offset()
104 __u64 proto = load_half(skb, 12); in flow_dissector() local
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() member
[all …]
/Linux-v5.4/net/netfilter/ipset/
Dip_set_getport.c26 bool src, __be16 *port, u8 *proto) in get_port() argument
92 *proto = protocol; in get_port()
99 __be16 *port, u8 *proto) in ip_set_get_ip4_port() argument
122 *proto = protocol; in ip_set_get_ip4_port()
126 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
133 __be16 *port, u8 *proto) in ip_set_get_ip6_port() argument
147 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
156 u8 proto; in ip_set_get_ip_port() local
160 ret = ip_set_get_ip4_port(skb, src, port, &proto); in ip_set_get_ip_port()
163 ret = ip_set_get_ip6_port(skb, src, port, &proto); in ip_set_get_ip_port()
[all …]
/Linux-v5.4/net/ipv6/
Dip6_offload.c36 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
44 if (proto != NEXTHDR_HOP) { in ipv6_gso_pull_exthdrs()
45 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_pull_exthdrs()
64 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs()
68 return proto; in ipv6_gso_pull_exthdrs()
77 int proto; in ipv6_gso_segment() local
100 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment()
104 udpfrag = proto == IPPROTO_UDP && encap && in ipv6_gso_segment()
107 udpfrag = proto == IPPROTO_UDP && !skb->encapsulation && in ipv6_gso_segment()
110 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment()
[all …]
/Linux-v5.4/drivers/bluetooth/
Dhci_serdev.c52 skb = hu->proto->dequeue(hu); in hci_uart_dequeue()
110 hu->proto->flush(hu); in hci_uart_flush()
145 hu->proto->enqueue(hu, skb); in hci_uart_send_frame()
163 else if (hu->proto->init_speed) in hci_uart_setup()
164 speed = hu->proto->init_speed; in hci_uart_setup()
174 else if (hu->proto->oper_speed) in hci_uart_setup()
175 speed = hu->proto->oper_speed; in hci_uart_setup()
179 if (hu->proto->set_baudrate && speed) { in hci_uart_setup()
180 err = hu->proto->set_baudrate(hu, speed); in hci_uart_setup()
187 if (hu->proto->setup) in hci_uart_setup()
[all …]

12345678910>>...32