/net/core/ |
D | gen_stats.c | 28 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 spin_unlock_bh(d->lock); in gnet_stats_copy() 59 int xstats_type, spinlock_t *lock, struct gnet_dump *d) in gnet_stats_start_copy_compat() argument 62 memset(d, 0, sizeof(*d)); in gnet_stats_start_copy_compat() 65 d->lock = lock; in gnet_stats_start_copy_compat() 67 d->tail = (struct nlattr *)skb_tail_pointer(skb); in gnet_stats_start_copy_compat() 68 d->skb = skb; in gnet_stats_start_copy_compat() 69 d->compat_tc_stats = tc_stats_type; in gnet_stats_start_copy_compat() 70 d->compat_xstats = xstats_type; in gnet_stats_start_copy_compat() [all …]
|
D | utils.c | 128 u8 *d; in in4_pton() local 137 d = dbuf; in in4_pton() 148 *d++ = w & 0xff; in in4_pton() 194 u8 *d, *dc = NULL; in in6_pton() local 204 d = dbuf; in in6_pton() 217 *d++ = (w >> 8) & 0xff; in in6_pton() 218 *d++ = w & 0xff; in in6_pton() 232 dc = d; in in6_pton() 254 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton() 256 d += 4; in in6_pton() [all …]
|
/net/bluetooth/rfcomm/ |
D | core.c | 57 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); 210 static int rfcomm_check_security(struct rfcomm_dlc *d) in rfcomm_check_security() argument 212 struct sock *sk = d->session->sock->sk; in rfcomm_check_security() 217 switch (d->sec_level) { in rfcomm_check_security() 229 return hci_conn_security(conn->hcon, d->sec_level, auth_type); in rfcomm_check_security() 259 struct rfcomm_dlc *d = (void *) arg; in rfcomm_dlc_timeout() local 261 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout() 263 set_bit(RFCOMM_TIMED_OUT, &d->flags); in rfcomm_dlc_timeout() 264 rfcomm_dlc_put(d); in rfcomm_dlc_timeout() [all …]
|
D | sock.c | 49 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, &bt_sk(sk)->src, NULL); in rfcomm_sk_state_change() [all …]
|
/net/sched/ |
D | act_simple.c | 42 struct tcf_defact *d = a->priv; in tcf_simp() local 44 spin_lock(&d->tcf_lock); in tcf_simp() 45 d->tcf_tm.lastuse = jiffies; in tcf_simp() 46 bstats_update(&d->tcf_bstats, skb); in tcf_simp() 53 (char *)d->tcfd_defdata, d->tcf_bstats.packets); in tcf_simp() 54 spin_unlock(&d->tcf_lock); in tcf_simp() 55 return d->tcf_action; in tcf_simp() 58 static int tcf_simp_release(struct tcf_defact *d, int bind) in tcf_simp_release() argument 61 if (d) { in tcf_simp_release() 63 d->tcf_bindcnt--; in tcf_simp_release() [all …]
|
D | act_skbedit.c | 45 struct tcf_skbedit *d = a->priv; in tcf_skbedit() local 47 spin_lock(&d->tcf_lock); in tcf_skbedit() 48 d->tcf_tm.lastuse = jiffies; in tcf_skbedit() 49 bstats_update(&d->tcf_bstats, skb); in tcf_skbedit() 51 if (d->flags & SKBEDIT_F_PRIORITY) in tcf_skbedit() 52 skb->priority = d->priority; in tcf_skbedit() 53 if (d->flags & SKBEDIT_F_QUEUE_MAPPING && in tcf_skbedit() 54 skb->dev->real_num_tx_queues > d->queue_mapping) in tcf_skbedit() 55 skb_set_queue_mapping(skb, d->queue_mapping); in tcf_skbedit() 56 if (d->flags & SKBEDIT_F_MARK) in tcf_skbedit() [all …]
|
D | sch_mqprio.c | 320 struct gnet_dump *d) in mqprio_dump_class_stats() argument 321 __releases(d->lock) in mqprio_dump_class_stats() 322 __acquires(d->lock) in mqprio_dump_class_stats() 338 spin_unlock_bh(d->lock); in mqprio_dump_class_stats() 353 spin_lock_bh(d->lock); in mqprio_dump_class_stats() 354 if (gnet_stats_copy_basic(d, &bstats) < 0 || in mqprio_dump_class_stats() 355 gnet_stats_copy_queue(d, &qstats) < 0) in mqprio_dump_class_stats() 362 if (gnet_stats_copy_basic(d, &sch->bstats) < 0 || in mqprio_dump_class_stats() 363 gnet_stats_copy_queue(d, &sch->qstats) < 0) in mqprio_dump_class_stats()
|
D | sch_netem.c | 557 static void dist_free(struct disttable *d) in dist_free() argument 559 if (d) { in dist_free() 560 if (is_vmalloc_addr(d)) in dist_free() 561 vfree(d); in dist_free() 563 kfree(d); in dist_free() 577 struct disttable *d; in get_dist_table() local 585 d = kmalloc(s, GFP_KERNEL | __GFP_NOWARN); in get_dist_table() 586 if (!d) in get_dist_table() 587 d = vmalloc(s); in get_dist_table() 588 if (!d) in get_dist_table() [all …]
|
D | sch_sfq.c | 249 int d; in sfq_dec() local 253 d = q->slots[x].qlen--; in sfq_dec() 254 if (n == p && q->cur_depth == d) in sfq_dec() 262 int d; in sfq_inc() local 266 d = ++q->slots[x].qlen; in sfq_inc() 267 if (q->cur_depth < d) in sfq_inc() 268 q->cur_depth = d; in sfq_inc() 319 sfq_index x, d = q->cur_depth; in sfq_drop() local 325 if (d > 1) { in sfq_drop() 326 x = q->dep[d].next; in sfq_drop() [all …]
|
/net/bridge/ |
D | br_sysfs_br.c | 31 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 show_forward_delay(struct device *d, in show_forward_delay() argument 55 struct net_bridge *br = to_bridge(d); in show_forward_delay() 59 static ssize_t store_forward_delay(struct device *d, in store_forward_delay() argument 63 return store_bridge_parm(d, buf, len, br_set_forward_delay); in store_forward_delay() 68 static ssize_t show_hello_time(struct device *d, struct device_attribute *attr, in show_hello_time() argument 72 jiffies_to_clock_t(to_bridge(d)->hello_time)); in show_hello_time() 75 static ssize_t store_hello_time(struct device *d, in store_hello_time() argument 79 return store_bridge_parm(d, buf, len, br_set_hello_time); in store_hello_time() [all …]
|
/net/can/ |
D | af_can.c | 367 struct dev_rcv_lists *d) in find_rcv_list() argument 375 return &d->rx[RX_ERR]; in find_rcv_list() 391 return &d->rx[RX_INV]; in find_rcv_list() 395 return &d->rx[RX_ALL]; in find_rcv_list() 404 return &d->rx[RX_EFF]; in find_rcv_list() 408 return &d->rx_sff[*can_id]; in find_rcv_list() 413 return &d->rx[RX_FIL]; in find_rcv_list() 451 struct dev_rcv_lists *d; in can_rx_register() local 465 d = find_dev_rcv_lists(dev); in can_rx_register() 466 if (d) { in can_rx_register() [all …]
|
D | proc.c | 342 struct dev_rcv_lists *d) in can_rcvlist_proc_show_one() argument 344 if (!hlist_empty(&d->rx[idx])) { in can_rcvlist_proc_show_one() 346 can_print_rcvlist(m, &d->rx[idx], dev); in can_rcvlist_proc_show_one() 357 struct dev_rcv_lists *d; in can_rcvlist_proc_show() local 364 d = &can_rx_alldev_list; in can_rcvlist_proc_show() 365 can_rcvlist_proc_show_one(m, idx, NULL, d); in can_rcvlist_proc_show() 394 struct dev_rcv_lists *d) in can_rcvlist_sff_proc_show_one() argument 401 if (!hlist_empty(&d->rx_sff[i])) { in can_rcvlist_sff_proc_show_one() 409 if (!hlist_empty(&d->rx_sff[i])) in can_rcvlist_sff_proc_show_one() 410 can_print_rcvlist(m, &d->rx_sff[i], dev); in can_rcvlist_sff_proc_show_one() [all …]
|
/net/ax25/ |
D | ax25_addr.c | 163 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/ |
D | ipconfig.c | 206 struct ic_device *d, **last; in ic_open_devs() local 241 if (!(d = kmalloc(sizeof(struct ic_device), GFP_KERNEL))) { in ic_open_devs() 245 d->dev = dev; in ic_open_devs() 246 *last = d; in ic_open_devs() 247 last = &d->next; in ic_open_devs() 248 d->flags = oflags; in ic_open_devs() 249 d->able = able; in ic_open_devs() 251 get_random_bytes(&d->xid, sizeof(__be32)); in ic_open_devs() 253 d->xid = 0; in ic_open_devs() 256 dev->name, able, d->xid)); in ic_open_devs() [all …]
|
/net/ceph/crush/ |
D | hash.c | 59 static __u32 crush_hash32_rjenkins1_4(__u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_rjenkins1_4() argument 61 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d; in crush_hash32_rjenkins1_4() 65 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_4() 69 crush_hashmix(y, d, hash); in crush_hash32_rjenkins1_4() 73 static __u32 crush_hash32_rjenkins1_5(__u32 a, __u32 b, __u32 c, __u32 d, in crush_hash32_rjenkins1_5() argument 76 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e; in crush_hash32_rjenkins1_5() 80 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_5() 85 crush_hashmix(d, x, hash); in crush_hash32_rjenkins1_5() 121 __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_4() argument 125 return crush_hash32_rjenkins1_4(a, b, c, d); in crush_hash32_4() [all …]
|
/net/wireless/ |
D | lib80211.c | 52 char *d = buf; in print_ssid() local 57 *d++ = *s++; in print_ssid() 61 *d++ = '\\'; in print_ssid() 63 *d++ = '0'; in print_ssid() 65 *d++ = 'n'; in print_ssid() 67 *d++ = 'r'; in print_ssid() 69 *d++ = 't'; in print_ssid() 71 *d++ = '\\'; in print_ssid() 73 d += snprintf(d, 3, "%03o", *s); in print_ssid() 76 *d = '\0'; in print_ssid()
|
/net/netfilter/ipset/ |
D | ip_set_list_set.c | 198 list_set_add(struct ip_set *set, u32 i, struct set_adt_elem *d, in list_set_add() argument 219 e->id = d->id; in list_set_add() 265 struct set_adt_elem *d = value; in list_set_utest() local 277 else if (e->id != d->id) in list_set_utest() 280 if (d->before == 0) in list_set_utest() 282 else if (d->before > 0) in list_set_utest() 283 ret = id_eq(set, i + 1, d->refid); in list_set_utest() 285 ret = i > 0 && id_eq(set, i - 1, d->refid); in list_set_utest() 297 struct set_adt_elem *d = value; in list_set_uadd() local 310 else if (e->id != d->id) in list_set_uadd() [all …]
|
D | ip_set_hash_gen.h | 227 #define mtype_do_data_match(d) 1 argument 510 struct mtype_elem *d; in mtype_resize() local 564 d = ahash_data(m, m->pos++, h->dsize); in mtype_resize() 565 memcpy(d, data, h->dsize); in mtype_resize() 567 mtype_data_reset_flags(d, &flags); in mtype_resize() 593 const struct mtype_elem *d = value; in mtype_add() local 618 if (mtype_data_equal(data, d, &multi)) { in mtype_add() 642 mtype_add_cidr(h, CIDR(d->cidr), NETS_LENGTH(set->family)); in mtype_add() 650 mtype_data_next(&h->next, d); in mtype_add() 655 mtype_add_cidr(h, CIDR(d->cidr), NETS_LENGTH(set->family)); in mtype_add() [all …]
|
D | ip_set_hash_netiface.c | 81 const char *d = iface_data(n); in iface_test() local 82 int res = strcmp(*iface, d); in iface_test() 89 *iface = d; in iface_test() 100 struct iface_node *d; in iface_add() local 117 d = kzalloc(sizeof(*d), GFP_ATOMIC); in iface_add() 118 if (!d) in iface_add() 120 strcpy(d->iface, *iface); in iface_add() 122 rb_link_node(&d->node, p, n); in iface_add() 123 rb_insert_color(&d->node, root); in iface_add() 125 *iface = d->iface; in iface_add() [all …]
|
D | pfxlen.c | 8 #define E(a, b, c, d) \ argument 11 __constant_htonl(c), __constant_htonl(d), \ 152 #define E(a, b, c, d) \ argument 154 (__force __be32) c, (__force __be32) d, \
|
/net/netfilter/ipvs/ |
D | ip_vs_lblcr.c | 110 struct ip_vs_dest *d; in ip_vs_dest_set_insert() local 112 d = rcu_dereference_protected(e->dest, 1); in ip_vs_dest_set_insert() 113 if (d == dest) in ip_vs_dest_set_insert() 138 struct ip_vs_dest *d; in ip_vs_dest_set_erase() local 140 d = rcu_dereference_protected(e->dest, 1); in ip_vs_dest_set_erase() 141 if (d == dest) { in ip_vs_dest_set_erase() 158 struct ip_vs_dest *d; in ip_vs_dest_set_eraseall() local 160 d = rcu_dereference_protected(e->dest, 1); in ip_vs_dest_set_eraseall() 165 ip_vs_dest_put(d); in ip_vs_dest_set_eraseall() 641 struct ip_vs_dest *d; in is_overloaded() local [all …]
|
/net/ceph/ |
D | armor.c | 79 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/mac80211/ |
D | wpa.c | 567 static inline void bip_ipn_set64(u8 *d, u64 pn) in bip_ipn_set64() argument 569 *d++ = pn; in bip_ipn_set64() 570 *d++ = pn >> 8; in bip_ipn_set64() 571 *d++ = pn >> 16; in bip_ipn_set64() 572 *d++ = pn >> 24; in bip_ipn_set64() 573 *d++ = pn >> 32; in bip_ipn_set64() 574 *d = pn >> 40; in bip_ipn_set64() 577 static inline void bip_ipn_swap(u8 *d, const u8 *s) in bip_ipn_swap() argument 579 *d++ = s[5]; in bip_ipn_swap() 580 *d++ = s[4]; in bip_ipn_swap() [all …]
|
/net/dsa/ |
D | dsa.c | 261 struct device *d; in dev_to_mii_bus() local 263 d = dev_find_class(dev, "mdio_bus"); in dev_to_mii_bus() 264 if (d != NULL) { in dev_to_mii_bus() 267 bus = to_mii_bus(d); in dev_to_mii_bus() 268 put_device(d); in dev_to_mii_bus() 278 struct device *d; in dev_to_net_device() local 280 d = dev_find_class(dev, "net"); in dev_to_net_device() 281 if (d != NULL) { in dev_to_net_device() 284 nd = to_net_dev(d); in dev_to_net_device() 286 put_device(d); in dev_to_net_device()
|
/net/rose/ |
D | rose_in.c | 104 …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()
|