Searched refs:size_params (Results 1 – 10 of 10) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum1_kvdl.c | 389 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()
|
D | spectrum_cnt.c | 247 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()
|
D | spectrum_policer.c | 408 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/ |
D | devlink.c | 178 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/ |
D | devlink.h | 340 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);
|
D | dsa.h | 671 const struct devlink_resource_size_params *size_params);
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
D | dsa_loop.c | 52 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/ |
D | dsa.c | 384 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/ |
D | devlink.c | 2807 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/ |
D | b53_common.c | 1017 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()
|