/kernel/linux/linux-5.10/net/ax25/ |
D | ax25_iface.c | 57 struct ax25_protocol *protocol; in ax25_protocol_release() local 60 protocol = protocol_list; in ax25_protocol_release() 61 if (protocol == NULL) in ax25_protocol_release() 64 if (protocol->pid == pid) { in ax25_protocol_release() 65 protocol_list = protocol->next; in ax25_protocol_release() 69 while (protocol != NULL && protocol->next != NULL) { in ax25_protocol_release() 70 if (protocol->next->pid == pid) { in ax25_protocol_release() 71 protocol->next = protocol->next->next; in ax25_protocol_release() 75 protocol = protocol->next; in ax25_protocol_release() 161 struct ax25_protocol *protocol; in ax25_protocol_function() local [all …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-5.10/include/trace/events/ |
D | smbus.h | 26 char read_write, u8 command, int protocol, 28 TP_ARGS(adap, addr, flags, read_write, command, protocol, data), 30 protocol == I2C_SMBUS_PROC_CALL || 31 protocol == I2C_SMBUS_BLOCK_PROC_CALL), 38 __field(__u32, protocol ) 45 __entry->protocol = protocol; 47 switch (protocol) { 74 __print_symbolic(__entry->protocol, 94 char read_write, u8 command, int protocol), 95 TP_ARGS(adap, addr, flags, read_write, command, protocol), [all …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
D | tc_flower.sh | 41 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 43 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 55 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 56 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 67 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 69 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 82 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 91 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 93 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
D | nf_socket_ipv4.c | 20 extract_icmp4_fields(const struct sk_buff *skb, u8 *protocol, in extract_icmp4_fields() argument 43 if (inside_iph->protocol != IPPROTO_TCP && in extract_icmp4_fields() 44 inside_iph->protocol != IPPROTO_UDP) in extract_icmp4_fields() 56 *protocol = inside_iph->protocol; in extract_icmp4_fields() 67 const u8 protocol, in nf_socket_get_sock_v4() argument 72 switch (protocol) { in nf_socket_get_sock_v4() 91 u8 protocol; in nf_sk_lookup_slow_v4() local 98 if (iph->protocol == IPPROTO_UDP || iph->protocol == IPPROTO_TCP) { in nf_sk_lookup_slow_v4() 103 iph->protocol == IPPROTO_UDP ? in nf_sk_lookup_slow_v4() 108 protocol = iph->protocol; in nf_sk_lookup_slow_v4() [all …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | utils.c | 11 unsigned int dataoff, u8 protocol) in nf_ip_checksum() argument 20 if ((protocol != IPPROTO_TCP && protocol != IPPROTO_UDP && in nf_ip_checksum() 23 skb->len - dataoff, protocol, in nf_ip_checksum() 30 if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP) in nf_ip_checksum() 35 protocol, 0); in nf_ip_checksum() 45 u8 protocol) in nf_ip_checksum_partial() argument 53 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial() 56 skb->csum = csum_tcpudp_nofold(iph->saddr, iph->daddr, protocol, in nf_ip_checksum_partial() 65 unsigned int dataoff, u8 protocol) in nf_ip6_checksum() argument 75 skb->len - dataoff, protocol, in nf_ip6_checksum() [all …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
D | tc_flower.sh | 100 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 109 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 124 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 132 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 146 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \ 148 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \ 157 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower 165 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \ 174 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower 182 tc filter del dev $h2 ingress protocol ip pref 3 handle 103 flower [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_restrictions.sh | 44 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 56 tc filter del block 22 protocol ip pref 1 handle 101 flower 61 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 70 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 74 tc filter del block 22 protocol ip pref 1 handle 101 flower 92 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 105 tc filter del block 22 protocol ip pref 1 handle 101 flower 110 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 120 tc filter add block 22 protocol ip pref 1 handle 101 flower \ 127 tc filter add block 22 protocol ip pref 1 handle 101 flower \ [all …]
|
/kernel/linux/linux-4.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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | xfrm4_protocol.c | 26 static inline struct xfrm4_protocol __rcu **proto_handlers(u8 protocol) in proto_handlers() argument 28 switch (protocol) { in proto_handlers() 45 static int xfrm4_rcv_cb(struct sk_buff *skb, u8 protocol, int err) in xfrm4_rcv_cb() argument 49 struct xfrm4_protocol __rcu **head = proto_handlers(protocol); in xfrm4_rcv_cb() 206 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() argument 208 switch (protocol) { in netproto() 221 unsigned char protocol) in xfrm4_protocol_register() argument 229 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm4_protocol_register() 234 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm4_protocol_register() 238 for (pprev = proto_handlers(protocol); in xfrm4_protocol_register() [all …]
|
D | protocol.c | 32 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument 36 protocol); in inet_add_protocol() 40 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol() 45 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument 47 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload() 52 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument 56 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol() 65 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument 69 ret = (cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_del_offload()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/usb/ |
D | audio.h | 183 int protocol) in uac_mixer_unit_wChannelConfig() argument 185 if (protocol == UAC_VERSION_1) in uac_mixer_unit_wChannelConfig() 195 int protocol) in uac_mixer_unit_iChannelNames() argument 197 return (protocol == UAC_VERSION_1) ? in uac_mixer_unit_iChannelNames() 202 int protocol) in uac_mixer_unit_bmControls() argument 204 switch (protocol) { in uac_mixer_unit_bmControls() 266 int protocol) in uac_processing_unit_wChannelConfig() argument 268 if (protocol == UAC_VERSION_1) in uac_processing_unit_wChannelConfig() 278 int protocol) in uac_processing_unit_iChannelNames() argument 280 return (protocol == UAC_VERSION_1) ? in uac_processing_unit_iChannelNames() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-4.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 …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | xfrm6_protocol.c | 27 static inline struct xfrm6_protocol __rcu **proto_handlers(u8 protocol) in proto_handlers() argument 29 switch (protocol) { in proto_handlers() 46 static int xfrm6_rcv_cb(struct sk_buff *skb, u8 protocol, int err) in xfrm6_rcv_cb() argument 50 struct xfrm6_protocol __rcu **head = proto_handlers(protocol); in xfrm6_rcv_cb() 55 for_each_protocol_rcu(*proto_handlers(protocol), handler) in xfrm6_rcv_cb() 219 static inline const struct inet6_protocol *netproto(unsigned char protocol) in netproto() argument 221 switch (protocol) { in netproto() 234 unsigned char protocol) in xfrm6_protocol_register() argument 242 if (!proto_handlers(protocol) || !netproto(protocol)) in xfrm6_protocol_register() 247 if (!rcu_dereference_protected(*proto_handlers(protocol), in xfrm6_protocol_register() [all …]
|
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/ |
D | It_posix_mutex_008.c | 51 int protocol; in Testcase() local 59 protocol = mta.protocol; in Testcase() 61 …while (protocol == PTHREAD_PRIO_NONE || protocol == PTHREAD_PRIO_INHERIT || protocol == PTHREAD_PR… in Testcase() 62 protocol--; in Testcase() 66 ret = pthread_mutexattr_setprotocol(&mta, protocol); in Testcase()
|