/net/xfrm/ |
D | xfrm_hash.c | 15 struct hlist_head *xfrm_hash_alloc(unsigned int sz) in xfrm_hash_alloc() argument 19 if (sz <= PAGE_SIZE) in xfrm_hash_alloc() 20 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc() 22 n = __vmalloc(sz, GFP_KERNEL | __GFP_ZERO, PAGE_KERNEL); in xfrm_hash_alloc() 26 get_order(sz)); in xfrm_hash_alloc() 31 void xfrm_hash_free(struct hlist_head *n, unsigned int sz) in xfrm_hash_free() argument 33 if (sz <= PAGE_SIZE) in xfrm_hash_free() 38 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
|
D | xfrm_hash.h | 126 extern struct hlist_head *xfrm_hash_alloc(unsigned int sz); 127 extern void xfrm_hash_free(struct hlist_head *n, unsigned int sz);
|
D | xfrm_state.c | 2097 unsigned int sz; in xfrm_state_init() local 2101 sz = sizeof(struct hlist_head) * 8; in xfrm_state_init() 2103 net->xfrm.state_bydst = xfrm_hash_alloc(sz); in xfrm_state_init() 2106 net->xfrm.state_bysrc = xfrm_hash_alloc(sz); in xfrm_state_init() 2109 net->xfrm.state_byspi = xfrm_hash_alloc(sz); in xfrm_state_init() 2112 net->xfrm.state_hmask = ((sz / sizeof(struct hlist_head)) - 1); in xfrm_state_init() 2122 xfrm_hash_free(net->xfrm.state_bysrc, sz); in xfrm_state_init() 2124 xfrm_hash_free(net->xfrm.state_bydst, sz); in xfrm_state_init() 2132 unsigned int sz; in xfrm_state_fini() local 2143 sz = (net->xfrm.state_hmask + 1) * sizeof(struct hlist_head); in xfrm_state_fini() [all …]
|
D | xfrm_policy.c | 2393 unsigned int hmask, sz; in xfrm_policy_init() local 2403 sz = (hmask+1) * sizeof(struct hlist_head); in xfrm_policy_init() 2405 net->xfrm.policy_byidx = xfrm_hash_alloc(sz); in xfrm_policy_init() 2417 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init() 2434 xfrm_hash_free(htab->table, sz); in xfrm_policy_init() 2436 xfrm_hash_free(net->xfrm.policy_byidx, sz); in xfrm_policy_init() 2444 unsigned int sz; in xfrm_policy_fini() local 2468 sz = (htab->hmask + 1); in xfrm_policy_fini() 2470 xfrm_hash_free(htab->table, sz); in xfrm_policy_fini() 2473 sz = (net->xfrm.policy_idx_hmask + 1) * sizeof(struct hlist_head); in xfrm_policy_fini() [all …]
|
/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 85 unsigned char sz; member 312 switch (f->sz) { in decode_int() 338 INC_BITS(bs, f->sz); in decode_int() 357 INC_BITS(bs, f->sz); in decode_enum() 373 switch (f->sz) { in decode_bitstr() 407 len = get_bits(bs, f->sz) + f->lb; in decode_numstr() 424 switch (f->sz) { in decode_octstr() 452 len = get_bits(bs, f->sz) + f->lb; in decode_octstr() 473 switch (f->sz) { in decode_bmpstr() 480 len = get_bits(bs, f->sz) + f->lb; in decode_bmpstr() [all …]
|
D | nfnetlink_queue.c | 362 int sz = nla_attr_size(data_len); in nfqnl_build_packet_message() local 371 nla->nla_len = sz; in nfqnl_build_packet_message()
|
/net/tipc/ |
D | dbg.c | 277 int sz = rest < TIPC_PB_MAX_STR ? rest : TIPC_PB_MAX_STR; in print_to_console() local 278 char c = crs[sz]; in print_to_console() 280 crs[sz] = 0; in print_to_console() 282 crs[sz] = c; in print_to_console() 283 rest -= sz; in print_to_console() 284 crs += sz; in print_to_console()
|
D | socket.c | 899 unsigned int sz; in recv_msg() local 944 sz = msg_data_sz(msg); in recv_msg() 957 if ((!sz) && (!err)) { in recv_msg() 975 if (unlikely(buf_len < sz)) { in recv_msg() 976 sz = buf_len; in recv_msg() 980 sz))) { in recv_msg() 984 res = sz; in recv_msg() 1026 unsigned int sz; in recv_stream() local 1077 sz = msg_data_sz(msg); in recv_stream() 1082 if ((!sz) && (!err)) { in recv_stream() [all …]
|
D | msg.h | 155 static inline void msg_set_size(struct tipc_msg *m, u32 sz) in msg_set_size() argument 157 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz); in msg_set_size() 767 int dsz, sz, hsz, pos, res, cnt; in msg_build() local 776 sz = hsz + dsz; in msg_build() 777 msg_set_size(hdr, sz); in msg_build() 778 if (unlikely(sz > max_size)) { in msg_build() 783 *buf = buf_acquire(sz); in msg_build()
|
D | config.c | 141 u32 sz, 171 *ret_size = link_peer_addr(msg->argv.link_name, data, sz); 185 u32 sz, 244 rv = tipc_cfg_cmd(msg, data, sz, (u32 *)&msg_sect[1].iov_len, orig);
|
D | link.c | 553 static int link_schedule_port(struct link *l_ptr, u32 origport, u32 sz) in link_schedule_port() argument 566 p_ptr->waiting_pkts = 1 + ((sz - 1) / link_max_pkt(l_ptr)); in link_schedule_port() 1417 u32 sz; in link_send_sections_long() local 1425 sz = sect_rest; in link_send_sections_long() 1427 sz = fragm_rest; in link_send_sections_long() 1430 if (copy_from_user(buf->data + fragm_crs, sect_crs, sz)) { in link_send_sections_long() 1440 sect_crs, sz); in link_send_sections_long() 1441 sect_crs += sz; in link_send_sections_long() 1442 sect_rest -= sz; in link_send_sections_long() 1443 fragm_crs += sz; in link_send_sections_long() [all …]
|
D | port.c | 1402 u32 sz; in tipc_send_buf() local 1411 sz = hsz + dsz; in tipc_send_buf() 1412 msg_set_size(msg, sz); in tipc_send_buf() 1425 res = sz; in tipc_send_buf()
|
/net/core/ |
D | skbuff.c | 117 void skb_over_panic(struct sk_buff *skb, int sz, void *here) in skb_over_panic() argument 121 here, skb->len, sz, skb->head, skb->data, in skb_over_panic() 136 void skb_under_panic(struct sk_buff *skb, int sz, void *here) in skb_under_panic() argument 140 here, skb->len, sz, skb->head, skb->data, in skb_under_panic()
|
/net/key/ |
D | af_key.c | 2821 int i, sz = 0; in count_ah_combs() local 2828 sz += sizeof(struct sadb_comb); in count_ah_combs() 2830 return sz + sizeof(struct sadb_prop); in count_ah_combs() 2835 int i, k, sz = 0; in count_esp_combs() local 2851 sz += sizeof(struct sadb_comb); in count_esp_combs() 2854 return sz + sizeof(struct sadb_prop); in count_esp_combs()
|
/net/ipv4/ |
D | fib_trie.c | 410 size_t sz = sizeof(struct tnode) + (sizeof(struct node *) << bits); in tnode_new() local 411 struct tnode *tn = tnode_alloc(sz); in tnode_new()
|