/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() 168 struct pn_sock *pn = pn_sk(sk); in pn_socket_bind() local 188 if (sk->sk_state != TCP_CLOSE || pn_port(pn->sobject)) { in pn_socket_bind() 199 pn->sobject = pn_object(saddr, pn_port(pn->sobject)); in pn_socket_bind() 200 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 | 297 struct nf_proto_net *pn, in nf_ct_l4proto_register_sysctl() argument 303 if (pn->ctl_table != NULL) { in nf_ct_l4proto_register_sysctl() 305 &pn->ctl_table_header, in nf_ct_l4proto_register_sysctl() 307 pn->ctl_table); in nf_ct_l4proto_register_sysctl() 309 if (!pn->users) { in nf_ct_l4proto_register_sysctl() 310 kfree(pn->ctl_table); in nf_ct_l4proto_register_sysctl() 311 pn->ctl_table = NULL; in nf_ct_l4proto_register_sysctl() 316 if (l4proto->l3proto != AF_INET6 && pn->ctl_compat_table != NULL) { in nf_ct_l4proto_register_sysctl() 318 nf_ct_kfree_compat_sysctl_table(pn); in nf_ct_l4proto_register_sysctl() 322 &pn->ctl_compat_header, in nf_ct_l4proto_register_sysctl() [all …]
|
D | nf_conntrack_proto_generic.c | 167 static int generic_kmemdup_sysctl_table(struct nf_proto_net *pn, in generic_kmemdup_sysctl_table() argument 171 pn->ctl_table = kmemdup(generic_sysctl_table, in generic_kmemdup_sysctl_table() 174 if (!pn->ctl_table) in generic_kmemdup_sysctl_table() 177 pn->ctl_table[0].data = &gn->timeout; in generic_kmemdup_sysctl_table() 182 static int generic_kmemdup_compat_sysctl_table(struct nf_proto_net *pn, in generic_kmemdup_compat_sysctl_table() argument 187 pn->ctl_compat_table = kmemdup(generic_compat_sysctl_table, in generic_kmemdup_compat_sysctl_table() 190 if (!pn->ctl_compat_table) in generic_kmemdup_compat_sysctl_table() 193 pn->ctl_compat_table[0].data = &gn->timeout; in generic_kmemdup_compat_sysctl_table() 203 struct nf_proto_net *pn = &gn->pn; in generic_init_net() local 207 ret = generic_kmemdup_compat_sysctl_table(pn, gn); in generic_init_net() [all …]
|
D | nf_conntrack_proto_udp.c | 240 static int udp_kmemdup_sysctl_table(struct nf_proto_net *pn, in udp_kmemdup_sysctl_table() argument 244 if (pn->ctl_table) in udp_kmemdup_sysctl_table() 246 pn->ctl_table = kmemdup(udp_sysctl_table, in udp_kmemdup_sysctl_table() 249 if (!pn->ctl_table) in udp_kmemdup_sysctl_table() 251 pn->ctl_table[0].data = &un->timeouts[UDP_CT_UNREPLIED]; in udp_kmemdup_sysctl_table() 252 pn->ctl_table[1].data = &un->timeouts[UDP_CT_REPLIED]; in udp_kmemdup_sysctl_table() 257 static int udp_kmemdup_compat_sysctl_table(struct nf_proto_net *pn, in udp_kmemdup_compat_sysctl_table() argument 262 pn->ctl_compat_table = kmemdup(udp_compat_sysctl_table, in udp_kmemdup_compat_sysctl_table() 265 if (!pn->ctl_compat_table) in udp_kmemdup_compat_sysctl_table() 268 pn->ctl_compat_table[0].data = &un->timeouts[UDP_CT_UNREPLIED]; in udp_kmemdup_compat_sysctl_table() [all …]
|
D | nf_conntrack_proto_sctp.c | 149 struct nf_proto_net pn; member 764 static int sctp_kmemdup_sysctl_table(struct nf_proto_net *pn, in sctp_kmemdup_sysctl_table() argument 768 if (pn->ctl_table) in sctp_kmemdup_sysctl_table() 771 pn->ctl_table = kmemdup(sctp_sysctl_table, in sctp_kmemdup_sysctl_table() 774 if (!pn->ctl_table) in sctp_kmemdup_sysctl_table() 777 pn->ctl_table[0].data = &sn->timeouts[SCTP_CONNTRACK_CLOSED]; in sctp_kmemdup_sysctl_table() 778 pn->ctl_table[1].data = &sn->timeouts[SCTP_CONNTRACK_COOKIE_WAIT]; in sctp_kmemdup_sysctl_table() 779 pn->ctl_table[2].data = &sn->timeouts[SCTP_CONNTRACK_COOKIE_ECHOED]; in sctp_kmemdup_sysctl_table() 780 pn->ctl_table[3].data = &sn->timeouts[SCTP_CONNTRACK_ESTABLISHED]; in sctp_kmemdup_sysctl_table() 781 pn->ctl_table[4].data = &sn->timeouts[SCTP_CONNTRACK_SHUTDOWN_SENT]; in sctp_kmemdup_sysctl_table() [all …]
|
D | nf_conntrack_proto_udplite.c | 40 struct nf_proto_net pn; member 238 static int udplite_kmemdup_sysctl_table(struct nf_proto_net *pn, in udplite_kmemdup_sysctl_table() argument 242 if (pn->ctl_table) in udplite_kmemdup_sysctl_table() 245 pn->ctl_table = kmemdup(udplite_sysctl_table, in udplite_kmemdup_sysctl_table() 248 if (!pn->ctl_table) in udplite_kmemdup_sysctl_table() 251 pn->ctl_table[0].data = &un->timeouts[UDPLITE_CT_UNREPLIED]; in udplite_kmemdup_sysctl_table() 252 pn->ctl_table[1].data = &un->timeouts[UDPLITE_CT_REPLIED]; in udplite_kmemdup_sysctl_table() 260 struct nf_proto_net *pn = &un->pn; in udplite_init_net() local 262 if (!pn->users) { in udplite_init_net() 269 return udplite_kmemdup_sysctl_table(pn, un); in udplite_init_net()
|
D | nf_conntrack_proto_tcp.c | 1576 static int tcp_kmemdup_sysctl_table(struct nf_proto_net *pn, in tcp_kmemdup_sysctl_table() argument 1580 if (pn->ctl_table) in tcp_kmemdup_sysctl_table() 1583 pn->ctl_table = kmemdup(tcp_sysctl_table, in tcp_kmemdup_sysctl_table() 1586 if (!pn->ctl_table) in tcp_kmemdup_sysctl_table() 1589 pn->ctl_table[0].data = &tn->timeouts[TCP_CONNTRACK_SYN_SENT]; in tcp_kmemdup_sysctl_table() 1590 pn->ctl_table[1].data = &tn->timeouts[TCP_CONNTRACK_SYN_RECV]; in tcp_kmemdup_sysctl_table() 1591 pn->ctl_table[2].data = &tn->timeouts[TCP_CONNTRACK_ESTABLISHED]; in tcp_kmemdup_sysctl_table() 1592 pn->ctl_table[3].data = &tn->timeouts[TCP_CONNTRACK_FIN_WAIT]; in tcp_kmemdup_sysctl_table() 1593 pn->ctl_table[4].data = &tn->timeouts[TCP_CONNTRACK_CLOSE_WAIT]; in tcp_kmemdup_sysctl_table() 1594 pn->ctl_table[5].data = &tn->timeouts[TCP_CONNTRACK_LAST_ACK]; in tcp_kmemdup_sysctl_table() [all …]
|
D | nf_conntrack_proto_dccp.c | 390 struct nf_proto_net pn; member 819 static int dccp_kmemdup_sysctl_table(struct net *net, struct nf_proto_net *pn, in dccp_kmemdup_sysctl_table() argument 823 if (pn->ctl_table) in dccp_kmemdup_sysctl_table() 826 pn->ctl_table = kmemdup(dccp_sysctl_table, in dccp_kmemdup_sysctl_table() 829 if (!pn->ctl_table) in dccp_kmemdup_sysctl_table() 832 pn->ctl_table[0].data = &dn->dccp_timeout[CT_DCCP_REQUEST]; in dccp_kmemdup_sysctl_table() 833 pn->ctl_table[1].data = &dn->dccp_timeout[CT_DCCP_RESPOND]; in dccp_kmemdup_sysctl_table() 834 pn->ctl_table[2].data = &dn->dccp_timeout[CT_DCCP_PARTOPEN]; in dccp_kmemdup_sysctl_table() 835 pn->ctl_table[3].data = &dn->dccp_timeout[CT_DCCP_OPEN]; in dccp_kmemdup_sysctl_table() 836 pn->ctl_table[4].data = &dn->dccp_timeout[CT_DCCP_CLOSEREQ]; in dccp_kmemdup_sysctl_table() [all …]
|
/net/mac80211/ |
D | wpa.c | 312 static void ccmp_special_blocks(struct sk_buff *skb, u8 *pn, u8 *b_0, u8 *aad) in ccmp_special_blocks() argument 356 memcpy(&b_0[8], pn, IEEE80211_CCMP_PN_LEN); in ccmp_special_blocks() 379 static inline void ccmp_pn2hdr(u8 *hdr, u8 *pn, int key_id) in ccmp_pn2hdr() argument 381 hdr[0] = pn[5]; in ccmp_pn2hdr() 382 hdr[1] = pn[4]; in ccmp_pn2hdr() 385 hdr[4] = pn[3]; in ccmp_pn2hdr() 386 hdr[5] = pn[2]; in ccmp_pn2hdr() 387 hdr[6] = pn[1]; in ccmp_pn2hdr() 388 hdr[7] = pn[0]; in ccmp_pn2hdr() 392 static inline void ccmp_hdr2pn(u8 *pn, u8 *hdr) in ccmp_hdr2pn() argument [all …]
|
D | key.c | 978 seq->ccmp.pn[5] = pn64; in ieee80211_get_key_tx_seq() 979 seq->ccmp.pn[4] = pn64 >> 8; in ieee80211_get_key_tx_seq() 980 seq->ccmp.pn[3] = pn64 >> 16; in ieee80211_get_key_tx_seq() 981 seq->ccmp.pn[2] = pn64 >> 24; in ieee80211_get_key_tx_seq() 982 seq->ccmp.pn[1] = pn64 >> 32; in ieee80211_get_key_tx_seq() 983 seq->ccmp.pn[0] = pn64 >> 40; in ieee80211_get_key_tx_seq() 995 const u8 *pn; in ieee80211_get_key_rx_seq() local 1011 pn = key->u.ccmp.rx_pn[IEEE80211_NUM_TIDS]; in ieee80211_get_key_rx_seq() 1013 pn = key->u.ccmp.rx_pn[tid]; in ieee80211_get_key_rx_seq() 1014 memcpy(seq->ccmp.pn, pn, IEEE80211_CCMP_PN_LEN); 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 147 pn = atomic64_read(&key->conf.tx_pn); in key_tx_spec_read() 149 (u8)(pn >> 40), (u8)(pn >> 32), (u8)(pn >> 24), in key_tx_spec_read() 150 (u8)(pn >> 16), (u8)(pn >> 8), (u8)pn); in key_tx_spec_read()
|
D | tx.c | 2838 u64 pn; in ieee80211_xmit_fast() local 2846 pn = atomic64_inc_return(&fast_tx->key->conf.tx_pn); in ieee80211_xmit_fast() 2847 crypto_hdr[0] = pn; in ieee80211_xmit_fast() 2848 crypto_hdr[1] = pn >> 8; in ieee80211_xmit_fast() 2849 crypto_hdr[4] = pn >> 16; in ieee80211_xmit_fast() 2850 crypto_hdr[5] = pn >> 24; in ieee80211_xmit_fast() 2851 crypto_hdr[6] = pn >> 32; in ieee80211_xmit_fast() 2852 crypto_hdr[7] = pn >> 40; in ieee80211_xmit_fast()
|
D | rx.c | 1928 u8 pn[IEEE80211_CCMP_PN_LEN], *rpn; in ieee80211_rx_h_defragment() local 1937 memcpy(pn, entry->last_pn, IEEE80211_CCMP_PN_LEN); in ieee80211_rx_h_defragment() 1939 pn[i]++; in ieee80211_rx_h_defragment() 1940 if (pn[i]) in ieee80211_rx_h_defragment() 1944 rpn = rx->ccm_gcm.pn; in ieee80211_rx_h_defragment() 1945 if (memcmp(pn, rpn, IEEE80211_CCMP_PN_LEN)) in ieee80211_rx_h_defragment() 1947 memcpy(entry->last_pn, pn, IEEE80211_CCMP_PN_LEN); in ieee80211_rx_h_defragment()
|
/net/ipv4/ |
D | fib_trie.c | 921 struct key_vector *pn, *n = t->kv; in fib_find_node() local 925 pn = n; in fib_find_node() 955 *tp = pn; in fib_find_node() 1277 struct key_vector *n, *pn; in fib_table_lookup() local 1284 pn = t->kv; in fib_table_lookup() 1287 n = get_child_rcu(pn, cindex); in fib_table_lookup() 1324 pn = n; in fib_table_lookup() 1366 t_key pkey = pn->key; in fib_table_lookup() 1372 if (IS_TRIE(pn)) in fib_table_lookup() 1378 pn = node_parent_rcu(pn); in fib_table_lookup() [all …]
|
/net/ipv6/ |
D | ip6_fib.c | 485 struct fib6_node *pn = NULL; in fib6_add_1() local 537 pn = fn; in fib6_add_1() 568 ln->parent = pn; in fib6_add_1() 572 pn->right = ln; in fib6_add_1() 574 pn->left = ln; in fib6_add_1() 588 pn = fn->parent; in fib6_add_1() 625 in->parent = pn; in fib6_add_1() 633 pn->right = in; in fib6_add_1() 635 pn->left = in; in fib6_add_1() 666 ln->parent = pn; in fib6_add_1() [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/ipv4/netfilter/ |
D | nf_conntrack_proto_icmp.c | 343 static int icmp_kmemdup_sysctl_table(struct nf_proto_net *pn, in icmp_kmemdup_sysctl_table() argument 347 pn->ctl_table = kmemdup(icmp_sysctl_table, in icmp_kmemdup_sysctl_table() 350 if (!pn->ctl_table) in icmp_kmemdup_sysctl_table() 353 pn->ctl_table[0].data = &in->timeout; in icmp_kmemdup_sysctl_table() 358 static int icmp_kmemdup_compat_sysctl_table(struct nf_proto_net *pn, in icmp_kmemdup_compat_sysctl_table() argument 363 pn->ctl_compat_table = kmemdup(icmp_compat_sysctl_table, in icmp_kmemdup_compat_sysctl_table() 366 if (!pn->ctl_compat_table) in icmp_kmemdup_compat_sysctl_table() 369 pn->ctl_compat_table[0].data = &in->timeout; in icmp_kmemdup_compat_sysctl_table() 379 struct nf_proto_net *pn = &in->pn; in icmp_init_net() local 383 ret = icmp_kmemdup_compat_sysctl_table(pn, in); in icmp_init_net() [all …]
|
/net/l2tp/ |
D | l2tp_core.c | 134 l2tp_session_id_hash_2(struct l2tp_net *pn, u32 session_id) in l2tp_session_id_hash_2() argument 136 return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; in l2tp_session_id_hash_2() 200 const struct l2tp_net *pn = l2tp_pernet(net); in l2tp_tunnel_get() local 204 list_for_each_entry_rcu(tunnel, &pn->l2tp_tunnel_list, list) { in l2tp_tunnel_get() 229 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get() local 231 session_list = l2tp_session_id_hash_2(pn, session_id); in l2tp_session_get() 300 struct l2tp_net *pn = l2tp_pernet(net); in l2tp_session_get_by_ifname() local 306 hlist_for_each_entry_rcu(session, &pn->l2tp_session_hlist[hash], global_hlist) { in l2tp_session_get_by_ifname() 330 struct l2tp_net *pn; in l2tp_session_register() local 348 pn = l2tp_pernet(tunnel->l2tp_net); in l2tp_session_register() [all …]
|
/net/core/ |
D | pktgen.c | 454 static void pktgen_run_all_threads(struct pktgen_net *pn); 455 static void pktgen_reset_all_threads(struct pktgen_net *pn); 456 static void pktgen_stop_all_threads_ifs(struct pktgen_net *pn); 488 struct pktgen_net *pn = net_generic(current->nsproxy->net_ns, pg_net_id); in pgctrl_write() local 505 pktgen_stop_all_threads_ifs(pn); in pgctrl_write() 508 pktgen_run_all_threads(pn); in pgctrl_write() 511 pktgen_reset_all_threads(pn); in pgctrl_write() 1946 static struct pktgen_dev *__pktgen_NN_threads(const struct pktgen_net *pn, in __pktgen_NN_threads() argument 1953 list_for_each_entry(t, &pn->pktgen_threads, th_list) { in __pktgen_NN_threads() 1969 static void pktgen_mark_device(const struct pktgen_net *pn, const char *ifname) in pktgen_mark_device() argument [all …]
|
D | neighbour.c | 1720 struct pneigh_entry *pn; in neigh_add() local 1723 pn = pneigh_lookup(tbl, net, dst, dev, 1); in neigh_add() 1724 if (pn) { in neigh_add() 1725 pn->flags = ndm->ndm_flags; in neigh_add() 2227 static int pneigh_fill_info(struct sk_buff *skb, struct pneigh_entry *pn, in pneigh_fill_info() argument 2242 ndm->ndm_flags = pn->flags | NTF_PROXY; in pneigh_fill_info() 2244 ndm->ndm_ifindex = pn->dev ? pn->dev->ifindex : 0; in pneigh_fill_info() 2247 if (nla_put(skb, NDA_DST, tbl->key_len, pn->key)) in pneigh_fill_info() 2642 struct pneigh_entry *pn = NULL; in pneigh_get_first() local 2647 pn = tbl->phash_buckets[bucket]; in pneigh_get_first() [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/bluetooth/rfcomm/ |
D | core.c | 924 struct rfcomm_pn *pn; in rfcomm_send_pn() local 932 hdr->len = __len8(sizeof(*mcc) + sizeof(*pn)); in rfcomm_send_pn() 936 mcc->len = __len8(sizeof(*pn)); in rfcomm_send_pn() 938 pn = (void *) ptr; ptr += sizeof(*pn); in rfcomm_send_pn() 939 pn->dlci = d->dlci; in rfcomm_send_pn() 940 pn->priority = d->priority; in rfcomm_send_pn() 941 pn->ack_timer = 0; in rfcomm_send_pn() 942 pn->max_retrans = 0; in rfcomm_send_pn() 945 pn->flow_ctrl = cr ? 0xf0 : 0xe0; in rfcomm_send_pn() 946 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()
|