Lines Matching refs:sz
1004 size_t sz = sizeof(struct nexthop_grp) * nhg->num_nh;
1005 size_t tot = nla_total_size(sz) +
1017 size_t sz;
1022 sz = nla_total_size(4); /* NHA_OIF */
1027 sz += nla_total_size(4); /* NHA_GATEWAY */
1033 sz += nla_total_size(sizeof(const struct in6_addr));
1038 sz += lwtunnel_get_encap_size(nhi->fib_nhc.nhc_lwtstate);
1039 sz += nla_total_size(2); /* NHA_ENCAP_TYPE */
1042 return sz;
1047 size_t sz = NLMSG_ALIGN(sizeof(struct nhmsg));
1049 sz += nla_total_size(4); /* NHA_ID */
1052 sz += nh_nlmsg_size_grp(nh);
1054 sz += nh_nlmsg_size_single(nh);
1056 return sz;
4014 size_t sz = sizeof(struct hlist_head) * NH_DEV_HASHSIZE;
4017 net->nexthop.devhash = kzalloc(sz, GFP_KERNEL);