/openbmc/linux/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_calendar.c | 350 num_of_slots = taxi_bw / slot_spd; in sparx5_dsm_calendar_calc() 351 if (num_of_slots <= 64) in sparx5_dsm_calendar_calc() 355 num_of_slots = num_of_slots > 64 ? 64 : num_of_slots; in sparx5_dsm_calendar_calc() 356 slot_spd = taxi_bw / num_of_slots; in sparx5_dsm_calendar_calc() 379 if (sum > num_of_slots) { in sparx5_dsm_calendar_calc() 387 empty_slots = num_of_slots - sum; in sparx5_dsm_calendar_calc() 480 u32 num_of_slots, idx, port; in sparx5_dsm_calendar_check() local 486 num_of_slots = 0; in sparx5_dsm_calendar_check() 495 slot_indices[num_of_slots] = idx; in sparx5_dsm_calendar_check() 496 num_of_slots++; in sparx5_dsm_calendar_check() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | minimal.c | 41 u8 num_of_slots; /* Including the main board. */ member 374 &mlxsw_m->num_of_slots); in mlxsw_m_linecards_init() 378 if (mlxsw_m->num_of_slots) in mlxsw_m_linecards_init() 384 mlxsw_m->num_of_slots += 1; in mlxsw_m_linecards_init() 391 mlxsw_m->line_cards = kcalloc(mlxsw_m->num_of_slots, in mlxsw_m_linecards_init() 399 for (i = 0; i < mlxsw_m->num_of_slots; i++) { in mlxsw_m_linecards_init() 428 int i = mlxsw_m->num_of_slots; in mlxsw_m_linecards_fini()
|
H A D | core_env.c | 34 u8 num_of_slots; /* Including the main board. */ member 1019 slot_index >= mlxsw_env->num_of_slots)) in mlxsw_env_pmpe_listener_func() 1188 for (i = 0; i < env->num_of_slots; i++) { in mlxsw_env_line_cards_alloc() 1216 int i = env->num_of_slots; in mlxsw_env_line_cards_free() 1380 u8 module_count, num_of_slots, max_module_count; in mlxsw_env_init() local 1391 &num_of_slots); in mlxsw_env_init() 1395 max_module_count = num_of_slots ? in mlxsw_env_init() 1399 env = kzalloc(struct_size(env, line_cards, num_of_slots + 1), in mlxsw_env_init() 1406 env->num_of_slots = num_of_slots + 1; in mlxsw_env_init() 1431 env->line_cards[0]->module_count = num_of_slots ? 0 : module_count; in mlxsw_env_init()
|
H A D | core_thermal.c | 702 u8 pwm_active, num_of_slots; in mlxsw_thermal_init() local 712 &num_of_slots); in mlxsw_thermal_init() 714 thermal = kzalloc(struct_size(thermal, line_cards, num_of_slots + 1), in mlxsw_thermal_init()
|
H A D | core_hwmon.c | 863 u8 num_of_slots; in mlxsw_hwmon_init() local 872 &num_of_slots); in mlxsw_hwmon_init() 875 num_of_slots + 1), GFP_KERNEL); in mlxsw_hwmon_init()
|
H A D | reg.h | 11224 MLXSW_ITEM32(reg, mgpir, num_of_slots, 0x04, 8, 8); 11242 u8 *num_of_slots) in mlxsw_reg_mgpir_unpack() argument 11253 if (num_of_slots) in mlxsw_reg_mgpir_unpack() 11254 *num_of_slots = mlxsw_reg_mgpir_num_of_slots_get(payload); in mlxsw_reg_mgpir_unpack()
|
/openbmc/linux/drivers/gpu/drm/amd/display/include/ |
H A D | grph_object_defs.h | 186 unsigned int num_of_slots; member
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | cpqphp_ctrl.c | 2101 for (loop = 0; loop < num_of_slots; loop++) { in switch_leds() 2130 int num_of_slots; in cpqhp_hardware_test() local 2142 switch_leds(ctrl, num_of_slots, &work_LED, 0); in cpqhp_hardware_test() 2143 switch_leds(ctrl, num_of_slots, &work_LED, 1); in cpqhp_hardware_test() 2144 switch_leds(ctrl, num_of_slots, &work_LED, 0); in cpqhp_hardware_test() 2145 switch_leds(ctrl, num_of_slots, &work_LED, 1); in cpqhp_hardware_test() 2149 switch_leds(ctrl, num_of_slots, &work_LED, 0); in cpqhp_hardware_test() 2150 switch_leds(ctrl, num_of_slots, &work_LED, 1); in cpqhp_hardware_test() 2153 switch_leds(ctrl, num_of_slots, &work_LED, 0); in cpqhp_hardware_test() 2154 switch_leds(ctrl, num_of_slots, &work_LED, 1); in cpqhp_hardware_test() [all …]
|
H A D | cpqphp_core.c | 756 u8 num_of_slots = 0; in cpqhpc_probe() local 1177 num_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in cpqhpc_probe() 1182 while (num_of_slots) { in cpqhpc_probe() 1183 dbg("num_of_slots: %d\n", num_of_slots); in cpqhpc_probe() 1208 num_of_slots--; in cpqhpc_probe()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | bios_parser.c | 2776 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info() 2788 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()
|
H A D | bios_parser2.c | 3404 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info() 3422 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()
|