Home
last modified time | relevance | path

Searched refs:proto (Results 26 – 50 of 1111) sorted by relevance

12345678910>>...45

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto_dccp.c413 ct->proto.dccp.state = CT_DCCP_NONE; in dccp_new()
416 ct->proto.dccp.handshake_seq = 0; in dccp_new()
551 role = ct->proto.dccp.role[dir]; in nf_conntrack_dccp_packet()
552 old_state = ct->proto.dccp.state; in nf_conntrack_dccp_packet()
590 ct->proto.dccp.last_dir = dir; in nf_conntrack_dccp_packet()
591 ct->proto.dccp.last_pkt = type; in nf_conntrack_dccp_packet()
602 ct->proto.dccp.last_dir = dir; in nf_conntrack_dccp_packet()
603 ct->proto.dccp.last_pkt = type; in nf_conntrack_dccp_packet()
604 ct->proto.dccp.state = new_state; in nf_conntrack_dccp_packet()
620 switch (ct->proto.dccp.state) { in dccp_can_early_drop()
[all …]
H A Dnf_conntrack_ovs.c13 enum ip_conntrack_info ctinfo, u16 proto) in nf_ct_helper() argument
32 helper->tuple.src.l3num != proto) in nf_ct_helper()
35 switch (proto) { in nf_ct_helper()
38 proto = ip_hdr(skb)->protocol; in nf_ct_helper()
52 proto = nexthdr; in nf_ct_helper()
60 if (helper->tuple.dst.protonum != proto) in nf_ct_helper()
79 u8 proto, bool nat, struct nf_conntrack_helper **hp) in nf_ct_add_helper() argument
85 helper = nf_conntrack_helper_try_module_get(name, family, proto); in nf_ct_add_helper()
96 ret = nf_nat_helper_try_module_get(name, family, proto); in nf_ct_add_helper()
145 u16 zone, u8 family, u8 *proto, u16 *mru) in nf_ct_handle_fragments() argument
[all …]
H A Dxt_multiport.c109 check(u_int16_t proto, in check() argument
115 return (proto == IPPROTO_TCP || proto == IPPROTO_UDP in check()
116 || proto == IPPROTO_UDPLITE in check()
117 || proto == IPPROTO_SCTP || proto == IPPROTO_DCCP) in check()
130 return check(ip->proto, ip->invflags, multiinfo->flags, in multiport_mt_check()
139 return check(ip->proto, ip->invflags, multiinfo->flags, in multiport_mt6_check()
/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dbcdc.c103 struct brcmf_bcdc *bcdc = drvr->proto->pd; in drvr_to_fws()
337 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_tx_queue_data()
368 struct brcmf_bcdc *bcdc = bus_if->drvr->proto->pd; in brcmf_proto_bcdc_txcomplete()
427 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_init_done()
457 drvr->proto->hdrpull = brcmf_proto_bcdc_hdrpull; in brcmf_proto_bcdc_attach()
461 drvr->proto->txdata = brcmf_proto_bcdc_txdata; in brcmf_proto_bcdc_attach()
466 drvr->proto->add_if = brcmf_proto_bcdc_add_if; in brcmf_proto_bcdc_attach()
467 drvr->proto->del_if = brcmf_proto_bcdc_del_if; in brcmf_proto_bcdc_attach()
471 drvr->proto->pd = bcdc; in brcmf_proto_bcdc_attach()
485 struct brcmf_bcdc *bcdc = drvr->proto->pd; in brcmf_proto_bcdc_detach()
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dreuseport_bpf_cpu.c60 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group()
134 fd = socket(family, proto, 0); in send_from_cpu()
161 if (proto == SOCK_STREAM) { in receive_on_cpu()
189 build_rcv_group(rcv_fd, len, family, proto); in test()
204 send_from_cpu(cpu, family, proto); in test()
205 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
210 send_from_cpu(cpu, family, proto); in test()
211 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
216 send_from_cpu(cpu, family, proto); in test()
217 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test()
[all …]
H A Dgro.sh10 proto="ipv4"
44 for proto in "${PROTOS[@]}"; do
46 echo "running test ${proto} ${test}" >&2
47 exit_code=$(run_test $proto $test)
49 failed_tests+=("${proto}_${test}")
79 proto="${OPTARG}"
98 run_test "${proto}" "${test}"
H A Dreuseport_bpf_numa.c56 rcv_fd[i] = socket(family, proto, 0); in build_rcv_group()
68 if (proto == SOCK_STREAM && listen(rcv_fd[i], len * 10)) in build_rcv_group()
107 static void send_from_node(int node_id, int family, int proto) in send_from_node() argument
144 fd = socket(family, proto, 0); in send_from_node()
171 if (proto == SOCK_STREAM) { in receive_on_node()
194 static void test(int *rcv_fd, int len, int family, int proto) in test() argument
199 build_rcv_group(rcv_fd, len, family, proto); in test()
216 send_from_node(node, family, proto); in test()
217 receive_on_node(rcv_fd, len, epfd, node, proto); in test()
224 send_from_node(node, family, proto); in test()
[all …]
/openbmc/linux/sound/usb/
H A Dclock.c40 #define DESC_LENGTH_CHECK(p, proto) \ argument
41 ((proto) == UAC_VERSION_3 ? \
45 #define GET_VAL(p, proto, field) \ argument
50 u8 type, int proto) in find_uac_clock_desc() argument
56 if (validator(cs, id, proto)) in find_uac_clock_desc()
67 if (!DESC_LENGTH_CHECK(cs, proto)) in validate_clock_source()
76 if (!DESC_LENGTH_CHECK(cs, proto)) in validate_clock_selector()
83 if (proto == UAC_VERSION_3) in validate_clock_selector()
95 if (!DESC_LENGTH_CHECK(cs, proto)) in validate_clock_multiplier()
105 proto); \
[all …]
/openbmc/linux/net/ipv6/
H A Dip6_offload.c65 proto = opth->nexthdr; in ipv6_gro_pull_exthdrs()
71 return proto; in ipv6_gro_pull_exthdrs()
102 proto = opth->nexthdr; in ipv6_gso_pull_exthdrs()
106 return proto; in ipv6_gso_pull_exthdrs()
115 int proto, err; in ipv6_gso_segment() local
206 proto = iph->nexthdr; in ipv6_exthdrs_len()
218 proto = opth->nexthdr; in ipv6_exthdrs_len()
234 int proto; in ipv6_gro_receive() local
247 proto = iph->nexthdr; in ipv6_gro_receive()
250 proto = ipv6_gro_pull_exthdrs(skb, hlen, proto); in ipv6_gro_receive()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c63 u8 proto; member
69 .proto = IPPROTO_TCP,
73 .proto = IPPROTO_TCP,
77 .proto = IPPROTO_UDP,
85 .proto = IPPROTO_AH,
89 .proto = IPPROTO_AH,
101 .proto = 0,
105 .proto = 0,
109 .proto = 0,
208 if (proto) { in mlx5_generate_ttc_rule()
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dtc_flower_port_range.sh77 local proto=$1; shift
94 tc filter add dev $swp1 ingress protocol $proto handle 101 pref 1 \
99 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \
151 local proto=ipv4
158 __test_port_range $proto $ip_proto $sip $dip $mode "$name"
163 local proto=ipv4
170 __test_port_range $proto $ip_proto $sip $dip $mode "$name"
175 local proto=ipv6
182 __test_port_range $proto $ip_proto $sip $dip $mode "$name"
187 local proto=ipv6
[all …]
H A Dtc_flower_l2_miss.sh127 local proto=$1; shift
137 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \
141 tc filter add dev $swp2 egress protocol $proto handle 102 pref 1 \
184 local proto="ipv4"
191 test_l2_miss_multicast_common $proto $sip $dip $dmac $mode $name
196 local proto="ipv6"
203 test_l2_miss_multicast_common $proto $sip $dip $dmac $mode $name
245 local proto=$1; shift
254 tc filter add dev $swp2 egress protocol $proto handle 101 pref 1 \
270 local proto=ipv4
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dhci_serdev.c50 skb = hu->proto->dequeue(hu); in hci_uart_dequeue()
108 hu->proto->flush(hu); in hci_uart_flush()
171 hu->proto->enqueue(hu, skb); in hci_uart_send_frame()
189 else if (hu->proto->init_speed) in hci_uart_setup()
190 speed = hu->proto->init_speed; in hci_uart_setup()
200 else if (hu->proto->oper_speed) in hci_uart_setup()
213 if (hu->proto->setup) in hci_uart_setup()
214 return hu->proto->setup(hu); in hci_uart_setup()
325 hu->proto = p; in hci_uart_register_device_priv()
348 if (hu->proto->setup) in hci_uart_register_device_priv()
[all …]
/openbmc/linux/include/linux/netfilter/ipset/
H A Dip_set_getport.h10 __be16 *port, u8 *proto);
14 __be16 *port, u8 *proto);
17 __be16 *port, u8 *proto) in ip_set_get_ip6_port() argument
23 static inline bool ip_set_proto_with_ports(u8 proto) in ip_set_proto_with_ports() argument
25 switch (proto) { in ip_set_proto_with_ports()
/openbmc/linux/drivers/s390/net/
H A Dqeth_l3_sys.c20 enum qeth_prot_versions proto, u8 *addr) in qeth_l3_string_to_ipaddr() argument
367 enum qeth_prot_versions proto) in qeth_l3_dev_ipato_add_show() argument
375 if (ipatoe->proto != proto) in qeth_l3_dev_ipato_add_show()
438 ipatoe->proto = proto; in qeth_l3_dev_ipato_add_store()
571 enum qeth_prot_versions proto, in qeth_l3_dev_ip_add_show() argument
582 if (ipaddr->proto != proto || ipaddr->type != type) in qeth_l3_dev_ip_add_show()
611 QETH_IP_TYPE_VIPA, proto); in qeth_l3_vipa_store()
691 if (proto == QETH_PROT_IPV4) { in qeth_l3_parse_rxipe()
697 } else if (proto == QETH_PROT_IPV6) { in qeth_l3_parse_rxipe()
715 rc = qeth_l3_parse_rxipe(buf, proto, addr); in qeth_l3_rxip_store()
[all …]
/openbmc/linux/net/bluetooth/
H A Daf_bluetooth.c77 bt_slock_key_strings[proto], &bt_slock_key[proto], in bt_sock_reclassify_lock()
78 bt_key_strings[proto], &bt_lock_key[proto]); in bt_sock_reclassify_lock()
86 if (proto < 0 || proto >= BT_MAX_PROTO) in bt_sock_register()
91 if (bt_proto[proto]) in bt_sock_register()
94 bt_proto[proto] = ops; in bt_sock_register()
104 if (proto < 0 || proto >= BT_MAX_PROTO) in bt_sock_unregister()
121 if (proto < 0 || proto >= BT_MAX_PROTO) in bt_sock_create()
124 if (!bt_proto[proto]) in bt_sock_create()
131 if (bt_proto[proto] && try_module_get(bt_proto[proto]->owner)) { in bt_sock_create()
132 err = bt_proto[proto]->create(net, sock, proto, kern); in bt_sock_create()
[all …]
/openbmc/linux/arch/sh/include/asm/
H A Dchecksum_32.h116 __u32 len, __u8 proto, in csum_tcpudp_nofold() argument
120 unsigned long len_proto = (proto + len) << 8; in csum_tcpudp_nofold()
122 unsigned long len_proto = proto + len; in csum_tcpudp_nofold()
142 __u32 len, __u8 proto, in csum_tcpudp_magic() argument
145 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
160 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
186 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/openbmc/linux/arch/arm/include/asm/
H A Dchecksum.h101 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
103 u32 lenprot = len + proto; in csum_tcpudp_nofold()
138 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument
140 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
157 __be32 proto, __wsum sum);
161 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
164 htonl(proto), sum)); in csum_ipv6_magic()
/openbmc/linux/net/unix/
H A Dunix_bpf.c97 static struct proto *unix_dgram_prot_saved __read_mostly;
99 static struct proto unix_dgram_bpf_prot;
101 static struct proto *unix_stream_prot_saved __read_mostly;
103 static struct proto unix_stream_bpf_prot;
105 static void unix_dgram_bpf_rebuild_protos(struct proto *prot, const struct proto *base) in unix_dgram_bpf_rebuild_protos()
113 static void unix_stream_bpf_rebuild_protos(struct proto *prot, in unix_stream_bpf_rebuild_protos()
114 const struct proto *base) in unix_stream_bpf_rebuild_protos()
123 static void unix_dgram_bpf_check_needs_rebuild(struct proto *ops) in unix_dgram_bpf_check_needs_rebuild()
135 static void unix_stream_bpf_check_needs_rebuild(struct proto *ops) in unix_stream_bpf_check_needs_rebuild()
/openbmc/linux/arch/xtensa/include/asm/
H A Dchecksum.h124 __u32 len, __u8 proto, in csum_tcpudp_nofold() argument
129 unsigned long len_proto = (len + proto) << 8; in csum_tcpudp_nofold()
131 unsigned long len_proto = len + proto; in csum_tcpudp_nofold()
157 __u32 len, __u8 proto, in csum_tcpudp_magic() argument
160 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
176 __u32 len, __u8 proto, in csum_ipv6_magic() argument
230 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
/openbmc/linux/drivers/tty/hvc/
H A Dhvc_vio.c239 switch(hvterm_privs[0]->proto) { in udbg_hvc_putc()
263 switch(hvterm_privs[0]->proto) { in udbg_hvc_getc_poll()
302 hv_protocol_t proto; in hvc_vio_probe() local
310 proto = HV_PROTOCOL_RAW; in hvc_vio_probe()
313 proto = HV_PROTOCOL_HVSI; in hvc_vio_probe()
343 pv->proto = proto; in hvc_vio_probe()
403 hvterm_priv0.proto = HV_PROTOCOL_RAW; in hvc_vio_init_early()
407 hvterm_priv0.proto = HV_PROTOCOL_HVSI; in hvc_vio_init_early()
422 if (hvterm_priv0.proto == HV_PROTOCOL_HVSI) in hvc_vio_init_early()
447 hvterm_priv0.proto = HV_PROTOCOL_RAW; in udbg_init_debug_lpar()
[all …]
/openbmc/linux/arch/m68k/include/asm/
H A Dchecksum.h83 unsigned short proto, __wsum sum) in csum_tcpudp_nofold() argument
91 : "g" (daddr), "1" (saddr), "d" (len + proto), in csum_tcpudp_nofold()
103 unsigned short proto, __wsum sum) in csum_tcpudp_magic() argument
105 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
121 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
143 : "a" (saddr), "a" (daddr), "d" (len + proto), in csum_ipv6_magic()
/openbmc/linux/arch/parisc/include/asm/
H A Dchecksum.h75 __u32 len, __u8 proto, in csum_tcpudp_nofold() argument
84 : "r" (daddr), "r"(saddr), "r"(proto+len), "0"(sum)); in csum_tcpudp_nofold()
93 __u32 len, __u8 proto, in csum_tcpudp_magic() argument
96 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
112 __u32 len, __u8 proto, in csum_ipv6_magic() argument
117 len += proto; /* add 16-bit proto + len */ in csum_ipv6_magic()
/openbmc/linux/drivers/net/arcnet/
H A Darcnet.c268 if (arc_raw_proto == proto) in arcnet_unregister_proto()
647 struct ArcProto *proto; in arcnet_header() local
661 proto = arc_raw_proto; in arcnet_header()
663 proto->suffix); in arcnet_header()
684 if (proto == &arc_proto_null && arc_bcast_proto != proto) { in arcnet_header()
700 struct ArcProto *proto; in arcnet_send_packet() local
711 proto = arc_proto_map[soft->proto]; in arcnet_send_packet()
738 !proto->ack_tx) { in arcnet_send_packet()
745 lp->outgoing.proto = proto; in arcnet_send_packet()
753 proto->suffix); in arcnet_send_packet()
[all …]
/openbmc/linux/arch/sparc/include/asm/
H A Dchecksum_64.h67 __u32 len, __u8 proto, in csum_tcpudp_nofold() argument
76 : "r" (daddr), "r" (proto + len), "0" (sum), "1" (saddr) in csum_tcpudp_nofold()
86 __u32 len, __u8 proto, in csum_tcpudp_magic() argument
89 return csum_fold(csum_tcpudp_nofold(saddr,daddr,len,proto,sum)); in csum_tcpudp_magic()
96 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
120 "r"(htonl(proto)), "r"(sum) in csum_ipv6_magic()

12345678910>>...45