/linux/net/netlink/ |
A D | policy.c | 23 unsigned int maxtype; member 29 unsigned int maxtype) in add_policy() argument 34 if (!policy || !maxtype) in add_policy() 39 state->policies[i].maxtype == maxtype) in add_policy() 44 state->policies[i].maxtype = maxtype; in add_policy() 59 state->policies[state->n_alloc].maxtype = maxtype; in add_policy() 83 unsigned int maxtype) in netlink_policy_dump_get_policy_idx() argument 87 if (WARN_ON(!policy || !maxtype)) in netlink_policy_dump_get_policy_idx() 92 state->policies[i].maxtype == maxtype) in netlink_policy_dump_get_policy_idx() 128 unsigned int maxtype) in netlink_policy_dump_add_policy() argument [all …]
|
/linux/drivers/block/drbd/ |
A D | drbd_nla.c | 7 static int drbd_nla_check_mandatory(int maxtype, struct nlattr *nla) in drbd_nla_check_mandatory() argument 24 if (nla_type(nla) > maxtype) in drbd_nla_check_mandatory() 31 int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, in drbd_nla_parse_nested() argument 36 err = drbd_nla_check_mandatory(maxtype, nla); in drbd_nla_parse_nested() 38 err = nla_parse_nested_deprecated(tb, maxtype, nla, policy, in drbd_nla_parse_nested() 44 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested() argument 52 err = drbd_nla_check_mandatory(maxtype, nla); in drbd_nla_find_nested()
|
A D | drbd_nla.h | 5 extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, 7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
|
/linux/include/net/ |
A D | netlink.h | 655 return __nla_parse(tb, maxtype, head, len, policy, in nla_parse() 680 return __nla_parse(tb, maxtype, head, len, policy, in nla_parse_deprecated() 723 struct nlattr *tb[], int maxtype, in __nlmsg_parse() argument 749 struct nlattr *tb[], int maxtype, in nlmsg_parse() argument 768 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated() argument 788 struct nlattr *tb[], int maxtype, in nlmsg_parse_deprecated_strict() argument 827 int maxtype, in nla_validate_deprecated() argument 866 int hdrlen, int maxtype, in nlmsg_validate_deprecated() argument 874 nlmsg_attrlen(nlh, hdrlen), maxtype, in nlmsg_validate_deprecated() 1953 unsigned int maxtype); [all …]
|
A D | genetlink.h | 214 struct nlattr *tb[], int maxtype, in genlmsg_parse_deprecated() argument 218 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated() 233 struct nlattr *tb[], int maxtype, in genlmsg_parse() argument 237 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
|
A D | rtnetlink.h | 77 unsigned int maxtype; member
|
/linux/tools/lib/bpf/ |
A D | nlattr.c | 45 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla() argument 52 if (type < 0 || type > maxtype) in validate_nla() 104 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse() argument 110 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse() 115 if (type > maxtype) in libbpf_nla_parse() 119 err = validate_nla(nla, maxtype, policy); in libbpf_nla_parse() 149 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, in libbpf_nla_parse_nested() argument 153 return libbpf_nla_parse(tb, maxtype, libbpf_nla_data(nla), in libbpf_nla_parse_nested()
|
A D | nlattr.h | 111 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, 113 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,
|
/linux/lib/ |
A D | nlattr.c | 84 static int nla_validate_array(const struct nlattr *head, int len, int maxtype, in nla_validate_array() argument 105 maxtype, policy, validate, extack, in nla_validate_array() 357 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla() argument 369 if (type <= 0 || type > maxtype) in validate_nla() 574 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in __nla_validate_parse() 579 if (type == 0 || type > maxtype) { in __nla_validate_parse() 588 int err = validate_nla(nla, maxtype, policy, in __nla_validate_parse() 626 int __nla_validate(const struct nlattr *head, int len, int maxtype, in __nla_validate() argument 630 return __nla_validate_parse(head, len, maxtype, policy, validate, in __nla_validate() 680 int __nla_parse(struct nlattr **tb, int maxtype, in __nla_parse() argument [all …]
|
/linux/drivers/net/ethernet/rocker/ |
A D | rocker_tlv.h | 109 void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, 113 int maxtype, in rocker_tlv_parse_nested() argument 116 rocker_tlv_parse(tb, maxtype, rocker_tlv_data(tlv), in rocker_tlv_parse_nested() 121 rocker_tlv_parse_desc(const struct rocker_tlv **tb, int maxtype, in rocker_tlv_parse_desc() argument 124 rocker_tlv_parse(tb, maxtype, desc_info->data, in rocker_tlv_parse_desc()
|
A D | rocker_tlv.c | 15 void rocker_tlv_parse(const struct rocker_tlv **tb, int maxtype, in rocker_tlv_parse() argument 22 memset(tb, 0, sizeof(struct rocker_tlv *) * (maxtype + 1)); in rocker_tlv_parse() 27 if (type > 0 && type <= maxtype) in rocker_tlv_parse()
|
/linux/net/xfrm/ |
A D | xfrm_compat.c | 353 int maxtype) in xfrm_user_rcv_calculate_len64() argument 381 if (WARN_ON_ONCE(maxtype)) in xfrm_user_rcv_calculate_len64() 462 size_t size, u8 type, int maxtype, in xfrm_xlate32() argument 543 if (maxtype) { in xfrm_xlate32() 547 for (i = 1; i <= maxtype; i++) { in xfrm_xlate32() 580 int maxtype, const struct nla_policy *policy, in xfrm_user_rcv_msg_compat() argument 602 maxtype ? : XFRMA_MAX, policy ? : compat_policy, extack); in xfrm_user_rcv_msg_compat() 606 len = xfrm_user_rcv_calculate_len64(h32, attrs, maxtype); in xfrm_user_rcv_msg_compat() 616 err = xfrm_xlate32(h64, h32, attrs, len, type, maxtype, extack); in xfrm_user_rcv_msg_compat()
|
/linux/net/sched/ |
A D | sch_mqprio.c | 119 static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, in parse_attr() argument 125 return nla_parse_deprecated(tb, maxtype, in parse_attr() 129 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in parse_attr()
|
A D | sch_netem.c | 934 static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, in parse_attr() argument 945 return nla_parse_deprecated(tb, maxtype, in parse_attr() 949 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in parse_attr()
|
/linux/include/linux/ |
A D | genl_magic_func.h | 142 const int maxtype = ARRAY_SIZE(s_name ## _nl_policy)-1; \ 151 err = drbd_nla_parse_nested(ntb, maxtype, tla, s_name ## _nl_policy); \
|
/linux/drivers/infiniband/ulp/ipoib/ |
A D | ipoib_netlink.c | 167 .maxtype = IFLA_IPOIB_MAX,
|
/linux/drivers/net/can/ |
A D | vxcan.c | 297 .maxtype = VXCAN_INFO_MAX,
|
/linux/net/8021q/ |
A D | vlan_netlink.c | 284 .maxtype = IFLA_VLAN_MAX,
|
/linux/drivers/net/ethernet/qualcomm/rmnet/ |
A D | rmnet_config.c | 394 .maxtype = __IFLA_RMNET_MAX,
|
/linux/net/ipv4/ |
A D | ip_gre.c | 1595 .maxtype = IFLA_GRE_MAX, 1610 .maxtype = IFLA_GRE_MAX, 1625 .maxtype = IFLA_GRE_MAX,
|
A D | ipip.c | 618 .maxtype = IFLA_IPTUN_MAX,
|
A D | ip_vti.c | 631 .maxtype = IFLA_VTI_MAX,
|
/linux/net/hsr/ |
A D | hsr_netlink.c | 156 .maxtype = IFLA_HSR_MAX,
|
/linux/net/caif/ |
A D | chnl_net.c | 504 .maxtype = IFLA_CAIF_MAX,
|
/linux/drivers/net/can/dev/ |
A D | netlink.c | 574 .maxtype = IFLA_CAN_MAX,
|