Lines Matching refs:sz
308 size_t sz = sizeof(struct nexthop_grp) * nhg->num_nh; in nh_nlmsg_size_grp() local
310 return nla_total_size(sz) + in nh_nlmsg_size_grp()
317 size_t sz; in nh_nlmsg_size_single() local
322 sz = nla_total_size(4); /* NHA_OIF */ in nh_nlmsg_size_single()
327 sz += nla_total_size(4); /* NHA_GATEWAY */ in nh_nlmsg_size_single()
333 sz += nla_total_size(sizeof(const struct in6_addr)); in nh_nlmsg_size_single()
338 sz += lwtunnel_get_encap_size(nhi->fib_nhc.nhc_lwtstate); in nh_nlmsg_size_single()
339 sz += nla_total_size(2); /* NHA_ENCAP_TYPE */ in nh_nlmsg_size_single()
342 return sz; in nh_nlmsg_size_single()
347 size_t sz = NLMSG_ALIGN(sizeof(struct nhmsg)); in nh_nlmsg_size() local
349 sz += nla_total_size(4); /* NHA_ID */ in nh_nlmsg_size()
352 sz += nh_nlmsg_size_grp(nh); in nh_nlmsg_size()
354 sz += nh_nlmsg_size_single(nh); in nh_nlmsg_size()
356 return sz; in nh_nlmsg_size()
1997 size_t sz = sizeof(struct hlist_head) * NH_DEV_HASHSIZE; in nexthop_net_init() local
2000 net->nexthop.devhash = kzalloc(sz, GFP_KERNEL); in nexthop_net_init()