Lines Matching refs:pt
210 int netlink_policy_dump_attr_size_estimate(const struct nla_policy *pt)
215 switch (pt->type) {
256 const struct nla_policy *pt,
259 int estimate = netlink_policy_dump_attr_size_estimate(pt);
267 switch (pt->type) {
278 if (pt->type == NLA_NESTED_ARRAY)
280 if (state && pt->nested_policy && pt->len &&
283 pt->nested_policy,
284 pt->len)) ||
286 pt->len)))
297 if (pt->type == NLA_U8)
299 else if (pt->type == NLA_U16)
301 else if (pt->type == NLA_U32)
303 else if (pt->type == NLA_U64)
308 if (pt->validation_type == NLA_VALIDATE_MASK) {
310 pt->mask,
316 nla_get_range_unsigned(pt, &range);
332 if (pt->type == NLA_S8)
334 else if (pt->type == NLA_S16)
336 else if (pt->type == NLA_S32)
338 else if (pt->type == NLA_S64)
343 nla_get_range_signed(pt, &range);
355 pt->bitfield32_valid))
361 if (pt->type == NLA_STRING)
363 else if (pt->type == NLA_NUL_STRING)
368 if (pt->validation_type == NLA_VALIDATE_RANGE ||
369 pt->validation_type == NLA_VALIDATE_RANGE_WARN_TOO_LONG) {
372 nla_get_range_unsigned(pt, &range);
383 } else if (pt->len &&
385 pt->len)) {
409 * @pt: the attribute's policy
417 const struct nla_policy *pt,
420 return __netlink_policy_dump_write_attr(NULL, skb, pt, nestattr);
433 const struct nla_policy *pt;
441 pt = &state->policies[state->policy_idx].policy[state->attr_idx];
447 err = __netlink_policy_dump_write_attr(state, skb, pt, state->attr_idx);