/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_proto_dccp.c | 413 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 D | nf_conntrack_ovs.c | 13 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 D | xt_multiport.c | 109 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 D | bcdc.c | 103 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 D | reuseport_bpf_cpu.c | 60 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 D | gro.sh | 10 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 D | reuseport_bpf_numa.c | 56 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/net/ipv6/ |
H A D | ip6_offload.c | 65 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 D | fs_ttc.c | 63 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 D | tc_flower_port_range.sh | 77 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 D | tc_flower_l2_miss.sh | 127 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 D | hci_serdev.c | 50 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 D | ip_set_getport.h | 10 __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 D | qeth_l3_sys.c | 20 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/sound/usb/ |
H A D | clock.c | 39 #define GET_VAL(p, proto, field) \ argument 44 u8 type, int proto) in find_uac_clock_desc() argument 50 if (validator(cs, id, proto)) in find_uac_clock_desc() 61 return GET_VAL(cs, proto, bClockID) == id; in validate_clock_source() 68 return GET_VAL(cs, proto, bClockID) == id; in validate_clock_selector() 75 return GET_VAL(cs, proto, bClockID) == id; in validate_clock_multiplier() 83 proto); \ 263 int proto = fmt->protocol; in __uac_clock_find_source() local 277 entity_id = GET_VAL(source, proto, bClockID); in __uac_clock_find_source() 290 pins = GET_VAL(selector, proto, bNrInPins); in __uac_clock_find_source() [all …]
|
/openbmc/linux/net/bluetooth/ |
H A D | af_bluetooth.c | 77 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 D | checksum_32.h | 116 __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 D | checksum.h | 101 __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 D | unix_bpf.c | 97 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 D | checksum.h | 124 __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 D | hvc_vio.c | 239 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 D | checksum.h | 83 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 D | checksum.h | 75 __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 D | arcnet.c | 268 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 D | checksum_64.h | 67 __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()
|