/openbmc/linux/net/devlink/ |
H A D | resource.c | 31 struct devlink_resource_size_params size_params; member 89 if (size > resource->size_params.size_max) { in devlink_resource_validate_size() 94 if (size < resource->size_params.size_min) { in devlink_resource_validate_size() 141 struct devlink_resource_size_params *size_params; in devlink_resource_size_params_put() local 143 size_params = &resource->size_params; in devlink_resource_size_params_put() 145 size_params->size_granularity, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put() 147 size_params->size_max, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put() 149 size_params->size_min, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put() 378 memcpy(&resource->size_params, size_params, in devl_resource_register() 379 sizeof(resource->size_params)); in devl_resource_register() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_kvdl.c | 388 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()
|
H A D | spectrum_cnt.c | 244 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()
|
H A 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()
|
H A D | spectrum.c | 3703 struct devlink_resource_size_params size_params; in mlxsw_sp_resources_rif_mac_profile_register() local 3711 devlink_resource_size_params_init(&size_params, max_rif_mac_profiles, in mlxsw_sp_resources_rif_mac_profile_register() 3720 &size_params); in mlxsw_sp_resources_rif_mac_profile_register() 3726 struct devlink_resource_size_params size_params; in mlxsw_sp_resources_rifs_register() local 3733 devlink_resource_size_params_init(&size_params, max_rifs, max_rifs, in mlxsw_sp_resources_rifs_register() 3739 &size_params); in mlxsw_sp_resources_rifs_register() 3746 struct devlink_resource_size_params size_params; in mlxsw_sp_resources_port_range_register() local 3753 devlink_resource_size_params_init(&size_params, max, max, 1, in mlxsw_sp_resources_port_range_register() 3759 &size_params); in mlxsw_sp_resources_port_range_register()
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A 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()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
H A D | hw_table.c | 255 struct devlink_resource_size_params size_params; in mlx5_sf_hw_table_res_register() local 259 devlink_resource_size_params_init(&size_params, max_fn, max_fn, 1, in mlx5_sf_hw_table_res_register() 262 DEVLINK_RESOURCE_ID_PARENT_TOP, &size_params); in mlx5_sf_hw_table_res_register() 266 devlink_resource_size_params_init(&size_params, max_ext_fn, max_ext_fn, 1, in mlx5_sf_hw_table_res_register() 270 &size_params); in mlx5_sf_hw_table_res_register()
|
/openbmc/linux/drivers/net/dsa/ |
H A 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()
|
/openbmc/linux/include/net/ |
H A D | devlink.h | 402 devlink_resource_size_params_init(struct devlink_resource_size_params *size_params, in devlink_resource_size_params_init() argument 407 size_params->size_min = size_min; in devlink_resource_size_params_init() 408 size_params->size_max = size_max; in devlink_resource_size_params_init() 409 size_params->size_granularity = size_granularity; in devlink_resource_size_params_init() 410 size_params->unit = unit; in devlink_resource_size_params_init() 1761 const struct devlink_resource_size_params *size_params); 1767 const struct devlink_resource_size_params *size_params);
|
H A D | dsa.h | 1251 const struct devlink_resource_size_params *size_params);
|
/openbmc/linux/net/dsa/ |
H A D | devlink.c | 229 const struct devlink_resource_size_params *size_params) in dsa_devlink_resource_register() argument 234 size_params); in dsa_devlink_resource_register()
|
/openbmc/linux/drivers/net/dsa/b53/ |
H A D | b53_common.c | 1077 struct devlink_resource_size_params size_params; in b53_setup_devlink_resources() local 1081 devlink_resource_size_params_init(&size_params, dev->num_vlans, in b53_setup_devlink_resources() 1088 &size_params); in b53_setup_devlink_resources()
|