/net/phonet/ |
D | pep.c | 122 struct pep_sock *pn = pep_sk(sk); in pep_indicate() local 133 ph->pipe_handle = pn->pipe_handle; in pep_indicate() 143 struct pep_sock *pn = pep_sk(sk); in pipe_handler_request() local 154 ph->pipe_handle = pn->pipe_handle; in pipe_handler_request() 161 struct pep_sock *pn = pep_sk(sk); in pipe_handler_send_created_ind() local 164 pn->tx_fc, pn->rx_fc, in pipe_handler_send_created_ind() 241 struct pep_sock *pn = pep_sk(sk); in pipe_grant_credits() local 245 switch (pn->rx_fc) { in pipe_grant_credits() 251 pn->rx_credits = 1; in pipe_grant_credits() 254 if ((pn->rx_credits + CREDITS_THR) > CREDITS_MAX) in pipe_grant_credits() [all …]
|
D | socket.c | 87 struct pn_sock *pn = pn_sk(sknode); in pn_find_sock_by_sa() local 88 BUG_ON(!pn->sobject); /* unbound socket */ in pn_find_sock_by_sa() 94 if (pn_port(pn->sobject) != pn_port(obj)) in pn_find_sock_by_sa() 98 if (pn->resource != res) in pn_find_sock_by_sa() 101 if (pn_addr(pn->sobject) && in pn_find_sock_by_sa() 102 pn_addr(pn->sobject) != pn_addr(obj)) in pn_find_sock_by_sa() 170 struct pn_sock *pn = pn_sk(sk); in pn_socket_bind() local 190 if (sk->sk_state != TCP_CLOSE || pn_port(pn->sobject)) { in pn_socket_bind() 201 pn->sobject = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_bind() 202 pn->resource = spn->spn_resource; in pn_socket_bind() [all …]
|
D | af_phonet.c | 67 struct pn_sock *pn; in pn_socket_create() local 111 pn = pn_sk(sk); in pn_socket_create() 112 pn->sobject = 0; in pn_socket_create() 113 pn->dobject = 0; in pn_socket_create() 114 pn->resource = 0; in pn_socket_create() 242 struct pn_sock *pn = pn_sk(sk); in pn_skb_send() local 247 src = pn->sobject; in pn_skb_send() 252 dst = pn->dobject; in pn_skb_send() 253 res = pn->resource; in pn_skb_send()
|
/net/netfilter/ |
D | nf_conntrack_proto.c | 247 struct nf_proto_net *pn, in nf_ct_l4proto_register_sysctl() argument 253 if (pn->ctl_table != NULL) { in nf_ct_l4proto_register_sysctl() 255 &pn->ctl_table_header, in nf_ct_l4proto_register_sysctl() 257 pn->ctl_table); in nf_ct_l4proto_register_sysctl() 259 if (!pn->users) { in nf_ct_l4proto_register_sysctl() 260 kfree(pn->ctl_table); in nf_ct_l4proto_register_sysctl() 261 pn->ctl_table = NULL; in nf_ct_l4proto_register_sysctl() 271 struct nf_proto_net *pn, in nf_ct_l4proto_unregister_sysctl() argument 275 if (pn->ctl_table_header != NULL) in nf_ct_l4proto_unregister_sysctl() 276 nf_ct_unregister_sysctl(&pn->ctl_table_header, in nf_ct_l4proto_unregister_sysctl() [all …]
|
D | nf_conntrack_proto_generic.c | 156 static int generic_kmemdup_sysctl_table(struct nf_proto_net *pn, in generic_kmemdup_sysctl_table() argument 160 pn->ctl_table = kmemdup(generic_sysctl_table, in generic_kmemdup_sysctl_table() 163 if (!pn->ctl_table) in generic_kmemdup_sysctl_table() 166 pn->ctl_table[0].data = &gn->timeout; in generic_kmemdup_sysctl_table() 174 struct nf_proto_net *pn = &gn->pn; in generic_init_net() local 178 return generic_kmemdup_sysctl_table(pn, gn); in generic_init_net() 183 return &net->ct.nf_ct_proto.generic.pn; in generic_get_net_proto()
|
D | nf_conntrack_proto_udp.c | 223 static int udp_kmemdup_sysctl_table(struct nf_proto_net *pn, in udp_kmemdup_sysctl_table() argument 227 if (pn->ctl_table) in udp_kmemdup_sysctl_table() 229 pn->ctl_table = kmemdup(udp_sysctl_table, in udp_kmemdup_sysctl_table() 232 if (!pn->ctl_table) in udp_kmemdup_sysctl_table() 234 pn->ctl_table[0].data = &un->timeouts[UDP_CT_UNREPLIED]; in udp_kmemdup_sysctl_table() 235 pn->ctl_table[1].data = &un->timeouts[UDP_CT_REPLIED]; in udp_kmemdup_sysctl_table() 243 struct nf_proto_net *pn = &un->pn; in udp_init_net() local 245 if (!pn->users) { in udp_init_net() 252 return udp_kmemdup_sysctl_table(pn, un); in udp_init_net() 257 return &net->ct.nf_ct_proto.udp.pn; in udp_get_net_proto()
|
D | nf_conntrack_proto_udplite.c | 40 struct nf_proto_net pn; member 239 static int udplite_kmemdup_sysctl_table(struct nf_proto_net *pn, in udplite_kmemdup_sysctl_table() argument 243 if (pn->ctl_table) in udplite_kmemdup_sysctl_table() 246 pn->ctl_table = kmemdup(udplite_sysctl_table, in udplite_kmemdup_sysctl_table() 249 if (!pn->ctl_table) in udplite_kmemdup_sysctl_table() 252 pn->ctl_table[0].data = &un->timeouts[UDPLITE_CT_UNREPLIED]; in udplite_kmemdup_sysctl_table() 253 pn->ctl_table[1].data = &un->timeouts[UDPLITE_CT_REPLIED]; in udplite_kmemdup_sysctl_table() 261 struct nf_proto_net *pn = &un->pn; in udplite_init_net() local 263 if (!pn->users) { in udplite_init_net() 270 return udplite_kmemdup_sysctl_table(pn, un); in udplite_init_net()
|
D | nf_conntrack_proto_dccp.c | 390 struct nf_proto_net pn; member 822 static int dccp_kmemdup_sysctl_table(struct net *net, struct nf_proto_net *pn, in dccp_kmemdup_sysctl_table() argument 826 if (pn->ctl_table) in dccp_kmemdup_sysctl_table() 829 pn->ctl_table = kmemdup(dccp_sysctl_table, in dccp_kmemdup_sysctl_table() 832 if (!pn->ctl_table) in dccp_kmemdup_sysctl_table() 835 pn->ctl_table[0].data = &dn->dccp_timeout[CT_DCCP_REQUEST]; in dccp_kmemdup_sysctl_table() 836 pn->ctl_table[1].data = &dn->dccp_timeout[CT_DCCP_RESPOND]; in dccp_kmemdup_sysctl_table() 837 pn->ctl_table[2].data = &dn->dccp_timeout[CT_DCCP_PARTOPEN]; in dccp_kmemdup_sysctl_table() 838 pn->ctl_table[3].data = &dn->dccp_timeout[CT_DCCP_OPEN]; in dccp_kmemdup_sysctl_table() 839 pn->ctl_table[4].data = &dn->dccp_timeout[CT_DCCP_CLOSEREQ]; in dccp_kmemdup_sysctl_table() [all …]
|
D | nf_conntrack_proto_sctp.c | 149 struct nf_proto_net pn; member 710 static int sctp_kmemdup_sysctl_table(struct nf_proto_net *pn, in sctp_kmemdup_sysctl_table() argument 714 if (pn->ctl_table) in sctp_kmemdup_sysctl_table() 717 pn->ctl_table = kmemdup(sctp_sysctl_table, in sctp_kmemdup_sysctl_table() 720 if (!pn->ctl_table) in sctp_kmemdup_sysctl_table() 723 pn->ctl_table[0].data = &sn->timeouts[SCTP_CONNTRACK_CLOSED]; in sctp_kmemdup_sysctl_table() 724 pn->ctl_table[1].data = &sn->timeouts[SCTP_CONNTRACK_COOKIE_WAIT]; in sctp_kmemdup_sysctl_table() 725 pn->ctl_table[2].data = &sn->timeouts[SCTP_CONNTRACK_COOKIE_ECHOED]; in sctp_kmemdup_sysctl_table() 726 pn->ctl_table[3].data = &sn->timeouts[SCTP_CONNTRACK_ESTABLISHED]; in sctp_kmemdup_sysctl_table() 727 pn->ctl_table[4].data = &sn->timeouts[SCTP_CONNTRACK_SHUTDOWN_SENT]; in sctp_kmemdup_sysctl_table() [all …]
|
D | nf_conntrack_proto_tcp.c | 1486 static int tcp_kmemdup_sysctl_table(struct nf_proto_net *pn, in tcp_kmemdup_sysctl_table() argument 1490 if (pn->ctl_table) in tcp_kmemdup_sysctl_table() 1493 pn->ctl_table = kmemdup(tcp_sysctl_table, in tcp_kmemdup_sysctl_table() 1496 if (!pn->ctl_table) in tcp_kmemdup_sysctl_table() 1499 pn->ctl_table[0].data = &tn->timeouts[TCP_CONNTRACK_SYN_SENT]; in tcp_kmemdup_sysctl_table() 1500 pn->ctl_table[1].data = &tn->timeouts[TCP_CONNTRACK_SYN_RECV]; in tcp_kmemdup_sysctl_table() 1501 pn->ctl_table[2].data = &tn->timeouts[TCP_CONNTRACK_ESTABLISHED]; in tcp_kmemdup_sysctl_table() 1502 pn->ctl_table[3].data = &tn->timeouts[TCP_CONNTRACK_FIN_WAIT]; in tcp_kmemdup_sysctl_table() 1503 pn->ctl_table[4].data = &tn->timeouts[TCP_CONNTRACK_CLOSE_WAIT]; in tcp_kmemdup_sysctl_table() 1504 pn->ctl_table[5].data = &tn->timeouts[TCP_CONNTRACK_LAST_ACK]; in tcp_kmemdup_sysctl_table() [all …]
|
/net/mac80211/ |
D | wpa.c | 195 u64 pn; in tkip_encrypt_skb() local 227 pn = atomic64_inc_return(&key->conf.tx_pn); in tkip_encrypt_skb() 228 pos = ieee80211_tkip_add_iv(pos, &key->conf, pn); in tkip_encrypt_skb() 309 static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad) in ccmp_special_blocks() argument 353 memcpy(&b_0[8], pn, IEEE80211_CCMP_PN_LEN); in ccmp_special_blocks() 376 static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id) in ccmp_pn2hdr() argument 378 hdr[0] = pn[5]; in ccmp_pn2hdr() 379 hdr[1] = pn[4]; in ccmp_pn2hdr() 382 hdr[4] = pn[3]; in ccmp_pn2hdr() 383 hdr[5] = pn[2]; in ccmp_pn2hdr() [all …]
|
D | key.c | 986 const u8 *pn; in ieee80211_get_key_rx_seq() local 1002 pn = key->u.ccmp.rx_pn[IEEE80211_NUM_TIDS]; in ieee80211_get_key_rx_seq() 1004 pn = key->u.ccmp.rx_pn[tid]; in ieee80211_get_key_rx_seq() 1005 memcpy(seq->ccmp.pn, pn, IEEE80211_CCMP_PN_LEN); in ieee80211_get_key_rx_seq() 1011 pn = key->u.aes_cmac.rx_pn; in ieee80211_get_key_rx_seq() 1012 memcpy(seq->aes_cmac.pn, pn, IEEE80211_CMAC_PN_LEN); in ieee80211_get_key_rx_seq() 1018 pn = key->u.aes_gmac.rx_pn; in ieee80211_get_key_rx_seq() 1019 memcpy(seq->aes_gmac.pn, pn, IEEE80211_GMAC_PN_LEN); in ieee80211_get_key_rx_seq() 1026 pn = key->u.gcmp.rx_pn[IEEE80211_NUM_TIDS]; in ieee80211_get_key_rx_seq() 1028 pn = key->u.gcmp.rx_pn[tid]; in ieee80211_get_key_rx_seq() [all …]
|
D | debugfs_key.c | 90 u64 pn; in key_tx_spec_write() local 108 ret = kstrtou64_from_user(userbuf, count, 16, &pn); in key_tx_spec_write() 112 if (pn >= (1ULL << 48)) in key_tx_spec_write() 114 atomic64_set(&key->conf.tx_pn, pn); in key_tx_spec_write() 124 u64 pn; in key_tx_spec_read() local 135 pn = atomic64_read(&key->conf.tx_pn); in key_tx_spec_read() 137 TKIP_PN_TO_IV32(pn), in key_tx_spec_read() 138 TKIP_PN_TO_IV16(pn)); in key_tx_spec_read() 148 pn = atomic64_read(&key->conf.tx_pn); in key_tx_spec_read() 150 (u8)(pn >> 40), (u8)(pn >> 32), (u8)(pn >> 24), in key_tx_spec_read() [all …]
|
D | tkip.c | 146 u8 *ieee80211_tkip_add_iv(u8 *pos, struct ieee80211_key_conf *keyconf, u64 pn) in ieee80211_tkip_add_iv() argument 148 pos = write_tkip_iv(pos, TKIP_PN_TO_IV16(pn)); in ieee80211_tkip_add_iv() 150 put_unaligned_le32(TKIP_PN_TO_IV32(pn), pos); in ieee80211_tkip_add_iv()
|
/net/ipv4/ |
D | fib_trie.c | 948 struct key_vector *pn, *n = t->kv; in fib_find_node() local 952 pn = n; in fib_find_node() 982 *tp = pn; in fib_find_node() 1296 struct key_vector *n, *pn; in fib_table_lookup() local 1303 pn = t->kv; in fib_table_lookup() 1306 n = get_child_rcu(pn, cindex); in fib_table_lookup() 1343 pn = n; in fib_table_lookup() 1385 t_key pkey = pn->key; in fib_table_lookup() 1391 if (IS_TRIE(pn)) in fib_table_lookup() 1397 pn = node_parent_rcu(pn); in fib_table_lookup() [all …]
|
/net/wireless/ |
D | lib80211_crypt_ccmp.c | 113 u8 * pn, size_t dlen, u8 * b0, u8 * auth, u8 * s0) in ccmp_init_blocks() argument 142 memcpy(b0 + 8, pn, CCMP_PN_LEN); in ccmp_init_blocks() 293 u8 pn[6]; in lib80211_ccmp_decrypt() local 324 pn[0] = pos[7]; in lib80211_ccmp_decrypt() 325 pn[1] = pos[6]; in lib80211_ccmp_decrypt() 326 pn[2] = pos[5]; in lib80211_ccmp_decrypt() 327 pn[3] = pos[4]; in lib80211_ccmp_decrypt() 328 pn[4] = pos[1]; in lib80211_ccmp_decrypt() 329 pn[5] = pos[0]; in lib80211_ccmp_decrypt() 332 if (ccmp_replay_check(pn, key->rx_pn)) { in lib80211_ccmp_decrypt() [all …]
|
/net/ipv6/ |
D | ip6_fib.c | 486 struct fib6_node *pn = NULL; in fib6_add_1() local 538 pn = fn; in fib6_add_1() 569 ln->parent = pn; in fib6_add_1() 573 pn->right = ln; in fib6_add_1() 575 pn->left = ln; in fib6_add_1() 589 pn = fn->parent; in fib6_add_1() 626 in->parent = pn; in fib6_add_1() 634 pn->right = in; in fib6_add_1() 636 pn->left = in; in fib6_add_1() 667 ln->parent = pn; in fib6_add_1() [all …]
|
/net/l2tp/ |
D | l2tp_eth.c | 85 struct l2tp_eth_net *pn = l2tp_eth_pernet(dev_net(dev)); in l2tp_eth_dev_uninit() local 87 spin_lock(&pn->l2tp_eth_lock); in l2tp_eth_dev_uninit() 89 spin_unlock(&pn->l2tp_eth_lock); in l2tp_eth_dev_uninit() 218 struct l2tp_eth_net *pn; in l2tp_eth_create() local 281 pn = l2tp_eth_pernet(dev_net(dev)); in l2tp_eth_create() 282 spin_lock(&pn->l2tp_eth_lock); in l2tp_eth_create() 283 list_add(&priv->list, &pn->l2tp_eth_dev_list); in l2tp_eth_create() 284 spin_unlock(&pn->l2tp_eth_lock); in l2tp_eth_create() 299 struct l2tp_eth_net *pn = net_generic(net, l2tp_eth_net_id); in l2tp_eth_init_net() local 301 INIT_LIST_HEAD(&pn->l2tp_eth_dev_list); in l2tp_eth_init_net() [all …]
|
D | l2tp_core.c | 169 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id) in l2tp_session_id_hash_2() argument 171 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2() 224 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_find_2() local 226 l2tp_session_id_hash_2(pn, session_id); in l2tp_session_find_2() 292 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get() local 294 session_list = l2tp_session_id_hash_2(pn, session_id); in l2tp_session_get() 362 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get_by_ifname() local 368 hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) { in l2tp_session_get_by_ifname() 392 struct l2tp_net *pn; in l2tp_session_add_to_tunnel() local 402 pn = l2tp_pernet(tunnel->l2tp_net); in l2tp_session_add_to_tunnel() [all …]
|
/net/ipv6/netfilter/ |
D | nf_conntrack_proto_icmpv6.c | 339 static int icmpv6_kmemdup_sysctl_table(struct nf_proto_net *pn, in icmpv6_kmemdup_sysctl_table() argument 343 pn->ctl_table = kmemdup(icmpv6_sysctl_table, in icmpv6_kmemdup_sysctl_table() 346 if (!pn->ctl_table) in icmpv6_kmemdup_sysctl_table() 349 pn->ctl_table[0].data = &in->timeout; in icmpv6_kmemdup_sysctl_table() 357 struct nf_proto_net *pn = &in->pn; in icmpv6_init_net() local 361 return icmpv6_kmemdup_sysctl_table(pn, in); in icmpv6_init_net() 366 return &net->ct.nf_ct_proto.icmpv6.pn; in icmpv6_get_net_proto()
|
/net/ipv4/netfilter/ |
D | nf_conntrack_proto_icmp.c | 332 static int icmp_kmemdup_sysctl_table(struct nf_proto_net *pn, in icmp_kmemdup_sysctl_table() argument 336 pn->ctl_table = kmemdup(icmp_sysctl_table, in icmp_kmemdup_sysctl_table() 339 if (!pn->ctl_table) in icmp_kmemdup_sysctl_table() 342 pn->ctl_table[0].data = &in->timeout; in icmp_kmemdup_sysctl_table() 350 struct nf_proto_net *pn = &in->pn; in icmp_init_net() local 354 return icmp_kmemdup_sysctl_table(pn, in); in icmp_init_net() 359 return &net->ct.nf_ct_proto.icmp.pn; in icmp_get_net_proto()
|
/net/core/ |
D | pktgen.c | 455 static void pktgen_run_all_threads(struct pktgen_net *pn); 456 static void pktgen_reset_all_threads(struct pktgen_net *pn); 457 static void pktgen_stop_all_threads_ifs(struct pktgen_net *pn); 489 struct pktgen_net *pn = net_generic(current->nsproxy->net_ns, pg_net_id); in pgctrl_write() local 506 pktgen_stop_all_threads_ifs(pn); in pgctrl_write() 509 pktgen_run_all_threads(pn); in pgctrl_write() 512 pktgen_reset_all_threads(pn); in pgctrl_write() 1954 static struct pktgen_dev *__pktgen_NN_threads(const struct pktgen_net *pn, in __pktgen_NN_threads() argument 1961 list_for_each_entry(t, &pn->pktgen_threads, th_list) { in __pktgen_NN_threads() 1977 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument [all …]
|
D | neighbour.c | 1705 struct pneigh_entry *pn; in neigh_add() local 1708 pn = pneigh_lookup(tbl, net, dst, dev, 1); in neigh_add() 1709 if (pn) { in neigh_add() 1710 pn->flags = ndm->ndm_flags; in neigh_add() 2215 static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn, in pneigh_fill_info() argument 2230 ndm->ndm_flags = pn->flags | NTF_PROXY; in pneigh_fill_info() 2232 ndm->ndm_ifindex = pn->dev ? pn->dev->ifindex : 0; in pneigh_fill_info() 2235 if (nla_put(skb, NDA_DST, tbl->key_len, pn->key)) in pneigh_fill_info() 2624 struct pneigh_entry *pn = NULL; in pneigh_get_first() local 2629 pn = tbl->phash_buckets[bucket]; in pneigh_get_first() [all …]
|
/net/bluetooth/rfcomm/ |
D | core.c | 920 struct rfcomm_pn *pn; in rfcomm_send_pn() local 928 hdr->len = __len8(sizeof(*mcc) + sizeof(*pn)); in rfcomm_send_pn() 932 mcc->len = __len8(sizeof(*pn)); in rfcomm_send_pn() 934 pn = (void *) ptr; ptr += sizeof(*pn); in rfcomm_send_pn() 935 pn->dlci = d->dlci; in rfcomm_send_pn() 936 pn->priority = d->priority; in rfcomm_send_pn() 937 pn->ack_timer = 0; in rfcomm_send_pn() 938 pn->max_retrans = 0; in rfcomm_send_pn() 941 pn->flow_ctrl = cr ? 0xf0 : 0xe0; in rfcomm_send_pn() 942 pn->credits = RFCOMM_DEFAULT_CREDITS; in rfcomm_send_pn() [all …]
|
/net/irda/ |
D | discovery.c | 261 struct irda_device_info *irlmp_copy_discoveries(hashbin_t *log, int *pn, in irlmp_copy_discoveries() argument 271 IRDA_ASSERT(pn != NULL, return NULL;); in irlmp_copy_discoveries() 312 *pn = i; in irlmp_copy_discoveries()
|