Lines Matching refs:sz
785 size_t sz = sizeof(struct nexthop_grp) * nhg->num_nh; in nh_nlmsg_size_grp() local
786 size_t tot = nla_total_size(sz) + in nh_nlmsg_size_grp()
798 size_t sz; in nh_nlmsg_size_single() local
803 sz = nla_total_size(4); /* NHA_OIF */ in nh_nlmsg_size_single()
808 sz += nla_total_size(4); /* NHA_GATEWAY */ in nh_nlmsg_size_single()
814 sz += nla_total_size(sizeof(const struct in6_addr)); in nh_nlmsg_size_single()
819 sz += lwtunnel_get_encap_size(nhi->fib_nhc.nhc_lwtstate); in nh_nlmsg_size_single()
820 sz += nla_total_size(2); /* NHA_ENCAP_TYPE */ in nh_nlmsg_size_single()
823 return sz; in nh_nlmsg_size_single()
828 size_t sz = NLMSG_ALIGN(sizeof(struct nhmsg)); in nh_nlmsg_size() local
830 sz += nla_total_size(4); /* NHA_ID */ in nh_nlmsg_size()
833 sz += nh_nlmsg_size_grp(nh); in nh_nlmsg_size()
835 sz += nh_nlmsg_size_single(nh); in nh_nlmsg_size()
837 return sz; in nh_nlmsg_size()
3734 size_t sz = sizeof(struct hlist_head) * NH_DEV_HASHSIZE; in nexthop_net_init() local
3737 net->nexthop.devhash = kzalloc(sz, GFP_KERNEL); in nexthop_net_init()