Lines Matching refs:maxtype
60 static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype,
89 static int nla_validate_array(const struct nlattr *head, int len, int maxtype, in nla_validate_array() argument
110 maxtype, policy, validate, extack, in nla_validate_array()
393 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla() argument
405 if (type <= 0 || type > maxtype) in validate_nla()
408 type = array_index_nospec(type, maxtype + 1); in validate_nla()
604 static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype, in __nla_validate_parse() argument
620 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in __nla_validate_parse()
625 if (type == 0 || type > maxtype) { in __nla_validate_parse()
633 type = array_index_nospec(type, maxtype + 1); in __nla_validate_parse()
635 int err = validate_nla(nla, maxtype, policy, in __nla_validate_parse()
673 int __nla_validate(const struct nlattr *head, int len, int maxtype, in __nla_validate() argument
677 return __nla_validate_parse(head, len, maxtype, policy, validate, in __nla_validate()
727 int __nla_parse(struct nlattr **tb, int maxtype, in __nla_parse() argument
732 return __nla_validate_parse(head, len, maxtype, policy, validate, in __nla_parse()