Home
last modified time | relevance | path

Searched refs:maxtype (Results 1 – 25 of 39) sorted by relevance

12

/linux/net/netlink/
H A Dpolicy.c23 unsigned int maxtype; member
29 unsigned int maxtype) in add_policy() argument
39 state->policies[i].maxtype == maxtype) in add_policy()
44 state->policies[i].maxtype = maxtype; in add_policy()
61 state->policies[old_n_alloc].maxtype = maxtype; in add_policy()
71 * @maxtype: the policy's maxattr
84 unsigned int maxtype) in netlink_policy_dump_get_policy_idx() argument
128 netlink_policy_dump_add_policy(struct netlink_policy_dump_state ** pstate,const struct nla_policy * policy,unsigned int maxtype) netlink_policy_dump_add_policy() argument
[all...]
/linux/tools/lib/bpf/
H A Dnlattr.c45 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla() argument
52 if (type < 0 || type > maxtype) in validate_nla()
88 * @arg tb Index array to be filled (maxtype+1 elements).
89 * @arg maxtype Maximum attribute type expected and accepted.
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()
137 * @arg tb Index array to be filled (maxtype+1 elements).
138 * @arg maxtype Maximu
149 libbpf_nla_parse_nested(struct nlattr * tb[],int maxtype,struct nlattr * nla,struct libbpf_nla_policy * policy) libbpf_nla_parse_nested() argument
[all...]
H A Dnlattr.h123 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head,
125 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype,
/linux/arch/x86/kernel/cpu/
H A Dtopology_ext.c49 unsigned int dom, maxtype; in topo_subleaf()
68 case 0x0b: maxtype = MAX_TYPE_0B; map = topo_domain_map_0b_1f; break; in topo_subleaf()
69 case 0x1f: maxtype = MAX_TYPE_1F; map = topo_domain_map_0b_1f; break; in topo_subleaf()
70 case 0x80000026: maxtype = MAX_TYPE_80000026; map = topo_domain_map_80000026; break; in topo_subleaf()
79 if (sl.type >= maxtype) { in topo_subleaf()
48 unsigned int dom, maxtype; topo_subleaf() local
/linux/lib/
H A Dnlattr.c60 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()
[all …]
/linux/drivers/net/ethernet/rocker/
H A Drocker_tlv.h109 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()
H A Drocker_tlv.c15 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/include/net/
H A Dgenetlink.h389 struct nlattr *tb[], int maxtype, in genlmsg_parse_deprecated() argument
393 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated()
408 struct nlattr *tb[], int maxtype, in genlmsg_parse() argument
412 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
H A Drtnetlink.h114 * @maxtype: Highest device specific netlink attribute number
156 unsigned int maxtype; member
/linux/net/dsa/
H A Dnetlink.c58 .maxtype = IFLA_DSA_MAX,
/linux/drivers/infiniband/ulp/ipoib/
H A Dipoib_netlink.c174 .maxtype = IFLA_IPOIB_MAX,
/linux/drivers/net/ovpn/
H A Dmain.c229 .maxtype = IFLA_OVPN_MAX,
/linux/net/8021q/
H A Dvlan_netlink.c290 .maxtype = IFLA_VLAN_MAX,
/linux/drivers/net/can/
H A Dvxcan.c324 .maxtype = VXCAN_INFO_MAX,
/linux/net/sched/
H A Dsch_netem.c1022 static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, in netem_change()
1035 return nla_parse_deprecated(tb, maxtype, in netem_change()
1039 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in netem_change()
990 parse_attr(struct nlattr * tb[],int maxtype,struct nlattr * nla,const struct nla_policy * policy,int len) parse_attr() argument
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_config.c402 .maxtype = IFLA_RMNET_MAX,
/linux/net/ipv4/
H A Dipip.c603 .maxtype = IFLA_IPTUN_MAX, in ipip_init_net()
H A Dip_gre.c1676 .maxtype = IFLA_GRE_MAX,
1691 .maxtype = IFLA_GRE_MAX,
1706 .maxtype = IFLA_GRE_MAX,
H A Dip_vti.c651 .maxtype = IFLA_VTI_MAX,
/linux/net/hsr/
H A Dhsr_netlink.c199 .maxtype = IFLA_HSR_MAX,
/linux/net/batman-adv/
H A Dmesh-interface.c1131 .maxtype = IFLA_BATADV_MAX,
/linux/net/ipv6/
H A Dip6_gre.c2291 .maxtype = IFLA_GRE_MAX,
2306 .maxtype = IFLA_GRE_MAX,
2320 .maxtype = IFLA_GRE_MAX,
/linux/drivers/net/
H A Dbareudp.c763 .maxtype = IFLA_BAREUDP_MAX,
/linux/drivers/net/bonding/
H A Dbond_netlink.c976 .maxtype = IFLA_BOND_MAX,
/linux/drivers/net/ipvlan/
H A Dipvlan_main.c720 ops->maxtype = IFLA_IPVLAN_MAX; in ipvlan_link_register()

12