Searched defs:sz (Results 1 - 18 of 18) sorted by relevance

/net/xfrm/
H A Dxfrm_hash.c15 struct hlist_head *xfrm_hash_alloc(unsigned int sz) argument
19 if (sz <= PAGE_SIZE)
20 n = kzalloc(sz, GFP_KERNEL);
22 n = vzalloc(sz);
26 get_order(sz));
31 void xfrm_hash_free(struct hlist_head *n, unsigned int sz) argument
33 if (sz <= PAGE_SIZE)
38 free_pages((unsigned long)n, get_order(sz));
H A Dxfrm_state.c2007 unsigned int sz; local
2011 sz = sizeof(struct hlist_head) * 8;
2013 net->xfrm.state_bydst = xfrm_hash_alloc(sz);
2016 net->xfrm.state_bysrc = xfrm_hash_alloc(sz);
2019 net->xfrm.state_byspi = xfrm_hash_alloc(sz);
2022 net->xfrm.state_hmask = ((sz / sizeof(struct hlist_head)) - 1);
2032 xfrm_hash_free(net->xfrm.state_bysrc, sz);
2034 xfrm_hash_free(net->xfrm.state_bydst, sz);
2042 unsigned int sz; local
2053 sz
[all...]
H A Dxfrm_policy.c2834 unsigned int hmask, sz; local
2844 sz = (hmask+1) * sizeof(struct hlist_head);
2846 net->xfrm.policy_byidx = xfrm_hash_alloc(sz);
2858 htab->table = xfrm_hash_alloc(sz);
2875 xfrm_hash_free(htab->table, sz);
2877 xfrm_hash_free(net->xfrm.policy_byidx, sz);
2885 unsigned int sz; local
2908 sz = (htab->hmask + 1) * sizeof(struct hlist_head);
2910 xfrm_hash_free(htab->table, sz);
2913 sz
[all...]
/net/tipc/
H A Dmsg.c79 int dsz, sz, hsz, pos, res, cnt; local
83 sz = hsz + dsz;
84 msg_set_size(hdr, sz);
85 if (unlikely(sz > max_size)) {
90 *buf = tipc_buf_acquire(sz);
H A Dsocket.c893 unsigned int sz; local
934 sz = msg_data_sz(msg);
938 if ((!sz) && (!err)) {
953 if (unlikely(buf_len < sz)) {
954 sz = buf_len;
958 m->msg_iov, sz);
961 res = sz;
1002 unsigned int sz; local
1047 sz = msg_data_sz(msg);
1051 if ((!sz)
[all...]
H A Dlink.c405 * @sz: amount of data to be sent
410 static int link_schedule_port(struct tipc_link *l_ptr, u32 origport, u32 sz) argument
422 p_ptr->waiting_pkts = 1 + ((sz - 1) / l_ptr->max_pkt);
1241 u32 sz; local
1249 sz = sect_rest;
1251 sz = fragm_rest;
1254 if (copy_from_user(buf->data + fragm_crs, sect_crs, sz)) {
1264 sect_crs, sz);
1265 sect_crs += sz;
1266 sect_rest -= sz;
2486 set_fragm_size(struct sk_buff *buf, u32 sz) argument
2488 msg_set_ack(buf_msg(buf), sz); local
[all...]
H A Dmsg.h206 static inline void msg_set_size(struct tipc_msg *m, u32 sz) argument
208 m->hdr[0] = htonl((msg_word(m, 0) & ~0x1ffff) | sz);
/net/core/
H A Dflow.c409 size_t sz = sizeof(struct hlist_head) * flow_cache_hash_size(fc); local
412 fcp->hash_table = kzalloc_node(sz, GFP_KERNEL, cpu_to_node(cpu));
414 pr_err("NET: failed to allocate flow cache sz %zu\n", sz);
H A Dskbuff.c110 * @sz: size
119 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, argument
123 msg, addr, skb->len, sz, skb->head, skb->data,
129 static void skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) argument
131 skb_panic(skb, sz, addr, __func__);
134 static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) argument
136 skb_panic(skb, sz, addr, __func__);
/net/netfilter/
H A Dnf_conntrack_h323_asn1.c85 unsigned char sz; member in struct:field_t
312 switch (f->sz) {
338 INC_BITS(bs, f->sz);
357 INC_BITS(bs, f->sz);
373 switch (f->sz) {
407 len = get_bits(bs, f->sz) + f->lb;
424 switch (f->sz) {
452 len = get_bits(bs, f->sz) + f->lb;
473 switch (f->sz) {
480 len = get_bits(bs, f->sz)
769 DecodeRasMessage(unsigned char *buf, size_t sz, RasMessage *ras) argument
785 DecodeH323_UserInformation(unsigned char *buf, unsigned char *beg, size_t sz, H323_UserInformation *uuie) argument
803 DecodeMultimediaSystemControlMessage(unsigned char *buf, size_t sz, MultimediaSystemControlMessage * mscm) argument
822 DecodeQ931(unsigned char *buf, size_t sz, Q931 *q931) argument
[all...]
H A Dxt_recent.c334 size_t sz; local
373 sz = sizeof(*t) + sizeof(t->iphash[0]) * ip_list_hash_size;
374 if (sz <= PAGE_SIZE)
375 t = kzalloc(sz, GFP_KERNEL);
377 t = vzalloc(sz);
H A Dnf_conntrack_core.c1417 size_t sz; local
1421 sz = nr_slots * sizeof(struct hlist_nulls_head);
1423 get_order(sz));
1426 hash = vzalloc(sz);
/net/sched/
H A Dsch_fq_codel.c357 static void *fq_codel_zalloc(size_t sz) argument
359 void *ptr = kzalloc(sz, GFP_KERNEL | __GFP_NOWARN);
362 ptr = vzalloc(sz);
H A Dsch_sfq.c706 static void *sfq_alloc(size_t sz) argument
708 void *ptr = kmalloc(sz, GFP_KERNEL | __GFP_NOWARN);
711 ptr = vmalloc(sz);
/net/rfkill/
H A Dcore.c1111 unsigned long sz; local
1133 sz = min_t(unsigned long, sizeof(ev->ev), count);
1134 ret = sz;
1135 if (copy_to_user(buf, &ev->ev, sz))
/net/bridge/netfilter/
H A Debtables.c1850 static int ebt_buf_count(struct ebt_entries_buf_state *state, unsigned int sz) argument
1852 state->buf_kern_offset += sz;
1853 return state->buf_kern_offset >= sz ? 0 : -EINVAL;
1857 void *data, unsigned int sz)
1862 BUG_ON(state->buf_kern_offset + sz > state->buf_kern_len);
1864 memcpy(state->buf_kern_start + state->buf_kern_offset, data, sz);
1867 state->buf_user_offset += sz;
1868 return ebt_buf_count(state, sz);
1871 static int ebt_buf_add_pad(struct ebt_entries_buf_state *state, unsigned int sz) argument
1877 if (b != NULL && sz >
1856 ebt_buf_add(struct ebt_entries_buf_state *state, void *data, unsigned int sz) argument
[all...]
/net/ipv4/
H A Dfib_trie.c453 size_t sz = sizeof(struct tnode) + (sizeof(struct rt_trie_node *) << bits); local
454 struct tnode *tn = tnode_alloc(sz);
/net/key/
H A Daf_key.c2834 int i, sz = 0; local
2843 sz += sizeof(struct sadb_comb);
2845 return sz + sizeof(struct sadb_prop);
2850 int i, k, sz = 0; local
2872 sz += sizeof(struct sadb_comb);
2875 return sz + sizeof(struct sadb_prop);

Completed in 282 milliseconds