Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dminimal.c42 struct mlxsw_m_line_card **line_cards; member
331 return &mlxsw_m->line_cards[slot_index]->module_to_port[module]; in mlxsw_m_port_mapping_get()
349 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_port_module_map()
405 mlxsw_m->line_cards = kzalloc_objs(*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_flex(*mlxsw_m->line_cards[i], module_to_port, in mlxsw_m_linecards_init()
416 if (!mlxsw_m->line_cards[i]) { in mlxsw_m_linecards_init()
423 mlxsw_m->line_cards[i]->module_to_port[j] = -1; in mlxsw_m_linecards_init()
430 kfree(mlxsw_m->line_cards[i]); in mlxsw_m_linecards_init()
[all …]
H A Dcore_hwmon.c62 struct mlxsw_hwmon_dev line_cards[]; member
797 linecard = &hwmon->line_cards[slot_index]; in mlxsw_hwmon_got_active()
842 linecard = &hwmon->line_cards[slot_index]; in mlxsw_hwmon_got_inactive()
874 mlxsw_hwmon = kzalloc_flex(*mlxsw_hwmon, line_cards, num_of_slots + 1); 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 …]
H A Dcore_env.c37 struct mlxsw_env_line_card *line_cards[] __counted_by(num_of_slots);
43 return mlxsw_env->line_cards[slot_index]->active; in __mlxsw_env_linecard_is_active()
64 return &mlxsw_env->line_cards[slot_index]->module_info[module]; in mlxsw_env_module_info_get()
905 for (i = 0; i < mlxsw_env->line_cards[slot_index]->module_count; i++) { in mlxsw_env_module_temp_event_enable()
1122 for (i = 0; i < mlxsw_env->line_cards[slot_index]->module_count; i++) { in mlxsw_env_module_oper_state_event_enable()
1246 env->line_cards[i] = kzalloc_flex(*env->line_cards[i], in mlxsw_env_line_cards_alloc()
1249 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc()
1256 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc()
1266 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc()
1275 kfree(env->line_cards[i]); in mlxsw_env_line_cards_free()
[all …]
H A Dcore_thermal.c135 struct mlxsw_thermal_area line_cards[]; member
574 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active()
611 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive()
645 thermal = kzalloc_flex(*thermal, line_cards, num_of_slots + 1); in mlxsw_thermal_init()
656 thermal->line_cards[0].slot_index = 0; in mlxsw_thermal_init()
723 &thermal->line_cards[0]); in mlxsw_thermal_init()
728 &thermal->line_cards[0]); in mlxsw_thermal_init()
742 thermal->line_cards[0].active = true; in mlxsw_thermal_init()
751 mlxsw_thermal_gearboxes_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init()
753 mlxsw_thermal_modules_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init()
[all …]