Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 205) sorted by relevance

123456789

/net/ceph/crush/
Dhash.c13 #define crush_hashmix(a, b, c) do { \ argument
14 a = a-b; a = a-c; a = a^(c>>13); \
15 b = b-c; b = b-a; b = b^(a<<8); \
16 c = c-a; c = c-b; c = c^(b>>13); \
17 a = a-b; a = a-c; a = a^(c>>12); \
18 b = b-c; b = b-a; b = b^(a<<16); \
19 c = c-a; c = c-b; c = c^(b>>5); \
20 a = a-b; a = a-c; a = a^(c>>3); \
21 b = b-c; b = b-a; b = b^(a<<10); \
22 c = c-a; c = c-b; c = c^(b>>15); \
[all …]
/net/ceph/
Dceph_hash.c10 #define mix(a, b, c) \ argument
12 a = a - b; a = a - c; a = a ^ (c >> 13); \
13 b = b - c; b = b - a; b = b ^ (a << 8); \
14 c = c - a; c = c - b; c = c ^ (b >> 13); \
15 a = a - b; a = a - c; a = a ^ (c >> 12); \
16 b = b - c; b = b - a; b = b ^ (a << 16); \
17 c = c - a; c = c - b; c = c ^ (b >> 5); \
18 a = a - b; a = a - c; a = a ^ (c >> 3); \
19 b = b - c; b = b - a; b = b ^ (a << 10); \
20 c = c - a; c = c - b; c = c ^ (b >> 15); \
[all …]
Darmor.c43 unsigned char a, b, c; in ceph_armor() local
45 a = *src++; in ceph_armor()
46 *dst++ = encode_bits(a >> 2); in ceph_armor()
49 *dst++ = encode_bits(((a & 3) << 4) | (b >> 4)); in ceph_armor()
60 *dst++ = encode_bits(((a & 3) << 4)); in ceph_armor()
80 int a, b, c, d; in ceph_unarmor() local
88 a = decode_bits(src[0]); in ceph_unarmor()
92 if (a < 0 || b < 0 || c < 0 || d < 0) in ceph_unarmor()
95 *dst++ = (a << 2) | (b >> 4); in ceph_unarmor()
/net/openvswitch/
Dflow_netlink.c468 const struct nlattr *a[], in __parse_flow_nlattrs() argument
507 a[type] = nla; in __parse_flow_nlattrs()
520 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs() argument
523 return __parse_flow_nlattrs(attr, a, attrsp, log, true); in parse_flow_mask_nlattrs()
526 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs() argument
529 return __parse_flow_nlattrs(attr, a, attrsp, log, false); in parse_flow_nlattrs()
532 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr() argument
538 if (nla_len(a) > sizeof(match->key->tun_opts)) { in genev_tun_opt_from_nlattr()
540 nla_len(a), sizeof(match->key->tun_opts)); in genev_tun_opt_from_nlattr()
544 if (nla_len(a) % 4 != 0) { in genev_tun_opt_from_nlattr()
[all …]
Ddatapath.c571 struct nlattr **a = info->attrs; in ovs_packet_cmd_execute() local
582 bool log = !a[OVS_PACKET_ATTR_PROBE]; in ovs_packet_cmd_execute()
585 if (!a[OVS_PACKET_ATTR_PACKET] || !a[OVS_PACKET_ATTR_KEY] || in ovs_packet_cmd_execute()
586 !a[OVS_PACKET_ATTR_ACTIONS]) in ovs_packet_cmd_execute()
589 len = nla_len(a[OVS_PACKET_ATTR_PACKET]); in ovs_packet_cmd_execute()
596 nla_memcpy(__skb_put(packet, len), a[OVS_PACKET_ATTR_PACKET], len); in ovs_packet_cmd_execute()
599 if (a[OVS_PACKET_ATTR_MRU]) { in ovs_packet_cmd_execute()
600 mru = nla_get_u16(a[OVS_PACKET_ATTR_MRU]); in ovs_packet_cmd_execute()
605 if (a[OVS_PACKET_ATTR_HASH]) { in ovs_packet_cmd_execute()
606 hash = nla_get_u64(a[OVS_PACKET_ATTR_HASH]); in ovs_packet_cmd_execute()
[all …]
Dactions.c599 const struct nlattr *a) in set_nsh() argument
611 err = nsh_key_from_nlattr(a, &key, &mask); in set_nsh()
948 const struct nlattr *a; in output_userspace() local
955 for (a = nla_data(attr), rem = nla_len(attr); rem > 0; in output_userspace()
956 a = nla_next(a, &rem)) { in output_userspace()
957 switch (nla_type(a)) { in output_userspace()
959 upcall.userdata = a; in output_userspace()
969 upcall.portid = nla_get_u32(a); in output_userspace()
976 vport = ovs_vport_rcu(dp, nla_get_u32(a)); in output_userspace()
1086 const struct nlattr *a) in execute_set_action() argument
[all …]
/net/appletalk/
Daarp.c87 static void __aarp_expire(struct aarp_entry *a) in __aarp_expire() argument
89 skb_queue_purge(&a->packet_queue); in __aarp_expire()
90 kfree(a); in __aarp_expire()
98 static void __aarp_send_query(struct aarp_entry *a) in __aarp_send_query() argument
102 struct net_device *dev = a->dev; in __aarp_send_query()
141 eah->pa_dst_net = a->target_addr.s_net; in __aarp_send_query()
142 eah->pa_dst_node = a->target_addr.s_node; in __aarp_send_query()
147 a->xmit_count++; in __aarp_send_query()
148 a->last_sent = jiffies; in __aarp_send_query()
382 struct aarp_entry *a = kmalloc(sizeof(*a), GFP_ATOMIC); in aarp_alloc() local
[all …]
/net/dsa/
Dswitch.c142 struct dsa_mac_addr *a; in dsa_mac_addr_find() local
144 list_for_each_entry(a, addr_list, list) in dsa_mac_addr_find()
145 if (ether_addr_equal(a->addr, addr) && a->vid == vid && in dsa_mac_addr_find()
146 dsa_db_equal(&a->db, &db)) in dsa_mac_addr_find()
147 return a; in dsa_mac_addr_find()
157 struct dsa_mac_addr *a; in dsa_port_do_mdb_add() local
167 a = dsa_mac_addr_find(&dp->mdbs, mdb->addr, mdb->vid, db); in dsa_port_do_mdb_add()
168 if (a) { in dsa_port_do_mdb_add()
169 refcount_inc(&a->refcount); in dsa_port_do_mdb_add()
173 a = kzalloc(sizeof(*a), GFP_KERNEL); in dsa_port_do_mdb_add()
[all …]
/net/
Dcompat.c424 u32 a[AUDITSC_ARGS]; in COMPAT_SYSCALL_DEFINE2() local
432 if (len > sizeof(a)) in COMPAT_SYSCALL_DEFINE2()
435 if (copy_from_user(a, args, len)) in COMPAT_SYSCALL_DEFINE2()
438 ret = audit_socketcall_compat(len / sizeof(a[0]), a); in COMPAT_SYSCALL_DEFINE2()
442 a0 = a[0]; in COMPAT_SYSCALL_DEFINE2()
443 a1 = a[1]; in COMPAT_SYSCALL_DEFINE2()
447 ret = __sys_socket(a0, a1, a[2]); in COMPAT_SYSCALL_DEFINE2()
450 ret = __sys_bind(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2()
453 ret = __sys_connect(a0, compat_ptr(a1), a[2]); in COMPAT_SYSCALL_DEFINE2()
459 ret = __sys_accept4(a0, compat_ptr(a1), compat_ptr(a[2]), 0); in COMPAT_SYSCALL_DEFINE2()
[all …]
/net/sched/
Dact_api.c43 static void tcf_action_goto_chain_exec(const struct tc_action *a, in tcf_action_goto_chain_exec() argument
46 const struct tcf_chain *chain = rcu_dereference_bh(a->goto_chain); in tcf_action_goto_chain_exec()
105 struct tcf_chain *tcf_action_set_ctrlact(struct tc_action *a, int action, in tcf_action_set_ctrlact() argument
108 a->tcfa_action = action; in tcf_action_set_ctrlact()
109 goto_chain = rcu_replace_pointer(a->goto_chain, goto_chain, 1); in tcf_action_set_ctrlact()
426 int tcf_idr_release(struct tc_action *a, bool bind) in tcf_idr_release() argument
428 const struct tc_action_ops *ops = a->ops; in tcf_idr_release()
431 ret = __tcf_idr_release(a, bind, false); in tcf_idr_release()
484 tcf_action_dump_terse(struct sk_buff *skb, struct tc_action *a, bool from_act) in tcf_action_dump_terse() argument
489 if (nla_put_string(skb, TCA_KIND, a->ops->kind)) in tcf_action_dump_terse()
[all …]
Dact_simple.c24 static int tcf_simp_act(struct sk_buff *skb, const struct tc_action *a, in tcf_simp_act() argument
27 struct tcf_defact *d = to_defact(a); in tcf_simp_act()
44 static void tcf_simp_release(struct tc_action *a) in tcf_simp_release() argument
46 struct tcf_defact *d = to_defact(a); in tcf_simp_release()
59 static int reset_policy(struct tc_action *a, const struct nlattr *defdata, in reset_policy() argument
70 d = to_defact(a); in reset_policy()
72 goto_ch = tcf_action_set_ctrlact(a, p->action, goto_ch); in reset_policy()
87 struct nlattr *est, struct tc_action **a, in tcf_simp_init() argument
114 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_simp_init()
123 tcf_idr_release(*a, bind); in tcf_simp_init()
[all …]
Dact_vlan.c21 static int tcf_vlan_act(struct sk_buff *skb, const struct tc_action *a, in tcf_vlan_act() argument
24 struct tcf_vlan *v = to_vlan(a); in tcf_vlan_act()
115 struct nlattr *est, struct tc_action **a, in tcf_vlan_init() argument
147 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_vlan_init()
161 tcf_idr_release(*a, bind); in tcf_vlan_init()
169 tcf_idr_release(*a, bind); in tcf_vlan_init()
183 tcf_idr_release(*a, bind); in tcf_vlan_init()
201 tcf_idr_release(*a, bind); in tcf_vlan_init()
209 tcf_idr_release(*a, bind); in tcf_vlan_init()
217 ret = tcf_idr_create_from_flags(tn, index, est, a, in tcf_vlan_init()
[all …]
DKconfig10 When the kernel has several packets to send out over a network
17 is a FIFO (first come, first served). If you say Y here, you will be
21 need a certain minimum data flow rate, or if you need to limit the
59 To compile this code as a module, choose M here: the
68 To compile this code as a module, choose M here: the
77 To compile this code as a module, choose M here: the
86 To compile this code as a module, choose M here: the
97 To compile this code as a module, choose M here: the
108 To compile this code as a module, choose M here: the
119 To compile this code as a module, choose M here: the
[all …]
Dact_sample.c36 struct nlattr *est, struct tc_action **a, in tcf_sample_init() argument
63 err = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_sample_init()
71 ret = tcf_idr_create(tn, index, est, a, in tcf_sample_init()
79 tcf_idr_release(*a, bind); in tcf_sample_init()
106 s = to_sample(*a); in tcf_sample_init()
109 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_sample_init()
131 tcf_idr_release(*a, bind); in tcf_sample_init()
135 static void tcf_sample_cleanup(struct tc_action *a) in tcf_sample_cleanup() argument
137 struct tcf_sample *s = to_sample(a); in tcf_sample_cleanup()
163 static int tcf_sample_act(struct sk_buff *skb, const struct tc_action *a, in tcf_sample_act() argument
[all …]
Dact_connmark.c30 static int tcf_connmark_act(struct sk_buff *skb, const struct tc_action *a, in tcf_connmark_act() argument
36 struct tcf_connmark_info *ca = to_connmark(a); in tcf_connmark_act()
97 struct nlattr *est, struct tc_action **a, in tcf_connmark_init() argument
123 ret = tcf_idr_check_alloc(tn, &index, a, bind); in tcf_connmark_init()
125 ret = tcf_idr_create(tn, index, est, a, in tcf_connmark_init()
132 ci = to_connmark(*a); in tcf_connmark_init()
137 tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_connmark_init()
143 ci = to_connmark(*a); in tcf_connmark_init()
147 tcf_idr_release(*a, bind); in tcf_connmark_init()
156 goto_ch = tcf_action_set_ctrlact(*a, parm->action, goto_ch); in tcf_connmark_init()
[all …]
/net/netfilter/ipset/
DKconfig12 To compile it as a module, choose M here. If unsure, say N.
33 can store IPv4 addresses (or network addresse) from a range.
35 To compile it as a module, choose M here. If unsure, say N.
42 can store IPv4 address and (source) MAC address pairs from a range.
44 To compile it as a module, choose M here. If unsure, say N.
51 can store TCP/UDP port numbers from a range.
53 To compile it as a module, choose M here. If unsure, say N.
61 in a set.
63 To compile it as a module, choose M here. If unsure, say N.
72 To compile it as a module, choose M here. If unsure, say N.
[all …]
/net/ipv4/netfilter/
DKconfig73 This is a backwards-compat option for the user's convenience
81 This is a backwards-compat option for the user's convenience
98 SNMP payloads. In conjunction with NAT, it allows a network
105 To compile it as a module, choose M here. If unsure, say N.
124 iptables is a general, extensible packet identification framework.
129 To compile it as a module, choose M here. If unsure, say N.
138 This match extension allows you to match a range of SPIs
141 To compile it as a module, choose M here. If unsure, say N.
148 This is a backwards-compat option for the user's convenience
160 To compile it as a module, choose M here. If unsure, say N.
[all …]
/net/netfilter/
DKconfig85 Connection tracking keeps a record of what packets have passed
93 To compile it as a module, choose M here. If unsure, say N.
102 This is a simpler but less flexible logging method compared to
138 Normally, each connection needs to have a unique system wide
159 provide a notifier chain that can be used by other kernel code
240 To compile it as a module, choose M here. If unsure, say N.
252 To compile it as a module, choose M here. If unsure, say N.
259 H.323 is a VoIP signalling protocol from ITU-T. As one of the most
264 With this module you can support H.323 on a connection tracking/NAT
272 To compile it as a module, choose M here. If unsure, say N.
[all …]
/net/bridge/netfilter/
DKconfig33 Connection tracking keeps a record of what packets have passed
37 the bridge. This provides a replacement for the `br_netfilter'
40 To compile it as a module, choose M here. If unsure, say N.
47 ebtables is a general, extensible frame/packet identification
60 bridging and routing frames, giving Linux the functionality of a
64 To compile it as a module, choose M here. If unsure, say N.
73 To compile it as a module, choose M here. If unsure, say N.
82 To compile it as a module, choose M here. If unsure, say N.
91 To compile it as a module, choose M here. If unsure, say N.
97 and/or destination address on a list of addresses. Optionally,
[all …]
/net/ipv6/netfilter/
DKconfig66 This is a backwards-compat option for the user's convenience
75 ip6tables is a general, extensible packet identification framework.
80 To compile it as a module, choose M here. If unsure, say N.
91 To compile it as a module, choose M here. If unsure, say N.
101 To compile it as a module, choose M here. If unsure, say N.
110 To compile it as a module, choose M here. If unsure, say N.
117 and destination options headers of a packet.
119 To compile it as a module, choose M here. If unsure, say N.
126 This is a backwards-compat option for the user's convenience
137 To compile it as a module, choose M here. If unsure, say N.
[all …]
/net/6lowpan/
Diphc.c98 #define is_addr_mac_addr_based(a, m) \ argument
99 ((((a)->s6_addr[8]) == (((m)[0]) ^ 0x02)) && \
100 (((a)->s6_addr[9]) == (m)[1]) && \
101 (((a)->s6_addr[10]) == (m)[2]) && \
102 (((a)->s6_addr[11]) == (m)[3]) && \
103 (((a)->s6_addr[12]) == (m)[4]) && \
104 (((a)->s6_addr[13]) == (m)[5]) && \
105 (((a)->s6_addr[14]) == (m)[6]) && \
106 (((a)->s6_addr[15]) == (m)[7]))
111 #define lowpan_is_iid_16_bit_compressable(a) \ argument
[all …]
/net/dccp/ccids/lib/
Dtfrc.h21 #define tfrc_pr_debug(format, a...) DCCP_PR_DEBUG(tfrc_debug, format, ##a) argument
23 #define tfrc_pr_debug(format, a...) argument
27 static inline u64 scaled_div(u64 a, u64 b) in scaled_div() argument
30 return div64_u64(a * 1000000, b); in scaled_div()
33 static inline u32 scaled_div32(u64 a, u64 b) in scaled_div32() argument
35 u64 result = scaled_div(a, b); in scaled_div32()
39 (unsigned long long)a, (unsigned long long)b); in scaled_div32()
/net/caif/
DKconfig11 The "Communication CPU to Application CPU Interface" (CAIF) is a packet
15 Say Y (or M) here if you build for a phone product (e.g. Android or
19 built as a module. You will also need to say Y (or M) to any CAIF
22 See Documentation/networking/caif for a further explanation on how to
39 Say Y if you will be using a CAIF based GPRS network device.
40 This can be either built-in or a loadable module.
41 If you select to build it as a built-in then the main CAIF device must
42 also be a built-in.
51 This can be either built-in or a loadable module.
52 If you select to build it as a built-in then the main CAIF device must
[all …]
/net/sctp/
Dbind_addr.c56 error = sctp_copy_one_addr(net, dest, &addr->a, scope, in sctp_bind_addr_copy()
68 error = sctp_copy_one_addr(net, dest, &addr->a, in sctp_bind_addr_copy()
105 error = sctp_add_bind_addr(dest, &addr->a, sizeof(addr->a), in sctp_bind_addr_dup()
154 memcpy(&addr->a, new, min_t(size_t, sizeof(*new), new_size)); in sctp_add_bind_addr()
159 if (!addr->a.v4.sin_port) in sctp_add_bind_addr()
160 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
188 if (sctp_cmp_addr_exact(&addr->a, del_addr)) { in sctp_del_bind_addr()
247 af = sctp_get_af_specific(addr->a.v4.sin_family); in sctp_bind_addrs_to_raw()
248 len = af->to_addr_param(&addr->a, &rawaddr); in sctp_bind_addrs_to_raw()
324 if (opt->pf->cmp_addr(&laddr->a, addr, opt)) { in sctp_bind_addr_match()
[all …]
/net/vmw_vsock/
DKconfig9 Virtual Socket Protocol is a socket protocol similar to TCP/IP
16 To compile this driver as a module, choose M here: the module
35 This module implements a loopback transport for Virtual Sockets,
38 To compile this driver as a module, choose M here: the module
45 This module implements a VMCI transport for Virtual Sockets.
47 Enable this transport if your Virtual Machine runs on a VMware
50 To compile this driver as a module, choose M here: the module
58 This module implements a virtio transport for Virtual Sockets.
63 To compile this driver as a module, choose M here: the module will be
77 This module implements a Hyper-V transport for Virtual Sockets.
[all …]

123456789