Lines Matching refs:struct_size
358 root_ht = kzalloc(struct_size(root_ht, ht, 1), GFP_KERNEL); in u32_init()
369 tp_c = kzalloc(struct_size(tp_c, hlist->ht, 1), GFP_KERNEL); in u32_init()
806 new = kzalloc(struct_size(new, sel.keys, s->nkeys), GFP_KERNEL); in u32_init_knode()
834 memcpy(&new->sel, s, struct_size(s, keys, s->nkeys)); in u32_init_knode()
944 ht = kzalloc(struct_size(ht, ht, divisor + 1), GFP_KERNEL); in u32_change()
1024 sel_size = struct_size(s, keys, s->nkeys); in u32_change()
1030 n = kzalloc(struct_size(n, sel.keys, s->nkeys), GFP_KERNEL); in u32_change()
1037 n->pf = __alloc_percpu(struct_size(n->pf, kcnts, s->nkeys), in u32_change()
1286 if (nla_put(skb, TCA_U32_SEL, struct_size(&n->sel, keys, n->sel.nkeys), in u32_dump()
1336 gpf = kzalloc(struct_size(gpf, kcnts, n->sel.nkeys), GFP_KERNEL); in u32_dump()
1350 if (nla_put_64bit(skb, TCA_U32_PCNT, struct_size(gpf, kcnts, n->sel.nkeys), in u32_dump()