Home
last modified time | relevance | path

Searched refs:num_of_slots (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/
H A 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 in sparx5_dsm_calendar_calc()
480 u32 num_of_slots, idx, port; sparx5_dsm_calendar_check() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dminimal.c41 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 Dcore_env.c34 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()
1384 u8 module_count, num_of_slots, max_module_count; in mlxsw_env_init() local
1395 &num_of_slots); in mlxsw_env_init()
1399 max_module_count = num_of_slots ? in mlxsw_env_init()
1403 env = kzalloc(struct_size(env, line_cards, num_of_slots + 1), in mlxsw_env_init()
1410 env->num_of_slots = num_of_slots in mlxsw_env_init()
[all...]
H A Dcore_hwmon.c863 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 Dcore_thermal.c702 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 Dreg.h11224 MLXSW_ITEM32(reg, mgpir, num_of_slots, 0x04, 8, 8);
11242 u8 *num_of_slots) in mlxsw_reg_mgpir_unpack()
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()
11239 mlxsw_reg_mgpir_unpack(char *payload, u8 *num_of_devices, enum mlxsw_reg_mgpir_device_type *device_type, u8 *devices_per_flash, u8 *num_of_modules, u8 *num_of_slots) mlxsw_reg_mgpir_unpack() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/include/
H A Dgrph_object_defs.h176 unsigned int num_of_slots; member
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/include/
H A Dgrph_object_defs.h186 unsigned int num_of_slots; member
/kernel/linux/linux-5.10/drivers/pci/hotplug/
H A Dcpqphp_ctrl.c2104 * @num_of_slots: number of slots to use
2108 static void switch_leds(struct controller *ctrl, const int num_of_slots, in switch_leds() argument
2113 for (loop = 0; loop < num_of_slots; loop++) { in switch_leds()
2142 int num_of_slots; in cpqhp_hardware_test() local
2144 num_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0f; in cpqhp_hardware_test()
2154 switch_leds(ctrl, num_of_slots, &work_LED, 0); in cpqhp_hardware_test()
2155 switch_leds(ctrl, num_of_slots, &work_LED, 1); in cpqhp_hardware_test()
2156 switch_leds(ctrl, num_of_slots, &work_LED, 0); in cpqhp_hardware_test()
2157 switch_leds(ctrl, num_of_slots, &work_LED, 1); in cpqhp_hardware_test()
2161 switch_leds(ctrl, num_of_slots, in cpqhp_hardware_test()
[all...]
H A Dcpqphp_core.c755 u8 num_of_slots = 0; in cpqhpc_probe() local
1176 num_of_slots = readb(ctrl->hpc_reg + SLOT_MASK) & 0x0F; in cpqhpc_probe()
1181 while (num_of_slots) { in cpqhpc_probe()
1182 dbg("num_of_slots: %d\n", num_of_slots); in cpqhpc_probe()
1207 num_of_slots--; in cpqhpc_probe()
/kernel/linux/linux-6.6/drivers/pci/hotplug/
H A Dcpqphp_ctrl.c2092 * @num_of_slots: number of slots to use
2096 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, in cpqhp_hardware_test()
[all...]
H A 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/bios/
H A Dbios_parser2.c2030 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info()
2042 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()
H A Dbios_parser.c2755 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info()
2767 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/bios/
H A Dbios_parser.c2762 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info()
2774 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()
H A Dbios_parser2.c3400 board_layout_info->num_of_slots = 0; in bios_get_board_layout_info()
3418 ++board_layout_info->num_of_slots; in bios_get_board_layout_info()

Completed in 44 milliseconds