| /Linux-v4.19/net/ax25/ |
| D | ax25_iface.c | 60 struct ax25_protocol *protocol; in ax25_protocol_release() local 63 protocol = protocol_list; in ax25_protocol_release() 64 if (protocol == NULL) in ax25_protocol_release() 67 if (protocol->pid == pid) { in ax25_protocol_release() 68 protocol_list = protocol->next; in ax25_protocol_release() 72 while (protocol != NULL && protocol->next != NULL) { in ax25_protocol_release() 73 if (protocol->next->pid == pid) { in ax25_protocol_release() 74 protocol->next = protocol->next->next; in ax25_protocol_release() 78 protocol = protocol->next; in ax25_protocol_release() 164 struct ax25_protocol *protocol; in ax25_protocol_function() local [all …]
|
| /Linux-v4.19/include/trace/events/ |
| D | smbus.h | 30 char read_write, u8 command, int protocol, 32 TP_ARGS(adap, addr, flags, read_write, command, protocol, data), 34 protocol == I2C_SMBUS_PROC_CALL || 35 protocol == I2C_SMBUS_BLOCK_PROC_CALL), 42 __field(__u32, protocol ) 49 __entry->protocol = protocol; 51 switch (protocol) { 78 __print_symbolic(__entry->protocol, 98 char read_write, u8 command, int protocol), 99 TP_ARGS(adap, addr, flags, read_write, command, protocol), [all …]
|
| /Linux-v4.19/drivers/pnp/ |
| D | core.c | 46 static void pnp_remove_protocol(struct pnp_protocol *protocol) in pnp_remove_protocol() argument 49 list_del(&protocol->protocol_list); in pnp_remove_protocol() 59 int pnp_register_protocol(struct pnp_protocol *protocol) in pnp_register_protocol() argument 64 INIT_LIST_HEAD(&protocol->devices); in pnp_register_protocol() 65 INIT_LIST_HEAD(&protocol->cards); in pnp_register_protocol() 79 protocol->number = nodenum; in pnp_register_protocol() 80 dev_set_name(&protocol->dev, "pnp%d", nodenum); in pnp_register_protocol() 82 list_add_tail(&protocol->protocol_list, &pnp_protocols); in pnp_register_protocol() 86 ret = device_register(&protocol->dev); in pnp_register_protocol() 88 pnp_remove_protocol(protocol); in pnp_register_protocol() [all …]
|
| /Linux-v4.19/net/ipv4/netfilter/ |
| D | nf_socket_ipv4.c | 24 extract_icmp4_fields(const struct sk_buff *skb, u8 *protocol, in extract_icmp4_fields() argument 55 if (inside_iph->protocol != IPPROTO_TCP && in extract_icmp4_fields() 56 inside_iph->protocol != IPPROTO_UDP) in extract_icmp4_fields() 68 *protocol = inside_iph->protocol; in extract_icmp4_fields() 79 const u8 protocol, in nf_socket_get_sock_v4() argument 84 switch (protocol) { in nf_socket_get_sock_v4() 103 u8 uninitialized_var(protocol); in nf_sk_lookup_slow_v4() 110 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) { in nf_sk_lookup_slow_v4() 115 iph->protocol == IPPROTO_UDP ? in nf_sk_lookup_slow_v4() 120 protocol = iph->protocol; in nf_sk_lookup_slow_v4() [all …]
|
| /Linux-v4.19/tools/testing/selftests/net/forwarding/ |
| D | tc_flower.sh | 40 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 42 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 54 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 55 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 66 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 68 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 80 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 81 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 90 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 92 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
| D | tc_chains.sh | 38 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 47 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 57 tc filter add dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 59 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 61 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 77 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 78 tc filter del dev $h2 ingress chain 1 protocol ip pref 1 handle 1101 \ 128 tc chain add dev $h2 ingress protocol ip \ 130 tc chain add dev $h2 ingress chain 1 protocol ip \ [all …]
|
| D | tc_actions.sh | 56 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 65 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 75 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 76 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 85 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \ 94 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 106 tc filter del dev $swp1 ingress protocol ip pref 2 handle 102 flower 107 tc filter del dev $swp1 ingress protocol ip pref 1 handle 101 flower 120 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \ 122 tc filter add dev $swp1 ingress protocol ip pref 3 handle 103 flower \ [all …]
|
| /Linux-v4.19/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
| D | tc_flower.sh | 48 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 57 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 72 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 80 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 94 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 96 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 105 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 113 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ 122 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 130 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower [all …]
|
| /Linux-v4.19/net/netfilter/ |
| D | utils.c | 11 unsigned int dataoff, u8 protocol) in nf_ip_checksum() argument 20 if ((protocol == 0 && !csum_fold(skb->csum)) || in nf_ip_checksum() 22 skb->len - dataoff, protocol, in nf_ip_checksum() 29 if (protocol == 0) in nf_ip_checksum() 34 protocol, 0); in nf_ip_checksum() 44 u8 protocol) in nf_ip_checksum_partial() argument 52 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial() 55 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol, in nf_ip_checksum_partial() 64 unsigned int dataoff, u8 protocol) in nf_ip6_checksum() argument 74 skb->len - dataoff, protocol, in nf_ip6_checksum() [all …]
|
| /Linux-v4.19/net/ipv6/ |
| D | xfrm6_protocol.c | 30 static inline struct xfrm6_protocol __rcu **proto_handlers(u8 protocol) in proto_handlers() argument 32 switch (protocol) { in proto_handlers() 49 int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) in xfrm6_rcv_cb() argument 53 struct xfrm6_protocol __rcu **head = proto_handlers(protocol); in xfrm6_rcv_cb() 58 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb() 170 static inline const struct inet6_protocol *netproto(unsigned char protocol) in netproto() argument 172 switch (protocol) { in netproto() 185 unsigned char protocol) in xfrm6_protocol_register() argument 193 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_register() 198 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm6_protocol_register() [all …]
|
| D | protocol.c | 32 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument 34 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol() 39 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument 43 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol() 56 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument 58 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload() 63 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument 67 ret = (cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_del_offload()
|
| D | fou6.c | 20 struct flowi6 *fl6, u8 *protocol, __be16 sport) in fou6_build_udp() argument 35 *protocol = IPPROTO_UDP; in fou6_build_udp() 39 u8 *protocol, struct flowi6 *fl6) in fou6_build_header() argument 46 err = __fou_build_header(skb, e, protocol, &sport, type); in fou6_build_header() 50 fou6_build_udp(skb, e, fl6, protocol, sport); in fou6_build_header() 56 u8 *protocol, struct flowi6 *fl6) in gue6_build_header() argument 63 err = __gue_build_header(skb, e, protocol, &sport, type); in gue6_build_header() 67 fou6_build_udp(skb, e, fl6, protocol, sport); in gue6_build_header()
|
| /Linux-v4.19/net/ipv4/ |
| D | xfrm4_protocol.c | 30 static inline struct xfrm4_protocol __rcu **proto_handlers(u8 protocol) in proto_handlers() argument 32 switch (protocol) { in proto_handlers() 49 int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err) in xfrm4_rcv_cb() argument 53 struct xfrm4_protocol __rcu **head = proto_handlers(protocol); in xfrm4_rcv_cb() 196 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() argument 198 switch (protocol) { in netproto() 211 unsigned char protocol) in xfrm4_protocol_register() argument 219 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_register() 224 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm4_protocol_register() 228 for (pprev = proto_handlers(protocol); in xfrm4_protocol_register() [all …]
|
| D | protocol.c | 35 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument 39 protocol); in inet_add_protocol() 43 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol() 48 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument 50 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload() 55 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument 59 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol() 68 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument 72 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
|
| /Linux-v4.19/security/tomoyo/ |
| D | network.c | 26 u8 protocol; member 198 return p1->protocol == p2->protocol && in tomoyo_same_inet_acl() 217 return p1->protocol == p2->protocol && in tomoyo_same_unix_acl() 287 const char *protocol = tomoyo_read_token(param); in tomoyo_write_inet_network() local 290 for (e.protocol = 0; e.protocol < TOMOYO_SOCK_MAX; e.protocol++) in tomoyo_write_inet_network() 291 if (!strcmp(protocol, tomoyo_proto_keyword[e.protocol])) in tomoyo_write_inet_network() 296 if (e.protocol == TOMOYO_SOCK_MAX || !e.perm) in tomoyo_write_inet_network() 332 const char *protocol = tomoyo_read_token(param); in tomoyo_write_unix_network() local 335 for (e.protocol = 0; e.protocol < TOMOYO_SOCK_MAX; e.protocol++) in tomoyo_write_unix_network() 336 if (!strcmp(protocol, tomoyo_proto_keyword[e.protocol])) in tomoyo_write_unix_network() [all …]
|
| /Linux-v4.19/tools/testing/selftests/net/ |
| D | reuseport_bpf.c | 34 int protocol; member 160 fd[i] = socket(p.recv_family, p.protocol, 0); in build_recv_group() 175 if (p.protocol == SOCK_STREAM) { in build_recv_group() 194 const int fd = socket(p.send_family, p.protocol, 0), one = 1; in send_from() 246 if (p.protocol == SOCK_STREAM) { in test_recv_order() 314 fd1 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 317 fd2 = socket(p.recv_family, p.protocol, 0); in test_extra_filter() 370 fd = socket(p.recv_family, p.protocol, 0); in test_filter_no_reuseport() 469 .protocol = SOCK_DGRAM, in main() 476 .protocol = SOCK_DGRAM, in main() [all …]
|
| /Linux-v4.19/Documentation/isdn/ |
| D | README.concap | 1 Description of the "concap" encapsulation protocol interface 5 drivers that need to process an encapsulation protocol. 6 It is assumed that the protocol interacts with a linux network device by 22 The encapsulation protocol used on top of WAN connections or permanent 28 encapsulation protocols. The encapsulation protocol is configured by a 31 depending on the currently configured encapsulation protocol. 34 protocol which is unique to the hardware type of the interface. The LAN 37 encapsulation protocol directly (usually by just providing a hard_header() 43 The configurability of the encapsulation protocol to be used 64 protocol, complexity could be reduced and maintainability could be [all …]
|
| /Linux-v4.19/security/selinux/ |
| D | netport.c | 94 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) in sel_netport_find() argument 101 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find() 148 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument 155 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow() 164 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow() 169 new->psec.protocol = protocol; in sel_netport_sid_slow() 196 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument 201 port = sel_netport_find(protocol, pnum); in sel_netport_sid() 209 return sel_netport_sid_slow(protocol, pnum, sid); in sel_netport_sid()
|
| /Linux-v4.19/drivers/net/ppp/ |
| D | pppox.c | 106 static int pppox_create(struct net *net, struct socket *sock, int protocol, in pppox_create() argument 111 if (protocol < 0 || protocol > PX_MAX_PROTO) in pppox_create() 115 if (!pppox_protos[protocol]) in pppox_create() 116 request_module("net-pf-%d-proto-%d", PF_PPPOX, protocol); in pppox_create() 117 if (!pppox_protos[protocol] || in pppox_create() 118 !try_module_get(pppox_protos[protocol]->owner)) in pppox_create() 121 rc = pppox_protos[protocol]->create(net, sock, kern); in pppox_create() 123 module_put(pppox_protos[protocol]->owner); in pppox_create()
|
| /Linux-v4.19/drivers/bluetooth/ |
| D | Kconfig | 45 bool "Broadcom protocol support" 50 The Broadcom protocol support enables firmware and patchram 53 Say Y here to compile support for Broadcom protocol. 56 bool "Realtek protocol support" 61 The Realtek protocol support enables firmware and configuration 64 Say Y here to compile support for Realtek protocol. 98 bool "UART (H4) protocol support" 101 UART (H4) is serial protocol for communication between Bluetooth 102 device and host. This protocol is required for most Bluetooth devices 105 Say Y here to compile support for HCI UART (H4) protocol. [all …]
|
| /Linux-v4.19/include/uapi/linux/usb/ |
| D | audio.h | 273 int protocol) in uac_mixer_unit_wChannelConfig() argument 275 if (protocol == UAC_VERSION_1) in uac_mixer_unit_wChannelConfig() 286 int protocol) in uac_mixer_unit_iChannelNames() argument 288 return (protocol == UAC_VERSION_1) ? in uac_mixer_unit_iChannelNames() 294 int protocol) in uac_mixer_unit_bmControls() argument 296 switch (protocol) { in uac_mixer_unit_bmControls() 370 int protocol) in uac_processing_unit_wChannelConfig() argument 372 if (protocol == UAC_VERSION_1) in uac_processing_unit_wChannelConfig() 383 int protocol) in uac_processing_unit_iChannelNames() argument 385 return (protocol == UAC_VERSION_1) ? in uac_processing_unit_iChannelNames() [all …]
|
| /Linux-v4.19/drivers/media/rc/img-ir/ |
| D | Kconfig | 30 bool "NEC protocol support" 37 bool "JVC protocol support" 40 Say Y here to enable support for the JVC protocol in the ImgTec 44 bool "Sony protocol support" 47 Say Y here to enable support for the Sony protocol in the ImgTec 51 bool "Sharp protocol support" 54 Say Y here to enable support for the Sharp protocol in the ImgTec 58 bool "Sanyo protocol support" 61 Say Y here to enable support for the Sanyo protocol (used by Sanyo, 65 bool "Philips RC5 protocol support" [all …]
|
| /Linux-v4.19/drivers/block/paride/ |
| D | Kconfig | 21 must also have at least one parallel port protocol driver in your 37 must also have at least one parallel port protocol driver in your 53 You must also have at least one parallel port protocol driver in 67 You must also have at least one parallel port protocol driver in 85 You must also have at least one parallel port protocol driver in 95 comment "Parallel IDE protocol modules" 99 tristate "ATEN EH-100 protocol" 103 protocol. This protocol is used in some inexpensive low performance 106 protocol driver, otherwise you should answer M to build it as a 112 tristate "MicroSolutions backpack (Series 5) protocol" [all …]
|
| /Linux-v4.19/net/netfilter/ipset/ |
| D | ip_set_getport.c | 24 get_port(const struct sk_buff *skb, int protocol, unsigned int protooff, in get_port() argument 27 switch (protocol) { in get_port() 91 *proto = protocol; in get_port() 102 int protocol = iph->protocol; in ip_set_get_ip4_port() local 105 if (protocol <= 0) in ip_set_get_ip4_port() 109 switch (protocol) { in ip_set_get_ip4_port() 121 *proto = protocol; in ip_set_get_ip4_port() 125 return get_port(skb, protocol, protooff, src, port, proto); in ip_set_get_ip4_port()
|
| /Linux-v4.19/net/phonet/ |
| D | af_phonet.c | 40 static const struct phonet_protocol *phonet_proto_get(unsigned int protocol) in phonet_proto_get() argument 44 if (protocol >= PHONET_NPROTO) in phonet_proto_get() 48 pp = rcu_dereference(proto_tab[protocol]); in phonet_proto_get() 63 static int pn_socket_create(struct net *net, struct socket *sock, int protocol, in pn_socket_create() argument 74 if (protocol == 0) { in pn_socket_create() 78 protocol = PN_PROTO_PHONET; in pn_socket_create() 81 protocol = PN_PROTO_PIPE; in pn_socket_create() 88 pnp = phonet_proto_get(protocol); in pn_socket_create() 90 request_module("net-pf-%d-proto-%d", PF_PHONET, protocol) == 0) in pn_socket_create() 91 pnp = phonet_proto_get(protocol); in pn_socket_create() [all …]
|