Home
last modified time | relevance | path

Searched refs:protocol (Results 1 - 25 of 2967) sorted by relevance

12345678910>>...119

/kernel/linux/linux-5.10/include/trace/events/
H A Dsmbus.h26 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),
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dsmbus.h26 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),
[all...]
/kernel/linux/linux-5.10/net/ax25/
H A Dax25_iface.c57 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 in ax25_protocol_release()
161 struct ax25_protocol *protocol; ax25_protocol_function() local
202 struct ax25_protocol *protocol; ax25_protocol_is_registered() local
[all...]
/kernel/linux/linux-6.6/net/ax25/
H A Dax25_iface.c57 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 in ax25_protocol_release()
161 struct ax25_protocol *protocol; ax25_protocol_function() local
202 struct ax25_protocol *protocol; ax25_protocol_is_registered() local
[all...]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
H A Dnf_socket_ipv4.c20 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()
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 in nf_sk_lookup_slow_v4()
66 nf_socket_get_sock_v4(struct net *net, struct sk_buff *skb, const int doff, const u8 protocol, const __be32 saddr, const __be32 daddr, const __be16 sport, const __be16 dport, const struct net_device *in) nf_socket_get_sock_v4() argument
[all...]
/kernel/linux/linux-6.6/net/ipv4/netfilter/
H A Dnf_socket_ipv4.c20 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()
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 in nf_sk_lookup_slow_v4()
66 nf_socket_get_sock_v4(struct net *net, struct sk_buff *skb, const int doff, const u8 protocol, const __be32 saddr, const __be32 daddr, const __be16 sport, const __be16 dport, const struct net_device *in) nf_socket_get_sock_v4() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh44 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 i
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dutils.c11 unsigned int dataoff, u8 protocol) in nf_ip_checksum()
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()
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()
10 nf_ip_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol) nf_ip_checksum() argument
43 nf_ip_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol) nf_ip_checksum_partial() argument
64 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol) nf_ip6_checksum() argument
97 nf_ip6_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol) nf_ip6_checksum_partial() argument
123 nf_checksum(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, u8 protocol, unsigned short family) nf_checksum() argument
142 nf_checksum_partial(struct sk_buff *skb, unsigned int hook, unsigned int dataoff, unsigned int len, u8 protocol, unsigned short family) nf_checksum_partial() argument
[all...]
/kernel/linux/linux-5.10/drivers/pnp/
H A Dcore.c3 * core.c - contains all core device and protocol registration functions
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()
54 * pnp_register_protocol - adds a pnp protocol to the pnp layer
55 * @protocol: pointer to the corresponding pnp_protocol structure
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 in pnp_register_protocol()
97 pnp_unregister_protocol(struct pnp_protocol *protocol) pnp_unregister_protocol() argument
141 pnp_alloc_dev(struct pnp_protocol *protocol, int id, const char *pnpid) pnp_alloc_dev() argument
[all...]
/kernel/linux/linux-6.6/drivers/pnp/
H A Dcore.c3 * core.c - contains all core device and protocol registration functions
34 static void pnp_remove_protocol(struct pnp_protocol *protocol) in pnp_remove_protocol() argument
37 list_del(&protocol->protocol_list); in pnp_remove_protocol()
42 * pnp_register_protocol - adds a pnp protocol to the pnp layer
43 * @protocol: pointer to the corresponding pnp_protocol structure
47 int pnp_register_protocol(struct pnp_protocol *protocol) in pnp_register_protocol() argument
52 INIT_LIST_HEAD(&protocol->devices); in pnp_register_protocol()
53 INIT_LIST_HEAD(&protocol->cards); in pnp_register_protocol()
67 protocol->number = nodenum; in pnp_register_protocol()
68 dev_set_name(&protocol in pnp_register_protocol()
85 pnp_unregister_protocol(struct pnp_protocol *protocol) pnp_unregister_protocol() argument
129 pnp_alloc_dev(struct pnp_protocol *protocol, int id, const char *pnpid) pnp_alloc_dev() argument
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
H A Dtc_flower.sh41 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 i
[all...]
H A Dtc_actions.sh54 local protocol=$2
60 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
69 tc filter add dev $swp1 ingress protocol $protocol pref 1 handle 101 \
79 tc filter del dev $swp1 ingress protocol $protocol pref 1 handle 101 \
81 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
90 tc filter add dev $swp1 ingress protocol ip pref 2 handle 102 flower \
99 tc filter add dev $swp1 ingress protocol ip pref 1 handle 101 flower \
111 tc filter del dev $swp1 ingress protocol i
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dtc_flower.sh44 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
46 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
58 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
59 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
70 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
72 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
84 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
85 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 i
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Dxfrm4_protocol.c2 /* xfrm4_protocol.c - Generic xfrm protocol multiplexer.
18 #include <net/protocol.h>
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()
229 if (!proto_handlers(protocol) || !netprot in xfrm4_protocol_register()
220 xfrm4_protocol_register(struct xfrm4_protocol *handler, unsigned char protocol) xfrm4_protocol_register() argument
267 xfrm4_protocol_deregister(struct xfrm4_protocol *handler, unsigned char protocol) xfrm4_protocol_deregister() argument
[all...]
H A Dprotocol.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * INET protocol dispatch tables.
25 #include <net/protocol.h>
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 inet_del_offload(const struct net_offload *prot, unsigned char protocol) inet_del_offload() argument
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dxfrm4_protocol.c2 /* xfrm4_protocol.c - Generic xfrm protocol multiplexer.
18 #include <net/protocol.h>
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()
203 static inline const struct net_protocol *netproto(unsigned char protocol) in netproto() argument
205 switch (protocol) { in netproto()
218 unsigned char protocol) in xfrm4_protocol_register()
226 if (!proto_handlers(protocol) || !netprot in xfrm4_protocol_register()
217 xfrm4_protocol_register(struct xfrm4_protocol *handler, unsigned char protocol) xfrm4_protocol_register() argument
264 xfrm4_protocol_deregister(struct xfrm4_protocol *handler, unsigned char protocol) xfrm4_protocol_deregister() argument
[all...]
H A Dprotocol.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * INET protocol dispatch tables.
25 #include <net/protocol.h>
32 int inet_add_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_add_protocol() argument
34 return !cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_add_protocol()
39 int inet_add_offload(const struct net_offload *prot, unsigned char protocol) in inet_add_offload() argument
41 return !cmpxchg((const struct net_offload **)&inet_offloads[protocol], in inet_add_offload()
46 int inet_del_protocol(const struct net_protocol *prot, unsigned char protocol) in inet_del_protocol() argument
50 ret = (cmpxchg((const struct net_protocol **)&inet_protos[protocol], in inet_del_protocol()
59 int inet_del_offload(const struct net_offload *prot, unsigned char protocol) in inet_del_offload() argument
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dvirtio_net.h10 static inline bool virtio_net_hdr_match_proto(__be16 protocol, __u8 gso_type) in virtio_net_hdr_match_proto() argument
14 return protocol == cpu_to_be16(ETH_P_IP); in virtio_net_hdr_match_proto()
16 return protocol == cpu_to_be16(ETH_P_IPV6); in virtio_net_hdr_match_proto()
18 return protocol == cpu_to_be16(ETH_P_IP) || in virtio_net_hdr_match_proto()
19 protocol == cpu_to_be16(ETH_P_IPV6); in virtio_net_hdr_match_proto()
28 if (skb->protocol) in virtio_net_hdr_set_proto()
34 skb->protocol = cpu_to_be16(ETH_P_IP); in virtio_net_hdr_set_proto()
37 skb->protocol = cpu_to_be16(ETH_P_IPV6); in virtio_net_hdr_set_proto()
106 if (!skb->protocol) { in virtio_net_hdr_to_skb()
107 __be16 protocol in virtio_net_hdr_to_skb() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Dtc_flower.sh101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
175 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
183 tc filter del dev $h2 ingress protocol i
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Dtc_flower.sh101 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
110 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
125 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
133 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
147 tc filter add dev $h2 ingress protocol ip pref 1 handle 101 flower \
149 tc filter add dev $h2 ingress protocol ip pref 2 handle 102 flower \
158 tc filter del dev $h2 ingress protocol ip pref 1 handle 101 flower
166 tc filter add dev $h2 ingress protocol ip pref 3 handle 103 flower \
175 tc filter del dev $h2 ingress protocol ip pref 2 handle 102 flower
183 tc filter del dev $h2 ingress protocol i
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_restrictions.sh47 tc filter add block 22 protocol ip pref 1 handle 101 flower \
59 tc filter del block 22 protocol ip pref 1 handle 101 flower
64 tc filter add block 22 protocol ip pref 1 handle 101 flower \
73 tc filter add block 22 protocol ip pref 1 handle 101 flower \
77 tc filter del block 22 protocol ip pref 1 handle 101 flower
95 tc filter add block 22 protocol ip pref 1 handle 101 flower \
108 tc filter del block 22 protocol ip pref 1 handle 101 flower
113 tc filter add block 22 protocol ip pref 1 handle 101 flower \
123 tc filter add block 22 protocol ip pref 1 handle 101 flower \
130 tc filter add block 22 protocol i
[all...]
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
H A DIt_posix_mutex_008.c44 * [ENOTSUP] The value specified by protocol is an unsupported value.
46 * [EINVAL] 'protocol' is invalid
51 int protocol; in Testcase() local
59 protocol = mta.protocol; in Testcase()
61 while (protocol == PTHREAD_PRIO_NONE || protocol == PTHREAD_PRIO_INHERIT || protocol == PTHREAD_PRIO_PROTECT) { in Testcase()
62 protocol--; in Testcase()
65 /* Set the protocol t in Testcase()
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dprotocol.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * PF_INET6 protocol dispatch tables.
22 #include <net/protocol.h>
28 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument
30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol()
35 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument
39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol()
52 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument
54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload()
59 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument
[all...]
H A Dxfrm6_protocol.c2 /* xfrm6_protocol.c - Generic xfrm protocol multiplexer for ipv6.
19 #include <net/protocol.h>
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()
233 xfrm6_protocol_register(struct xfrm6_protocol *handler, unsigned char protocol) xfrm6_protocol_register() argument
280 xfrm6_protocol_deregister(struct xfrm6_protocol *handler, unsigned char protocol) xfrm6_protocol_deregister() argument
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dprotocol.c3 * INET An implementation of the TCP/IP protocol suite for the LINUX
7 * PF_INET6 protocol dispatch tables.
22 #include <net/protocol.h>
28 int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_add_protocol() argument
30 return !cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_add_protocol()
35 int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol) in inet6_del_protocol() argument
39 ret = (cmpxchg((const struct inet6_protocol **)&inet6_protos[protocol], in inet6_del_protocol()
52 int inet6_add_offload(const struct net_offload *prot, unsigned char protocol) in inet6_add_offload() argument
54 return !cmpxchg((const struct net_offload **)&inet6_offloads[protocol], in inet6_add_offload()
59 int inet6_del_offload(const struct net_offload *prot, unsigned char protocol) in inet6_del_offload() argument
[all...]

Completed in 15 milliseconds

12345678910>>...119