maxtype 3293 drivers/block/drbd/drbd_nl.c const int maxtype = ARRAY_SIZE(drbd_cfg_context_nl_policy) - 1; maxtype 3300 drivers/block/drbd/drbd_nl.c return drbd_nla_find_nested(maxtype, nla, __nla_type(attr)); maxtype 4060 drivers/block/drbd/drbd_nl.c int maxtype; maxtype 4080 drivers/block/drbd/drbd_nl.c maxtype = ARRAY_SIZE(drbd_cfg_context_nl_policy) - 1; maxtype 4081 drivers/block/drbd/drbd_nl.c nla = drbd_nla_find_nested(maxtype, nla, __nla_type(T_ctx_resource_name)); maxtype 7 drivers/block/drbd/drbd_nla.c static int drbd_nla_check_mandatory(int maxtype, struct nlattr *nla) maxtype 24 drivers/block/drbd/drbd_nla.c if (nla_type(nla) > maxtype) maxtype 31 drivers/block/drbd/drbd_nla.c int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, maxtype 36 drivers/block/drbd/drbd_nla.c err = drbd_nla_check_mandatory(maxtype, nla); maxtype 38 drivers/block/drbd/drbd_nla.c err = nla_parse_nested_deprecated(tb, maxtype, nla, policy, maxtype 44 drivers/block/drbd/drbd_nla.c struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) maxtype 52 drivers/block/drbd/drbd_nla.c err = drbd_nla_check_mandatory(maxtype, nla); maxtype 5 drivers/block/drbd/drbd_nla.h extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, maxtype 7 drivers/block/drbd/drbd_nla.h extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype); maxtype 156 drivers/infiniband/ulp/ipoib/ipoib_netlink.c .maxtype = IFLA_IPOIB_MAX, maxtype 757 drivers/net/bonding/bond_netlink.c .maxtype = IFLA_BOND_MAX, maxtype 1439 drivers/net/caif/caif_hsi.c .maxtype = __IFLA_CAIF_HSI_MAX, maxtype 1221 drivers/net/can/dev.c .maxtype = IFLA_CAN_MAX, maxtype 291 drivers/net/can/vxcan.c .maxtype = VXCAN_INFO_MAX, maxtype 370 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c .maxtype = __IFLA_RMNET_MAX, maxtype 15 drivers/net/ethernet/rocker/rocker_tlv.c void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, maxtype 22 drivers/net/ethernet/rocker/rocker_tlv.c memset(tb, 0, sizeof(struct rocker_tlv *) * (maxtype + 1)); maxtype 27 drivers/net/ethernet/rocker/rocker_tlv.c if (type > 0 && type <= maxtype) maxtype 109 drivers/net/ethernet/rocker/rocker_tlv.h void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, maxtype 113 drivers/net/ethernet/rocker/rocker_tlv.h int maxtype, maxtype 116 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_parse(tb, maxtype, rocker_tlv_data(tlv), maxtype 121 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_parse_desc(const struct rocker_tlv **tb, int maxtype, maxtype 124 drivers/net/ethernet/rocker/rocker_tlv.h rocker_tlv_parse(tb, maxtype, desc_info->data, maxtype 1745 drivers/net/geneve.c .maxtype = IFLA_GENEVE_MAX, maxtype 754 drivers/net/gtp.c .maxtype = IFLA_GTP_MAX, maxtype 683 drivers/net/ipvlan/ipvlan_main.c ops->maxtype = IFLA_IPVLAN_MAX; maxtype 3457 drivers/net/macsec.c .maxtype = IFLA_MACSEC_MAX, maxtype 1640 drivers/net/macvlan.c ops->maxtype = IFLA_MACVLAN_MAX; maxtype 1150 drivers/net/ppp/ppp_generic.c .maxtype = IFLA_PPP_MAX, maxtype 1400 drivers/net/veth.c .maxtype = VETH_INFO_MAX, maxtype 1416 drivers/net/vrf.c .maxtype = IFLA_VRF_MAX, maxtype 4179 drivers/net/vxlan.c .maxtype = IFLA_VXLAN_MAX, maxtype 142 include/linux/genl_magic_func.h const int maxtype = ARRAY_SIZE(s_name ## _nl_policy)-1; \ maxtype 151 include/linux/genl_magic_func.h err = drbd_nla_parse_nested(ntb, maxtype, tla, s_name ## _nl_policy); \ maxtype 185 include/net/genetlink.h struct nlattr *tb[], int maxtype, maxtype 189 include/net/genetlink.h return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, maxtype 204 include/net/genetlink.h struct nlattr *tb[], int maxtype, maxtype 208 include/net/genetlink.h return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, maxtype 434 include/net/netlink.h int __nla_validate(const struct nlattr *head, int len, int maxtype, maxtype 437 include/net/netlink.h int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, maxtype 583 include/net/netlink.h static inline int nla_parse(struct nlattr **tb, int maxtype, maxtype 588 include/net/netlink.h return __nla_parse(tb, maxtype, head, len, policy, maxtype 608 include/net/netlink.h static inline int nla_parse_deprecated(struct nlattr **tb, int maxtype, maxtype 613 include/net/netlink.h return __nla_parse(tb, maxtype, head, len, policy, maxtype 633 include/net/netlink.h static inline int nla_parse_deprecated_strict(struct nlattr **tb, int maxtype, maxtype 639 include/net/netlink.h return __nla_parse(tb, maxtype, head, len, policy, maxtype 656 include/net/netlink.h struct nlattr *tb[], int maxtype, maxtype 666 include/net/netlink.h return __nla_parse(tb, maxtype, nlmsg_attrdata(nlh, hdrlen), maxtype 683 include/net/netlink.h struct nlattr *tb[], int maxtype, maxtype 687 include/net/netlink.h return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, maxtype 702 include/net/netlink.h struct nlattr *tb[], int maxtype, maxtype 706 include/net/netlink.h return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, maxtype 722 include/net/netlink.h struct nlattr *tb[], int maxtype, maxtype 726 include/net/netlink.h return __nlmsg_parse(nlh, hdrlen, tb, maxtype, policy, maxtype 761 include/net/netlink.h int maxtype, maxtype 765 include/net/netlink.h return __nla_validate(head, len, maxtype, policy, NL_VALIDATE_LIBERAL, maxtype 784 include/net/netlink.h static inline int nla_validate(const struct nlattr *head, int len, int maxtype, maxtype 788 include/net/netlink.h return __nla_validate(head, len, maxtype, policy, NL_VALIDATE_STRICT, maxtype 801 include/net/netlink.h int hdrlen, int maxtype, maxtype 809 include/net/netlink.h nlmsg_attrlen(nlh, hdrlen), maxtype, maxtype 1137 include/net/netlink.h static inline int nla_parse_nested(struct nlattr *tb[], int maxtype, maxtype 1147 include/net/netlink.h return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy, maxtype 1161 include/net/netlink.h static inline int nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype, maxtype 1166 include/net/netlink.h return __nla_parse(tb, maxtype, nla_data(nla), nla_len(nla), policy, maxtype 1751 include/net/netlink.h static inline int __nla_validate_nested(const struct nlattr *start, int maxtype, maxtype 1756 include/net/netlink.h return __nla_validate(nla_data(start), nla_len(start), maxtype, policy, maxtype 1761 include/net/netlink.h nl80211_validate_nested(const struct nlattr *start, int maxtype, maxtype 1765 include/net/netlink.h return __nla_validate_nested(start, maxtype, policy, maxtype 1770 include/net/netlink.h nla_validate_nested_deprecated(const struct nlattr *start, int maxtype, maxtype 1774 include/net/netlink.h return __nla_validate_nested(start, maxtype, policy, maxtype 67 include/net/rtnetlink.h unsigned int maxtype; maxtype 70 lib/nlattr.c static int nla_validate_array(const struct nlattr *head, int len, int maxtype, maxtype 91 lib/nlattr.c maxtype, policy, validate, extack); maxtype 157 lib/nlattr.c static int validate_nla(const struct nlattr *nla, int maxtype, maxtype 169 lib/nlattr.c if (type <= 0 || type > maxtype) maxtype 357 lib/nlattr.c static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype, maxtype 367 lib/nlattr.c memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); maxtype 372 lib/nlattr.c if (type == 0 || type > maxtype) { maxtype 381 lib/nlattr.c int err = validate_nla(nla, maxtype, policy, maxtype 419 lib/nlattr.c int __nla_validate(const struct nlattr *head, int len, int maxtype, maxtype 423 lib/nlattr.c return __nla_validate_parse(head, len, maxtype, policy, validate, maxtype 473 lib/nlattr.c int __nla_parse(struct nlattr **tb, int maxtype, maxtype 478 lib/nlattr.c return __nla_validate_parse(head, len, maxtype, policy, validate, maxtype 284 net/8021q/vlan_netlink.c .maxtype = IFLA_VLAN_MAX, maxtype 1631 net/bridge/br_netlink.c .maxtype = IFLA_BR_MAX, maxtype 521 net/caif/chnl_net.c .maxtype = IFLA_CAIF_MAX, maxtype 401 net/core/rtnetlink.c if (WARN_ON(ops->maxtype > RTNL_MAX_TYPE || maxtype 3094 net/core/rtnetlink.c if (ops->maxtype > RTNL_MAX_TYPE) maxtype 3097 net/core/rtnetlink.c if (ops->maxtype && linkinfo[IFLA_INFO_DATA]) { maxtype 3098 net/core/rtnetlink.c err = nla_parse_nested_deprecated(attr, ops->maxtype, maxtype 117 net/hsr/hsr_netlink.c .maxtype = IFLA_HSR_MAX, maxtype 1552 net/ipv4/ip_gre.c .maxtype = IFLA_GRE_MAX, maxtype 1567 net/ipv4/ip_gre.c .maxtype = IFLA_GRE_MAX, maxtype 1582 net/ipv4/ip_gre.c .maxtype = IFLA_GRE_MAX, maxtype 642 net/ipv4/ip_vti.c .maxtype = IFLA_VTI_MAX, maxtype 627 net/ipv4/ipip.c .maxtype = IFLA_IPTUN_MAX, maxtype 2270 net/ipv6/ip6_gre.c .maxtype = IFLA_GRE_MAX, maxtype 2285 net/ipv6/ip6_gre.c .maxtype = IFLA_GRE_MAX, maxtype 2299 net/ipv6/ip6_gre.c .maxtype = IFLA_GRE_MAX, maxtype 2165 net/ipv6/ip6_tunnel.c .maxtype = IFLA_IPTUN_MAX, maxtype 1093 net/ipv6/ip6_vti.c .maxtype = IFLA_VTI_MAX, maxtype 1777 net/ipv6/sit.c .maxtype = IFLA_IPTUN_MAX, maxtype 119 net/sched/sch_mqprio.c static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, maxtype 125 net/sched/sch_mqprio.c return nla_parse_deprecated(tb, maxtype, maxtype 129 net/sched/sch_mqprio.c memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); maxtype 930 net/sched/sch_netem.c static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, maxtype 941 net/sched/sch_netem.c return nla_parse_deprecated(tb, maxtype, maxtype 945 net/sched/sch_netem.c memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); maxtype 740 net/xfrm/xfrm_interface.c .maxtype = IFLA_XFRM_MAX, maxtype 44 tools/lib/bpf/nlattr.c static int validate_nla(struct nlattr *nla, int maxtype, maxtype 51 tools/lib/bpf/nlattr.c if (type < 0 || type > maxtype) maxtype 103 tools/lib/bpf/nlattr.c int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, maxtype 109 tools/lib/bpf/nlattr.c memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); maxtype 114 tools/lib/bpf/nlattr.c if (type > maxtype) maxtype 118 tools/lib/bpf/nlattr.c err = validate_nla(nla, maxtype, policy); maxtype 148 tools/lib/bpf/nlattr.c int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, maxtype 152 tools/lib/bpf/nlattr.c return libbpf_nla_parse(tb, maxtype, libbpf_nla_data(nla), maxtype 98 tools/lib/bpf/nlattr.h int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, maxtype 100 tools/lib/bpf/nlattr.h int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,