Home
last modified time | relevance | path

Searched refs:maxtype (Results 1 – 25 of 34) 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.c48 unsigned int dom, maxtype; in topo_subleaf() local
67 case 0x0b: maxtype = MAX_TYPE_0B; map = topo_domain_map_0b_1f; break; in topo_subleaf()
68 case 0x1f: maxtype = MAX_TYPE_1F; map = topo_domain_map_0b_1f; break; in topo_subleaf()
69 case 0x80000026: maxtype = MAX_TYPE_80000026; map = topo_domain_map_80000026; break; in topo_subleaf()
78 if (sl.type >= maxtype) { in topo_subleaf()
/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/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/include/net/
H A Drtnetlink.h156 unsigned int maxtype; member
/linux/drivers/net/ovpn/
H A Dmain.c236 .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.c991 static int parse_attr(struct nlattr *tb[], int maxtype, struct nlattr *nla, in parse_attr() argument
1002 return nla_parse_deprecated(tb, maxtype, in parse_attr()
1006 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in parse_attr()
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_config.c402 .maxtype = IFLA_RMNET_MAX,
/linux/net/ipv4/
H A Dipip.c600 .maxtype = IFLA_IPTUN_MAX,
H A Dip_gre.c1670 .maxtype = IFLA_GRE_MAX,
1685 .maxtype = IFLA_GRE_MAX,
1700 .maxtype = IFLA_GRE_MAX,
H A Dip_vti.c648 .maxtype = IFLA_VTI_MAX,
/linux/net/hsr/
H A Dhsr_netlink.c194 .maxtype = IFLA_HSR_MAX,
/linux/net/batman-adv/
H A Dmesh-interface.c1128 .maxtype = IFLA_BATADV_MAX,
/linux/net/ipv6/
H A Dip6_gre.c2285 .maxtype = IFLA_GRE_MAX,
2300 .maxtype = IFLA_GRE_MAX,
2314 .maxtype = IFLA_GRE_MAX,
/linux/drivers/net/
H A Dbareudp.c765 .maxtype = IFLA_BAREUDP_MAX,
/linux/drivers/net/bonding/
H A Dbond_netlink.c960 .maxtype = IFLA_BOND_MAX,
/linux/drivers/net/ipvlan/
H A Dipvlan_main.c720 ops->maxtype = IFLA_IPVLAN_MAX; in ipvlan_link_register()
/linux/drivers/net/can/dev/
H A Dnetlink.c1093 .maxtype = IFLA_CAN_MAX,

12