Home
last modified time | relevance | path

Searched refs:nsize (Results 1 – 4 of 4) sorted by relevance

/net/xfrm/
Dxfrm_state.c121 unsigned long nsize, osize; in xfrm_hash_resize() local
125 nsize = xfrm_hash_new_size(net->xfrm.state_hmask); in xfrm_hash_resize()
126 ndst = xfrm_hash_alloc(nsize); in xfrm_hash_resize()
129 nsrc = xfrm_hash_alloc(nsize); in xfrm_hash_resize()
131 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize()
134 nspi = xfrm_hash_alloc(nsize); in xfrm_hash_resize()
136 xfrm_hash_free(ndst, nsize); in xfrm_hash_resize()
137 xfrm_hash_free(nsrc, nsize); in xfrm_hash_resize()
144 nhashmask = (nsize / sizeof(struct hlist_head)) - 1U; in xfrm_hash_resize()
Dxfrm_policy.c585 unsigned int nsize = (nhashmask + 1) * sizeof(struct hlist_head); in xfrm_bydst_resize() local
586 struct hlist_head *ndst = xfrm_hash_alloc(nsize); in xfrm_bydst_resize()
617 unsigned int nsize = (nhashmask + 1) * sizeof(struct hlist_head); in xfrm_byidx_resize() local
619 struct hlist_head *nidx = xfrm_hash_alloc(nsize); in xfrm_byidx_resize()
/net/sched/
Dsch_api.c679 unsigned int nsize, nmask, osize; in qdisc_class_hash_grow() local
685 nsize = clhash->hashsize * 2; in qdisc_class_hash_grow()
686 nmask = nsize - 1; in qdisc_class_hash_grow()
687 nhash = qdisc_class_hash_alloc(nsize); in qdisc_class_hash_grow()
702 clhash->hashsize = nsize; in qdisc_class_hash_grow()
/net/ipv4/
Dtcp_output.c1535 int nsize, old_factor; in tcp_fragment() local
1543 nsize = skb_headlen(skb) - len; in tcp_fragment()
1544 if (nsize < 0) in tcp_fragment()
1545 nsize = 0; in tcp_fragment()
1565 buff = sk_stream_alloc_skb(sk, nsize, gfp, true); in tcp_fragment()
1572 nlen = skb->len - len - nsize; in tcp_fragment()