| /net/bluetooth/rfcomm/ |
| A D | core.c | 458 d, d->state, d->dlci, err, s); in __rfcomm_dlc_close() 493 d->state_change(d, err); in __rfcomm_dlc_close() 656 d, d->state, v24_sig); in rfcomm_dlc_set_modem_status() 674 d, d->state, d->v24_sig); in rfcomm_dlc_get_modem_status() 1222 d->state_change(d, 0); in rfcomm_recv_ua() 1333 d->state_change(d, 0); in rfcomm_dlc_accept() 1339 rfcomm_send_msc(d->session, 1, d->dlci, d->v24_sig); in rfcomm_dlc_accept() 1728 d->data_ready(d, skb); in rfcomm_recv_data() 1834 d, d->state, d->cfc, d->rx_credits, d->tx_credits); in rfcomm_process_tx() 1845 rfcomm_send_credits(d->session, d->addr, d->cfc - d->rx_credits); in rfcomm_process_tx() [all …]
|
| A D | sock.c | 71 BT_DBG("dlc %p state %ld err %d", d, d->state, err); in rfcomm_sk_state_change() 99 rfcomm_dlc_unlock(d); in rfcomm_sk_state_change() 101 rfcomm_dlc_lock(d); in rfcomm_sk_state_change() 162 rfcomm_dlc_lock(d); in rfcomm_sock_destruct() 166 if (d->owner == sk) in rfcomm_sock_destruct() 167 d->owner = NULL; in rfcomm_sock_destruct() 168 rfcomm_dlc_unlock(d); in rfcomm_sock_destruct() 170 rfcomm_dlc_put(d); in rfcomm_sock_destruct() 278 if (!d) in rfcomm_sock_alloc() 283 rfcomm_dlc_free(d); in rfcomm_sock_alloc() [all …]
|
| /net/core/ |
| A D | gen_stats.c | 31 if (d->lock) in gnet_stats_copy() 64 memset(d, 0, sizeof(*d)); in gnet_stats_start_copy_compat() 68 d->skb = skb; in gnet_stats_start_copy_compat() 76 if (d->tail) { in gnet_stats_start_copy_compat() 86 d->tail = (struct nlattr *)((char *)d->tail + in gnet_stats_start_copy_compat() 465 d->tail->nla_len = skb_tail_pointer(d->skb) - (u8 *)d->tail; in gnet_stats_finish_copy() 468 if (gnet_stats_copy(d, d->compat_tc_stats, &d->tc_stats, in gnet_stats_finish_copy() 469 sizeof(d->tc_stats), d->padattr) < 0) in gnet_stats_finish_copy() 472 if (d->compat_xstats && d->xstats) { in gnet_stats_finish_copy() 473 if (gnet_stats_copy(d, d->compat_xstats, d->xstats, in gnet_stats_finish_copy() [all …]
|
| A D | utils.c | 123 u8 *d; in in4_pton() local 132 d = dbuf; in in4_pton() 143 *d++ = w & 0xff; in in4_pton() 189 u8 *d, *dc = NULL; in in6_pton() local 199 d = dbuf; in in6_pton() 227 dc = d; in in6_pton() 251 d += 4; in in6_pton() 281 i = 15; d--; in in6_pton() 284 while (d >= dc) in in6_pton() 285 dst[i--] = *d--; in in6_pton() [all …]
|
| /net/tipc/ |
| A D | discover.c | 282 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_remove_dest() 305 if (tipc_node(d->domain) && d->num_nodes) { in tipc_disc_timeout() 323 if (d->num_nodes && d->timer_intv > TIPC_DISC_SLOW) in tipc_disc_timeout() 331 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_timeout() 356 d = kmalloc(sizeof(*d), GFP_ATOMIC); in tipc_disc_create() 357 if (!d) in tipc_disc_create() 361 kfree(d); in tipc_disc_create() 379 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_create() 380 b->disc = d; in tipc_disc_create() 393 kfree(d); in tipc_disc_delete() [all …]
|
| /net/bridge/ |
| A D | br_sysfs_br.c | 36 struct net_bridge *br = to_bridge(d); in store_bridge_parm() 69 struct net_bridge *br = to_bridge(d); in forward_delay_show() 131 struct net_bridge *br = to_bridge(d); in ageing_time_show() 152 struct net_bridge *br = to_bridge(d); in stp_state_show() 175 struct net_bridge *br = to_bridge(d); in group_fwd_mask_show() 202 struct net_bridge *br = to_bridge(d); in priority_show() 260 struct net_bridge *br = to_bridge(d); in topology_change_detected_show() 268 struct net_bridge *br = to_bridge(d); in hello_timer_show() 276 struct net_bridge *br = to_bridge(d); in tcn_timer_show() 285 struct net_bridge *br = to_bridge(d); in topology_change_timer_show() [all …]
|
| /net/sched/ |
| A D | act_simple.c | 31 spin_lock(&d->tcf_lock); in tcf_simp_act() 40 (char *)d->tcfd_defdata, in tcf_simp_act() 42 spin_unlock(&d->tcf_lock); in tcf_simp_act() 43 return d->tcf_action; in tcf_simp_act() 49 kfree(d->tcfd_defdata); in tcf_simp_release() 66 struct tcf_defact *d; in reset_policy() local 72 d = to_defact(a); in reset_policy() 73 spin_lock_bh(&d->tcf_lock); in reset_policy() 98 struct tcf_defact *d; in tcf_simp_init() local 139 d = to_defact(*a); in tcf_simp_init() [all …]
|
| A D | act_skbmod.c | 34 tcf_lastuse_update(&d->tcf_tm); in tcf_skbmod_act() 37 action = READ_ONCE(d->tcf_action); in tcf_skbmod_act() 115 struct tcf_skbmod *d; in tcf_skbmod_init() local 187 d = to_skbmod(*a); in tcf_skbmod_init() 198 spin_lock_bh(&d->tcf_lock); in tcf_skbmod_init() 248 opt.index = d->tcf_index; in tcf_skbmod_dump() 251 spin_lock_bh(&d->tcf_lock); in tcf_skbmod_dump() 252 opt.action = d->tcf_action; in tcf_skbmod_dump() 268 tcf_tm_dump(&t, &d->tcf_tm); in tcf_skbmod_dump() 272 spin_unlock_bh(&d->tcf_lock); in tcf_skbmod_dump() [all …]
|
| A D | act_skbedit.c | 44 struct tcf_skbedit *d = to_skbedit(a); in tcf_skbedit_act() local 47 tcf_lastuse_update(&d->tcf_tm); in tcf_skbedit_act() 50 params = rcu_dereference_bh(d->params); in tcf_skbedit_act() 98 struct tcf_t *tm = &d->tcf_tm; in tcf_skbedit_stats_update() 126 struct tcf_skbedit *d; in tcf_skbedit_init() local 228 d = to_skbedit(*a); in tcf_skbedit_init() 231 d = to_skbedit(*a); in tcf_skbedit_init() 264 spin_lock_bh(&d->tcf_lock); in tcf_skbedit_init() 268 spin_unlock_bh(&d->tcf_lock); in tcf_skbedit_init() 290 .index = d->tcf_index, in tcf_skbedit_dump() [all …]
|
| A D | sch_sfq.c | 224 int d; in sfq_dec() local 228 d = q->slots[x].qlen--; in sfq_dec() 237 int d; in sfq_inc() local 241 d = ++q->slots[x].qlen; in sfq_inc() 242 if (q->cur_depth < d) in sfq_inc() 243 q->cur_depth = d; in sfq_inc() 289 sfq_index x, d = q->cur_depth; in sfq_drop() local 295 if (d > 1) { in sfq_drop() 296 x = q->dep[d].next; in sfq_drop() 309 if (d == 1) { in sfq_drop() [all …]
|
| A D | sch_mqprio.c | 662 struct gnet_dump *d) in mqprio_dump_class_stats() argument 663 __releases(d->lock) in mqprio_dump_class_stats() 664 __acquires(d->lock) in mqprio_dump_class_stats() 680 if (d->lock) in mqprio_dump_class_stats() 681 spin_unlock_bh(d->lock); in mqprio_dump_class_stats() 700 if (d->lock) in mqprio_dump_class_stats() 701 spin_lock_bh(d->lock); in mqprio_dump_class_stats() 702 if (gnet_stats_copy_basic(d, NULL, &bstats, false) < 0 || in mqprio_dump_class_stats() 703 gnet_stats_copy_queue(d, NULL, &qstats, qlen) < 0) in mqprio_dump_class_stats() 709 if (gnet_stats_copy_basic(d, sch->cpu_bstats, in mqprio_dump_class_stats() [all …]
|
| /net/ipv4/ |
| A D | ipconfig.c | 252 *last = d; in ic_open_devs() 346 kfree(d); in ic_close_devs() 550 while (d && d->dev != dev) in ic_rarp_recv() 551 d = d->next; in ic_rarp_recv() 552 if (!d) in ic_rarp_recv() 572 ic_dev = d; in ic_rarp_recv() 1060 while (d && d->dev != dev) in ic_bootp_recv() 1061 d = d->next; in ic_bootp_recv() 1062 if (!d) in ic_bootp_recv() 1159 ic_dev = d; in ic_bootp_recv() [all …]
|
| /net/ax25/ |
| A D | ax25_addr.c | 160 int d = 0; in ax25_addr_parse() local 189 if (d >= AX25_MAX_DIGIS) in ax25_addr_parse() 195 digi->ndigi = d + 1; in ax25_addr_parse() 198 digi->repeated[d] = 1; in ax25_addr_parse() 199 digi->lastrepeat = d; in ax25_addr_parse() 201 digi->repeated[d] = 0; in ax25_addr_parse() 206 d++; in ax25_addr_parse() 244 if (d == NULL || d->ndigi == 0) { in ax25_addr_build() 252 while (ct < d->ndigi) { in ax25_addr_build() 253 memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); in ax25_addr_build() [all …]
|
| /net/ceph/crush/ |
| A D | hash.c | 62 static __u32 crush_hash32_rjenkins1_4(__u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_rjenkins1_4() argument 64 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d; in crush_hash32_rjenkins1_4() 68 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_4() 72 crush_hashmix(y, d, hash); in crush_hash32_rjenkins1_4() 76 static __u32 crush_hash32_rjenkins1_5(__u32 a, __u32 b, __u32 c, __u32 d, in crush_hash32_rjenkins1_5() argument 79 __u32 hash = crush_hash_seed ^ a ^ b ^ c ^ d ^ e; in crush_hash32_rjenkins1_5() 83 crush_hashmix(c, d, hash); in crush_hash32_rjenkins1_5() 88 crush_hashmix(d, x, hash); in crush_hash32_rjenkins1_5() 124 __u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) in crush_hash32_4() argument 128 return crush_hash32_rjenkins1_4(a, b, c, d); in crush_hash32_4() [all …]
|
| /net/netfilter/ipset/ |
| A D | ip_set_list_set.c | 198 else if (e->id != d->id) { in list_set_utest() 203 if (d->before == 0) { in list_set_utest() 250 else if (d->id == e->id) in list_set_uadd() 252 else if (d->before == 0 || e->id != d->refid) in list_set_uadd() 254 else if (d->before > 0) in list_set_uadd() 278 if (d->before == 0) { in list_set_uadd() 282 } else if (d->before > 0) { in list_set_uadd() 300 e->id = d->id; in list_set_uadd() 329 else if (e->id != d->id) { in list_set_udel() 334 if (d->before > 0) { in list_set_udel() [all …]
|
| A D | ip_set_hash_gen.h | 488 u32 i, j, d; in mtype_gc_do() local 503 d++; in mtype_gc_do() 520 d++; in mtype_gc_do() 522 if (d >= AHASH_INIT_SIZE) { in mtype_gc_do() 523 if (d >= n->size) { in mtype_gc_do() 543 set_bit(d, tmp->used); in mtype_gc_do() 544 d++; in mtype_gc_do() 546 tmp->pos = d; in mtype_gc_do() 633 struct mtype_elem *d; in mtype_resize() local 745 memcpy(d, data, dsize); in mtype_resize() [all …]
|
| A D | pfxlen.c | 142 #define E(a, b, c, d) \ argument 145 htonl(c), htonl(d), \ 157 #define E(a, b, c, d) \ argument 159 (__force __be32)c, (__force __be32)d, \
|
| /net/bluetooth/ |
| A D | hci_conn.c | 697 d->count++; in bis_list() 730 d = kzalloc(sizeof(*d), GFP_KERNEL); in hci_le_terminate_big() 731 if (!d) in hci_le_terminate_big() 741 kfree(d); in hci_le_terminate_big() 770 d->count++; in find_bis() 780 d = kzalloc(sizeof(*d), GFP_KERNEL); in hci_le_big_terminate() 781 if (!d) in hci_le_big_terminate() 808 kfree(d); in hci_le_big_terminate() 882 memset(&d, 0, sizeof(d)); in cis_cleanup() 890 &d); in cis_cleanup() [all …]
|
| A D | leds.c | 28 struct hci_dev *d; in hci_leds_update_powered() local 32 list_for_each_entry(d, &hci_dev_list, list) { in hci_leds_update_powered() 33 if (test_bit(HCI_UP, &d->flags)) in hci_leds_update_powered()
|
| /net/netfilter/ |
| A D | nft_set_rbtree.c | 63 int d; in __nft_rbtree_lookup() local 73 if (d < 0) { in __nft_rbtree_lookup() 81 } else if (d > 0) in __nft_rbtree_lookup() 142 int d; in __nft_rbtree_get() local 153 if (d < 0) { in __nft_rbtree_get() 315 int d; in __nft_rbtree_insert() local 328 if (d < 0) { in __nft_rbtree_insert() 377 if (d == 0) { in __nft_rbtree_insert() 469 if (d < 0) in __nft_rbtree_insert() 554 int d; in nft_rbtree_deactivate() local [all …]
|
| A D | nft_cmp.c | 31 int d; in nft_cmp_eval() local 33 d = memcmp(®s->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval() 36 if (d != 0) in nft_cmp_eval() 40 if (d == 0) in nft_cmp_eval() 44 if (d == 0) in nft_cmp_eval() 48 if (d > 0) in nft_cmp_eval() 52 if (d == 0) in nft_cmp_eval() 56 if (d < 0) in nft_cmp_eval()
|
| /net/mac80211/ |
| A D | fils_aead.c | 28 u8 d[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE] = {}; in aes_s2v() local 35 crypto_shash_digest(desc, tmp, AES_BLOCK_SIZE, d); in aes_s2v() 39 gf_mulx(d); /* dbl */ in aes_s2v() 41 crypto_xor(d, tmp, AES_BLOCK_SIZE); in aes_s2v() 50 crypto_xor(d, addr[i] + len[i] - AES_BLOCK_SIZE, in aes_s2v() 55 gf_mulx(d); /* dbl */ in aes_s2v() 56 crypto_xor(d, addr[i], len[i]); in aes_s2v() 57 d[len[i]] ^= 0x80; in aes_s2v() 60 crypto_shash_finup(desc, d, AES_BLOCK_SIZE, v); in aes_s2v()
|
| A D | wpa.c | 811 *d++ = pn; in bip_ipn_set64() 812 *d++ = pn >> 8; in bip_ipn_set64() 813 *d++ = pn >> 16; in bip_ipn_set64() 814 *d++ = pn >> 24; in bip_ipn_set64() 816 *d = pn >> 40; in bip_ipn_set64() 821 *d++ = s[5]; in bip_ipn_swap() 822 *d++ = s[4]; in bip_ipn_swap() 823 *d++ = s[3]; in bip_ipn_swap() 824 *d++ = s[2]; in bip_ipn_swap() 825 *d++ = s[1]; in bip_ipn_swap() [all …]
|
| /net/ceph/ |
| A D | armor.c | 80 int a, b, c, d; in ceph_unarmor() local 91 d = decode_bits(src[3]); in ceph_unarmor() 92 if (a < 0 || b < 0 || c < 0 || d < 0) in ceph_unarmor() 101 *dst++ = ((c & 3) << 6) | d; in ceph_unarmor()
|
| /net/mctp/test/ |
| A D | utils.h | 74 #define mctp_test_create_skb_data(h, d) \ argument 75 __mctp_test_create_skb_data(h, d, sizeof(*d))
|