Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_kvdl.c389 static struct devlink_resource_size_params size_params; in mlxsw_sp1_kvdl_resources_register() local
397 devlink_resource_size_params_init(&size_params, 0, kvdl_max_size, in mlxsw_sp1_kvdl_resources_register()
404 &size_params); in mlxsw_sp1_kvdl_resources_register()
408 devlink_resource_size_params_init(&size_params, 0, kvdl_max_size, in mlxsw_sp1_kvdl_resources_register()
415 &size_params); in mlxsw_sp1_kvdl_resources_register()
419 devlink_resource_size_params_init(&size_params, 0, kvdl_max_size, in mlxsw_sp1_kvdl_resources_register()
426 &size_params); in mlxsw_sp1_kvdl_resources_register()
Dspectrum_cnt.c247 static struct devlink_resource_size_params size_params; in mlxsw_sp_counter_resources_register() local
265 devlink_resource_size_params_init(&size_params, pool_size, in mlxsw_sp_counter_resources_register()
273 &size_params); in mlxsw_sp_counter_resources_register()
290 devlink_resource_size_params_init(&size_params, sub_pool_size, in mlxsw_sp_counter_resources_register()
298 &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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/include/net/
Ddevlink.h340 devlink_resource_size_params_init(struct devlink_resource_size_params *size_params, in devlink_resource_size_params_init() argument
345 size_params->size_min = size_min; in devlink_resource_size_params_init()
346 size_params->size_max = size_max; in devlink_resource_size_params_init()
347 size_params->size_granularity = size_granularity; in devlink_resource_size_params_init()
348 size_params->unit = unit; in devlink_resource_size_params_init()
373 struct devlink_resource_size_params size_params; member
1438 const struct devlink_resource_size_params *size_params);
Ddsa.h671 const struct devlink_resource_size_params *size_params);
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/net/dsa/
Ddsa.c384 const struct devlink_resource_size_params *size_params) in dsa_devlink_resource_register() argument
389 size_params); in dsa_devlink_resource_register()
/kernel/linux/linux-5.10/net/core/
Ddevlink.c2807 if (size > resource->size_params.size_max) { in devlink_resource_validate_size()
2812 if (size < resource->size_params.size_min) { in devlink_resource_validate_size()
2817 div64_u64_rem(size, resource->size_params.size_granularity, &reminder); in devlink_resource_validate_size()
2860 struct devlink_resource_size_params *size_params; in devlink_resource_size_params_put() local
2862 size_params = &resource->size_params; in devlink_resource_size_params_put()
2864 size_params->size_granularity, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
2866 size_params->size_max, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
2868 size_params->size_min, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
2869 nla_put_u8(skb, DEVLINK_ATTR_RESOURCE_UNIT, size_params->unit)) in devlink_resource_size_params_put()
8625 const struct devlink_resource_size_params *size_params) in devlink_resource_register() argument
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/b53/
Db53_common.c1017 struct devlink_resource_size_params size_params; in b53_setup_devlink_resources() local
1021 devlink_resource_size_params_init(&size_params, dev->num_vlans, in b53_setup_devlink_resources()
1028 &size_params); in b53_setup_devlink_resources()