Home
last modified time | relevance | path

Searched refs:d (Results 1 – 25 of 89) sorted by relevance

1234

/net/core/
Dgen_stats.c28 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size) in gnet_stats_copy() argument
30 if (nla_put(d->skb, type, size, buf)) in gnet_stats_copy()
35 kfree(d->xstats); in gnet_stats_copy()
36 d->xstats = NULL; in gnet_stats_copy()
37 d->xstats_len = 0; in gnet_stats_copy()
38 spin_unlock_bh(d->lock); in gnet_stats_copy()
62 int xstats_type, spinlock_t *lock, struct gnet_dump *d) in gnet_stats_start_copy_compat() argument
65 memset(d, 0, sizeof(*d)); in gnet_stats_start_copy_compat()
68 d->lock = lock; in gnet_stats_start_copy_compat()
70 d->tail = (struct nlattr *)skb_tail_pointer(skb); in gnet_stats_start_copy_compat()
[all …]
Dutils.c125 u8 *d; in in4_pton() local
134 d = dbuf; in in4_pton()
145 *d++ = w & 0xff; in in4_pton()
191 u8 *d, *dc = NULL; in in6_pton() local
201 d = dbuf; in in6_pton()
214 *d++ = (w >> 8) & 0xff; in in6_pton()
215 *d++ = w & 0xff; in in6_pton()
229 dc = d; in in6_pton()
251 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
253 d += 4; in in6_pton()
[all …]
/net/bluetooth/rfcomm/
Dcore.c57 static int rfcomm_queue_disc(struct rfcomm_dlc *d);
59 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d);
212 static int rfcomm_check_security(struct rfcomm_dlc *d) in rfcomm_check_security() argument
214 struct sock *sk = d->session->sock->sk; in rfcomm_check_security()
219 switch (d->sec_level) { in rfcomm_check_security()
232 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
233 d->out); in rfcomm_check_security()
263 struct rfcomm_dlc *d = (void *) arg; in rfcomm_dlc_timeout() local
265 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout()
267 set_bit(RFCOMM_TIMED_OUT, &d->flags); in rfcomm_dlc_timeout()
[all …]
Dsock.c49 static void rfcomm_sk_data_ready(struct rfcomm_dlc *d, struct sk_buff *skb) in rfcomm_sk_data_ready() argument
51 struct sock *sk = d->owner; in rfcomm_sk_data_ready()
60 rfcomm_dlc_throttle(d); in rfcomm_sk_data_ready()
63 static void rfcomm_sk_state_change(struct rfcomm_dlc *d, int err) in rfcomm_sk_state_change() argument
65 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change()
71 BT_DBG("dlc %p state %ld err %d", d, d->state, err); in rfcomm_sk_state_change()
79 sk->sk_state = d->state; in rfcomm_sk_state_change()
83 if (d->state == BT_CLOSED) { in rfcomm_sk_state_change()
89 if (d->state == BT_CONNECTED) in rfcomm_sk_state_change()
90 rfcomm_session_getaddr(d->session, in rfcomm_sk_state_change()
[all …]
/net/bridge/
Dbr_sysfs_br.c31 static ssize_t store_bridge_parm(struct device *d, in store_bridge_parm() argument
35 struct net_bridge *br = to_bridge(d); in store_bridge_parm()
52 static ssize_t forward_delay_show(struct device *d, in forward_delay_show() argument
55 struct net_bridge *br = to_bridge(d); in forward_delay_show()
59 static ssize_t forward_delay_store(struct device *d, in forward_delay_store() argument
63 return store_bridge_parm(d, buf, len, br_set_forward_delay); in forward_delay_store()
67 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show() argument
71 jiffies_to_clock_t(to_bridge(d)->hello_time)); in hello_time_show()
74 static ssize_t hello_time_store(struct device *d, in hello_time_store() argument
78 return store_bridge_parm(d, buf, len, br_set_hello_time); in hello_time_store()
[all …]
/net/sched/
Dact_skbedit.c35 struct tcf_skbedit *d = a->priv; in tcf_skbedit() local
37 spin_lock(&d->tcf_lock); in tcf_skbedit()
38 d->tcf_tm.lastuse = jiffies; in tcf_skbedit()
39 bstats_update(&d->tcf_bstats, skb); in tcf_skbedit()
41 if (d->flags & SKBEDIT_F_PRIORITY) in tcf_skbedit()
42 skb->priority = d->priority; in tcf_skbedit()
43 if (d->flags & SKBEDIT_F_QUEUE_MAPPING && in tcf_skbedit()
44 skb->dev->real_num_tx_queues > d->queue_mapping) in tcf_skbedit()
45 skb_set_queue_mapping(skb, d->queue_mapping); in tcf_skbedit()
46 if (d->flags & SKBEDIT_F_MARK) in tcf_skbedit()
[all …]
Dact_simple.c33 struct tcf_defact *d = a->priv; in tcf_simp() local
35 spin_lock(&d->tcf_lock); in tcf_simp()
36 d->tcf_tm.lastuse = jiffies; in tcf_simp()
37 bstats_update(&d->tcf_bstats, skb); in tcf_simp()
44 (char *)d->tcfd_defdata, d->tcf_bstats.packets); in tcf_simp()
45 spin_unlock(&d->tcf_lock); in tcf_simp()
46 return d->tcf_action; in tcf_simp()
51 struct tcf_defact *d = to_defact(a); in tcf_simp_release() local
52 kfree(d->tcfd_defdata); in tcf_simp_release()
55 static int alloc_defdata(struct tcf_defact *d, char *defdata) in alloc_defdata() argument
[all …]
Dsch_mqprio.c314 struct gnet_dump *d) in mqprio_dump_class_stats() argument
315 __releases(d->lock) in mqprio_dump_class_stats()
316 __acquires(d->lock) in mqprio_dump_class_stats()
333 spin_unlock_bh(d->lock); in mqprio_dump_class_stats()
350 spin_lock_bh(d->lock); in mqprio_dump_class_stats()
351 if (gnet_stats_copy_basic(d, NULL, &bstats) < 0 || in mqprio_dump_class_stats()
352 gnet_stats_copy_queue(d, NULL, &qstats, qlen) < 0) in mqprio_dump_class_stats()
358 if (gnet_stats_copy_basic(d, sch->cpu_bstats, in mqprio_dump_class_stats()
360 gnet_stats_copy_queue(d, NULL, in mqprio_dump_class_stats()
Dsch_sfq.c230 int d; in sfq_dec() local
234 d = q->slots[x].qlen--; in sfq_dec()
235 if (n == p && q->cur_depth == d) in sfq_dec()
243 int d; in sfq_inc() local
247 d = ++q->slots[x].qlen; in sfq_inc()
248 if (q->cur_depth < d) in sfq_inc()
249 q->cur_depth = d; in sfq_inc()
295 sfq_index x, d = q->cur_depth; in sfq_drop() local
301 if (d > 1) { in sfq_drop()
302 x = q->dep[d].next; in sfq_drop()
[all …]
Dact_pedit.c143 char *d, _d; in tcf_pedit() local
150 d = skb_header_pointer(skb, off + tkey->at, 1, in tcf_pedit()
152 if (!d) in tcf_pedit()
154 offset += (*d & tkey->offmask) >> tkey->shift; in tcf_pedit()
/net/can/
Daf_can.c394 struct dev_rcv_lists *d) in find_rcv_list() argument
402 return &d->rx[RX_ERR]; in find_rcv_list()
418 return &d->rx[RX_INV]; in find_rcv_list()
422 return &d->rx[RX_ALL]; in find_rcv_list()
430 return &d->rx_eff[effhash(*can_id)]; in find_rcv_list()
433 return &d->rx_sff[*can_id]; in find_rcv_list()
438 return &d->rx[RX_FIL]; in find_rcv_list()
477 struct dev_rcv_lists *d; in can_rx_register() local
491 d = find_dev_rcv_lists(dev); in can_rx_register()
492 if (d) { in can_rx_register()
[all …]
Dproc.c341 struct dev_rcv_lists *d) in can_rcvlist_proc_show_one() argument
343 if (!hlist_empty(&d->rx[idx])) { in can_rcvlist_proc_show_one()
345 can_print_rcvlist(m, &d->rx[idx], dev); in can_rcvlist_proc_show_one()
356 struct dev_rcv_lists *d; in can_rcvlist_proc_show() local
363 d = &can_rx_alldev_list; in can_rcvlist_proc_show()
364 can_rcvlist_proc_show_one(m, idx, NULL, d); in can_rcvlist_proc_show()
419 struct dev_rcv_lists *d; in can_rcvlist_sff_proc_show() local
427 d = &can_rx_alldev_list; in can_rcvlist_sff_proc_show()
428 can_rcvlist_proc_show_array(m, NULL, d->rx_sff, ARRAY_SIZE(d->rx_sff)); in can_rcvlist_sff_proc_show()
433 d = dev->ml_priv; in can_rcvlist_sff_proc_show()
[all …]
/net/ax25/
Dax25_addr.c163 int d = 0; in ax25_addr_parse() local
192 if (d >= AX25_MAX_DIGIS) in ax25_addr_parse()
197 memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); in ax25_addr_parse()
198 digi->ndigi = d + 1; in ax25_addr_parse()
201 digi->repeated[d] = 1; in ax25_addr_parse()
202 digi->lastrepeat = d; in ax25_addr_parse()
204 digi->repeated[d] = 0; in ax25_addr_parse()
209 d++; in ax25_addr_parse()
219 const ax25_address *dest, const ax25_digi *d, int flag, int modulus) in ax25_addr_build() argument
247 if (d == NULL || d->ndigi == 0) { in ax25_addr_build()
[all …]
/net/ipv4/
Dipconfig.c212 struct ic_device *d, **last; in ic_open_devs() local
247 if (!(d = kmalloc(sizeof(struct ic_device), GFP_KERNEL))) { in ic_open_devs()
251 d->dev = dev; in ic_open_devs()
252 *last = d; in ic_open_devs()
253 last = &d->next; in ic_open_devs()
254 d->flags = oflags; in ic_open_devs()
255 d->able = able; in ic_open_devs()
257 get_random_bytes(&d->xid, sizeof(__be32)); in ic_open_devs()
259 d->xid = 0; in ic_open_devs()
262 dev->name, able, d->xid)); in ic_open_devs()
[all …]
/net/ceph/crush/
Dhash.c61 static __u32 crush_hash32_rjenkins1_4(__u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_rjenkins1_4() argument
63 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d; in crush_hash32_rjenkins1_4()
67 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_4()
71 crush_hashmix(y, d, hash); in crush_hash32_rjenkins1_4()
75 static __u32 crush_hash32_rjenkins1_5(__u32 a, __u32 b, __u32 c, __u32 d, in crush_hash32_rjenkins1_5() argument
78 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e; in crush_hash32_rjenkins1_5()
82 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_5()
87 crush_hashmix(d, x, hash); in crush_hash32_rjenkins1_5()
123 __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_4() argument
127 return crush_hash32_rjenkins1_4(a, b, c, d); in crush_hash32_4()
[all …]
/net/netfilter/
Dnft_rbtree.c40 int d; in nft_rbtree_lookup() local
47 d = memcmp(nft_set_ext_key(&rbe->ext), key, set->klen); in nft_rbtree_lookup()
48 if (d < 0) { in nft_rbtree_lookup()
51 } else if (d > 0) in nft_rbtree_lookup()
86 int d; in __nft_rbtree_insert() local
93 d = memcmp(nft_set_ext_key(&rbe->ext), in __nft_rbtree_insert()
96 if (d < 0) in __nft_rbtree_insert()
98 else if (d > 0) in __nft_rbtree_insert()
150 int d; in nft_rbtree_deactivate() local
155 d = memcmp(nft_set_ext_key(&rbe->ext), &elem->key.val, in nft_rbtree_deactivate()
[all …]
Dnft_cmp.c32 int d; in nft_cmp_eval() local
34 d = memcmp(&regs->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval()
37 if (d != 0) in nft_cmp_eval()
41 if (d == 0) in nft_cmp_eval()
45 if (d == 0) in nft_cmp_eval()
48 if (d > 0) in nft_cmp_eval()
52 if (d == 0) in nft_cmp_eval()
55 if (d < 0) in nft_cmp_eval()
Dnft_byteorder.c35 union { u32 u32; u16 u16; } *s, *d; in nft_byteorder_eval() local
39 d = (void *)dst; in nft_byteorder_eval()
46 d[i].u32 = ntohl((__force __be32)s[i].u32); in nft_byteorder_eval()
50 d[i].u32 = (__force __u32)htonl(s[i].u32); in nft_byteorder_eval()
58 d[i].u16 = ntohs((__force __be16)s[i].u16); in nft_byteorder_eval()
62 d[i].u16 = (__force __u16)htons(s[i].u16); in nft_byteorder_eval()
/net/netfilter/ipset/
Dip_set_list_set.c196 struct set_adt_elem *d = value; in list_set_utest() local
204 else if (e->id != d->id) { in list_set_utest()
209 if (d->before == 0) { in list_set_utest()
211 } else if (d->before > 0) { in list_set_utest()
214 next->id == d->refid; in list_set_utest()
216 ret = prev && prev->id == d->refid; in list_set_utest()
243 struct set_adt_elem *d = value; in list_set_uadd() local
256 else if (d->id == e->id) in list_set_uadd()
258 else if (d->before == 0 || e->id != d->refid) in list_set_uadd()
260 else if (d->before > 0) in list_set_uadd()
[all …]
Dip_set_hash_gen.h202 #define mtype_do_data_match(d) 1 argument
467 u32 i, j, d; in mtype_expire() local
477 for (j = 0, d = 0; j < n->pos; j++) { in mtype_expire()
479 d++; in mtype_expire()
496 d++; in mtype_expire()
499 if (d >= AHASH_INIT_SIZE) { in mtype_expire()
500 if (d >= n->size) { in mtype_expire()
512 for (j = 0, d = 0; j < n->pos; j++) { in mtype_expire()
516 memcpy(tmp->value + d * dsize, data, dsize); in mtype_expire()
517 set_bit(d, tmp->used); in mtype_expire()
[all …]
Dpfxlen.c6 #define E(a, b, c, d) \ argument
9 htonl(c), htonl(d), \
149 #define E(a, b, c, d) \ argument
151 (__force __be32)c, (__force __be32)d, \
/net/ceph/
Darmor.c79 int a, b, c, d; in ceph_unarmor() local
90 d = decode_bits(src[3]); in ceph_unarmor()
91 if (a < 0 || b < 0 || c < 0 || d < 0) in ceph_unarmor()
100 *dst++ = ((c & 3) << 6) | d; in ceph_unarmor()
/net/batman-adv/
Ddebugfs.c222 struct dentry *d; in batadv_debug_log_setup() local
234 d = debugfs_create_file("log", S_IFREG | S_IRUSR, in batadv_debug_log_setup()
237 if (!d) in batadv_debug_log_setup()
519 struct dentry *d; in batadv_debugfs_rename_hardif() local
525 d = debugfs_rename(dir->d_parent, dir, dir->d_parent, name); in batadv_debugfs_rename_hardif()
526 if (!d) in batadv_debugfs_rename_hardif()
594 struct dentry *d; in batadv_debugfs_rename_meshif() local
600 d = debugfs_rename(dir->d_parent, dir, dir->d_parent, name); in batadv_debugfs_rename_meshif()
601 if (!d) in batadv_debugfs_rename_meshif()
/net/dsa/
Ddsa.c557 struct device *d; in dsa_host_dev_to_mii_bus() local
559 d = dev_find_class(dev, "mdio_bus"); in dsa_host_dev_to_mii_bus()
560 if (d != NULL) { in dsa_host_dev_to_mii_bus()
563 bus = to_mii_bus(d); in dsa_host_dev_to_mii_bus()
564 put_device(d); in dsa_host_dev_to_mii_bus()
575 struct device *d; in dev_to_net_device() local
577 d = dev_find_class(dev, "net"); in dev_to_net_device()
578 if (d != NULL) { in dev_to_net_device()
581 nd = to_net_dev(d); in dev_to_net_device()
583 put_device(d); in dev_to_net_device()
[all …]
/net/rose/
Drose_in.c104 …3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m) in rose_state3_machine() argument
266 int queued = 0, frametype, ns, nr, q, d, m; in rose_process_rx_frame() local
271 frametype = rose_decode(skb, &ns, &nr, &q, &d, &m); in rose_process_rx_frame()
281 queued = rose_state3_machine(sk, skb, frametype, ns, nr, q, d, m); in rose_process_rx_frame()

1234