Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 200 of 569) sorted by relevance

123

/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dproto.c33 struct brcmf_proto *proto; in brcmf_proto_attach() local
37 proto = kzalloc(sizeof(*proto), GFP_ATOMIC); in brcmf_proto_attach()
38 if (!proto) in brcmf_proto_attach()
41 drvr->proto = proto; in brcmf_proto_attach()
54 if ((proto->txdata == NULL) || (proto->hdrpull == NULL) || in brcmf_proto_attach()
55 (proto->query_dcmd == NULL) || (proto->set_dcmd == NULL) || in brcmf_proto_attach()
56 (proto->configure_addr_mode == NULL) || in brcmf_proto_attach()
57 (proto->delete_peer == NULL) || (proto->add_tdls_peer == NULL)) { in brcmf_proto_attach()
64 kfree(proto); in brcmf_proto_attach()
65 drvr->proto = NULL; in brcmf_proto_attach()
[all …]
Dproto.h61 return drvr->proto->hdrpull(drvr, do_fws, skb, ifp); in brcmf_proto_hdrpull()
66 return drvr->proto->query_dcmd(drvr, ifidx, cmd, buf, len); in brcmf_proto_query_dcmd()
71 return drvr->proto->set_dcmd(drvr, ifidx, cmd, buf, len); in brcmf_proto_set_dcmd()
76 return drvr->proto->txdata(drvr, ifidx, offset, skb); in brcmf_proto_txdata()
82 drvr->proto->configure_addr_mode(drvr, ifidx, addr_mode); in brcmf_proto_configure_addr_mode()
87 drvr->proto->delete_peer(drvr, ifidx, peer); in brcmf_proto_delete_peer()
92 drvr->proto->add_tdls_peer(drvr, ifidx, peer); in brcmf_proto_add_tdls_peer()
Dbcdc.c113 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_msg()
144 struct brcmf_bcdc *bcdc = (struct brcmf_bcdc *)drvr->proto->pd; in brcmf_proto_bcdc_cmplt()
162 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()
366 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull; in brcmf_proto_bcdc_attach()
367 drvr->proto->query_dcmd = brcmf_proto_bcdc_query_dcmd; in brcmf_proto_bcdc_attach()
368 drvr->proto->set_dcmd = brcmf_proto_bcdc_set_dcmd; in brcmf_proto_bcdc_attach()
369 drvr->proto->txdata = brcmf_proto_bcdc_txdata; in brcmf_proto_bcdc_attach()
370 drvr->proto->configure_addr_mode = brcmf_proto_bcdc_configure_addr_mode; in brcmf_proto_bcdc_attach()
371 drvr->proto->delete_peer = brcmf_proto_bcdc_delete_peer; in brcmf_proto_bcdc_attach()
[all …]
Dtracepoint.h25 #define TRACE_EVENT(name, proto, ...) \ argument
26 static inline void trace_ ## name(proto) {}
32 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument
33 static inline void trace_ ## name(proto) {}
Dmsgbuf.c422 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_tx_ioctl()
484 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_query_dcmd()
785 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_txdata()
810 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_configure_addr_mode()
819 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_delete_peer()
828 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_add_tdls_peer()
1286 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_proto_msgbuf_rx_trigger()
1316 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_delete_flowring()
1361 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_stats_read()
1450 drvr->proto->hdrpull = brcmf_msgbuf_hdrpull; in brcmf_proto_msgbuf_attach()
[all …]
/linux-4.4.14/net/802/
Dpsnap.c35 struct datalink_proto *proto = NULL, *p; in find_snap_client() local
39 proto = p; in find_snap_client()
43 return proto; in find_snap_client()
53 struct datalink_proto *proto; in snap_rcv() local
62 proto = find_snap_client(skb_transport_header(skb)); in snap_rcv()
63 if (proto) { in snap_rcv()
67 rc = proto->rcvfunc(skb, dev, &snap_packet_type, orig_dev); in snap_rcv()
71 if (unlikely(!proto)) in snap_rcv()
132 struct datalink_proto *proto = NULL; in register_snap_client() local
139 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in register_snap_client()
[all …]
Dp8022.c41 struct datalink_proto *proto; in register_8022_client() local
43 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in register_8022_client()
44 if (proto) { in register_8022_client()
45 proto->type[0] = type; in register_8022_client()
46 proto->header_length = 3; in register_8022_client()
47 proto->request = p8022_request; in register_8022_client()
48 proto->sap = llc_sap_open(type, func); in register_8022_client()
49 if (!proto->sap) { in register_8022_client()
50 kfree(proto); in register_8022_client()
51 proto = NULL; in register_8022_client()
[all …]
Dstp.c38 const struct stp_proto *proto; in stp_pdu_rcv() local
46 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv()
48 if (proto && in stp_pdu_rcv()
49 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
52 proto = rcu_dereference(stp_proto); in stp_pdu_rcv()
54 if (!proto) in stp_pdu_rcv()
57 proto->rcv(proto, skb, dev); in stp_pdu_rcv()
65 int stp_proto_register(const struct stp_proto *proto) in stp_proto_register() argument
77 if (is_zero_ether_addr(proto->group_address)) in stp_proto_register()
78 rcu_assign_pointer(stp_proto, proto); in stp_proto_register()
[all …]
Dp8023.c44 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in make_8023_client() local
46 if (proto) { in make_8023_client()
47 proto->header_length = 0; in make_8023_client()
48 proto->request = p8023_request; in make_8023_client()
50 return proto; in make_8023_client()
Dgarp.c251 app->app->proto.group_address); in garp_pdu_queue()
501 static void garp_pdu_rcv(const struct stp_proto *proto, struct sk_buff *skb, in garp_pdu_rcv() argument
504 struct garp_application *appl = proto->data; in garp_pdu_rcv()
577 err = dev_mc_add(dev, appl->proto.group_address); in garp_init_applicant()
620 dev_mc_del(dev, appl->proto.group_address); in garp_uninit_applicant()
628 appl->proto.rcv = garp_pdu_rcv; in garp_register_application()
629 appl->proto.data = appl; in garp_register_application()
630 return stp_proto_register(&appl->proto); in garp_register_application()
636 stp_proto_unregister(&appl->proto); in garp_unregister_application()
/linux-4.4.14/drivers/net/wan/
Dhdlc.c67 BUG_ON(!hdlc->proto->netif_rx); in hdlc_rcv()
68 return hdlc->proto->netif_rx(skb); in hdlc_rcv()
75 if (hdlc->proto->xmit) in hdlc_start_xmit()
76 return hdlc->proto->xmit(skb, dev); in hdlc_start_xmit()
84 if (hdlc->proto->start) in hdlc_proto_start()
85 hdlc->proto->start(dev); in hdlc_proto_start()
93 if (hdlc->proto->stop) in hdlc_proto_stop()
94 hdlc->proto->stop(dev); in hdlc_proto_stop()
158 if (hdlc->proto == NULL) in hdlc_open()
161 if (hdlc->proto->open) { in hdlc_open()
[all …]
Dhdlc_ppp.c65 struct proto { struct
76 struct proto protos[IDX_COUNT]; argument
112 static inline struct proto* get_proto(struct net_device *dev, u16 pid) in get_proto()
309 struct proto *proto = get_proto(dev, pid); in ppp_cp_event() local
311 old_state = proto->state; in ppp_cp_event()
317 proto_name(pid), event_names[event], state_names[proto->state]); in ppp_cp_event()
322 proto->state = action & STATE_MASK; in ppp_cp_event()
324 mod_timer(&proto->timer, proto->timeout = in ppp_cp_event()
327 proto->restart_counter = 0; in ppp_cp_event()
329 proto->restart_counter = (proto->state == STOPPING) ? in ppp_cp_event()
[all …]
Dhdlc_raw.c32 static struct hdlc_proto proto = { variable
49 if (dev_to_hdlc(dev)->proto != &proto) in raw_ioctl()
81 result = attach_hdlc_protocol(dev, &proto, in raw_ioctl()
97 register_hdlc_protocol(&proto); in mod_init()
105 unregister_hdlc_protocol(&proto); in mod_exit()
Dhdlc_raw_eth.c46 static struct hdlc_proto proto = { variable
64 if (dev_to_hdlc(dev)->proto != &proto) in raw_eth_ioctl()
96 result = attach_hdlc_protocol(dev, &proto, in raw_eth_ioctl()
115 register_hdlc_protocol(&proto); in mod_init()
123 unregister_hdlc_protocol(&proto); in mod_exit()
Dhdlc_x25.c180 static struct hdlc_proto proto = { variable
197 if (dev_to_hdlc(dev)->proto != &proto) in x25_ioctl()
213 if ((result = attach_hdlc_protocol(dev, &proto, 0))) in x25_ioctl()
226 register_hdlc_protocol(&proto); in mod_init()
234 unregister_hdlc_protocol(&proto); in mod_exit()
Dhdlc_cisco.c320 static struct hdlc_proto proto = { variable
343 if (dev_to_hdlc(dev)->proto != &proto) in cisco_ioctl()
372 result = attach_hdlc_protocol(dev, &proto, in cisco_ioctl()
391 register_hdlc_protocol(&proto); in mod_init()
399 unregister_hdlc_protocol(&proto); in mod_exit()
/linux-4.4.14/include/linux/
Dtracepoint.h145 #define __DO_TRACE(tp, proto, args, cond, prercu, postrcu) \ argument
160 ((void(*)(proto))(it_func))(args); \
168 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) \ argument
169 static inline void trace_##name##_rcuidle(proto) \
180 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) argument
195 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
197 static inline void trace_##name(proto) \
210 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
265 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
266 static inline void trace_##name(proto) \
[all …]
Dif_bridge.h27 __be16 proto; member
59 bool br_multicast_has_querier_anywhere(struct net_device *dev, int proto);
60 bool br_multicast_has_querier_adjacent(struct net_device *dev, int proto);
68 int proto) in br_multicast_has_querier_anywhere() argument
73 int proto) in br_multicast_has_querier_adjacent() argument
Dhdlc.h47 const struct hdlc_proto *proto; member
67 void register_hdlc_protocol(struct hdlc_proto *proto);
68 void unregister_hdlc_protocol(struct hdlc_proto *proto);
101 int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto,
114 if (hdlc->proto->type_trans) in hdlc_type_trans()
115 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()
Dnet.h213 int __sock_create(struct net *net, int family, int type, int proto,
215 int sock_create(int family, int type, int proto, struct socket **res);
216 int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
217 int sock_create_lite(int family, int type, int proto, struct socket **res);
293 #define MODULE_ALIAS_NETPROTO(proto) \ argument
294 MODULE_ALIAS("net-pf-" __stringify(proto))
296 #define MODULE_ALIAS_NET_PF_PROTO(pf, proto) \ argument
297 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto))
299 #define MODULE_ALIAS_NET_PF_PROTO_TYPE(pf, proto, type) \ argument
300 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \
[all …]
Dif_pppox.h56 } proto; member
59 #define pppoe_dev proto.pppoe.dev
60 #define pppoe_ifindex proto.pppoe.ifindex
61 #define pppoe_pa proto.pppoe.pa
62 #define pppoe_relay proto.pppoe.relay
Dif_vlan.h191 extern int vlan_vid_add(struct net_device *dev, __be16 proto, u16 vid);
192 extern void vlan_vid_del(struct net_device *dev, __be16 proto, u16 vid);
243 static inline int vlan_vid_add(struct net_device *dev, __be16 proto, u16 vid) in vlan_vid_add() argument
248 static inline void vlan_vid_del(struct net_device *dev, __be16 proto, u16 vid) in vlan_vid_del() argument
275 __be16 proto) in vlan_hw_offload_capable() argument
277 if (proto == htons(ETH_P_8021Q) && features & NETIF_F_HW_VLAN_CTAG_TX) in vlan_hw_offload_capable()
279 if (proto == htons(ETH_P_8021AD) && features & NETIF_F_HW_VLAN_STAG_TX) in vlan_hw_offload_capable()
533 __be16 proto; in vlan_set_encap_proto() local
541 proto = vhdr->h_vlan_encapsulated_proto; in vlan_set_encap_proto()
542 if (eth_proto_is_802_3(proto)) { in vlan_set_encap_proto()
[all …]
Din.h25 static inline int proto_ports_offset(int proto) in proto_ports_offset() argument
27 switch (proto) { in proto_ports_offset()
Dlsm_audit.h97 struct common_audit_data *ad, u8 *proto);
100 struct common_audit_data *ad, u8 *proto);
Disdn_ppp.h84 struct sk_buff *skb_out, int proto);
90 void (*incomp) (void *state, struct sk_buff *in,int proto);
Detherdevice.h201 static inline bool eth_proto_is_802_3(__be16 proto) in eth_proto_is_802_3() argument
205 proto &= htons(0xFF00); in eth_proto_is_802_3()
208 return (__force u16)proto >= (__force u16)htons(ETH_P_802_3_MIN); in eth_proto_is_802_3()
/linux-4.4.14/net/ipv4/
Dgre_demux.c35 int gre_add_protocol(const struct gre_protocol *proto, u8 version) in gre_add_protocol() argument
40 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? in gre_add_protocol()
45 int gre_del_protocol(const struct gre_protocol *proto, u8 version) in gre_del_protocol() argument
52 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol()
65 const struct gre_protocol *proto; in gre_rcv() local
77 proto = rcu_dereference(gre_proto[ver]); in gre_rcv()
78 if (!proto || !proto->handler) in gre_rcv()
80 ret = proto->handler(skb); in gre_rcv()
93 const struct gre_protocol *proto; in gre_err() local
101 proto = rcu_dereference(gre_proto[ver]); in gre_err()
[all …]
Dxfrm4_state.c38 sel->proto = fl4->flowi4_proto; in __xfrm4_init_tempsel()
75 .proto = IPPROTO_IPIP,
Dfou.c186 u8 proto = NAPI_GRO_CB(skb)->proto; in fou_gro_receive() local
191 ops = rcu_dereference(offloads[proto]); in fou_gro_receive()
207 u8 proto = NAPI_GRO_CB(skb)->proto; in fou_gro_complete() local
215 ops = rcu_dereference(offloads[proto]); in fou_gro_complete()
372 u8 proto; in gue_gro_complete() local
375 proto = guehdr->proto_ctype; in gue_gro_complete()
381 ops = rcu_dereference(offloads[proto]); in gue_gro_complete()
Dip_gre.c205 tpi->proto = greh->protocol; in parse_gre_header()
235 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { in parse_gre_header()
236 tpi->proto = htons(ETH_P_IP); in parse_gre_header()
299 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_err()
392 if (tpi->proto == htons(ETH_P_TEB)) in ipgre_rcv()
437 if (iptunnel_pull_header(skb, hdr_len, tpi.proto) < 0) in gre_rcv()
450 __be16 proto, __be32 key, __be32 seq) in build_header() argument
459 greh->protocol = proto; in build_header()
484 __be16 proto) in __gre_xmit() argument
493 proto, tunnel->parms.o_key, htonl(tunnel->o_seqno)); in __gre_xmit()
[all …]
/linux-4.4.14/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-4.4.14/net/nfc/
Daf_nfc.c30 static int nfc_sock_create(struct net *net, struct socket *sock, int proto, in nfc_sock_create() argument
38 if (proto < 0 || proto >= NFC_SOCKPROTO_MAX) in nfc_sock_create()
42 if (proto_tab[proto] && try_module_get(proto_tab[proto]->owner)) { in nfc_sock_create()
43 rc = proto_tab[proto]->create(net, sock, proto_tab[proto], kern); in nfc_sock_create()
44 module_put(proto_tab[proto]->owner); in nfc_sock_create()
64 rc = proto_register(nfc_proto->proto, 0); in nfc_proto_register()
85 proto_unregister(nfc_proto->proto); in nfc_proto_unregister()
/linux-4.4.14/net/ipv6/
Dip6_offload.c22 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
30 if (proto != NEXTHDR_HOP) { in ipv6_gso_pull_exthdrs()
31 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_pull_exthdrs()
50 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs()
54 return proto; in ipv6_gso_pull_exthdrs()
63 int proto; in ipv6_gso_segment() local
101 proto = ipv6_gso_pull_exthdrs(skb, ipv6h->nexthdr); in ipv6_gso_segment()
105 udpfrag = proto == IPPROTO_UDP && encap; in ipv6_gso_segment()
107 udpfrag = proto == IPPROTO_UDP && !skb->encapsulation; in ipv6_gso_segment()
109 ops = rcu_dereference(inet6_offloads[proto]); in ipv6_gso_segment()
[all …]
Dip6_checksum.c9 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
55 uproto = (__force u32)htonl(proto); in csum_ipv6_magic()
65 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) in udp6_csum_init() argument
72 if (proto == IPPROTO_UDPLITE) { in udp6_csum_init()
83 return skb_checksum_init_zero_check(skb, proto, uh->check, in udp6_csum_init()
Dexthdrs.c655 static void ipv6_push_rthdr(struct sk_buff *skb, u8 *proto, in ipv6_push_rthdr() argument
676 phdr->rt_hdr.nexthdr = *proto; in ipv6_push_rthdr()
677 *proto = NEXTHDR_ROUTING; in ipv6_push_rthdr()
680 static void ipv6_push_exthdr(struct sk_buff *skb, u8 *proto, u8 type, struct ipv6_opt_hdr *opt) in ipv6_push_exthdr() argument
685 h->nexthdr = *proto; in ipv6_push_exthdr()
686 *proto = type; in ipv6_push_exthdr()
690 u8 *proto, in ipv6_push_nfrag_opts() argument
694 ipv6_push_rthdr(skb, proto, opt->srcrt, daddr); in ipv6_push_nfrag_opts()
700 ipv6_push_exthdr(skb, proto, NEXTHDR_DEST, opt->dst0opt); in ipv6_push_nfrag_opts()
703 ipv6_push_exthdr(skb, proto, NEXTHDR_HOP, opt->hopopt); in ipv6_push_nfrag_opts()
[all …]
Dip6_tunnel.c561 tproto = ACCESS_ONCE(t->parms.proto); in ip6_tnl_err()
872 tproto = ACCESS_ONCE(t->parms.proto); in ip6_tnl_rcv()
1046 u8 proto; in ip6_tnl_xmit2() local
1141 proto = fl6->flowi6_proto; in ip6_tnl_xmit2()
1144 ipv6_push_nfrag_opts(skb, &opt.ops, &proto, NULL); in ip6_tnl_xmit2()
1158 ipv6h->nexthdr = proto; in ip6_tnl_xmit2()
1185 tproto = ACCESS_ONCE(t->parms.proto); in ip4ip6_tnl_xmit()
1228 tproto = ACCESS_ONCE(t->parms.proto); in ip6ip6_tnl_xmit()
1370 t->parms.proto = p->proto; in ip6_tnl_change()
1393 t->parms.proto = p->proto; in ip6_tnl0_update()
[all …]
Dxfrm6_output.c32 int proto; in xfrm6_local_dontfrag() local
39 proto = sk->sk_protocol; in xfrm6_local_dontfrag()
40 if (proto == IPPROTO_UDP || proto == IPPROTO_RAW) in xfrm6_local_dontfrag()
Dip6_vti.c308 if (t->parms.proto != IPPROTO_IPV6 && t->parms.proto != 0) { in vti6_rcv()
522 if ((t->parms.proto != IPPROTO_IPV6 && t->parms.proto != 0) || in vti6_tnl_xmit()
642 t->parms.proto = p->proto; in vti6_tnl_change()
670 p->proto = u->proto; in vti6_parm_from_user()
683 u->proto = p->proto; in vti6_parm_to_user()
752 if (p.proto != IPPROTO_IPV6 && p.proto != 0) in vti6_ioctl()
895 t->parms.proto = IPPROTO_IPV6; in vti6_fb_tnl_dev_init()
940 nt->parms.proto = IPPROTO_IPV6; in vti6_newlink()
Dxfrm6_state.c39 sel->proto = fl6->flowi6_proto; in __xfrm6_init_tempsel()
100 if (v->id.proto != IPPROTO_AH) in __xfrm6_state_sort_cmp()
174 .proto = IPPROTO_IPV6,
Dxfrm6_input.c59 xfrm_address_t *saddr, u8 proto) in xfrm6_input_addr() argument
104 x = xfrm_state_lookup_byaddr(net, skb->mark, dst, src, proto, AF_INET6); in xfrm6_input_addr()
/linux-4.4.14/net/8021q/
Dvlan_core.c156 __be16 proto; member
164 if (vid_info->proto == htons(ETH_P_8021Q) && in vlan_hw_filter_capable()
167 if (vid_info->proto == htons(ETH_P_8021AD) && in vlan_hw_filter_capable()
174 __be16 proto, u16 vid) in vlan_vid_info_get() argument
179 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get()
185 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument
192 vid_info->proto = proto; in vlan_vid_info_alloc()
198 static int __vlan_vid_add(struct vlan_info *vlan_info, __be16 proto, u16 vid, in __vlan_vid_add() argument
206 vid_info = vlan_vid_info_alloc(proto, vid); in __vlan_vid_add()
212 err = ops->ndo_vlan_rx_add_vid(dev, proto, vid); in __vlan_vid_add()
[all …]
Dvlan_netlink.c121 __be16 proto; in vlan_newlink() local
134 proto = nla_get_be16(data[IFLA_VLAN_PROTOCOL]); in vlan_newlink()
136 proto = htons(ETH_P_8021Q); in vlan_newlink()
138 vlan->vlan_proto = proto; in vlan_newlink()
/linux-4.4.14/net/netfilter/
Dnf_conntrack_proto_tcp.c319 state = ct->proto.tcp.state; in tcp_print_conntrack()
834 old_state = ct->proto.tcp.state; in tcp_packet()
856 if (((ct->proto.tcp.seen[dir].flags in tcp_packet()
857 | ct->proto.tcp.seen[!dir].flags) in tcp_packet()
859 || (ct->proto.tcp.last_dir == dir in tcp_packet()
860 && ct->proto.tcp.last_index == TCP_RST_SET)) { in tcp_packet()
889 && ct->proto.tcp.last_index == TCP_SYN_SET in tcp_packet()
890 && ct->proto.tcp.last_dir != dir in tcp_packet()
891 && ntohl(th->ack_seq) == ct->proto.tcp.last_end) { in tcp_packet()
900 ct->proto.tcp.seen[ct->proto.tcp.last_dir].td_end = in tcp_packet()
[all …]
Dnf_conntrack_proto.c210 int nf_ct_l3proto_register(struct nf_conntrack_l3proto *proto) in nf_ct_l3proto_register() argument
215 if (proto->l3proto >= AF_MAX) in nf_ct_l3proto_register()
218 if (proto->tuple_to_nlattr && !proto->nlattr_tuple_size) in nf_ct_l3proto_register()
222 old = rcu_dereference_protected(nf_ct_l3protos[proto->l3proto], in nf_ct_l3proto_register()
229 if (proto->nlattr_tuple_size) in nf_ct_l3proto_register()
230 proto->nla_size = 3 * proto->nlattr_tuple_size(); in nf_ct_l3proto_register()
232 rcu_assign_pointer(nf_ct_l3protos[proto->l3proto], proto); in nf_ct_l3proto_register()
242 struct nf_conntrack_l3proto *proto) in nf_ct_l3proto_pernet_register() argument
246 if (proto->init_net) { in nf_ct_l3proto_pernet_register()
247 ret = proto->init_net(net); in nf_ct_l3proto_pernet_register()
[all …]
Dnf_conntrack_proto_dccp.c449 ct->proto.dccp.role[IP_CT_DIR_ORIGINAL] = CT_DCCP_ROLE_CLIENT; in dccp_new()
450 ct->proto.dccp.role[IP_CT_DIR_REPLY] = CT_DCCP_ROLE_SERVER; in dccp_new()
451 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new()
452 ct->proto.dccp.last_pkt = DCCP_PKT_REQUEST; in dccp_new()
453 ct->proto.dccp.last_dir = IP_CT_DIR_ORIGINAL; in dccp_new()
454 ct->proto.dccp.handshake_seq = 0; in dccp_new()
502 role = ct->proto.dccp.role[dir]; in dccp_packet()
503 old_state = ct->proto.dccp.state; in dccp_packet()
512 ct->proto.dccp.role[dir] = CT_DCCP_ROLE_CLIENT; in dccp_packet()
513 ct->proto.dccp.role[!dir] = CT_DCCP_ROLE_SERVER; in dccp_packet()
[all …]
Dxt_multiport.c98 check(u_int16_t proto, in check() argument
104 return (proto == IPPROTO_TCP || proto == IPPROTO_UDP in check()
105 || proto == IPPROTO_UDPLITE in check()
106 || proto == IPPROTO_SCTP || proto == IPPROTO_DCCP) in check()
119 return check(ip->proto, ip->invflags, multiinfo->flags, in multiport_mt_check()
128 return check(ip->proto, ip->invflags, multiinfo->flags, in multiport_mt6_check()
Dnf_conntrack_proto_sctp.c197 state = ct->proto.sctp.state; in sctp_print_conntrack()
355 sh->vtag != ct->proto.sctp.vtag[dir]) { in sctp_packet()
370 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
371 sh->vtag != ct->proto.sctp.vtag[!dir]) in sctp_packet()
375 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
376 sh->vtag != ct->proto.sctp.vtag[!dir] && in sctp_packet()
381 if (sh->vtag != ct->proto.sctp.vtag[dir]) in sctp_packet()
385 if (ct->proto.sctp.vtag[dir] == 0) { in sctp_packet()
388 ct->proto.sctp.vtag[dir] = sh->vtag; in sctp_packet()
389 } else if (sh->vtag != ct->proto.sctp.vtag[dir]) { in sctp_packet()
[all …]
Dnft_compat.c128 union nft_entry *entry, u16 proto, bool inv) in nft_target_set_tgchk_param() argument
134 entry->e4.ip.proto = proto; in nft_target_set_tgchk_param()
138 if (proto) in nft_target_set_tgchk_param()
141 entry->e6.ipv6.proto = proto; in nft_target_set_tgchk_param()
145 entry->ebt.ethproto = (__force __be16)proto; in nft_target_set_tgchk_param()
182 static int nft_parse_compat(const struct nlattr *attr, u16 *proto, bool *inv) in nft_parse_compat() argument
202 *proto = ntohl(nla_get_be32(tb[NFTA_RULE_COMPAT_PROTO])); in nft_parse_compat()
214 u16 proto = 0; in nft_target_init() local
226 ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv); in nft_target_init()
231 nft_target_set_tgchk_param(&par, ctx, target, info, &e, proto, inv); in nft_target_init()
[all …]
Dxt_tcpudp.c173 .proto = IPPROTO_TCP,
182 .proto = IPPROTO_TCP,
191 .proto = IPPROTO_UDP,
200 .proto = IPPROTO_UDP,
209 .proto = IPPROTO_UDPLITE,
218 .proto = IPPROTO_UDPLITE,
Dxt_CT.c64 return e->ip.proto; in xt_ct_find_proto()
70 return e->ipv6.proto; in xt_ct_find_proto()
81 u8 proto; in xt_ct_set_helper() local
83 proto = xt_ct_find_proto(par); in xt_ct_set_helper()
84 if (!proto) { in xt_ct_set_helper()
91 proto); in xt_ct_set_helper()
128 u8 proto; in xt_ct_set_timeout() local
138 proto = xt_ct_find_proto(par); in xt_ct_set_timeout()
139 if (!proto) { in xt_ct_set_timeout()
162 l4proto = __nf_ct_l4proto_find(par->family, proto); in xt_ct_set_timeout()
Dxt_HMARK.c38 u8 proto; member
101 t->proto = nf_ct_protonum(ct); in hmark_ct_set_htuple()
102 if (t->proto != IPPROTO_ICMP) { in hmark_ct_set_htuple()
127 hash = hash ^ (t->proto & info->proto_mask); in hmark_hash()
138 protoff = proto_ports_offset(t->proto); in hmark_set_tuple_ports()
200 t->proto = nexthdr; in hmark_pkt_set_htuple_ipv6()
201 if (t->proto == IPPROTO_ICMPV6) in hmark_pkt_set_htuple_ipv6()
277 t->proto = ip->protocol; in hmark_pkt_set_htuple_ipv4()
280 if (t->proto == IPPROTO_ICMP) in hmark_pkt_set_htuple_ipv4()
Dxt_l2tp.c269 if ((ip->proto != IPPROTO_UDP) && in l2tp_mt_check4()
270 (ip->proto != IPPROTO_L2TP)) { in l2tp_mt_check4()
275 if ((ip->proto == IPPROTO_L2TP) && in l2tp_mt_check4()
296 if ((ip->proto != IPPROTO_UDP) && in l2tp_mt_check6()
297 (ip->proto != IPPROTO_L2TP)) { in l2tp_mt_check6()
302 if ((ip->proto == IPPROTO_L2TP) && in l2tp_mt_check6()
Dnf_conntrack_proto_gre.c240 (ct->proto.gre.timeout / HZ), in gre_print_conntrack()
241 (ct->proto.gre.stream_timeout / HZ)); in gre_print_conntrack()
262 ct->proto.gre.stream_timeout); in gre_packet()
268 ct->proto.gre.timeout); in gre_packet()
282 ct->proto.gre.stream_timeout = timeouts[GRE_CT_REPLIED]; in gre_new()
283 ct->proto.gre.timeout = timeouts[GRE_CT_UNREPLIED]; in gre_new()
350 static int gre_init_net(struct net *net, u_int16_t proto) in gre_init_net() argument
Dnf_conntrack_proto_generic.c17 static bool nf_generic_should_process(u8 proto) in nf_generic_should_process() argument
19 switch (proto) { in nf_generic_should_process()
199 static int generic_init_net(struct net *net, u_int16_t proto) in generic_init_net() argument
Dxt_ipcomp.c85 .proto = IPPROTO_COMP,
94 .proto = IPPROTO_COMP,
Dnf_log_common.c25 u8 proto, int fragment, unsigned int offset) in nf_log_dump_udp_header() argument
30 if (proto == IPPROTO_UDP) in nf_log_dump_udp_header()
57 u8 proto, int fragment, unsigned int offset, in nf_log_dump_tcp_header() argument
Dxt_esp.c82 .proto = IPPROTO_ESP,
91 .proto = IPPROTO_ESP,
Dxt_tcpmss.c86 .proto = IPPROTO_TCP,
94 .proto = IPPROTO_TCP,
Dxt_TCPOPTSTRIP.c122 .proto = IPPROTO_TCP,
132 .proto = IPPROTO_TCP,
Dxt_ecn.c99 (ip->proto != IPPROTO_TCP || ip->invflags & IPT_INV_PROTO)) { in ecn_mt_check4()
141 (ip->proto != IPPROTO_TCP || ip->invflags & IP6T_INV_PROTO)) { in ecn_mt_check6()
/linux-4.4.14/include/trace/
Ddefine_trace.h26 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
30 #define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \ argument
32 PARAMS(proto), \
39 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
44 #define DEFINE_EVENT(template, name, proto, args) \ argument
48 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
52 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
56 #define DEFINE_EVENT_CONDITION(template, name, proto, args, cond) \ argument
57 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
60 #define DECLARE_TRACE(name, proto, args) \ argument
[all …]
Dtrace_events.h59 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
61 PARAMS(proto), \
66 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
97 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument
107 #define DEFINE_EVENT(template, name, proto, args) \ argument
112 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
113 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
116 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
117 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
121 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
[all …]
Dperf.h33 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
35 perf_trace_##call(void *__data, proto) \
80 #define DEFINE_EVENT(template, call, proto, args) \ argument
88 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
89 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/linux-4.4.14/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()
103 __u64 proto = load_half(skb, 12); in flow_dissector() local
106 if (proto == ETH_P_8021AD) { in flow_dissector()
107 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
112 if (proto == ETH_P_8021Q) { in flow_dissector()
113 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in flow_dissector()
118 if (likely(proto == ETH_P_IP)) in flow_dissector()
120 else if (proto == ETH_P_IPV6) in flow_dissector()
129 __be16 proto; in flow_dissector() member
[all …]
Dsockex3_kern.c39 static inline void parse_eth_proto(struct __sk_buff *skb, u32 proto) in parse_eth_proto() argument
41 switch (proto) { in parse_eth_proto()
148 __be16 proto; in parse_ip_proto() member
154 nhoff + offsetof(struct gre_hdr, proto)); in parse_ip_proto()
242 __u32 nhoff, proto; in PROG() local
246 proto = load_half(skb, nhoff + offsetof(struct vlan_hdr, in PROG()
251 parse_eth_proto(skb, proto); in PROG()
283 __u32 proto = load_half(skb, 12); in main_prog() local
286 parse_eth_proto(skb, proto); in main_prog()
Dtcbpf1_kern.c56 __u8 proto = load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1() local
59 if (proto == IPPROTO_TCP) { in bpf_prog1()
/linux-4.4.14/net/netfilter/ipset/
Dip_set_getport.c25 bool src, __be16 *port, u8 *proto) in get_port() argument
91 *proto = protocol; in get_port()
98 __be16 *port, u8 *proto) in ip_set_get_ip4_port() argument
121 *proto = protocol; in ip_set_get_ip4_port()
125 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
132 __be16 *port, u8 *proto) in ip_set_get_ip6_port() argument
146 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
155 u8 proto; in ip_set_get_ip_port() local
159 ret = ip_set_get_ip4_port(skb, src, port, &proto); in ip_set_get_ip_port()
162 ret = ip_set_get_ip6_port(skb, src, port, &proto); in ip_set_get_ip_port()
[all …]
Dip_set_hash_ipport.c48 u8 proto; member
61 ip1->proto == ip2->proto; in hash_ipport4_data_equal()
70 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto)) in hash_ipport4_data_list()
100 &e.port, &e.proto)) in hash_ipport4_kadt()
138 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport4_uadt()
139 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipport4_uadt()
141 if (e.proto == 0) in hash_ipport4_uadt()
147 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipport4_uadt()
203 u8 proto; member
216 ip1->proto == ip2->proto; in hash_ipport6_data_equal()
[all …]
Dip_set_hash_ipportip.c49 u8 proto; member
61 ip1->proto == ip2->proto; in hash_ipportip4_data_equal()
71 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto)) in hash_ipportip4_data_list()
102 &e.port, &e.proto)) in hash_ipportip4_kadt()
145 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip4_uadt()
146 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipportip4_uadt()
148 if (e.proto == 0) in hash_ipportip4_uadt()
154 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipportip4_uadt()
211 u8 proto; member
225 ip1->proto == ip2->proto; in hash_ipportip6_data_equal()
[all …]
Dip_set_hash_netport.c57 u8 proto; member
71 ip1->proto == ip2->proto && in hash_netport4_data_equal()
109 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netport4_data_list()
147 &e.port, &e.proto)) in hash_netport4_kadt()
196 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport4_uadt()
197 with_ports = ip_set_proto_with_ports(e.proto); in hash_netport4_uadt()
199 if (e.proto == 0) in hash_netport4_uadt()
205 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_netport4_uadt()
269 u8 proto; member
283 ip1->proto == ip2->proto && in hash_netport6_data_equal()
[all …]
Dip_set_hash_ipportnet.c61 u8 proto; member
75 ip1->proto == ip2->proto; in hash_ipportnet4_data_equal()
113 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_ipportnet4_data_list()
152 &e.port, &e.proto)) in hash_ipportnet4_kadt()
207 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet4_uadt()
208 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipportnet4_uadt()
210 if (e.proto == 0) in hash_ipportnet4_uadt()
216 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipportnet4_uadt()
310 u8 proto; member
324 ip1->proto == ip2->proto; in hash_ipportnet6_data_equal()
[all …]
Dip_set_hash_netportnet.c58 u8 proto; member
71 ip1->proto == ip2->proto; in hash_netportnet4_data_equal()
123 nla_put_u8(skb, IPSET_ATTR_PROTO, data->proto) || in hash_netportnet4_data_list()
168 &e.port, &e.proto)) in hash_netportnet4_kadt()
229 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet4_uadt()
230 with_ports = ip_set_proto_with_ports(e.proto); in hash_netportnet4_uadt()
232 if (e.proto == 0) in hash_netportnet4_uadt()
238 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_netportnet4_uadt()
332 u8 proto; member
346 ip1->proto == ip2->proto; in hash_netportnet6_data_equal()
[all …]
/linux-4.4.14/net/ipx/
Dpe2.c22 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in make_EII_client() local
24 if (proto) { in make_EII_client()
25 proto->header_length = 0; in make_EII_client()
26 proto->request = pEII_request; in make_EII_client()
29 return proto; in make_EII_client()
/linux-4.4.14/drivers/s390/net/
Dqeth_l3_sys.c452 enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_show() argument
460 entry_len = (proto == QETH_PROT_IPV4)? 12 : 40; in qeth_l3_dev_ipato_add_show()
462 entry_len += (proto == QETH_PROT_IPV4)? 5 : 6; in qeth_l3_dev_ipato_add_show()
465 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show()
472 qeth_l3_ipaddr_to_string(proto, ipatoe->addr, addr_str); in qeth_l3_dev_ipato_add_show()
493 static int qeth_l3_parse_ipatoe(const char *buf, enum qeth_prot_versions proto, in qeth_l3_parse_ipatoe() argument
507 if (qeth_l3_string_to_ipaddr(buffer, proto, addr)) { in qeth_l3_parse_ipatoe()
514 (*mask_bits > ((proto == QETH_PROT_IPV4) ? 32 : 128))) { in qeth_l3_parse_ipatoe()
521 struct qeth_card *card, enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_store() argument
529 rc = qeth_l3_parse_ipatoe(buf, proto, addr, &mask_bits); in qeth_l3_dev_ipato_add_store()
[all …]
Dqeth_l3_main.c136 void qeth_l3_ipaddr_to_string(enum qeth_prot_versions proto, const __u8 *addr, in qeth_l3_ipaddr_to_string() argument
139 if (proto == QETH_PROT_IPV4) in qeth_l3_ipaddr_to_string()
141 else if (proto == QETH_PROT_IPV6) in qeth_l3_ipaddr_to_string()
145 int qeth_l3_string_to_ipaddr(const char *buf, enum qeth_prot_versions proto, in qeth_l3_string_to_ipaddr() argument
148 if (proto == QETH_PROT_IPV4) in qeth_l3_string_to_ipaddr()
150 else if (proto == QETH_PROT_IPV6) in qeth_l3_string_to_ipaddr()
182 (addr->proto == QETH_PROT_IPV4)? 4:16); in qeth_l3_is_addr_covered_by_ipato()
184 if (addr->proto != ipatoe->proto) in qeth_l3_is_addr_covered_by_ipato()
187 (ipatoe->proto == QETH_PROT_IPV4) ? in qeth_l3_is_addr_covered_by_ipato()
189 if (addr->proto == QETH_PROT_IPV4) in qeth_l3_is_addr_covered_by_ipato()
[all …]
Dqeth_l3.h23 enum qeth_prot_versions proto; member
39 enum qeth_prot_versions proto; member
/linux-4.4.14/arch/arm/include/asm/
Dchecksum.h88 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
90 u32 lenprot = len | proto << 16; in csum_tcpudp_nofold()
125 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
127 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
144 __be32 proto, __wsum sum);
148 unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
151 htonl(proto), sum)); in csum_ipv6_magic()
/linux-4.4.14/arch/m32r/include/asm/
Dchecksum.h118 unsigned short proto, in csum_tcpudp_nofold() argument
122 unsigned long len_proto = (proto + len) << 8; in csum_tcpudp_nofold()
124 unsigned long len_proto = proto + len; in csum_tcpudp_nofold()
149 unsigned short proto, in csum_tcpudp_magic() argument
152 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
168 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
196 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/arch/score/include/asm/
Dchecksum.h131 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
133 unsigned long tmp = (ntohs(len) << 16) + proto * 256; in csum_tcpudp_nofold()
165 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
167 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
183 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
238 : "=r" (sum), "=r" (proto) in csum_ipv6_magic()
240 "0" (htonl(len)), "1" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
/linux-4.4.14/include/linux/netfilter/ipset/
Dip_set_getport.h5 __be16 *port, u8 *proto);
9 __be16 *port, u8 *proto);
12 __be16 *port, u8 *proto) in ip_set_get_ip6_port() argument
21 static inline bool ip_set_proto_with_ports(u8 proto) in ip_set_proto_with_ports() argument
23 switch (proto) { in ip_set_proto_with_ports()
/linux-4.4.14/include/net/netfilter/
Dnf_conntrack_l4proto.h100 int (*init_net)(struct net *net, u_int16_t proto);
126 struct nf_conntrack_l4proto *proto);
128 struct nf_conntrack_l4proto *proto);
131 int nf_ct_l4proto_register(struct nf_conntrack_l4proto *proto);
132 void nf_ct_l4proto_unregister(struct nf_conntrack_l4proto *proto);
151 #define LOG_INVALID(net, proto) \ argument
152 ((net)->ct.sysctl_log_invalid == (proto) || \
155 static inline int LOG_INVALID(struct net *net, int proto) { return 0; } in LOG_INVALID() argument
Dnf_conntrack_l3proto.h81 struct nf_conntrack_l3proto *proto);
83 struct nf_conntrack_l3proto *proto);
86 int nf_ct_l3proto_register(struct nf_conntrack_l3proto *proto);
87 void nf_ct_l3proto_unregister(struct nf_conntrack_l3proto *proto);
Dnf_log.h100 u8 proto, int fragment, unsigned int offset);
102 u8 proto, int fragment, unsigned int offset,
/linux-4.4.14/net/bluetooth/
Daf_bluetooth.c67 void bt_sock_reclassify_lock(struct sock *sk, int proto) in bt_sock_reclassify_lock() argument
73 bt_slock_key_strings[proto], &bt_slock_key[proto], in bt_sock_reclassify_lock()
74 bt_key_strings[proto], &bt_lock_key[proto]); in bt_sock_reclassify_lock()
78 int bt_sock_register(int proto, const struct net_proto_family *ops) in bt_sock_register() argument
82 if (proto < 0 || proto >= BT_MAX_PROTO) in bt_sock_register()
87 if (bt_proto[proto]) in bt_sock_register()
90 bt_proto[proto] = ops; in bt_sock_register()
98 void bt_sock_unregister(int proto) in bt_sock_unregister() argument
100 if (proto < 0 || proto >= BT_MAX_PROTO) in bt_sock_unregister()
104 bt_proto[proto] = NULL; in bt_sock_unregister()
[all …]
/linux-4.4.14/drivers/net/arcnet/
Darcnet.c263 void arcnet_unregister_proto(struct ArcProto *proto) in arcnet_unregister_proto() argument
267 if (arc_proto_default == proto) in arcnet_unregister_proto()
269 if (arc_bcast_proto == proto) in arcnet_unregister_proto()
271 if (arc_raw_proto == proto) in arcnet_unregister_proto()
275 if (arc_proto_map[count] == proto) in arcnet_unregister_proto()
549 struct ArcProto *proto; in arcnet_header() local
563 proto = arc_raw_proto; in arcnet_header()
565 proto->suffix); in arcnet_header()
583 proto = arc_proto_map[proto_num]; in arcnet_header()
585 proto_num, proto->suffix); in arcnet_header()
[all …]
Dcapmode.c77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); in rx()
78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), in rx()
79 pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto), in rx()
80 sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto)); in rx()
171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx()
172 sizeof(pkt->soft.cap.proto)); in prepare_tx()
212 ackpkt->soft.cap.proto = 0; /* using protocol 0 for acknowledge */ in ack_tx()
226 lp->outgoing.proto = NULL; in ack_tx()
Drfc1201.c109 switch (soft->proto) { in type_trans()
207 if (soft->proto == ARC_P_ARP) { in rx()
388 soft->proto = ARC_P_IP; in build_header()
391 soft->proto = ARC_P_IPV6; in build_header()
394 soft->proto = ARC_P_ARP; in build_header()
397 soft->proto = ARC_P_RARP; in build_header()
402 soft->proto = ARC_P_IPX; in build_header()
405 soft->proto = ARC_P_ATALK; in build_header()
456 excsoft.proto = soft->proto; in load_pkt()
531 newsoft->proto = soft->proto; in continue_tx()
Drfc1051.c105 switch (soft->proto) { in type_trans()
171 soft->proto = ARC_P_IP_RFC1051; in build_header()
174 soft->proto = ARC_P_ARP_RFC1051; in build_header()
/linux-4.4.14/arch/frv/include/asm/
Dchecksum.h109 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
116 : "r" (daddr), "r" (saddr), "r" (len + proto), "0"(sum) in csum_tcpudp_nofold()
124 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
126 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
138 __u32 len, unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
173 : "r" (saddr), "r" (daddr), "0" (sum), "2" (len + proto) in csum_ipv6_magic()
/linux-4.4.14/arch/sh/include/asm/
Dchecksum_32.h119 unsigned short proto, in csum_tcpudp_nofold() argument
123 unsigned long len_proto = (proto + len) << 8; in csum_tcpudp_nofold()
125 unsigned long len_proto = proto + len; in csum_tcpudp_nofold()
146 unsigned short proto, in csum_tcpudp_magic() argument
149 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
164 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
191 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/arch/m68k/include/asm/
Dchecksum.h82 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
90 : "g" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold()
102 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
104 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
120 __u32 len, unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
142 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
/linux-4.4.14/arch/xtensa/include/asm/
Dchecksum.h127 unsigned short proto, in csum_tcpudp_nofold() argument
132 unsigned long len_proto = (len + proto) << 8; in csum_tcpudp_nofold()
134 unsigned long len_proto = len + proto; in csum_tcpudp_nofold()
161 unsigned short proto, in csum_tcpudp_magic() argument
164 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
180 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
234 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dbrcms_trace_events.h27 #define TRACE_EVENT(name, proto, ...) \ argument
28 static inline void trace_ ## name(proto) {}
32 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument
33 static inline void trace_ ## name(proto) {}
/linux-4.4.14/arch/parisc/include/asm/
Dchecksum.h89 unsigned short proto, in csum_tcpudp_nofold() argument
98 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
108 unsigned short proto, in csum_tcpudp_magic() argument
111 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
127 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
184 : "0" (sum), "1" (saddr), "2" (daddr), "3" (len), "r" (proto) in csum_ipv6_magic()
/linux-4.4.14/include/net/
Dtransp_v6.h7 extern struct proto rawv6_prot;
8 extern struct proto udpv6_prot;
9 extern struct proto udplitev6_prot;
10 extern struct proto tcpv6_prot;
11 extern struct proto pingv6_prot;
Dip6_checksum.h40 __u32 len, unsigned short proto,
44 static inline __wsum ip6_compute_pseudo(struct sk_buff *skb, int proto) in ip6_compute_pseudo() argument
48 skb->len, proto, 0)); in ip6_compute_pseudo()
51 static inline __wsum ip6_gro_compute_pseudo(struct sk_buff *skb, int proto) in ip6_gro_compute_pseudo() argument
56 skb_gro_len(skb), proto, 0)); in ip6_gro_compute_pseudo()
105 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);
Dstp.h11 int stp_proto_register(const struct stp_proto *proto);
12 void stp_proto_unregister(const struct stp_proto *proto);
Dsock.h127 struct proto;
197 struct proto *skc_prot;
421 struct proto *sk_prot_creator;
957 struct proto { struct
1072 int proto_register(struct proto *prot, int alloc_slab); argument
1073 void proto_unregister(struct proto *prot);
1102 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto() argument
1105 return proto->proto_cgroup(parent_mem_cgroup(cg_proto->memcg)); in parent_cg_proto()
1110 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto() argument
1161 struct proto *prot = sk->sk_prot; in sk_leave_memory_pressure()
[all …]
Dgre.h23 int gre_add_protocol(const struct gre_protocol *proto, u8 version);
24 int gre_del_protocol(const struct gre_protocol *proto, u8 version);
Dxfrm.h43 #define MODULE_ALIAS_XFRM_TYPE(family, proto) \ argument
44 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto))
122 u8 proto; member
257 u32 proto; member
322 unsigned int proto; member
367 u8 proto; member
571 u8 proto; member
599 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
734 u8 proto);
778 struct sk_buff *skb, u8 proto) in xfrm_audit_state_icvfail() argument
[all …]
Dpsnap.h9 void unregister_snap_client(struct datalink_proto *proto);
/linux-4.4.14/drivers/tty/hvc/
Dhvc_opal.c57 hv_protocol_t proto; /* Raw data or HVSI packets */ member
170 hv_protocol_t proto; in hvc_opal_probe() local
175 proto = HV_PROTOCOL_RAW; in hvc_opal_probe()
179 proto = HV_PROTOCOL_HVSI; in hvc_opal_probe()
198 pv->proto = proto; in hvc_opal_probe()
200 if (proto == HV_PROTOCOL_HVSI) in hvc_opal_probe()
213 proto == HV_PROTOCOL_RAW ? "raw" : "hvsi", in hvc_opal_probe()
275 switch(hvc_opal_boot_priv.proto) { in udbg_opal_putc()
292 switch(hvc_opal_boot_priv.proto) { in udbg_opal_getc_poll()
372 hvc_opal_boot_priv.proto = HV_PROTOCOL_RAW; in hvc_opal_init_early()
[all …]
Dhvc_vio.c73 hv_protocol_t proto; /* Raw data or HVSI packets */ member
245 switch(hvterm_privs[0]->proto) { in udbg_hvc_putc()
264 switch(hvterm_privs[0]->proto) { in udbg_hvc_getc_poll()
303 hv_protocol_t proto; in hvc_vio_probe() local
311 proto = HV_PROTOCOL_RAW; in hvc_vio_probe()
314 proto = HV_PROTOCOL_HVSI; in hvc_vio_probe()
323 proto == HV_PROTOCOL_RAW ? "raw" : "hvsi"); in hvc_vio_probe()
344 pv->proto = proto; in hvc_vio_probe()
432 hvterm_priv0.proto = HV_PROTOCOL_RAW; in hvc_vio_init_early()
436 hvterm_priv0.proto = HV_PROTOCOL_HVSI; in hvc_vio_init_early()
[all …]
/linux-4.4.14/drivers/isdn/i4l/
Disdn_ppp.c29 static int isdn_ppp_fill_rq(unsigned char *buf, int len, int proto, int slot);
32 struct sk_buff *skb, int proto);
36 struct ippp_struct *, struct ippp_struct *, int *proto);
38 struct sk_buff *skb, int proto);
39 static struct sk_buff *isdn_ppp_compress(struct sk_buff *skb_in, int *proto,
46 static void isdn_ppp_ccp_xmit_reset(struct ippp_struct *is, int proto,
733 isdn_ppp_fill_rq(unsigned char *buf, int len, int proto, int slot) in isdn_ppp_fill_rq() argument
757 nbuf[2] = proto >> 8; in isdn_ppp_fill_rq()
758 nbuf[3] = proto & 0xff; in isdn_ppp_fill_rq()
830 int proto; in isdn_ppp_write() local
[all …]
Disdn_bsdcomp.c453 static int bsd_compress(void *state, struct sk_buff *skb_in, struct sk_buff *skb_out, int proto) in bsd_compress() argument
486 printk(KERN_DEBUG "bsd_compress called with %x\n", proto); in bsd_compress()
488 ent = proto; in bsd_compress()
489 if (proto < 0x21 || proto > 0xf9 || !(proto & 0x1)) in bsd_compress()
633 static void bsd_incomp(void *state, struct sk_buff *skb_in, int proto) in bsd_incomp() argument
635 bsd_compress(state, skb_in, NULL, proto); in bsd_incomp()
/linux-4.4.14/arch/sparc/include/asm/
Dchecksum_64.h100 unsigned short proto, in csum_tcpudp_nofold() argument
109 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold()
120 unsigned short proto, in csum_tcpudp_magic() argument
123 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
130 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
155 "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
Dchecksum_32.h174 unsigned short proto, in csum_tcpudp_nofold() argument
182 : "r" (daddr), "r" (proto + len), "0" (sum), in csum_tcpudp_nofold()
194 unsigned short proto, in csum_tcpudp_magic() argument
197 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
204 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
229 "r"(htonl(len)), "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()
/linux-4.4.14/arch/x86/include/asm/
Dchecksum_32.h116 unsigned short proto, in csum_tcpudp_nofold() argument
125 "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
135 unsigned short proto, in csum_tcpudp_magic() argument
138 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
154 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
170 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
Dchecksum_64.h88 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
96 "g" ((len + proto)<<8), "0" (sum)); in csum_tcpudp_nofold()
114 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
116 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
180 __u32 len, unsigned short proto, __wsum sum);
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_proto.c41 #define IP_VS_PROTO_HASH(proto) ((proto) & (IP_VS_PROTO_TAB_SIZE-1)) argument
140 struct ip_vs_protocol * ip_vs_proto_get(unsigned short proto) in ip_vs_proto_get() argument
143 unsigned int hash = IP_VS_PROTO_HASH(proto); in ip_vs_proto_get()
146 if (pp->protocol == proto) in ip_vs_proto_get()
158 ip_vs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto) in ip_vs_proto_data_get() argument
161 unsigned int hash = IP_VS_PROTO_HASH(proto); in ip_vs_proto_data_get()
164 if (pd->pp->protocol == proto) in ip_vs_proto_data_get()
218 const char * ip_vs_state_name(__u16 proto, int state) in ip_vs_state_name() argument
220 struct ip_vs_protocol *pp = ip_vs_proto_get(proto); in ip_vs_state_name()
223 return (IPPROTO_IP == proto) ? "NONE" : "ERR!"; in ip_vs_state_name()
/linux-4.4.14/net/core/
Dsock.c201 struct proto *proto; in mem_cgroup_sockets_init() local
205 list_for_each_entry(proto, &proto_list, node) { in mem_cgroup_sockets_init()
206 if (proto->init_cgroup) { in mem_cgroup_sockets_init()
207 ret = proto->init_cgroup(memcg, ss); in mem_cgroup_sockets_init()
216 list_for_each_entry_continue_reverse(proto, &proto_list, node) in mem_cgroup_sockets_init()
217 if (proto->destroy_cgroup) in mem_cgroup_sockets_init()
218 proto->destroy_cgroup(memcg); in mem_cgroup_sockets_init()
225 struct proto *proto; in mem_cgroup_sockets_destroy() local
228 list_for_each_entry_reverse(proto, &proto_list, node) in mem_cgroup_sockets_destroy()
229 if (proto->destroy_cgroup) in mem_cgroup_sockets_destroy()
[all …]
Dflow_dissector.c124 void *data, __be16 proto, int nhoff, int hlen, in __skb_flow_dissect() argument
138 proto = skb->protocol; in __skb_flow_dissect()
169 switch (proto) { in __skb_flow_dissect()
272 proto = vlan->h_vlan_encapsulated_proto; in __skb_flow_dissect()
279 __be16 proto; in __skb_flow_dissect() member
284 proto = hdr->proto; in __skb_flow_dissect()
286 switch (proto) { in __skb_flow_dissect()
353 __be16 proto; in __skb_flow_dissect() member
366 proto = hdr->proto; in __skb_flow_dissect()
391 if (proto == htons(ETH_P_TEB)) { in __skb_flow_dissect()
[all …]
/linux-4.4.14/drivers/infiniband/hw/usnic/
Dusnic_transport.c70 int proto; in usnic_transport_sock_to_str() local
73 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port); in usnic_transport_sock_to_str()
78 proto, &addr, port); in usnic_transport_sock_to_str()
174 int usnic_transport_sock_get_addr(struct socket *sock, int *proto, in usnic_transport_sock_get_addr() argument
190 if (proto) in usnic_transport_sock_get_addr()
191 *proto = sock->sk->sk_protocol; in usnic_transport_sock_get_addr()
/linux-4.4.14/arch/s390/include/asm/
Dchecksum.h95 unsigned short len, unsigned short proto, in csum_tcpudp_nofold() argument
108 csum += len + proto; in csum_tcpudp_nofold()
109 if (csum < len + proto) in csum_tcpudp_nofold()
122 unsigned short len, unsigned short proto, in csum_tcpudp_magic() argument
125 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/linux-4.4.14/net/xfrm/
Dxfrm_state.c59 __be32 spi, u8 proto, unsigned short family) in xfrm_spi_hash() argument
61 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
88 x->id.proto, x->props.family, in xfrm_hash_transfer()
172 if (likely(typemap[type->proto] == NULL)) in xfrm_register_type()
173 typemap[type->proto] = type; in xfrm_register_type()
193 if (unlikely(typemap[type->proto] != type)) in xfrm_unregister_type()
196 typemap[type->proto] = NULL; in xfrm_unregister_type()
203 static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family) in xfrm_get_type() argument
216 type = typemap[proto]; in xfrm_get_type()
221 request_module("xfrm-type-%d-%d", family, proto); in xfrm_get_type()
[all …]
Dxfrm_output.c235 unsigned int proto; in xfrm_local_error() local
239 proto = AF_INET; in xfrm_local_error()
241 proto = AF_INET6; in xfrm_local_error()
245 afinfo = xfrm_state_get_afinfo(proto); in xfrm_local_error()
Dxfrm_user.c142 if ((p->id.proto != IPPROTO_ESP) && (p->id.proto != IPPROTO_AH)) in verify_replay()
174 switch (p->id.proto) { in verify_newsa_info()
664 if (xfrm_id_proto_match(p->proto, IPSEC_PROTO_ANY)) { in xfrm_user_state_lookup()
666 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); in xfrm_user_state_lookup()
679 p->proto, p->family); in xfrm_user_state_lookup()
920 u8 proto = 0; in xfrm_dump_sa() local
938 proto = nla_get_u8(attrs[XFRMA_PROTO]); in xfrm_dump_sa()
940 xfrm_state_walk_init(walk, proto, filter); in xfrm_dump_sa()
1209 err = verify_spi_info(p->info.id.proto, p->min, p->max); in xfrm_alloc_userspi()
1229 p->info.id.proto, daddr, in xfrm_alloc_userspi()
[all …]
/linux-4.4.14/include/uapi/linux/
Dif_arcnet.h59 __u8 proto; /* protocol ID field - varies */ member
70 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ member
80 __u8 proto; /* Always ARC_P_ETHER */ member
87 __u8 proto; member
Dxfrm.h27 __u8 proto; member
58 __u8 proto; member
388 __u8 proto; member
449 __u8 proto; member
453 __u8 proto; member
471 __u8 proto; member
Dip6_tunnel.h25 __u8 proto; /* tunnel protocol */ member
37 __u8 proto; /* tunnel protocol */ member
/linux-4.4.14/drivers/misc/ti-st/
Dst_core.c51 struct st_proto_s *proto) in remove_channel_from_table() argument
53 pr_info("%s: id %d\n", __func__, proto->chnl_id); in remove_channel_from_table()
55 st_gdata->is_registered[proto->chnl_id] = false; in remove_channel_from_table()
241 struct st_proto_s *proto; in st_int_recv() local
287 proto = st_gdata->list[st_gdata->rx_chnl]; in st_int_recv()
290 [proto->offset_len_in_hdr]; in st_int_recv()
292 if (proto->len_size == 1)/* 1 byte len field */ in st_int_recv()
294 else if (proto->len_size == 2) in st_int_recv()
300 __func__, proto->chnl_id); in st_int_recv()
301 st_check_data_len(st_gdata, proto->chnl_id, in st_int_recv()
[all …]
/linux-4.4.14/drivers/bluetooth/
Dhci_ldisc.c117 skb = hu->proto->dequeue(hu); in hci_uart_dequeue()
188 hu->proto->close(hu); in hci_uart_init_work()
231 hu->proto->flush(hu); in hci_uart_flush()
253 hu->proto->enqueue(hu, skb); in hci_uart_send_frame()
366 else if (hu->proto->init_speed) in hci_uart_setup()
367 speed = hu->proto->init_speed; in hci_uart_setup()
377 else if (hu->proto->oper_speed) in hci_uart_setup()
378 speed = hu->proto->oper_speed; in hci_uart_setup()
382 if (hu->proto->set_baudrate && speed) { in hci_uart_setup()
383 err = hu->proto->set_baudrate(hu, speed); in hci_uart_setup()
[all …]
/linux-4.4.14/net/ipv6/netfilter/
Dnf_reject_ipv6.c24 u8 proto; in nf_reject_ip6_tcphdr_get() local
28 proto = oip6h->nexthdr; in nf_reject_ip6_tcphdr_get()
30 &proto, &frag_off); in nf_reject_ip6_tcphdr_get()
40 if (proto != IPPROTO_TCP || *otcplen < sizeof(struct tcphdr)) { in nf_reject_ip6_tcphdr_get()
42 proto, *otcplen); in nf_reject_ip6_tcphdr_get()
218 u8 proto; in reject6_csum_ok() local
226 proto = ip6h->nexthdr; in reject6_csum_ok()
227 thoff = ipv6_skip_exthdr(skb, ((u8 *)(ip6h + 1) - skb->data), &proto, &fo); in reject6_csum_ok()
232 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_csum_ok()
/linux-4.4.14/net/tipc/
Dudp_media.c73 __be16 proto; member
102 if (ntohs(ua->proto) == ETH_P_IP) { in tipc_udp_media_addr_set()
105 } else if (ntohs(ua->proto) == ETH_P_IPV6) { in tipc_udp_media_addr_set()
118 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str()
120 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str()
173 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_send_msg()
259 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast()
308 local->proto = htons(ETH_P_IP); in parse_options()
313 remote->proto = htons(ETH_P_IP); in parse_options()
323 local->proto = htons(ETH_P_IPV6); in parse_options()
[all …]
/linux-4.4.14/drivers/net/wireless/iwlwifi/
Diwl-devtrace.h71 #define TRACE_EVENT(name, proto, ...) \ argument
72 static inline void trace_ ## name(proto) {}
76 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument
77 static inline void trace_ ## name(proto) {}
/linux-4.4.14/arch/nios2/include/asm/
Dchecksum.h49 unsigned short proto, in csum_tcpudp_nofold() argument
63 : "r" (daddr), "r" ((ntohs(len) << 16) + (proto * 256)), in csum_tcpudp_nofold()
73 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
75 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-4.4.14/net/bluetooth/bnep/
Dnetdev.c137 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto() local
139 if (proto >= ETH_P_802_3_MIN) in bnep_net_eth_proto()
140 return proto; in bnep_net_eth_proto()
150 u16 proto = bnep_net_eth_proto(skb); in bnep_net_proto_filter() local
155 if (proto >= f[i].start && proto <= f[i].end) in bnep_net_proto_filter()
159 BT_DBG("BNEP: filtered skb %p, proto 0x%.4x", skb, proto); in bnep_net_proto_filter()
/linux-4.4.14/arch/powerpc/include/asm/
Dchecksum.h97 unsigned short proto, in csum_tcpudp_nofold() argument
105 s += proto + len; in csum_tcpudp_nofold()
116 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold()
127 unsigned short proto, in csum_tcpudp_magic() argument
130 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-4.4.14/arch/mn10300/include/asm/
Dchecksum.h43 unsigned short proto, in csum_tcpudp_nofold() argument
49 tmp += (__wsum) proto << 8; in csum_tcpudp_nofold()
70 unsigned short proto, in csum_tcpudp_magic() argument
73 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-4.4.14/arch/metag/include/asm/
Dchecksum.h63 unsigned short proto, in csum_tcpudp_nofold() argument
66 unsigned long len_proto = (proto + len) << 8; in csum_tcpudp_nofold()
82 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
84 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-4.4.14/arch/microblaze/include/asm/
Dchecksum.h20 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
29 "d" ((len + proto) << 8) in csum_tcpudp_nofold()
31 "d" (len + proto) in csum_tcpudp_nofold()
/linux-4.4.14/arch/x86/um/asm/
Dchecksum.h91 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
98 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
108 unsigned short proto, in csum_tcpudp_magic() argument
111 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
Dchecksum_32.h16 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
33 "r"(htonl(len)), "r"(htonl(proto)), "0"(sum)); in csum_ipv6_magic()
/linux-4.4.14/arch/ia64/lib/
Dchecksum.c38 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
42 (__force u64)sum + ((len + proto) << 8)); in csum_tcpudp_magic()
49 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
54 (__force u64)sum + ((len + proto) << 8); in csum_tcpudp_nofold()
/linux-4.4.14/drivers/net/ppp/
Dppp_deflate.c192 int r, proto, off, olen, oavail; in z_compress() local
198 proto = PPP_PROTOCOL(rptr); in z_compress()
199 if (proto > 0x3fff || proto == 0xfd || proto == 0xfb) in z_compress()
223 off = (proto > 0xff) ? 2 : 3; /* skip 1st proto byte if 0 */ in z_compress()
523 int proto, r; in z_incomp() local
528 proto = PPP_PROTOCOL(ibuf); in z_incomp()
529 if (proto > 0x3fff || proto == 0xfd || proto == 0xfb) in z_incomp()
540 if (proto > 0xff) { in z_incomp()
Dpptp.c52 static struct proto pptp_sk_proto __read_mostly;
99 opt = &sock->proto.pptp; in lookup_chan()
122 opt = &sock->proto.pptp; in lookup_chan_dst()
150 sock->proto.pptp.src_addr = *sa; in add_chan()
165 clear_bit(sock->proto.pptp.src_addr.call_id, callid_bitmap); in del_chan()
166 RCU_INIT_POINTER(callid_sock[sock->proto.pptp.src_addr.call_id], NULL); in del_chan()
176 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit()
300 struct pptp_opt *opt = &po->proto.pptp; in pptp_rcv_core()
455 struct pptp_opt *opt = &po->proto.pptp; in pptp_connect()
532 sp.sa_addr.pptp = pppox_sk(sock->sk)->proto.pptp.src_addr; in pptp_getname()
[all …]
Dppp_generic.c299 static inline int proto_to_npindex(int proto) in proto_to_npindex() argument
301 switch (proto) { in proto_to_npindex()
1003 int npi, proto; in ppp_start_xmit() local
1029 proto = npindex_to_proto[npi]; in ppp_start_xmit()
1030 put_unaligned_be16(proto, pp); in ppp_start_xmit()
1243 int proto = PPP_PROTO(skb); in ppp_send_frame() local
1248 if (proto < 0x8000) { in ppp_send_frame()
1277 switch (proto) { in ppp_send_frame()
1298 proto = PPP_VJC_COMP; in ppp_send_frame()
1301 proto = PPP_VJC_UNCOMP; in ppp_send_frame()
[all …]
Dppp_async.c535 int fcs, i, count, c, proto; in ppp_async_encode() local
547 proto = get_unaligned_be16(data); in ppp_async_encode()
554 islcp = proto == PPP_LCP && 1 <= data[2] && data[2] <= 7; in ppp_async_encode()
773 unsigned int len, fcs, proto; in process_input_packet() local
802 proto = p[0]; in process_input_packet()
803 if (proto & 1) { in process_input_packet()
809 proto = (proto << 8) + p[1]; in process_input_packet()
810 if (proto == PPP_LCP) in process_input_packet()
/linux-4.4.14/arch/avr32/include/asm/
Dchecksum.h115 unsigned short proto, in csum_tcpudp_nofold() argument
123 : "r"(daddr), "r"(saddr), "r"(len + proto), in csum_tcpudp_nofold()
136 unsigned short proto, in csum_tcpudp_magic() argument
139 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/linux-4.4.14/drivers/input/mouse/
Dsermouse.c258 sermouse->type = serio->id.proto; in sermouse_connect()
301 .proto = SERIO_MSC,
307 .proto = SERIO_SUN,
313 .proto = SERIO_MS,
319 .proto = SERIO_MP,
325 .proto = SERIO_MZ,
331 .proto = SERIO_MZP,
337 .proto = SERIO_MZPP,
Dpsmouse-base.c55 module_param_named(proto, psmouse_max_proto, proto_abbrev, 0644);
56 MODULE_PARM_DESC(proto, "Highest protocol extension to probe (bare, imps, exps, any). Useful for KV…
1448 const struct psmouse_protocol *proto) in psmouse_switch_protocol() argument
1455 if (proto && (proto->detect || proto->init)) { in psmouse_switch_protocol()
1458 if (proto->detect && proto->detect(psmouse, true) < 0) in psmouse_switch_protocol()
1461 if (proto->init && proto->init(psmouse) < 0) in psmouse_switch_protocol()
1464 psmouse->type = proto->type; in psmouse_switch_protocol()
1465 selected_proto = proto; in psmouse_switch_protocol()
1662 .proto = SERIO_ANY,
1668 .proto = SERIO_ANY,
[all …]
/linux-4.4.14/net/ipv4/netfilter/
Dipt_ECN.c59 tcph->ece == einfo->proto.tcp.ece) && in set_ect_tcp()
61 tcph->cwr == einfo->proto.tcp.cwr)) in set_ect_tcp()
70 tcph->ece = einfo->proto.tcp.ece; in set_ect_tcp()
72 tcph->cwr = einfo->proto.tcp.cwr; in set_ect_tcp()
110 (e->ip.proto != IPPROTO_TCP || (e->ip.invflags & XT_INV_PROTO))) { in ecn_tg_check()
Dnf_reject_ipv4.c172 u8 proto; in nf_send_unreach() local
183 proto = iph->protocol; in nf_send_unreach()
185 proto = 0; in nf_send_unreach()
187 if (nf_ip_checksum(skb_in, hook, ip_hdrlen(skb_in), proto) == 0) in nf_send_unreach()
/linux-4.4.14/net/openvswitch/
Dflow.c268 key->ip.proto = NEXTHDR_NONE; in parse_ipv6hdr()
295 key->ip.proto = nexthdr; in parse_ipv6hdr()
337 __be16 proto; in parse_ethertype() local
339 proto = *(__be16 *) skb->data; in parse_ethertype()
342 if (eth_proto_is_802_3(proto)) in parse_ethertype()
343 return proto; in parse_ethertype()
518 key->ip.proto = nh->protocol; in key_extract()
534 if (key->ip.proto == IPPROTO_TCP) { in key_extract()
544 } else if (key->ip.proto == IPPROTO_UDP) { in key_extract()
552 } else if (key->ip.proto == IPPROTO_SCTP) { in key_extract()
[all …]
Dflow_netlink.c168 if (match->key->ip.proto == IPPROTO_UDP) { in match_validate()
170 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
174 if (match->key->ip.proto == IPPROTO_SCTP) { in match_validate()
176 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
180 if (match->key->ip.proto == IPPROTO_TCP) { in match_validate()
183 if (match->mask && (match->mask->key.ip.proto == 0xff)) { in match_validate()
189 if (match->key->ip.proto == IPPROTO_ICMP) { in match_validate()
191 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
203 if (match->key->ip.proto == IPPROTO_UDP) { in match_validate()
205 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
[all …]
/linux-4.4.14/arch/powerpc/xmon/
Dansidecl.h109 #define EXFUN(name, proto) name proto argument
133 #define EXFUN(name, proto) name() argument
/linux-4.4.14/arch/mips/include/asm/
Dchecksum.h164 __be32 daddr, unsigned short len, unsigned short proto, in csum_tcpudp_nofold() argument
196 "r" ((proto + len) << 8), in csum_tcpudp_nofold()
198 "r" (proto + len), in csum_tcpudp_nofold()
218 __u32 len, unsigned short proto, in csum_ipv6_magic() argument
277 "0" (htonl(len)), "r" (htonl(proto)), "r" (sum)); in csum_ipv6_magic()
/linux-4.4.14/arch/ia64/include/asm/
Dchecksum.h21 unsigned short proto,
26 unsigned short proto,
76 const struct in6_addr *daddr, __u32 len, unsigned short proto,
/linux-4.4.14/arch/alpha/include/asm/
Dchecksum.h18 unsigned short proto,
22 unsigned short len, unsigned short proto,
73 __u32 len, unsigned short proto,
/linux-4.4.14/include/asm-generic/
Dchecksum.h69 unsigned short proto, __wsum sum);
75 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
77 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/linux-4.4.14/net/bridge/
Dbr_mdb.c89 if (p->addr.proto == htons(ETH_P_IP)) in br_mdb_fill_info()
92 if (p->addr.proto == htons(ETH_P_IPV6)) in br_mdb_fill_info()
95 e.addr.proto = p->addr.proto; in br_mdb_fill_info()
240 entry.addr.proto = group->proto; in br_mdb_notify()
322 if (entry->addr.proto == htons(ETH_P_IP)) { in is_valid_mdb_entry()
328 } else if (entry->addr.proto == htons(ETH_P_IPV6)) { in is_valid_mdb_entry()
450 ip.proto = entry->addr.proto; in __br_mdb_add()
451 if (ip.proto == htons(ETH_P_IP)) in __br_mdb_add()
524 ip.proto = entry->addr.proto; in __br_mdb_del()
525 if (ip.proto == htons(ETH_P_IP)) in __br_mdb_del()
Dbr_vlan.c364 static bool __allowed_ingress(struct net_bridge_vlan_group *vg, __be16 proto, in __allowed_ingress() argument
376 skb->protocol == proto)) { in __allowed_ingress()
384 if (skb->vlan_proto != proto) { in __allowed_ingress()
420 __vlan_hwaccel_put_tag(skb, proto, pvid); in __allowed_ingress()
649 int __br_vlan_set_proto(struct net_bridge *br, __be16 proto) in __br_vlan_set_proto() argument
657 if (br->vlan_proto == proto) in __br_vlan_set_proto()
664 err = vlan_vid_add(p->dev, proto, vlan->vid); in __br_vlan_set_proto()
671 br->vlan_proto = proto; in __br_vlan_set_proto()
687 vlan_vid_del(p->dev, proto, vlan->vid); in __br_vlan_set_proto()
692 vlan_vid_del(p->dev, proto, vlan->vid); in __br_vlan_set_proto()
Dbr_multicast.c56 if (a->proto != b->proto) in br_ip_equal()
60 switch (a->proto) { in br_ip_equal()
90 switch (ip->proto) { in br_ip_hash()
129 br_dst.proto = htons(ETH_P_IP); in br_mdb_ip4_get()
143 br_dst.proto = htons(ETH_P_IPV6); in br_mdb_ip6_get()
162 ip.proto = skb->protocol; in br_mdb_get()
515 switch (addr->proto) { in br_multicast_alloc_query()
732 br_group.proto = htons(ETH_P_IP); in br_ip4_multicast_add_group()
750 br_group.proto = htons(ETH_P_IPV6); in br_ip6_multicast_add_group()
812 if (ip->proto == htons(ETH_P_IP)) in br_multicast_select_own_querier()
[all …]
/linux-4.4.14/drivers/net/ethernet/sfc/
Dfilter.h184 efx_filter_set_ipv4_local(struct efx_filter_spec *spec, u8 proto, in efx_filter_set_ipv4_local() argument
191 spec->ip_proto = proto; in efx_filter_set_ipv4_local()
207 efx_filter_set_ipv4_full(struct efx_filter_spec *spec, u8 proto, in efx_filter_set_ipv4_full() argument
216 spec->ip_proto = proto; in efx_filter_set_ipv4_full()
/linux-4.4.14/arch/alpha/lib/
Dchecksum.c46 unsigned short proto, in csum_tcpudp_magic() argument
51 (__force u64)sum + ((len + proto) << 8)); in csum_tcpudp_magic()
56 unsigned short proto, in csum_tcpudp_nofold() argument
62 (__force u64)sum + ((len + proto) << 8); in csum_tcpudp_nofold()
Dcsum_ipv6_magic.S24 extqh $18,1,$4 # e0 : byte swap len & proto while we wait
72 sra $19,32,$19 # e0 : proto complete
/linux-4.4.14/Documentation/networking/
Dvrf.txt249 broadcast 10.2.1.0 dev eth1 proto kernel scope link src 10.2.1.2
250 10.2.1.0/24 dev eth1 proto kernel scope link src 10.2.1.2
251 local 10.2.1.2 dev eth1 proto kernel scope host src 10.2.1.2
252 broadcast 10.2.1.255 dev eth1 proto kernel scope link src 10.2.1.2
253 broadcast 10.2.2.0 dev eth2 proto kernel scope link src 10.2.2.2
254 10.2.2.0/24 dev eth2 proto kernel scope link src 10.2.2.2
255 local 10.2.2.2 dev eth2 proto kernel scope host src 10.2.2.2
256 broadcast 10.2.2.255 dev eth2 proto kernel scope link src 10.2.2.2
259 local 2002:1:: dev lo proto none metric 0 pref medium
260 local 2002:1::2 dev lo proto none metric 0 pref medium
[all …]
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-class-rc27 Writing "+proto" will add a protocol to the list of enabled
29 Writing "-proto" will remove a protocol from the list of enabled
31 Writing "proto" will enable only "proto".
73 Writing "+proto" will add a protocol to the list of enabled
75 Writing "-proto" will remove a protocol from the list of enabled
77 Writing "proto" will use "proto" for wakeup events.
/linux-4.4.14/arch/cris/include/arch-v10/arch/
Dchecksum.h13 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
24 : "0" (sum), "r" (daddr), "r" (saddr), "r" ((len + proto) << 8)); in csum_tcpudp_nofold()
/linux-4.4.14/arch/cris/include/arch-v32/arch/
Dchecksum.h14 unsigned short len, unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
24 "r" ((len + proto) << 8)); in csum_tcpudp_nofold()
/linux-4.4.14/arch/c6x/include/asm/
Dchecksum.h14 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
27 : "a" (saddr), "a" (daddr), "a" (proto)); in csum_tcpudp_nofold()
/linux-4.4.14/arch/unicore32/include/asm/
Dchecksum.h24 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
33 : "r" (sum), "r" (daddr), "r" (saddr), "r" (len), "Ir" (htons(proto)) in csum_tcpudp_nofold()
/linux-4.4.14/arch/blackfin/include/asm/
Dchecksum.h18 unsigned short proto, __wsum sum) in __csum_tcpudp_nofold() argument
35 : "d" (daddr), "d" (saddr), "d" ((len + proto) << 8), "0"(sum) in __csum_tcpudp_nofold()
/linux-4.4.14/net/key/
Daf_key.c131 static struct proto key_proto = {
545 pfkey_proto2satype(uint16_t proto) in pfkey_proto2satype() argument
547 switch (proto) { in pfkey_proto2satype()
564 static uint8_t pfkey_proto_to_xfrm(uint8_t proto) in pfkey_proto_to_xfrm() argument
566 return proto == IPSEC_PROTO_ANY ? 0 : proto; in pfkey_proto_to_xfrm()
569 static uint8_t pfkey_proto_from_xfrm(uint8_t proto) in pfkey_proto_from_xfrm() argument
571 return proto ? proto : IPSEC_PROTO_ANY; in pfkey_proto_from_xfrm()
617 uint16_t proto; in pfkey_xfrm_state_lookup() local
625 proto = pfkey_satype2proto(hdr->sadb_msg_satype); in pfkey_xfrm_state_lookup()
626 if (proto == 0) in pfkey_xfrm_state_lookup()
[all …]
/linux-4.4.14/drivers/staging/wlan-ng/
Dp80211conv.c111 u16 proto; in skb_ether_to_p80211() local
131 proto = ntohs(e_hdr.type); in skb_ether_to_p80211()
132 if (proto <= ETH_DATA_LEN) { in skb_ether_to_p80211()
141 skb_trim(skb, proto); in skb_ether_to_p80211()
153 e_snap->type = htons(proto); in skb_ether_to_p80211()
155 && p80211_stt_findproto(proto)) { in skb_ether_to_p80211()
525 int p80211_stt_findproto(u16 proto) in p80211_stt_findproto() argument
534 if (proto == ETH_P_AARP) /* APPLETALK */ in p80211_stt_findproto()
/linux-4.4.14/arch/hexagon/include/asm/
Dchecksum.h42 unsigned short len, unsigned short proto, __wsum sum);
46 unsigned short len, unsigned short proto, __wsum sum);
/linux-4.4.14/net/sched/
Dact_connmark.c42 int proto; in tcf_connmark() local
52 proto = NFPROTO_IPV4; in tcf_connmark()
57 proto = NFPROTO_IPV6; in tcf_connmark()
71 proto, ca->net, &tuple)) in tcf_connmark()
/linux-4.4.14/net/bridge/netfilter/
Dnft_reject_bridge.c87 u8 proto; in nft_reject_br_send_v4_unreach() local
107 proto = ip_hdr(oldskb)->protocol; in nft_reject_br_send_v4_unreach()
109 proto = 0; in nft_reject_br_send_v4_unreach()
112 nf_ip_checksum(oldskb, hook, ip_hdrlen(oldskb), proto)) in nft_reject_br_send_v4_unreach()
183 u8 proto = ip6h->nexthdr; in reject6_br_csum_ok() local
195 thoff = ipv6_skip_exthdr(skb, ((u8*)(ip6h+1) - skb->data), &proto, &fo); in reject6_br_csum_ok()
199 return nf_ip6_checksum(skb, hook, thoff, proto) == 0; in reject6_br_csum_ok()
/linux-4.4.14/net/can/
Daf_can.c773 int proto = cp->protocol; in can_proto_register() local
776 if (proto < 0 || proto >= CAN_NPROTO) { in can_proto_register()
777 pr_err("can: protocol number %d out of range\n", proto); in can_proto_register()
787 if (proto_tab[proto]) { in can_proto_register()
788 pr_err("can: protocol %d already registered\n", proto); in can_proto_register()
791 RCU_INIT_POINTER(proto_tab[proto], cp); in can_proto_register()
808 int proto = cp->protocol; in can_proto_unregister() local
811 BUG_ON(proto_tab[proto] != cp); in can_proto_unregister()
812 RCU_INIT_POINTER(proto_tab[proto], NULL); in can_proto_unregister()
/linux-4.4.14/net/rxrpc/
Dar-call.c72 sa_family_t proto, in rxrpc_call_hashfunc() argument
94 key += proto; in rxrpc_call_hashfunc()
111 switch (call->proto) { in rxrpc_call_hash_add()
123 call->service_id, call->proto, in rxrpc_call_hash_add()
157 sa_family_t proto, in rxrpc_find_call_hash() argument
166 switch (proto) { in rxrpc_find_call_hash()
178 service_id, proto, localptr, addr_size, in rxrpc_find_call_hash()
186 call->proto == proto && in rxrpc_find_call_hash()
281 call->proto = rx->proto; in rxrpc_alloc_client_call()
283 switch (call->proto) { in rxrpc_alloc_client_call()
[all …]
/linux-4.4.14/arch/arc/include/asm/
Dchecksum.h74 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
89 "r"(htons(proto)) in csum_tcpudp_nofold()
/linux-4.4.14/arch/hexagon/lib/
Dchecksum.c64 unsigned short len, unsigned short proto, in csum_tcpudp_magic() argument
69 (__force u64)sum + ((len + proto) << 8)); in csum_tcpudp_magic()
73 unsigned short len, unsigned short proto, in csum_tcpudp_nofold() argument
79 (__force u64)sum + ((len + proto) << 8); in csum_tcpudp_nofold()
/linux-4.4.14/include/uapi/linux/netfilter/
Dxt_policy.h23 proto:1, member
56 __u8 proto; member
/linux-4.4.14/lib/
Dchecksum.c195 unsigned short proto, in csum_tcpudp_nofold() argument
203 s += proto + len; in csum_tcpudp_nofold()
205 s += (proto + len) << 8; in csum_tcpudp_nofold()
/linux-4.4.14/drivers/net/wireless/ath/
Dtrace.h29 #define TRACE_EVENT(name, proto, ...) static inline void trace_ ## name(proto) {} argument
/linux-4.4.14/arch/cris/include/asm/
Dchecksum.h67 unsigned short proto, in csum_tcpudp_magic() argument
70 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
/linux-4.4.14/drivers/net/usb/
Dcdc_mbim.c73 static int cdc_mbim_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid) in cdc_mbim_rx_add_vid() argument
87 static int cdc_mbim_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid) in cdc_mbim_rx_kill_vid() argument
210 static bool is_ip_proto(__be16 proto) in is_ip_proto() argument
212 switch (proto) { in is_ip_proto()
368 __be16 proto = htons(ETH_P_802_3); in cdc_mbim_process_dgram() local
377 proto = htons(ETH_P_IP); in cdc_mbim_process_dgram()
382 proto = htons(ETH_P_IPV6); in cdc_mbim_process_dgram()
396 eth_hdr(skb)->h_proto = proto; in cdc_mbim_process_dgram()
/linux-4.4.14/include/trace/events/
Dlibata.h118 #define ata_protocol_name(proto) { proto, #proto } argument
165 __field( unsigned char, proto )
173 __entry->proto = qc->tf.protocol;
191 show_protocol_name(__entry->proto),
/linux-4.4.14/security/
Dlsm_audit.c43 struct common_audit_data *ad, u8 *proto) in ipv4_skb_to_auditdata() argument
55 if (proto) in ipv4_skb_to_auditdata()
56 *proto = ih->protocol; in ipv4_skb_to_auditdata()
112 struct common_audit_data *ad, u8 *proto) in ipv6_skb_to_auditdata() argument
133 if (proto) in ipv6_skb_to_auditdata()
134 *proto = nexthdr; in ipv6_skb_to_auditdata()
/linux-4.4.14/drivers/scsi/
Dps3rom.c57 u32 proto; /* transfer mode */ member
117 atapi_cmnd.proto = DMA_PROTO; in ps3rom_atapi_request()
119 atapi_cmnd.proto = PIO_DATA_IN_PROTO; in ps3rom_atapi_request()
125 atapi_cmnd.proto = DMA_PROTO; in ps3rom_atapi_request()
127 atapi_cmnd.proto = PIO_DATA_OUT_PROTO; in ps3rom_atapi_request()
133 atapi_cmnd.proto = NON_DATA_PROTO; in ps3rom_atapi_request()
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Denic_dev.h50 int enic_vlan_rx_add_vid(struct net_device *netdev, __be16 proto, u16 vid);
51 int enic_vlan_rx_kill_vid(struct net_device *netdev, __be16 proto, u16 vid);
/linux-4.4.14/net/ax25/
Dax25_timer.c125 int proto = AX25_PROTO_STD_SIMPLEX; in ax25_heartbeat_expiry() local
129 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry()
131 switch (proto) { in ax25_heartbeat_expiry()
/linux-4.4.14/drivers/char/pcmcia/
Dcm4000_cs.c135 unsigned char proto; /* T=0, T=1, ... */ member
339 dev->proto = 0; /* XXX PROTO */ in parse_atr()
393 dev->proto = 1; /* XXX PROTO */ in parse_atr()
473 dev->proto = dev->pts[1]; /* Set new protocol */ in set_protocol()
833 ptsreq.protocol = (0x01 << dev->proto); in monitor_card()
1008 if (dev->proto == 0 && count > dev->rlen - dev->rpos && i) { in cmm_read()
1064 if (dev->proto == 0 && count < 4) { in cmm_write()
1072 sendT0 = dev->proto ? 0 : nr > 5 ? 0x08 : 0; in cmm_write()
1186 if (dev->proto == 0) { in cmm_write()
1229 |(dev->proto ? 0x10 : 0x08) /* T=1/T=0 */ in cmm_write()
[all …]
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dtrace.h30 #define TRACE_EVENT(name, proto, ...) \ argument
31 static inline void trace_ ## name(proto) {}
35 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument
36 static inline void trace_ ## name(proto) {}
/linux-4.4.14/security/selinux/include/
Dxfrm.h41 struct common_audit_data *ad, u8 proto);
70 u8 proto) in selinux_xfrm_postroute_last() argument
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.h119 int mlxsw_sp_port_add_vid(struct net_device *dev, __be16 __always_unused proto,
122 __be16 __always_unused proto, u16 vid);
/linux-4.4.14/include/scsi/
Dscsi_transport_sas.h13 static inline int sas_protocol_ata(enum sas_protocol proto) in sas_protocol_ata() argument
15 return ((proto & SAS_PROTOCOL_SATA) || in sas_protocol_ata()
16 (proto & SAS_PROTOCOL_STP))? 1 : 0; in sas_protocol_ata()
/linux-4.4.14/drivers/scsi/isci/
Dtask.h87 enum sas_protocol proto; member
101 if (SAS_PROTOCOL_SATA == tmf->proto) in isci_print_tmf()
/linux-4.4.14/include/linux/netfilter/
Dx_tables.h142 unsigned short proto; member
182 unsigned short proto; member
246 int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto,
248 int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto,
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dtrace.h26 #define TRACE_EVENT(name, proto, ...) \ argument
27 static inline void trace_ ## name(proto) {}
31 #define DEFINE_EVENT(evt_class, name, proto, ...) \ argument
32 static inline void trace_ ## name(proto) {}
/linux-4.4.14/drivers/input/serio/
Dserio.c91 while (ids->type || ids->proto) { in serio_match_port()
93 (ids->proto == SERIO_ANY || ids->proto == serio->id.proto) && in serio_match_port()
371 serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); in modalias_show()
383 return sprintf(buf, "%02x\n", serio->id.proto); in proto_show()
460 static DEVICE_ATTR_RO(proto);
928 SERIO_ADD_UEVENT_VAR("SERIO_PROTO=%02x", serio->id.proto); in serio_uevent()
933 serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); in serio_uevent()
/linux-4.4.14/arch/x86/lib/
Dcsum-wrappers_64.c138 __u32 len, unsigned short proto, __wsum sum) in csum_ipv6_magic() argument
142 rest = (__force __u64)htonl(len) + (__force __u64)htons(proto) + in csum_ipv6_magic()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dtrace.h9 #define TRACE_EVENT(name, proto, ...) \ argument
10 static inline void trace_ ## name(proto) {}
/linux-4.4.14/net/vmw_vsock/
Dvmci_transport.c67 static bool vmci_transport_proto_to_notify_struct(struct sock *sk, u16 *proto,
142 u16 proto, in vmci_transport_packet_init() argument
157 memset(&pkt->proto, 0, sizeof(pkt->proto)); in vmci_transport_packet_init()
193 pkt->proto = proto; in vmci_transport_packet_init()
215 u16 proto, in __vmci_transport_send_control_pkt() argument
222 proto, handle); in __vmci_transport_send_control_pkt()
281 u16 proto, in vmci_transport_send_control_pkt() argument
302 mode, wait, proto, handle, in vmci_transport_send_control_pkt()
1044 int proto_int = pkt->proto; in vmci_transport_recv_listen()
1409 version = pkt->proto; in vmci_transport_recv_connecting_client_negotiate()
[all …]
/linux-4.4.14/net/batman-adv/
Dgateway_client.c677 __be16 proto; in batadv_gw_dhcp_recipient_get() local
685 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
689 if (proto == htons(ETH_P_8021Q)) { in batadv_gw_dhcp_recipient_get()
694 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
699 switch (proto) { in batadv_gw_dhcp_recipient_get()
735 switch (proto) { in batadv_gw_dhcp_recipient_get()
/linux-4.4.14/drivers/media/rc/img-ir/
Dimg-ir-hw.c537 u64 proto) in img_ir_set_decoder() argument
598 if (!proto) in img_ir_set_decoder()
599 proto = decoder->type; in img_ir_set_decoder()
600 hw->enabled_protocols = proto; in img_ir_set_decoder()
693 static void img_ir_set_protocol(struct img_ir_priv *priv, u64 proto) in img_ir_set_protocol() argument
698 rdev->rc_map.rc_type = __ffs64(proto); in img_ir_set_protocol()
702 rdev->enabled_protocols = proto; in img_ir_set_protocol()
703 rdev->allowed_wakeup_protocols = proto; in img_ir_set_protocol()
704 rdev->enabled_wakeup_protocols = proto; in img_ir_set_protocol()
/linux-4.4.14/include/net/bluetooth/
Dbluetooth.h260 int bt_sock_register(int proto, const struct net_proto_family *ops);
261 void bt_sock_unregister(int proto);
401 void bt_sock_reclassify_lock(struct sock *sk, int proto);
/linux-4.4.14/Documentation/networking/mac80211_hwsim/
Dwpa_supplicant.conf7 proto=WPA2
/linux-4.4.14/drivers/isdn/pcbit/
Dcapi.c54 int capi_conn_req(const char *calledPN, struct sk_buff **skb, int proto) in capi_conn_req() argument
76 if (proto == ISDN_PROTO_L2_TRANS) in capi_conn_req()
88 if (proto == ISDN_PROTO_L2_TRANS) in capi_conn_req()
215 switch (chan->proto) { in capi_select_proto_req()
/linux-4.4.14/include/uapi/linux/netfilter_ipv4/
Dipt_ECN.h30 } proto; member

123