Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_calendar.c286 u32 num_of_slots, slot_spd, empty_slots; in sparx5_dsm_calendar_calc() local
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()
371 if (num_of_slots < (5 * data->dev_slots[idx])) { 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()
392 for (idx = 1; idx < num_of_slots; idx++) { in sparx5_dsm_calendar_calc()
480 u32 num_of_slots, idx, port; in sparx5_dsm_calendar_check() local
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dminimal.c41 u8 num_of_slots; /* Including the main board. */ member
387 &mlxsw_m->num_of_slots); in mlxsw_m_linecards_init()
391 if (mlxsw_m->num_of_slots) in mlxsw_m_linecards_init()
397 mlxsw_m->num_of_slots += 1; in mlxsw_m_linecards_init()
404 mlxsw_m->line_cards = kcalloc(mlxsw_m->num_of_slots, in mlxsw_m_linecards_init()
412 for (i = 0; i < mlxsw_m->num_of_slots; i++) { in mlxsw_m_linecards_init()
440 int i = mlxsw_m->num_of_slots; in mlxsw_m_linecards_fini()
Dcore_env.c34 u8 num_of_slots; /* Including the main board. */ member
1021 slot_index >= mlxsw_env->num_of_slots)) in mlxsw_env_pmpe_listener_func()
1190 for (i = 0; i < env->num_of_slots; i++) { in mlxsw_env_line_cards_alloc()
1218 int i = env->num_of_slots; in mlxsw_env_line_cards_free()
1366 u8 module_count, num_of_slots, max_module_count; in mlxsw_env_init() local
1377 &num_of_slots); in mlxsw_env_init()
1381 max_module_count = num_of_slots ? in mlxsw_env_init()
1385 env = kzalloc(struct_size(env, line_cards, num_of_slots + 1), in mlxsw_env_init()
1392 env->num_of_slots = num_of_slots + 1; in mlxsw_env_init()
1417 env->line_cards[0]->module_count = num_of_slots ? 0 : module_count; in mlxsw_env_init()
Dcore_hwmon.c862 u8 num_of_slots; in mlxsw_hwmon_init() local
871 &num_of_slots); in mlxsw_hwmon_init()
874 num_of_slots + 1), GFP_KERNEL); in mlxsw_hwmon_init()
Dcore_thermal.c911 u8 pwm_active, num_of_slots; in mlxsw_thermal_init() local
921 &num_of_slots); in mlxsw_thermal_init()
923 thermal = kzalloc(struct_size(thermal, line_cards, num_of_slots + 1), in mlxsw_thermal_init()
Dreg.h11052 MLXSW_ITEM32(reg, mgpir, num_of_slots, 0x04, 8, 8);
11070 u8 *num_of_slots) in mlxsw_reg_mgpir_unpack() argument
11081 if (num_of_slots) in mlxsw_reg_mgpir_unpack()
11082 *num_of_slots = mlxsw_reg_mgpir_num_of_slots_get(payload); in mlxsw_reg_mgpir_unpack()
/linux-6.1.9/drivers/pci/hotplug/
Dcpqphp_ctrl.c2096 static void switch_leds(struct controller *ctrl, const int num_of_slots, in switch_leds() argument
2101 for (loop = 0; loop < num_of_slots; loop++) { in switch_leds()
2130 int num_of_slots; in cpqhp_hardware_test() local
2132 num_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0f; in cpqhp_hardware_test()
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()
[all …]
Dcpqphp_core.c756 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()
/linux-6.1.9/drivers/gpu/drm/amd/display/include/
Dgrph_object_defs.h186 unsigned int num_of_slots; member
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/bios/
Dbios_parser.c2753 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info()
2765 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()
Dbios_parser2.c3401 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info()
3419 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()