/net/bluetooth/rfcomm/ |
D | core.c | 58 static int rfcomm_queue_disc(struct rfcomm_dlc *d); 60 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 = from_timer(d, t, timer); 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 …]
|
D | sock.c | 50 static void rfcomm_sk_data_ready(struct rfcomm_dlc *d, struct sk_buff *skb) in rfcomm_sk_data_ready() argument 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() 61 rfcomm_dlc_throttle(d); in rfcomm_sk_data_ready() 64 static void rfcomm_sk_state_change(struct rfcomm_dlc *d, int err) in rfcomm_sk_state_change() argument 66 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() 78 sk->sk_state = d->state; in rfcomm_sk_state_change() 82 if (d->state == BT_CLOSED) { in rfcomm_sk_state_change() 88 if (d->state == BT_CONNECTED) in rfcomm_sk_state_change() 89 rfcomm_session_getaddr(d->session, in rfcomm_sk_state_change() [all …]
|
/net/core/ |
D | gen_stats.c | 24 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size, int padattr) in gnet_stats_copy() argument 26 if (nla_put_64bit(d->skb, type, size, buf, padattr)) in gnet_stats_copy() 31 if (d->lock) in gnet_stats_copy() 32 spin_unlock_bh(d->lock); in gnet_stats_copy() 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 35 d->xstats_len = 0; in gnet_stats_copy() 61 struct gnet_dump *d, int padattr) in gnet_stats_start_copy_compat() argument 64 memset(d, 0, sizeof(*d)); in gnet_stats_start_copy_compat() 67 d->tail = (struct nlattr *)skb_tail_pointer(skb); in gnet_stats_start_copy_compat() [all …]
|
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() 212 *d++ = (w >> 8) & 0xff; in in6_pton() 213 *d++ = w & 0xff; in in6_pton() 227 dc = d; in in6_pton() 249 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton() 251 d += 4; in in6_pton() [all …]
|
/net/tipc/ |
D | discover.c | 141 static bool tipc_disc_addr_trial_msg(struct tipc_discoverer *d, in tipc_disc_addr_trial_msg() argument 149 struct net *net = d->net; in tipc_disc_addr_trial_msg() 164 msg_set_prevnode(buf_msg(d->skb), sugg_addr); in tipc_disc_addr_trial_msg() 172 msg_set_prevnode(buf_msg(d->skb), tn->trial_addr); in tipc_disc_addr_trial_msg() 173 msg_set_type(buf_msg(d->skb), DSC_REQ_MSG); in tipc_disc_addr_trial_msg() 263 void tipc_disc_add_dest(struct tipc_discoverer *d) in tipc_disc_add_dest() argument 265 spin_lock_bh(&d->lock); in tipc_disc_add_dest() 266 d->num_nodes++; in tipc_disc_add_dest() 267 spin_unlock_bh(&d->lock); in tipc_disc_add_dest() 272 void tipc_disc_remove_dest(struct tipc_discoverer *d) in tipc_disc_remove_dest() argument [all …]
|
/net/bridge/ |
D | br_sysfs_br.c | 31 static ssize_t store_bridge_parm(struct device *d, in store_bridge_parm() argument 36 struct net_bridge *br = to_bridge(d); in store_bridge_parm() 66 static ssize_t forward_delay_show(struct device *d, in forward_delay_show() argument 69 struct net_bridge *br = to_bridge(d); in forward_delay_show() 79 static ssize_t forward_delay_store(struct device *d, in forward_delay_store() argument 83 return store_bridge_parm(d, buf, len, set_forward_delay); in forward_delay_store() 87 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show() argument 91 jiffies_to_clock_t(to_bridge(d)->hello_time)); in hello_time_show() 100 static ssize_t hello_time_store(struct device *d, in hello_time_store() argument 104 return store_bridge_parm(d, buf, len, set_hello_time); in hello_time_store() [all …]
|
/net/sched/ |
D | act_simple.c | 29 struct tcf_defact *d = to_defact(a); in tcf_simp_act() local 31 spin_lock(&d->tcf_lock); in tcf_simp_act() 32 tcf_lastuse_update(&d->tcf_tm); in tcf_simp_act() 33 bstats_update(&d->tcf_bstats, skb); in tcf_simp_act() 40 (char *)d->tcfd_defdata, in tcf_simp_act() 41 u64_stats_read(&d->tcf_bstats.packets)); in tcf_simp_act() 42 spin_unlock(&d->tcf_lock); in tcf_simp_act() 43 return d->tcf_action; in tcf_simp_act() 48 struct tcf_defact *d = to_defact(a); in tcf_simp_release() local 49 kfree(d->tcfd_defdata); in tcf_simp_release() [all …]
|
D | act_skbmod.c | 29 struct tcf_skbmod *d = to_skbmod(a); in tcf_skbmod_act() local 34 tcf_lastuse_update(&d->tcf_tm); in tcf_skbmod_act() 35 bstats_update(this_cpu_ptr(d->common.cpu_bstats), skb); in tcf_skbmod_act() 37 action = READ_ONCE(d->tcf_action); in tcf_skbmod_act() 42 p = rcu_dereference_bh(d->skbmod_p); in tcf_skbmod_act() 91 qstats_overlimit_inc(this_cpu_ptr(d->common.cpu_qstats)); 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() 201 p_old = rcu_dereference_protected(d->skbmod_p, 1); in tcf_skbmod_init() [all …]
|
D | act_skbedit.c | 44 struct tcf_skbedit *d = to_skbedit(a); in tcf_skbedit_act() local 48 tcf_lastuse_update(&d->tcf_tm); in tcf_skbedit_act() 49 bstats_update(this_cpu_ptr(d->common.cpu_bstats), skb); in tcf_skbedit_act() 51 params = rcu_dereference_bh(d->params); in tcf_skbedit_act() 52 action = READ_ONCE(d->tcf_action); in tcf_skbedit_act() 91 qstats_drop_inc(this_cpu_ptr(d->common.cpu_qstats)); in tcf_skbedit_act() 99 struct tcf_skbedit *d = to_skbedit(a); in tcf_skbedit_stats_update() local 100 struct tcf_t *tm = &d->tcf_tm; in tcf_skbedit_stats_update() 128 struct tcf_skbedit *d; in tcf_skbedit_init() local 230 d = to_skbedit(*a); in tcf_skbedit_init() [all …]
|
D | sch_sfq.c | 231 int d; in sfq_dec() local 235 d = q->slots[x].qlen--; in sfq_dec() 236 if (n == p && q->cur_depth == d) in sfq_dec() 244 int d; in sfq_inc() local 248 d = ++q->slots[x].qlen; in sfq_inc() 249 if (q->cur_depth < d) in sfq_inc() 250 q->cur_depth = d; in sfq_inc() 296 sfq_index x, d = q->cur_depth; in sfq_drop() local 302 if (d > 1) { in sfq_drop() 303 x = q->dep[d].next; in sfq_drop() [all …]
|
D | sch_mqprio.c | 664 struct gnet_dump *d) in mqprio_dump_class_stats() argument 665 __releases(d->lock) in mqprio_dump_class_stats() 666 __acquires(d->lock) in mqprio_dump_class_stats() 682 if (d->lock) in mqprio_dump_class_stats() 683 spin_unlock_bh(d->lock); in mqprio_dump_class_stats() 702 if (d->lock) in mqprio_dump_class_stats() 703 spin_lock_bh(d->lock); in mqprio_dump_class_stats() 704 if (gnet_stats_copy_basic(d, NULL, &bstats, false) < 0 || in mqprio_dump_class_stats() 705 gnet_stats_copy_queue(d, NULL, &qstats, qlen) < 0) in mqprio_dump_class_stats() 711 if (gnet_stats_copy_basic(d, sch->cpu_bstats, in mqprio_dump_class_stats() [all …]
|
/net/ipv4/ |
D | ipconfig.c | 212 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/ax25/ |
D | ax25_addr.c | 160 int d = 0; in ax25_addr_parse() local 189 if (d >= AX25_MAX_DIGIS) in ax25_addr_parse() 194 memcpy(&digi->calls[d], buf, AX25_ADDR_LEN); 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() 216 const ax25_address *dest, const ax25_digi *d, int flag, int modulus) in ax25_addr_build() argument 244 if (d == NULL || d->ndigi == 0) { in ax25_addr_build() [all …]
|
/net/ceph/crush/ |
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/ |
D | ip_set_list_set.c | 189 struct set_adt_elem *d = value; in list_set_utest() local 198 else if (e->id != d->id) { in list_set_utest() 203 if (d->before == 0) { in list_set_utest() 206 } else if (d->before > 0) { in list_set_utest() 209 next->id == d->refid; in list_set_utest() 211 ret = prev && prev->id == d->refid; in list_set_utest() 240 struct set_adt_elem *d = value; in list_set_uadd() local 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() [all …]
|
D | ip_set_hash_gen.h | 158 #define SET_ELEM_EXPIRED(set, d) \ argument 160 ip_set_timeout_expired(ext_timeout(d, set))) 235 #define mtype_do_data_match(d) 1 argument 314 struct mtype_elem d; /* Element value */ member 487 u32 i, j, d; in mtype_gc_do() local 500 for (j = 0, d = 0; j < n->pos; j++) { in mtype_gc_do() 502 d++; in mtype_gc_do() 519 d++; in mtype_gc_do() 521 if (d >= AHASH_INIT_SIZE) { in mtype_gc_do() 522 if (d >= n->size) { in mtype_gc_do() [all …]
|
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/netfilter/ |
D | nft_set_rbtree.c | 63 int d; in __nft_rbtree_lookup() local 72 d = memcmp(nft_set_ext_key(&rbe->ext), key, set->klen); in __nft_rbtree_lookup() 73 if (d < 0) { in __nft_rbtree_lookup() 81 } else if (d > 0) in __nft_rbtree_lookup() 144 int d; in __nft_rbtree_get() local 154 d = memcmp(this, key, set->klen); in __nft_rbtree_get() 155 if (d < 0) { in __nft_rbtree_get() 159 } else if (d > 0) { in __nft_rbtree_get() 317 int d; in __nft_rbtree_insert() local 328 d = nft_rbtree_cmp(set, rbe, new); in __nft_rbtree_insert() [all …]
|
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/bluetooth/ |
D | hci_conn.c | 748 struct iso_list_data *d = data; in bis_list() local 754 if (d->big != conn->iso_qos.bcast.big || d->bis == BT_ISO_QOS_BIS_UNSET || in bis_list() 755 d->bis != conn->iso_qos.bcast.bis) in bis_list() 758 d->count++; in bis_list() 763 struct iso_list_data *d = data; in terminate_big_sync() local 765 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", d->big, d->bis); in terminate_big_sync() 767 hci_disable_per_advertising_sync(hdev, d->bis); in terminate_big_sync() 768 hci_remove_ext_adv_instance_sync(hdev, d->bis, NULL); in terminate_big_sync() 771 if (!d->big_term) in terminate_big_sync() 774 return hci_le_terminate_big_sync(hdev, d->big, in terminate_big_sync() [all …]
|
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/mac80211/ |
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()
|
D | wpa.c | 799 static inline void bip_ipn_set64(u8 *d, u64 pn) in bip_ipn_set64() argument 801 *d++ = pn; in bip_ipn_set64() 802 *d++ = pn >> 8; in bip_ipn_set64() 803 *d++ = pn >> 16; in bip_ipn_set64() 804 *d++ = pn >> 24; in bip_ipn_set64() 805 *d++ = pn >> 32; in bip_ipn_set64() 806 *d = pn >> 40; in bip_ipn_set64() 809 static inline void bip_ipn_swap(u8 *d, const u8 *s) in bip_ipn_swap() argument 811 *d++ = s[5]; in bip_ipn_swap() 812 *d++ = s[4]; in bip_ipn_swap() [all …]
|
/net/ceph/ |
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/hsr/ |
D | hsr_debugfs.c | 60 struct dentry *d; in hsr_debugfs_rename() local 62 d = debugfs_rename(hsr_debugfs_root_dir, priv->node_tbl_root, in hsr_debugfs_rename() 64 if (IS_ERR(d)) in hsr_debugfs_rename() 67 priv->node_tbl_root = d; in hsr_debugfs_rename()
|