Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 114) sorted by relevance

12345

/include/net/
Dproto_memory.h17 proto_memory_pressure(const struct proto *prot) in proto_memory_pressure()
42 proto_memory_allocated(const struct proto *prot) in proto_memory_allocated()
53 static inline void proto_memory_pcpu_drain(struct proto *proto) in proto_memory_pcpu_drain() argument
55 int val = this_cpu_xchg(*proto->per_cpu_fw_alloc, 0); in proto_memory_pcpu_drain()
58 atomic_long_add(val, proto->memory_allocated); in proto_memory_pcpu_drain()
64 struct proto *proto = sk->sk_prot; in sk_memory_allocated_add() local
66 val = this_cpu_add_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_add()
69 proto_memory_pcpu_drain(proto); in sk_memory_allocated_add()
75 struct proto *proto = sk->sk_prot; in sk_memory_allocated_sub() local
77 val = this_cpu_sub_return(*proto->per_cpu_fw_alloc, val); in sk_memory_allocated_sub()
[all …]
Dtun_proto.h16 static inline __be16 tun_p_to_eth_p(u8 proto) in tun_p_to_eth_p() argument
18 switch (proto) { in tun_p_to_eth_p()
33 static inline u8 tun_p_from_eth_p(__be16 proto) in tun_p_from_eth_p() argument
35 switch (proto) { in tun_p_from_eth_p()
Dtransp_v6.h9 extern struct proto rawv6_prot;
10 extern struct proto udpv6_prot;
11 extern struct proto udplitev6_prot;
12 extern struct proto tcpv6_prot;
13 extern struct proto pingv6_prot;
Dncsi.h34 int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid);
35 int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid);
42 static inline int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) in ncsi_vlan_rx_add_vid() argument
47 static inline int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) in ncsi_vlan_rx_kill_vid() argument
Dstp.h14 int stp_proto_register(const struct stp_proto *proto);
15 void stp_proto_unregister(const struct stp_proto *proto);
Dip6_checksum.h36 __u32 len, __u8 proto, __wsum csum);
39 static inline __wsum ip6_compute_pseudo(struct sk_buff *skb, int proto) in ip6_compute_pseudo() argument
43 skb->len, proto, 0)); in ip6_compute_pseudo()
86 int udp6_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto);
Desp.h15 static inline void esp_output_fill_trailer(u8 *tail, int tfclen, int plen, __u8 proto) in esp_output_fill_trailer() argument
28 tail[plen - 1] = proto; in esp_output_fill_trailer()
40 __u8 proto; member
/include/trace/
Ddefine_trace.h27 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
28 DEFINE_TRACE(name, PARAMS(proto), PARAMS(args))
31 #define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \ argument
33 PARAMS(proto), \
40 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
42 DEFINE_TRACE_FN(name, reg, unreg, PARAMS(proto), PARAMS(args))
45 #define TRACE_EVENT_FN_COND(name, proto, args, cond, tstruct, \ argument
47 DEFINE_TRACE_FN(name, reg, unreg, PARAMS(proto), PARAMS(args))
50 #define TRACE_EVENT_NOP(name, proto, args, struct, assign, print) argument
53 #define DEFINE_EVENT_NOP(template, name, proto, args) argument
[all …]
Dbpf_probe.h45 #define __BPF_DECLARE_TRACE(call, proto, args) \ argument
47 __bpf_trace_##call(void *__data, proto) \
53 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
54 __BPF_DECLARE_TRACE(call, PARAMS(proto), PARAMS(args))
61 #define __DEFINE_EVENT(template, call, proto, args, size) \ argument
66 typedef void (*btf_trace_##call)(void *__data, proto); \
82 #define __CHECK_WRITABLE_BUF_SIZE(call, proto, args, size) \ argument
89 FIRST(proto); \
94 #define DEFINE_EVENT_WRITABLE(template, call, proto, args, size) \ argument
95 __CHECK_WRITABLE_BUF_SIZE(call, PARAMS(proto), PARAMS(args), size) \
[all …]
Dtrace_events.h39 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ argument
41 PARAMS(proto), \
46 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
51 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument
61 #define DEFINE_EVENT(template, name, proto, args) \ argument
66 #define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg) \ argument
67 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
70 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
71 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
75 #define TRACE_EVENT_FN(name, proto, args, tstruct, \ argument
[all …]
Dtrace_custom_events.h27 #define TRACE_CUSTOM_EVENT(name, proto, args, tstruct, assign, print) \ argument
29 PARAMS(proto), \
34 DEFINE_CUSTOM_EVENT(name, name, PARAMS(proto), PARAMS(args));
41 #define DECLARE_CUSTOM_EVENT_CLASS(name, proto, args, tstruct, assign, print) \ argument
51 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) \ argument
62 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
68 #define DEFINE_CUSTOM_EVENT(template, name, proto, args) argument
77 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
108 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, func, print) \ argument
120 #define DECLARE_CUSTOM_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
[all …]
Dperf.h16 #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ argument
18 perf_trace_##call(void *__data, proto) \
64 #define DEFINE_EVENT(template, call, proto, args) \ argument
72 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ argument
73 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
/include/linux/
Dtracepoint.h248 #define __DECLARE_TRACE_RCU(name, proto, args, cond) \ argument
249 static inline void trace_##name##_rcuidle(proto) \
257 #define __DECLARE_TRACE_RCU(name, proto, args, cond) argument
265 #define DEFINE_RUST_DO_TRACE(name, proto, args) argument
266 #define __DEFINE_RUST_DO_TRACE(name, proto, args) \ argument
267 notrace void rust_do_trace_##name(proto) \
283 #define __DECLARE_TRACE(name, proto, args, cond, data_proto) \ argument
287 extern void rust_do_trace_##name(proto); \
288 static inline void __rust_do_trace_##name(proto) \
294 static inline void trace_##name(proto) \
[all …]
Dif_pppox.h50 } proto; member
53 #define pppoe_dev proto.pppoe.dev
54 #define pppoe_ifindex proto.pppoe.ifindex
55 #define pppoe_pa proto.pppoe.pa
56 #define pppoe_relay proto.pppoe.relay
Dhdlc.h44 const struct hdlc_proto *proto; member
64 void register_hdlc_protocol(struct hdlc_proto *proto);
65 void unregister_hdlc_protocol(struct hdlc_proto *proto);
96 int attach_hdlc_protocol(struct net_device *dev, struct hdlc_proto *proto,
109 if (hdlc->proto->type_trans) in hdlc_type_trans()
110 return hdlc->proto->type_trans(skb, dev); in hdlc_type_trans()
Dppp_defs.h23 static inline bool ppp_proto_is_valid(u16 proto) in ppp_proto_is_valid() argument
25 return !!((proto & 0x0101) == 0x0001); in ppp_proto_is_valid()
Dnet.h260 int __sock_create(struct net *net, int family, int type, int proto,
262 int sock_create(int family, int type, int proto, struct socket **res);
263 int sock_create_kern(struct net *net, int family, int type, int proto, struct socket **res);
264 int sock_create_lite(int family, int type, int proto, struct socket **res);
369 #define MODULE_ALIAS_NETPROTO(proto) \ argument
370 MODULE_ALIAS("net-pf-" __stringify(proto))
372 #define MODULE_ALIAS_NET_PF_PROTO(pf, proto) \ argument
373 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto))
375 #define MODULE_ALIAS_NET_PF_PROTO_TYPE(pf, proto, type) \ argument
376 MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \
[all …]
/include/linux/netfilter/ipset/
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()
/include/trace/hooks/
Dvendor_hooks.h22 #define DEFINE_HOOK_FN(_name, _reg, _unreg, proto, args) \ argument
26 int __traceiter_##_name(void *__data, proto); \
38 int __traceiter_##_name(void *__data, proto) \
47 ((void(*)(void *, proto))(it_func))(__data, args); \
55 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) \ argument
56 DEFINE_HOOK_FN(name, NULL, NULL, PARAMS(proto), PARAMS(args))
85 #define __DECLARE_RESTRICTED_HOOK(name, proto, args, cond, data_proto) \ argument
89 static inline void trace_##name(proto) \
110 #define DECLARE_RESTRICTED_HOOK(name, proto, args, cond) \ argument
111 __DECLARE_RESTRICTED_HOOK(name, PARAMS(proto), PARAMS(args), \
[all …]
/include/uapi/linux/
Dif_arcnet.h60 __u8 proto; /* protocol ID field - varies */ member
71 __u8 proto; /* ARC_P_RFC1051_ARP/RFC1051_IP */ member
81 __u8 proto; /* Always ARC_P_ETHER */ member
88 __u8 proto; member
/include/trace/events/
Dbpf_test_run.h46 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument
47 DEFINE_EVENT_WRITABLE(template, call, PARAMS(proto), \
51 #define BPF_TEST_RUN_DEFINE_EVENT(template, call, proto, args, size) \ argument
52 DEFINE_EVENT(template, call, PARAMS(proto), PARAMS(args))
Dfib6.h32 __field( u8, proto )
55 __entry->proto = flp->flowi6_proto;
56 if (__entry->proto == IPPROTO_TCP ||
57 __entry->proto == IPPROTO_UDP) {
80 __entry->tb_id, __entry->oif, __entry->iif, __entry->proto,
/include/asm-generic/
Dchecksum.h47 __u8 proto, __wsum sum);
53 __u8 proto, __wsum sum) in csum_tcpudp_magic() argument
55 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/include/linux/mtd/
Dspi-nor.h178 static inline bool spi_nor_protocol_is_dtr(enum spi_nor_protocol proto) in spi_nor_protocol_is_dtr() argument
180 return !!(proto & SNOR_PROTO_IS_DTR); in spi_nor_protocol_is_dtr()
183 static inline u8 spi_nor_get_protocol_inst_nbits(enum spi_nor_protocol proto) in spi_nor_get_protocol_inst_nbits() argument
185 return ((unsigned long)(proto & SNOR_PROTO_INST_MASK)) >> in spi_nor_get_protocol_inst_nbits()
189 static inline u8 spi_nor_get_protocol_addr_nbits(enum spi_nor_protocol proto) in spi_nor_get_protocol_addr_nbits() argument
191 return ((unsigned long)(proto & SNOR_PROTO_ADDR_MASK)) >> in spi_nor_get_protocol_addr_nbits()
195 static inline u8 spi_nor_get_protocol_data_nbits(enum spi_nor_protocol proto) in spi_nor_get_protocol_data_nbits() argument
197 return ((unsigned long)(proto & SNOR_PROTO_DATA_MASK)) >> in spi_nor_get_protocol_data_nbits()
201 static inline u8 spi_nor_get_protocol_width(enum spi_nor_protocol proto) in spi_nor_get_protocol_width() argument
203 return spi_nor_get_protocol_data_nbits(proto); in spi_nor_get_protocol_width()
/include/net/netfilter/
Dnf_reject.h9 __u8 proto) in nf_reject_verify_csum() argument
14 switch (proto) { in nf_reject_verify_csum()

12345