/net/phonet/ |
D | pep.c | 110 struct pep_sock *pn = pep_sk(sk); in pep_indicate() local 121 ph->pipe_handle = pn->pipe_handle; in pep_indicate() 131 struct pep_sock *pn = pep_sk(sk); in pipe_handler_request() local 142 ph->pipe_handle = pn->pipe_handle; in pipe_handler_request() 149 struct pep_sock *pn = pep_sk(sk); in pipe_handler_send_created_ind() local 152 pn->tx_fc, pn->rx_fc, in pipe_handler_send_created_ind() 229 struct pep_sock *pn = pep_sk(sk); in pipe_grant_credits() local 233 switch (pn->rx_fc) { in pipe_grant_credits() 239 pn->rx_credits = 1; in pipe_grant_credits() 242 if ((pn->rx_credits + CREDITS_THR) > CREDITS_MAX) in pipe_grant_credits() [all …]
|
D | socket.c | 76 struct pn_sock *pn = pn_sk(sknode); in pn_find_sock_by_sa() local 77 BUG_ON(!pn->sobject); /* unbound socket */ in pn_find_sock_by_sa() 83 if (pn_port(pn->sobject) != pn_port(obj)) in pn_find_sock_by_sa() 87 if (pn->resource != res) in pn_find_sock_by_sa() 90 if (pn_addr(pn->sobject) && in pn_find_sock_by_sa() 91 pn_addr(pn->sobject) != pn_addr(obj)) in pn_find_sock_by_sa() 159 struct pn_sock *pn = pn_sk(sk); in pn_socket_bind() local 179 if (sk->sk_state != TCP_CLOSE || pn_port(pn->sobject)) { in pn_socket_bind() 190 pn->sobject = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_bind() 191 pn->resource = spn->spn_resource; in pn_socket_bind() [all …]
|
D | af_phonet.c | 54 struct pn_sock *pn; in pn_socket_create() local 98 pn = pn_sk(sk); in pn_socket_create() 99 pn->sobject = 0; in pn_socket_create() 100 pn->dobject = 0; in pn_socket_create() 101 pn->resource = 0; in pn_socket_create() 229 struct pn_sock *pn = pn_sk(sk); in pn_skb_send() local 234 src = pn->sobject; in pn_skb_send() 239 dst = pn->dobject; in pn_skb_send() 240 res = pn->resource; in pn_skb_send()
|
/net/mac80211/ |
D | wpa.c | 201 u64 pn; in tkip_encrypt_skb() local 233 pn = atomic64_inc_return(&key->conf.tx_pn); in tkip_encrypt_skb() 234 pos = ieee80211_tkip_add_iv(pos, &key->conf, pn); in tkip_encrypt_skb() 315 static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad) in ccmp_special_blocks() argument 359 memcpy(&b_0[8], pn, IEEE80211_CCMP_PN_LEN); in ccmp_special_blocks() 382 static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id) in ccmp_pn2hdr() argument 384 hdr[0] = pn[5]; in ccmp_pn2hdr() 385 hdr[1] = pn[4]; in ccmp_pn2hdr() 388 hdr[4] = pn[3]; in ccmp_pn2hdr() 389 hdr[5] = pn[2]; in ccmp_pn2hdr() [all …]
|
D | debugfs_key.c | 87 u64 pn; in key_tx_spec_write() local 105 ret = kstrtou64_from_user(userbuf, count, 16, &pn); in key_tx_spec_write() 109 if (pn >= (1ULL << 48)) in key_tx_spec_write() 111 atomic64_set(&key->conf.tx_pn, pn); in key_tx_spec_write() 121 u64 pn; in key_tx_spec_read() local 132 pn = atomic64_read(&key->conf.tx_pn); in key_tx_spec_read() 134 TKIP_PN_TO_IV32(pn), in key_tx_spec_read() 135 TKIP_PN_TO_IV16(pn)); in key_tx_spec_read() 145 pn = atomic64_read(&key->conf.tx_pn); in key_tx_spec_read() 147 (u8)(pn >> 40), (u8)(pn >> 32), (u8)(pn >> 24), in key_tx_spec_read() [all …]
|
D | key.c | 1113 const u8 *pn; in ieee80211_get_key_rx_seq() local 1129 pn = key->u.ccmp.rx_pn[IEEE80211_NUM_TIDS]; in ieee80211_get_key_rx_seq() 1131 pn = key->u.ccmp.rx_pn[tid]; in ieee80211_get_key_rx_seq() 1132 memcpy(seq->ccmp.pn, pn, IEEE80211_CCMP_PN_LEN); in ieee80211_get_key_rx_seq() 1138 pn = key->u.aes_cmac.rx_pn; in ieee80211_get_key_rx_seq() 1139 memcpy(seq->aes_cmac.pn, pn, IEEE80211_CMAC_PN_LEN); in ieee80211_get_key_rx_seq() 1145 pn = key->u.aes_gmac.rx_pn; in ieee80211_get_key_rx_seq() 1146 memcpy(seq->aes_gmac.pn, pn, IEEE80211_GMAC_PN_LEN); in ieee80211_get_key_rx_seq() 1153 pn = key->u.gcmp.rx_pn[IEEE80211_NUM_TIDS]; in ieee80211_get_key_rx_seq() 1155 pn = key->u.gcmp.rx_pn[tid]; in ieee80211_get_key_rx_seq() [all …]
|
D | tkip.c | 143 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key_conf *keyconf, u64 pn) in ieee80211_tkip_add_iv() argument 145 pos = write_tkip_iv(pos, TKIP_PN_TO_IV16(pn)); in ieee80211_tkip_add_iv() 147 put_unaligned_le32(TKIP_PN_TO_IV32(pn), pos); in ieee80211_tkip_add_iv()
|
D | tx.c | 3427 u64 pn; in ieee80211_xmit_fast_finish() local 3435 pn = atomic64_inc_return(&key->conf.tx_pn); in ieee80211_xmit_fast_finish() 3436 crypto_hdr[0] = pn; in ieee80211_xmit_fast_finish() 3437 crypto_hdr[1] = pn >> 8; in ieee80211_xmit_fast_finish() 3439 crypto_hdr[4] = pn >> 16; in ieee80211_xmit_fast_finish() 3440 crypto_hdr[5] = pn >> 24; in ieee80211_xmit_fast_finish() 3441 crypto_hdr[6] = pn >> 32; in ieee80211_xmit_fast_finish() 3442 crypto_hdr[7] = pn >> 40; in ieee80211_xmit_fast_finish()
|
D | rx.c | 2275 u8 pn[IEEE80211_CCMP_PN_LEN], *rpn; in ieee80211_rx_h_defragment() local 2284 memcpy(pn, entry->last_pn, IEEE80211_CCMP_PN_LEN); in ieee80211_rx_h_defragment() 2286 pn[i]++; in ieee80211_rx_h_defragment() 2287 if (pn[i]) in ieee80211_rx_h_defragment() 2291 rpn = rx->ccm_gcm.pn; in ieee80211_rx_h_defragment() 2292 if (memcmp(pn, rpn, IEEE80211_CCMP_PN_LEN)) in ieee80211_rx_h_defragment() 2294 memcpy(entry->last_pn, pn, IEEE80211_CCMP_PN_LEN); in ieee80211_rx_h_defragment()
|
D | ieee80211_i.h | 231 u8 pn[IEEE80211_CCMP_PN_LEN]; member
|
D | cfg.c | 625 memcpy(seq, kseq.ccmp.pn, 6); in ieee80211_get_key()
|
/net/ipv4/ |
D | fib_trie.c | 940 struct key_vector *pn, *n = t->kv; in fib_find_node() local 944 pn = n; in fib_find_node() 974 *tp = pn; in fib_find_node() 1320 struct key_vector *n, *pn; in fib_table_lookup() local 1325 pn = t->kv; in fib_table_lookup() 1328 n = get_child_rcu(pn, cindex); in fib_table_lookup() 1367 pn = n; in fib_table_lookup() 1409 t_key pkey = pn->key; in fib_table_lookup() 1415 if (IS_TRIE(pn)) { in fib_table_lookup() 1424 pn = node_parent_rcu(pn); in fib_table_lookup() [all …]
|
/net/wireless/ |
D | lib80211_crypt_ccmp.c | 95 const u8 *pn, u8 *iv, u8 *aad) in ccmp_init_iv_and_aad() argument 127 memcpy(iv + 8, pn, CCMP_PN_LEN); in ccmp_init_iv_and_aad() 263 u8 pn[6]; in lib80211_ccmp_decrypt() local 293 pn[0] = pos[7]; in lib80211_ccmp_decrypt() 294 pn[1] = pos[6]; in lib80211_ccmp_decrypt() 295 pn[2] = pos[5]; in lib80211_ccmp_decrypt() 296 pn[3] = pos[4]; in lib80211_ccmp_decrypt() 297 pn[4] = pos[1]; in lib80211_ccmp_decrypt() 298 pn[5] = pos[0]; in lib80211_ccmp_decrypt() 301 if (ccmp_replay_check(pn, key->rx_pn)) { in lib80211_ccmp_decrypt() [all …]
|
/net/l2tp/ |
D | l2tp_core.c | 136 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id) in l2tp_session_id_hash_2() argument 138 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2() 164 const struct l2tp_net *pn = l2tp_pernet(net); in l2tp_tunnel_get() local 168 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_tunnel_get() 184 const struct l2tp_net *pn = l2tp_pernet(net); in l2tp_tunnel_get_nth() local 189 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_tunnel_get_nth() 274 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get_by_ifname() local 280 hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) { in l2tp_session_get_by_ifname() 302 struct l2tp_net *pn; in l2tp_session_register() local 320 pn = l2tp_pernet(tunnel->l2tp_net); in l2tp_session_register() [all …]
|
/net/ipv6/ |
D | ip6_fib.c | 695 struct fib6_node *pn = NULL; in fib6_add_1() local 753 pn = fn; in fib6_add_1() 789 RCU_INIT_POINTER(ln->parent, pn); in fib6_add_1() 792 rcu_assign_pointer(pn->right, ln); in fib6_add_1() 794 rcu_assign_pointer(pn->left, ln); in fib6_add_1() 808 pn = rcu_dereference_protected(fn->parent, in fib6_add_1() 846 RCU_INIT_POINTER(in->parent, pn); in fib6_add_1() 853 rcu_assign_pointer(pn->right, in); in fib6_add_1() 855 rcu_assign_pointer(pn->left, in); in fib6_add_1() 884 RCU_INIT_POINTER(ln->parent, pn); in fib6_add_1() [all …]
|
D | route.c | 1158 struct fib6_node *pn, *sn; in fib6_backtrack() local 1162 pn = rcu_dereference(fn->parent); in fib6_backtrack() 1163 sn = FIB6_SUBTREE(pn); in fib6_backtrack() 1167 fn = pn; in fib6_backtrack()
|
/net/core/ |
D | pktgen.c | 468 static void pktgen_run_all_threads(struct pktgen_net *pn); 469 static void pktgen_reset_all_threads(struct pktgen_net *pn); 470 static void pktgen_stop_all_threads_ifs(struct pktgen_net *pn); 502 struct pktgen_net *pn = net_generic(current->nsproxy->net_ns, pg_net_id); in pgctrl_write() local 519 pktgen_stop_all_threads_ifs(pn); in pgctrl_write() 522 pktgen_run_all_threads(pn); in pgctrl_write() 525 pktgen_reset_all_threads(pn); in pgctrl_write() 1856 static struct pktgen_dev *__pktgen_NN_threads(const struct pktgen_net *pn, in __pktgen_NN_threads() argument 1863 list_for_each_entry(t, &pn->pktgen_threads, th_list) { in __pktgen_NN_threads() 1879 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument [all …]
|
D | neighbour.c | 1921 struct pneigh_entry *pn; in neigh_add() local 1924 pn = pneigh_lookup(tbl, net, dst, dev, 1); in neigh_add() 1925 if (pn) { in neigh_add() 1926 pn->flags = ndm->ndm_flags; in neigh_add() 1928 pn->protocol = protocol; in neigh_add() 2494 static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn, in pneigh_fill_info() argument 2509 ndm->ndm_flags = pn->flags | NTF_PROXY; in pneigh_fill_info() 2511 ndm->ndm_ifindex = pn->dev ? pn->dev->ifindex : 0; in pneigh_fill_info() 2514 if (nla_put(skb, NDA_DST, tbl->key_len, pn->key)) in pneigh_fill_info() 2517 if (pn->protocol && nla_put_u8(skb, NDA_PROTOCOL, pn->protocol)) in pneigh_fill_info() [all …]
|
/net/bluetooth/rfcomm/ |
D | core.c | 957 struct rfcomm_pn *pn; in rfcomm_send_pn() local 965 hdr->len = __len8(sizeof(*mcc) + sizeof(*pn)); in rfcomm_send_pn() 969 mcc->len = __len8(sizeof(*pn)); in rfcomm_send_pn() 971 pn = (void *) ptr; ptr += sizeof(*pn); in rfcomm_send_pn() 972 pn->dlci = d->dlci; in rfcomm_send_pn() 973 pn->priority = d->priority; in rfcomm_send_pn() 974 pn->ack_timer = 0; in rfcomm_send_pn() 975 pn->max_retrans = 0; in rfcomm_send_pn() 978 pn->flow_ctrl = cr ? 0xf0 : 0xe0; in rfcomm_send_pn() 979 pn->credits = RFCOMM_DEFAULT_CREDITS; in rfcomm_send_pn() [all …]
|
/net/mac802154/ |
D | llsec.c | 336 struct ieee802154_llsec_device_key *pos, *pn; in llsec_dev_free() local 339 list_for_each_entry_safe(pos, pn, &dev->dev.keys, list) { in llsec_dev_free()
|