Home
last modified time | relevance | path

Searched refs:size_params (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_kvdl.c388 static struct devlink_resource_size_params size_params; in mlxsw_sp1_kvdl_resources_register() local
396 devlink_resource_size_params_init(&size_params, 0, kvdl_max_size, in mlxsw_sp1_kvdl_resources_register()
403 &size_params); in mlxsw_sp1_kvdl_resources_register()
407 devlink_resource_size_params_init(&size_params, 0, kvdl_max_size, in mlxsw_sp1_kvdl_resources_register()
414 &size_params); in mlxsw_sp1_kvdl_resources_register()
418 devlink_resource_size_params_init(&size_params, 0, kvdl_max_size, in mlxsw_sp1_kvdl_resources_register()
425 &size_params); in mlxsw_sp1_kvdl_resources_register()
Dspectrum_cnt.c244 static struct devlink_resource_size_params size_params; in mlxsw_sp_counter_resources_register() local
262 devlink_resource_size_params_init(&size_params, pool_size, in mlxsw_sp_counter_resources_register()
270 &size_params); in mlxsw_sp_counter_resources_register()
287 devlink_resource_size_params_init(&size_params, sub_pool_size, in mlxsw_sp_counter_resources_register()
295 &size_params); in mlxsw_sp_counter_resources_register()
Dspectrum_policer.c408 struct devlink_resource_size_params size_params; in mlxsw_sp_policer_resources_register() local
419 devlink_resource_size_params_init(&size_params, global_policers, in mlxsw_sp_policer_resources_register()
426 &size_params); in mlxsw_sp_policer_resources_register()
430 devlink_resource_size_params_init(&size_params, single_rate_policers, in mlxsw_sp_policer_resources_register()
437 &size_params); in mlxsw_sp_policer_resources_register()
Dspectrum.c3687 struct devlink_resource_size_params size_params; in mlxsw_sp_resources_rif_mac_profile_register() local
3695 devlink_resource_size_params_init(&size_params, max_rif_mac_profiles, in mlxsw_sp_resources_rif_mac_profile_register()
3704 &size_params); in mlxsw_sp_resources_rif_mac_profile_register()
3710 struct devlink_resource_size_params size_params; in mlxsw_sp_resources_rifs_register() local
3717 devlink_resource_size_params_init(&size_params, max_rifs, max_rifs, in mlxsw_sp_resources_rifs_register()
3723 &size_params); in mlxsw_sp_resources_rifs_register()
/linux-6.1.9/drivers/net/dsa/mv88e6xxx/
Ddevlink.c178 struct devlink_resource_size_params size_params; in mv88e6xxx_setup_devlink_resources() local
182 devlink_resource_size_params_init(&size_params, in mv88e6xxx_setup_devlink_resources()
191 &size_params); in mv88e6xxx_setup_devlink_resources()
195 devlink_resource_size_params_init(&size_params, in mv88e6xxx_setup_devlink_resources()
204 &size_params); in mv88e6xxx_setup_devlink_resources()
212 &size_params); in mv88e6xxx_setup_devlink_resources()
220 &size_params); in mv88e6xxx_setup_devlink_resources()
228 &size_params); in mv88e6xxx_setup_devlink_resources()
/linux-6.1.9/drivers/net/dsa/
Ddsa_loop.c52 struct devlink_resource_size_params size_params; in dsa_loop_setup_devlink_resources() local
56 devlink_resource_size_params_init(&size_params, ARRAY_SIZE(ps->vlans), in dsa_loop_setup_devlink_resources()
63 &size_params); in dsa_loop_setup_devlink_resources()
/linux-6.1.9/include/net/
Ddevlink.h388 devlink_resource_size_params_init(struct devlink_resource_size_params *size_params, in devlink_resource_size_params_init() argument
393 size_params->size_min = size_min; in devlink_resource_size_params_init()
394 size_params->size_max = size_max; in devlink_resource_size_params_init()
395 size_params->size_granularity = size_granularity; in devlink_resource_size_params_init()
396 size_params->unit = unit; in devlink_resource_size_params_init()
1648 const struct devlink_resource_size_params *size_params);
1654 const struct devlink_resource_size_params *size_params);
Ddsa.h1242 const struct devlink_resource_size_params *size_params);
/linux-6.1.9/net/dsa/
Ddsa.c390 const struct devlink_resource_size_params *size_params) in dsa_devlink_resource_register() argument
395 size_params); in dsa_devlink_resource_register()
/linux-6.1.9/net/core/
Ddevlink.c117 struct devlink_resource_size_params size_params; member
4105 if (size > resource->size_params.size_max) { in devlink_resource_validate_size()
4110 if (size < resource->size_params.size_min) { in devlink_resource_validate_size()
4115 div64_u64_rem(size, resource->size_params.size_granularity, &reminder); in devlink_resource_validate_size()
4158 struct devlink_resource_size_params *size_params; in devlink_resource_size_params_put() local
4160 size_params = &resource->size_params; in devlink_resource_size_params_put()
4162 size_params->size_granularity, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
4164 size_params->size_max, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
4166 size_params->size_min, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
4167 nla_put_u8(skb, DEVLINK_ATTR_RESOURCE_UNIT, size_params->unit)) in devlink_resource_size_params_put()
[all …]
/linux-6.1.9/drivers/net/dsa/b53/
Db53_common.c1073 struct devlink_resource_size_params size_params; in b53_setup_devlink_resources() local
1077 devlink_resource_size_params_init(&size_params, dev->num_vlans, in b53_setup_devlink_resources()
1084 &size_params); in b53_setup_devlink_resources()