Home
last modified time | relevance | path

Searched refs:line_cards (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dminimal.c42 struct mlxsw_m_line_card **line_cards; member
329 return &mlxsw_m->line_cards[slot_index]->module_to_port[module]; in mlxsw_m_port_mapping_get()
347 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_port_module_map()
404 mlxsw_m->line_cards = kcalloc(mlxsw_m->num_of_slots, in mlxsw_m_linecards_init()
405 sizeof(*mlxsw_m->line_cards), in mlxsw_m_linecards_init()
407 if (!mlxsw_m->line_cards) { in mlxsw_m_linecards_init()
413 mlxsw_m->line_cards[i] = in mlxsw_m_linecards_init()
414 kzalloc(struct_size(mlxsw_m->line_cards[i], in mlxsw_m_linecards_init()
418 if (!mlxsw_m->line_cards[i]) { in mlxsw_m_linecards_init()
425 mlxsw_m->line_cards[i]->module_to_port[j] = -1; in mlxsw_m_linecards_init()
[all …]
Dcore_hwmon.c62 struct mlxsw_hwmon_dev line_cards[]; member
796 linecard = &hwmon->line_cards[slot_index]; in mlxsw_hwmon_got_active()
841 linecard = &hwmon->line_cards[slot_index]; in mlxsw_hwmon_got_inactive()
873 mlxsw_hwmon = kzalloc(struct_size(mlxsw_hwmon, line_cards, in mlxsw_hwmon_init()
880 mlxsw_hwmon->line_cards[0].hwmon = mlxsw_hwmon; in mlxsw_hwmon_init()
881 mlxsw_hwmon->line_cards[0].slot_index = 0; in mlxsw_hwmon_init()
883 err = mlxsw_hwmon_temp_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init()
887 err = mlxsw_hwmon_fans_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init()
891 err = mlxsw_hwmon_module_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init()
895 err = mlxsw_hwmon_gearbox_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init()
[all …]
Dcore_env.c36 struct mlxsw_env_line_card *line_cards[]; member
42 return mlxsw_env->line_cards[slot_index]->active; in __mlxsw_env_linecard_is_active()
63 return &mlxsw_env->line_cards[slot_index]->module_info[module]; in mlxsw_env_module_info_get()
850 for (i = 0; i < mlxsw_env->line_cards[slot_index]->module_count; i++) { in mlxsw_env_module_temp_event_enable()
1067 for (i = 0; i < mlxsw_env->line_cards[slot_index]->module_count; i++) { in mlxsw_env_module_oper_state_event_enable()
1191 env->line_cards[i] = kzalloc(struct_size(env->line_cards[i], in mlxsw_env_line_cards_alloc()
1195 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc()
1202 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc()
1212 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc()
1221 kfree(env->line_cards[i]); in mlxsw_env_line_cards_free()
[all …]
Dcore_thermal.c103 struct mlxsw_thermal_area line_cards[]; member
852 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active()
889 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive()
923 thermal = kzalloc(struct_size(thermal, line_cards, num_of_slots + 1), in mlxsw_thermal_init()
931 thermal->line_cards[0].slot_index = 0; in mlxsw_thermal_init()
998 &thermal->line_cards[0]); in mlxsw_thermal_init()
1003 &thermal->line_cards[0]); in mlxsw_thermal_init()
1017 thermal->line_cards[0].active = true; in mlxsw_thermal_init()
1026 mlxsw_thermal_gearboxes_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init()
1028 mlxsw_thermal_modules_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init()
[all …]