Home
last modified time | relevance | path

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

123

/linux-4.1.27/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.h51 return drvr->proto->hdrpull(drvr, do_fws, ifidx, skb); in brcmf_proto_hdrpull()
56 return drvr->proto->query_dcmd(drvr, ifidx, cmd, buf, len); in brcmf_proto_query_dcmd()
61 return drvr->proto->set_dcmd(drvr, ifidx, cmd, buf, len); in brcmf_proto_set_dcmd()
66 return drvr->proto->txdata(drvr, ifidx, offset, skb); in brcmf_proto_txdata()
72 drvr->proto->configure_addr_mode(drvr, ifidx, addr_mode); in brcmf_proto_configure_addr_mode()
77 drvr->proto->delete_peer(drvr, ifidx, peer); in brcmf_proto_delete_peer()
82 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()
372 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull; in brcmf_proto_bcdc_attach()
373 drvr->proto->query_dcmd = brcmf_proto_bcdc_query_dcmd; in brcmf_proto_bcdc_attach()
374 drvr->proto->set_dcmd = brcmf_proto_bcdc_set_dcmd; in brcmf_proto_bcdc_attach()
375 drvr->proto->txdata = brcmf_proto_bcdc_txdata; in brcmf_proto_bcdc_attach()
376 drvr->proto->configure_addr_mode = brcmf_proto_bcdc_configure_addr_mode; in brcmf_proto_bcdc_attach()
377 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.c430 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_tx_ioctl()
493 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_query_dcmd()
794 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_txdata()
816 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_configure_addr_mode()
825 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_delete_peer()
834 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_add_tdls_peer()
1291 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_proto_msgbuf_rx_trigger()
1321 struct brcmf_msgbuf *msgbuf = (struct brcmf_msgbuf *)drvr->proto->pd; in brcmf_msgbuf_delete_flowring()
1401 drvr->proto->hdrpull = brcmf_msgbuf_hdrpull; in brcmf_proto_msgbuf_attach()
1402 drvr->proto->query_dcmd = brcmf_msgbuf_query_dcmd; in brcmf_proto_msgbuf_attach()
[all …]
/linux-4.1.27/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.1.27/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()
Dhdlc_fr.c1169 static struct hdlc_proto proto = { variable
1191 if (dev_to_hdlc(dev)->proto != &proto) /* Different proto */ in fr_ioctl()
1233 if (dev_to_hdlc(dev)->proto != &proto) { /* Different proto */ in fr_ioctl()
1234 result = attach_hdlc_protocol(dev, &proto, in fr_ioctl()
1249 if (dev_to_hdlc(dev)->proto != &proto) /* Different proto */ in fr_ioctl()
1281 register_hdlc_protocol(&proto); in mod_init()
1288 unregister_hdlc_protocol(&proto); in mod_exit()
/linux-4.1.27/net/ipv4/
Dgre_demux.c36 int gre_add_protocol(const struct gre_protocol *proto, u8 version) in gre_add_protocol() argument
41 return (cmpxchg((const struct gre_protocol **)&gre_proto[version], NULL, proto) == NULL) ? in gre_add_protocol()
46 int gre_del_protocol(const struct gre_protocol *proto, u8 version) in gre_del_protocol() argument
53 ret = (cmpxchg((const struct gre_protocol **)&gre_proto[version], proto, NULL) == proto) ? in gre_del_protocol()
74 greh->protocol = tpi->proto; in gre_build_header()
119 tpi->proto = greh->protocol; in parse_gre_header()
150 if (greh->flags == 0 && tpi->proto == htons(ETH_P_WCCP)) { in parse_gre_header()
151 tpi->proto = htons(ETH_P_IP); in parse_gre_header()
159 return iptunnel_pull_header(skb, hdr_len, tpi->proto); in parse_gre_header()
181 struct gre_cisco_protocol *proto; in gre_cisco_rcv() local
[all …]
Dxfrm4_state.c38 sel->proto = fl4->flowi4_proto; in __xfrm4_init_tempsel()
75 .proto = IPPROTO_IPIP,
Dfou.c182 u8 proto = NAPI_GRO_CB(skb)->proto; in fou_gro_receive() local
187 ops = rcu_dereference(offloads[proto]); in fou_gro_receive()
203 u8 proto = NAPI_GRO_CB(skb)->proto; in fou_gro_complete() local
211 ops = rcu_dereference(offloads[proto]); in fou_gro_complete()
376 u8 proto; in gue_gro_complete() local
379 proto = guehdr->proto_ctype; in gue_gro_complete()
385 ops = rcu_dereference(offloads[proto]); in gue_gro_complete()
/linux-4.1.27/include/linux/
Dtracepoint.h128 #define __DO_TRACE(tp, proto, args, cond, prercu, postrcu) \ argument
143 ((void(*)(proto))(it_func))(args); \
151 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) \ argument
152 static inline void trace_##name##_rcuidle(proto) \
163 #define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) argument
177 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
179 static inline void trace_##name(proto) \
192 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
240 #define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \ argument
241 static inline void trace_##name(proto) \
[all …]
Dif_bridge.h27 __be16 proto; member
57 bool br_multicast_has_querier_anywhere(struct net_device *dev, int proto);
58 bool br_multicast_has_querier_adjacent(struct net_device *dev, int proto);
66 int proto) in br_multicast_has_querier_anywhere() argument
71 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.h208 int __sock_create(struct net *net, int family, int type, int proto,
210 int sock_create(int family, int type, int proto, struct socket **res);
211 int sock_create_kern(int family, int type, int proto, struct socket **res);
212 int sock_create_lite(int family, int type, int proto, struct socket **res);
286 #define MODULE_ALIAS_NETPROTO(proto) \ argument
287 MODULE_ALIAS("net-pf-" __stringify(proto))
289 #define MODULE_ALIAS_NET_PF_PROTO(pf, proto) \ argument
290 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto))
292 #define MODULE_ALIAS_NET_PF_PROTO_TYPE(pf, proto, type) \ argument
293 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 (ntohs(proto) >= ETH_P_802_3_MIN) { 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.h90 struct common_audit_data *ad, u8 *proto);
93 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);
/linux-4.1.27/drivers/block/paride/
Dparide.c46 pi->proto->write_regr(pi, cont, regr, val); in pi_write_regr()
53 return pi->proto->read_regr(pi, cont, regr); in pi_read_regr()
60 pi->proto->write_block(pi, buf, count); in pi_write_block()
67 pi->proto->read_block(pi, buf, count); in pi_read_block()
138 pi->proto->connect(pi); in pi_connect()
145 pi->proto->disconnect(pi); in pi_disconnect()
162 if (pi->proto->release_proto) in pi_release()
163 pi->proto->release_proto(pi); in pi_release()
164 module_put(pi->proto->owner); in pi_release()
174 pi->proto->connect(pi); in default_test_proto()
[all …]
/linux-4.1.27/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]); 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.1.27/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.c502 tproto = ACCESS_ONCE(t->parms.proto); in ip6_tnl_err()
813 tproto = ACCESS_ONCE(t->parms.proto); in ip6_tnl_rcv()
987 u8 proto; in ip6_tnl_xmit2() local
1083 proto = fl6->flowi6_proto; in ip6_tnl_xmit2()
1086 ipv6_push_nfrag_opts(skb, &opt.ops, &proto, NULL); in ip6_tnl_xmit2()
1100 ipv6h->nexthdr = proto; in ip6_tnl_xmit2()
1127 tproto = ACCESS_ONCE(t->parms.proto); in ip4ip6_tnl_xmit()
1170 tproto = ACCESS_ONCE(t->parms.proto); in ip6ip6_tnl_xmit()
1312 t->parms.proto = p->proto; in ip6_tnl_change()
1335 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.1.27/net/8021q/
Dvlan_core.c154 __be16 proto; member
162 if (vid_info->proto == htons(ETH_P_8021Q) && in vlan_hw_filter_capable()
165 if (vid_info->proto == htons(ETH_P_8021AD) && in vlan_hw_filter_capable()
172 __be16 proto, u16 vid) in vlan_vid_info_get() argument
177 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get()
183 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument
190 vid_info->proto = proto; in vlan_vid_info_alloc()
196 static int __vlan_vid_add(struct vlan_info *vlan_info, __be16 proto, u16 vid, in __vlan_vid_add() argument
204 vid_info = vlan_vid_info_alloc(proto, vid); in __vlan_vid_add()
209 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()
Dvlan.h38 static inline unsigned int vlan_proto_idx(__be16 proto) in vlan_proto_idx() argument
40 switch (proto) { in vlan_proto_idx()
/linux-4.1.27/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()
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()
181 static int nft_parse_compat(const struct nlattr *attr, u16 *proto, bool *inv) in nft_parse_compat() argument
201 *proto = ntohl(nla_get_be32(tb[NFTA_RULE_COMPAT_PROTO])); in nft_parse_compat()
213 u16 proto = 0; in nft_target_init() local
225 ret = nft_parse_compat(ctx->nla[NFTA_RULE_COMPAT], &proto, &inv); in nft_target_init()
230 nft_target_set_tgchk_param(&par, ctx, target, info, &e, proto, inv); in nft_target_init()
[all …]
Dnf_conntrack_proto_sctp.c183 state = ct->proto.sctp.state; in sctp_print_conntrack()
332 sh->vtag != ct->proto.sctp.vtag[dir]) { in sctp_packet()
347 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
348 sh->vtag != ct->proto.sctp.vtag[!dir]) in sctp_packet()
352 if (sh->vtag != ct->proto.sctp.vtag[dir] && in sctp_packet()
353 sh->vtag != ct->proto.sctp.vtag[!dir] && in sctp_packet()
358 if (sh->vtag != ct->proto.sctp.vtag[dir]) in sctp_packet()
362 old_state = ct->proto.sctp.state; in sctp_packet()
384 ct->proto.sctp.vtag[!dir] = ih->init_tag; in sctp_packet()
387 ct->proto.sctp.state = new_state; in sctp_packet()
[all …]
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_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_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.c241 (ct->proto.gre.timeout / HZ), in gre_print_conntrack()
242 (ct->proto.gre.stream_timeout / HZ)); in gre_print_conntrack()
263 ct->proto.gre.stream_timeout); in gre_packet()
269 ct->proto.gre.timeout); in gre_packet()
283 ct->proto.gre.stream_timeout = timeouts[GRE_CT_REPLIED]; in gre_new()
284 ct->proto.gre.timeout = timeouts[GRE_CT_UNREPLIED]; in gre_new()
351 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()
193 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()
Dxt_dccp.c147 .proto = IPPROTO_DCCP,
156 .proto = IPPROTO_DCCP,
/linux-4.1.27/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 …]
Dftrace.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 …]
/linux-4.1.27/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 …]
Dtcbpf1_kern.c56 __u8 proto = load_byte(skb, BPF_LL_OFF + ETH_HLEN + offsetof(struct iphdr, protocol)); in bpf_prog1() local
59 if (proto == IPPROTO_TCP) { in bpf_prog1()
/linux-4.1.27/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
120 *proto = protocol; in ip_set_get_ip4_port()
124 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
131 __be16 *port, u8 *proto) in ip_set_get_ip6_port() argument
143 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
152 u8 proto; in ip_set_get_ip_port() local
156 ret = ip_set_get_ip4_port(skb, src, port, &proto); in ip_set_get_ip_port()
159 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()
102 &e.port, &e.proto)) in hash_ipport4_kadt()
146 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport4_uadt()
147 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipport4_uadt()
149 if (e.proto == 0) in hash_ipport4_uadt()
154 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipport4_uadt()
210 u8 proto; member
223 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()
103 &e.port, &e.proto)) in hash_ipportip4_kadt()
152 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip4_uadt()
153 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipportip4_uadt()
155 if (e.proto == 0) in hash_ipportip4_uadt()
160 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipportip4_uadt()
217 u8 proto; member
231 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()
148 &e.port, &e.proto)) in hash_netport4_kadt()
203 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport4_uadt()
204 with_ports = ip_set_proto_with_ports(e.proto); in hash_netport4_uadt()
206 if (e.proto == 0) in hash_netport4_uadt()
211 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_netport4_uadt()
273 u8 proto; member
287 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()
153 &e.port, &e.proto)) in hash_ipportnet4_kadt()
214 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet4_uadt()
215 with_ports = ip_set_proto_with_ports(e.proto); in hash_ipportnet4_uadt()
217 if (e.proto == 0) in hash_ipportnet4_uadt()
222 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_ipportnet4_uadt()
314 u8 proto; member
328 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()
162 &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()
237 if (!(with_ports || e.proto == IPPROTO_ICMP)) in hash_netportnet4_uadt()
330 u8 proto; member
344 ip1->proto == ip2->proto; in hash_netportnet6_data_equal()
[all …]
/linux-4.1.27/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.1.27/drivers/net/arcnet/
Darcnet.c215 void arcnet_unregister_proto(struct ArcProto *proto) in arcnet_unregister_proto() argument
219 if (arc_proto_default == proto) in arcnet_unregister_proto()
221 if (arc_bcast_proto == proto) in arcnet_unregister_proto()
223 if (arc_raw_proto == proto) in arcnet_unregister_proto()
227 if (arc_proto_map[count] == proto) in arcnet_unregister_proto()
489 struct ArcProto *proto; in arcnet_header() local
504 proto = arc_raw_proto; in arcnet_header()
505 BUGMSG(D_DEBUG, "arc_raw_proto used. proto='%c'\n",proto->suffix); in arcnet_header()
527 proto = arc_proto_map[proto_num]; in arcnet_header()
529 proto_num, proto->suffix); in arcnet_header()
[all …]
Dcapmode.c76 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto)); in rx()
77 memcpy(pktbuf+ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto)+sizeof(int), in rx()
78 pkthdrbuf+ARC_HDR_SIZE+sizeof(pkt->soft.cap.proto), in rx()
79 sizeof(struct archdr)-ARC_HDR_SIZE-sizeof(pkt->soft.cap.proto)); in rx()
173 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx()
174 sizeof(pkt->soft.cap.proto)); in prepare_tx()
214 ackpkt->soft.cap.proto = 0; /* using protocol 0 for acknowledge */ in ack_tx()
227 lp->outgoing.proto = NULL; /* We are always finished when in this protocol */ in ack_tx()
Drfc1201.c110 switch (soft->proto) { in type_trans()
205 if (soft->proto == ARC_P_ARP) { in rx()
385 soft->proto = ARC_P_IP; in build_header()
388 soft->proto = ARC_P_IPV6; in build_header()
391 soft->proto = ARC_P_ARP; in build_header()
394 soft->proto = ARC_P_RARP; in build_header()
399 soft->proto = ARC_P_IPX; in build_header()
402 soft->proto = ARC_P_ATALK; in build_header()
455 excsoft.proto = soft->proto; in load_pkt()
531 newsoft->proto = soft->proto; in continue_tx()
Drfc1051.c108 switch (soft->proto) { in type_trans()
178 soft->proto = ARC_P_IP_RFC1051; in build_header()
181 soft->proto = ARC_P_ARP_RFC1051; in build_header()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/net/core/
Dflow_dissector.c75 void *data, __be16 proto, int nhoff, int hlen) in __skb_flow_dissect() argument
81 proto = skb->protocol; in __skb_flow_dissect()
89 switch (proto) { in __skb_flow_dissect()
139 flow->n_proto = proto; in __skb_flow_dissect()
158 proto = vlan->h_vlan_encapsulated_proto; in __skb_flow_dissect()
165 __be16 proto; in __skb_flow_dissect() member
170 proto = hdr->proto; in __skb_flow_dissect()
172 switch (proto) { in __skb_flow_dissect()
191 flow->n_proto = proto; in __skb_flow_dissect()
206 __be16 proto; in __skb_flow_dissect() member
[all …]
Dsock.c200 struct proto *proto; in mem_cgroup_sockets_init() local
204 list_for_each_entry(proto, &proto_list, node) { in mem_cgroup_sockets_init()
205 if (proto->init_cgroup) { in mem_cgroup_sockets_init()
206 ret = proto->init_cgroup(memcg, ss); in mem_cgroup_sockets_init()
215 list_for_each_entry_continue_reverse(proto, &proto_list, node) in mem_cgroup_sockets_init()
216 if (proto->destroy_cgroup) in mem_cgroup_sockets_init()
217 proto->destroy_cgroup(memcg); in mem_cgroup_sockets_init()
224 struct proto *proto; in mem_cgroup_sockets_destroy() local
227 list_for_each_entry_reverse(proto, &proto_list, node) in mem_cgroup_sockets_destroy()
228 if (proto->destroy_cgroup) in mem_cgroup_sockets_destroy()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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);
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);
33 int gre_cisco_register(struct gre_cisco_protocol *proto);
34 int gre_cisco_unregister(struct gre_cisco_protocol *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;
192 struct proto *skc_prot;
404 struct proto *sk_prot_creator;
940 struct proto { struct
1083 int proto_register(struct proto *prot, int alloc_slab);
1084 void proto_unregister(struct proto *prot);
1118 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto() argument
1121 return proto->proto_cgroup(parent_mem_cgroup(cg_proto->memcg)); in parent_cg_proto()
1126 static inline struct cg_proto *parent_cg_proto(struct proto *proto, in parent_cg_proto() argument
1177 struct proto *prot = sk->sk_prot; in sk_leave_memory_pressure()
[all …]
Dxfrm.h43 #define MODULE_ALIAS_XFRM_TYPE(family, proto) \ argument
44 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto))
122 u8 proto; member
256 u32 proto; member
320 unsigned int proto; member
365 u8 proto; member
568 u8 proto; member
596 int (*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
731 u8 proto);
775 struct sk_buff *skb, u8 proto) in xfrm_audit_state_icvfail() argument
[all …]
Dpsnap.h9 void unregister_snap_client(struct datalink_proto *proto);
Dp8022.h9 void unregister_8022_client(struct datalink_proto *proto);
/linux-4.1.27/drivers/tty/hvc/
Dhvc_opal.c56 hv_protocol_t proto; /* Raw data or HVSI packets */ member
182 hv_protocol_t proto; in hvc_opal_probe() local
188 proto = HV_PROTOCOL_RAW; in hvc_opal_probe()
192 proto = HV_PROTOCOL_HVSI; in hvc_opal_probe()
211 pv->proto = proto; in hvc_opal_probe()
213 if (proto == HV_PROTOCOL_HVSI) in hvc_opal_probe()
226 proto == HV_PROTOCOL_RAW ? "raw" : "hvsi", in hvc_opal_probe()
288 switch(hvc_opal_boot_priv.proto) { in udbg_opal_putc()
305 switch(hvc_opal_boot_priv.proto) { in udbg_opal_getc_poll()
385 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.1.27/net/netfilter/ipvs/
Dip_vs_proto.c41 #define IP_VS_PROTO_HASH(proto) ((proto) & (IP_VS_PROTO_TAB_SIZE-1)) argument
142 struct ip_vs_protocol * ip_vs_proto_get(unsigned short proto) in ip_vs_proto_get() argument
145 unsigned int hash = IP_VS_PROTO_HASH(proto); in ip_vs_proto_get()
148 if (pp->protocol == proto) in ip_vs_proto_get()
160 __ipvs_proto_data_get(struct netns_ipvs *ipvs, unsigned short proto) in __ipvs_proto_data_get() argument
163 unsigned int hash = IP_VS_PROTO_HASH(proto); in __ipvs_proto_data_get()
166 if (pd->pp->protocol == proto) in __ipvs_proto_data_get()
174 ip_vs_proto_data_get(struct net *net, unsigned short proto) in ip_vs_proto_data_get() argument
178 return __ipvs_proto_data_get(ipvs, proto); in ip_vs_proto_data_get()
228 const char * ip_vs_state_name(__u16 proto, int state) in ip_vs_state_name() argument
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/infiniband/hw/usnic/
Dusnic_transport.c55 int proto; in usnic_transport_sock_to_str() local
58 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port); in usnic_transport_sock_to_str()
63 proto, &addr, port); in usnic_transport_sock_to_str()
159 int usnic_transport_sock_get_addr(struct socket *sock, int *proto, in usnic_transport_sock_get_addr() argument
175 if (proto) in usnic_transport_sock_get_addr()
176 *proto = sock->sk->sk_protocol; in usnic_transport_sock_get_addr()
/linux-4.1.27/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.1.27/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.c221 unsigned int proto; in xfrm_local_error() local
225 proto = AF_INET; in xfrm_local_error()
227 proto = AF_INET6; in xfrm_local_error()
231 afinfo = xfrm_state_get_afinfo(proto); in xfrm_local_error()
Dxfrm_user.c141 if ((p->id.proto != IPPROTO_ESP) && (p->id.proto != IPPROTO_AH)) in verify_replay()
173 switch (p->id.proto) { in verify_newsa_info()
641 if (xfrm_id_proto_match(p->proto, IPSEC_PROTO_ANY)) { in xfrm_user_state_lookup()
643 x = xfrm_state_lookup(net, mark, &p->daddr, p->spi, p->proto, p->family); in xfrm_user_state_lookup()
656 p->proto, p->family); in xfrm_user_state_lookup()
895 u8 proto = 0; in xfrm_dump_sa() local
915 proto = nla_get_u8(attrs[XFRMA_PROTO]); in xfrm_dump_sa()
917 xfrm_state_walk_init(walk, proto, filter); in xfrm_dump_sa()
1186 err = verify_spi_info(p->info.id.proto, p->min, p->max); in xfrm_alloc_userspi()
1206 p->info.id.proto, daddr, in xfrm_alloc_userspi()
[all …]
/linux-4.1.27/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.1.27/include/uapi/linux/
Dif_arcnet.h60 __u8 proto; /* protocol ID field - varies */ member
72 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ member
83 __u8 proto; /* Always ARC_P_ETHER */ member
91 __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.1.27/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.1.27/net/tipc/
Dudp_media.c71 __be16 proto; member
100 if (ntohs(ua->proto) == ETH_P_IP) { in tipc_udp_media_addr_set()
103 } else if (ntohs(ua->proto) == ETH_P_IPV6) { in tipc_udp_media_addr_set()
116 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str()
118 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str()
167 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_send_msg()
252 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast()
301 local->proto = htons(ETH_P_IP); in parse_options()
306 remote->proto = htons(ETH_P_IP); in parse_options()
316 local->proto = htons(ETH_P_IPV6); in parse_options()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/arch/x86/um/asm/
Dchecksum.h90 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
97 : "g" (daddr), "g" (saddr), "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
107 unsigned short proto, in csum_tcpudp_magic() argument
110 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.1.27/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.1.27/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.c54 static struct proto pptp_sk_proto __read_mostly;
101 opt = &sock->proto.pptp; in lookup_chan()
124 opt = &sock->proto.pptp; in lookup_chan_dst()
152 sock->proto.pptp.src_addr = *sa; in add_chan()
167 clear_bit(sock->proto.pptp.src_addr.call_id, callid_bitmap); in del_chan()
168 RCU_INIT_POINTER(callid_sock[sock->proto.pptp.src_addr.call_id], NULL); in del_chan()
177 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit()
301 struct pptp_opt *opt = &po->proto.pptp; in pptp_rcv_core()
456 struct pptp_opt *opt = &po->proto.pptp; in pptp_connect()
533 sp.sa_addr.pptp = pppox_sk(sock->sk)->proto.pptp.src_addr; in pptp_getname()
[all …]
Dppp_generic.c297 static inline int proto_to_npindex(int proto) in proto_to_npindex() argument
299 switch (proto) { in proto_to_npindex()
976 int npi, proto; in ppp_start_xmit() local
1002 proto = npindex_to_proto[npi]; in ppp_start_xmit()
1003 put_unaligned_be16(proto, pp); in ppp_start_xmit()
1196 int proto = PPP_PROTO(skb); in ppp_send_frame() local
1201 if (proto < 0x8000) { in ppp_send_frame()
1230 switch (proto) { in ppp_send_frame()
1251 proto = PPP_VJC_COMP; in ppp_send_frame()
1254 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.1.27/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.1.27/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()
1658 .proto = SERIO_ANY,
1664 .proto = SERIO_ANY,
[all …]
/linux-4.1.27/net/bridge/
Dbr_mdb.c88 if (p->addr.proto == htons(ETH_P_IP)) in br_mdb_fill_info()
91 if (p->addr.proto == htons(ETH_P_IPV6)) in br_mdb_fill_info()
94 e.addr.proto = p->addr.proto; in br_mdb_fill_info()
239 entry.addr.proto = group->proto; in br_mdb_notify()
252 if (entry->addr.proto == htons(ETH_P_IP)) { in is_valid_mdb_entry()
258 } else if (entry->addr.proto == htons(ETH_P_IPV6)) { in is_valid_mdb_entry()
374 ip.proto = entry->addr.proto; in __br_mdb_add()
375 if (ip.proto == htons(ETH_P_IP)) in __br_mdb_add()
421 ip.proto = entry->addr.proto; in __br_mdb_del()
422 if (ip.proto == htons(ETH_P_IP)) { in __br_mdb_del()
Dbr_vlan.c167 __be16 proto; in br_allowed_ingress() local
184 proto = br->vlan_proto; in br_allowed_ingress()
191 skb->protocol == proto)) { in br_allowed_ingress()
199 if (skb->vlan_proto != proto) { in br_allowed_ingress()
235 __vlan_hwaccel_put_tag(skb, proto, pvid); in br_allowed_ingress()
439 __be16 proto, oldproto; in br_vlan_set_proto() local
448 proto = htons(val); in br_vlan_set_proto()
449 if (br->vlan_proto == proto) in br_vlan_set_proto()
459 err = vlan_vid_add(p->dev, proto, vid); in br_vlan_set_proto()
466 br->vlan_proto = proto; in br_vlan_set_proto()
[all …]
Dbr_multicast.c44 if (a->proto != b->proto) in br_ip_equal()
48 switch (a->proto) { in br_ip_equal()
78 switch (ip->proto) { in br_ip_hash()
117 br_dst.proto = htons(ETH_P_IP); in br_mdb_ip4_get()
131 br_dst.proto = htons(ETH_P_IPV6); in br_mdb_ip6_get()
150 ip.proto = skb->protocol; in br_mdb_get()
501 switch (addr->proto) { in br_multicast_alloc_query()
718 br_group.proto = htons(ETH_P_IP); in br_ip4_multicast_add_group()
736 br_group.proto = htons(ETH_P_IPV6); in br_ip6_multicast_add_group()
797 if (ip->proto == htons(ETH_P_IP)) in br_multicast_select_own_querier()
[all …]
/linux-4.1.27/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.1.27/arch/powerpc/include/asm/
Dchecksum.h28 unsigned short proto,
106 unsigned short proto, in csum_tcpudp_nofold() argument
114 s += proto + len; in csum_tcpudp_nofold()
125 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold()
/linux-4.1.27/net/openvswitch/
Dflow.c266 key->ip.proto = NEXTHDR_NONE; in parse_ipv6hdr()
288 key->ip.proto = nexthdr; in parse_ipv6hdr()
330 __be16 proto; in parse_ethertype() local
332 proto = *(__be16 *) skb->data; in parse_ethertype()
335 if (ntohs(proto) >= ETH_P_802_3_MIN) in parse_ethertype()
336 return proto; in parse_ethertype()
511 key->ip.proto = nh->protocol; in key_extract()
527 if (key->ip.proto == IPPROTO_TCP) { in key_extract()
537 } else if (key->ip.proto == IPPROTO_UDP) { in key_extract()
545 } else if (key->ip.proto == IPPROTO_SCTP) { in key_extract()
[all …]
Dflow_netlink.c167 if (match->key->ip.proto == IPPROTO_UDP) { in match_validate()
169 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
173 if (match->key->ip.proto == IPPROTO_SCTP) { in match_validate()
175 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
179 if (match->key->ip.proto == IPPROTO_TCP) { in match_validate()
182 if (match->mask && (match->mask->key.ip.proto == 0xff)) { in match_validate()
188 if (match->key->ip.proto == IPPROTO_ICMP) { in match_validate()
190 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
202 if (match->key->ip.proto == IPPROTO_UDP) { in match_validate()
204 if (match->mask && (match->mask->key.ip.proto == 0xff)) in match_validate()
[all …]
/linux-4.1.27/arch/powerpc/xmon/
Dansidecl.h109 #define EXFUN(name, proto) name proto argument
133 #define EXFUN(name, proto) name() argument
/linux-4.1.27/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.1.27/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.1.27/arch/alpha/include/asm/
Dchecksum.h18 unsigned short proto,
22 unsigned short len, unsigned short proto,
73 __u32 len, unsigned short proto,
/linux-4.1.27/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.1.27/drivers/bluetooth/
Dhci_ldisc.c116 skb = hu->proto->dequeue(hu); in hci_uart_dequeue()
187 hu->proto->close(hu); in hci_uart_init_work()
233 hu->proto->flush(hu); in hci_uart_flush()
261 hu->proto->enqueue(hu, skb); in hci_uart_send_frame()
274 if (hu->proto->setup) in hci_uart_setup()
275 return hu->proto->setup(hu); in hci_uart_setup()
394 hu->proto->close(hu); in hci_uart_tty_close()
450 hu->proto->recv(hu, data, count); in hci_uart_tty_receive()
526 hu->proto = p; in hci_uart_set_proto()
593 return hu->proto->id; in hci_uart_tty_ioctl()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 <= 1500) { 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()
523 int p80211_stt_findproto(u16 proto) in p80211_stt_findproto() argument
532 if (proto == 0x80f3) /* APPLETALK */ in p80211_stt_findproto()
/linux-4.1.27/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.1.27/net/sched/
Dact_connmark.c41 int proto; in tcf_connmark() local
51 proto = NFPROTO_IPV4; in tcf_connmark()
56 proto = NFPROTO_IPV6; in tcf_connmark()
70 proto, &tuple)) in tcf_connmark()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/include/uapi/linux/netfilter/
Dxt_policy.h23 proto:1, member
56 __u8 proto; member
Dxt_ecn.h32 } proto; member
/linux-4.1.27/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.1.27/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.1.27/drivers/net/wireless/ath/
Dtrace.h29 #define TRACE_EVENT(name, proto, ...) static inline void trace_ ## name(proto) {} argument
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/include/linux/netfilter/
Dx_tables.h138 unsigned short proto; member
178 unsigned short proto; member
242 int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto,
244 int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto,
/linux-4.1.27/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.1.27/security/selinux/include/
Dxfrm.h41 struct common_audit_data *ad, u8 proto);
70 u8 proto) in selinux_xfrm_postroute_last() argument
/linux-4.1.27/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.1.27/drivers/scsi/isci/
Dtask.h87 enum sas_protocol proto; member
101 if (SAS_PROTOCOL_SATA == tmf->proto) in isci_print_tmf()
/linux-4.1.27/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.1.27/drivers/input/serio/
Dserio.c93 while (ids->type || ids->proto) { in serio_match_port()
95 (ids->proto == SERIO_ANY || ids->proto == serio->id.proto) && in serio_match_port()
373 serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); in modalias_show()
385 return sprintf(buf, "%02x\n", serio->id.proto); in proto_show()
462 static DEVICE_ATTR_RO(proto);
930 SERIO_ADD_UEVENT_VAR("SERIO_PROTO=%02x", serio->id.proto); in serio_uevent()
935 serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); in serio_uevent()
/linux-4.1.27/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.1.27/drivers/net/wireless/ath/ath5k/
Dtrace.h9 #define TRACE_EVENT(name, proto, ...) \ argument
10 static inline void trace_ ## name(proto) {}
/linux-4.1.27/include/net/bluetooth/
Dbluetooth.h244 int bt_sock_register(int proto, const struct net_proto_family *ops);
245 void bt_sock_unregister(int proto);
374 void bt_sock_reclassify_lock(struct sock *sk, int proto);
/linux-4.1.27/net/vmw_vsock/
Dvmci_transport.c69 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()
1072 int proto_int = pkt->proto; in vmci_transport_recv_listen()
1440 version = pkt->proto; in vmci_transport_recv_connecting_client_negotiate()
[all …]
/linux-4.1.27/net/batman-adv/
Dgateway_client.c682 __be16 proto; in batadv_gw_dhcp_recipient_get() local
690 proto = ethhdr->h_proto; in batadv_gw_dhcp_recipient_get()
694 if (proto == htons(ETH_P_8021Q)) { in batadv_gw_dhcp_recipient_get()
699 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
704 switch (proto) { in batadv_gw_dhcp_recipient_get()
745 switch (proto) { in batadv_gw_dhcp_recipient_get()
/linux-4.1.27/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.1.27/Documentation/networking/mac80211_hwsim/
Dwpa_supplicant.conf7 proto=WPA2
/linux-4.1.27/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.1.27/include/uapi/linux/netfilter_ipv4/
Dipt_ECN.h30 } proto; member
/linux-4.1.27/Documentation/devicetree/bindings/video/
Dti,omap3-dss.txt73 - reg: addresses and lengths of the register spaces for 'proto', 'phy' and 'pll'
74 - reg-names: "proto", "phy", "pll"

123