Searched refs:line_cards (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | minimal.c | 42 struct mlxsw_m_line_card **line_cards; member 316 return &mlxsw_m->line_cards[slot_index]->module_to_port[module]; in mlxsw_m_port_mapping_get() 334 if (mlxsw_m->line_cards[slot_index]->active) in mlxsw_m_port_module_map() 391 mlxsw_m->line_cards = kcalloc(mlxsw_m->num_of_slots, in mlxsw_m_linecards_init() 392 sizeof(*mlxsw_m->line_cards), in mlxsw_m_linecards_init() 394 if (!mlxsw_m->line_cards) { in mlxsw_m_linecards_init() 400 mlxsw_m->line_cards[i] = in mlxsw_m_linecards_init() 401 kzalloc(struct_size(mlxsw_m->line_cards[i], in mlxsw_m_linecards_init() 405 if (!mlxsw_m->line_cards[i]) { in mlxsw_m_linecards_init() 412 mlxsw_m->line_cards[i]->module_to_port[j] = -1; in mlxsw_m_linecards_init() [all …]
|
H A D | core_hwmon.c | 62 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(struct_size(mlxsw_hwmon, line_cards, in mlxsw_hwmon_init() 881 mlxsw_hwmon->line_cards[0].hwmon = mlxsw_hwmon; in mlxsw_hwmon_init() 882 mlxsw_hwmon->line_cards[0].slot_index = 0; in mlxsw_hwmon_init() 884 err = mlxsw_hwmon_temp_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init() 888 err = mlxsw_hwmon_fans_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init() 892 err = mlxsw_hwmon_module_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init() 896 err = mlxsw_hwmon_gearbox_init(&mlxsw_hwmon->line_cards[0]); in mlxsw_hwmon_init() [all …]
|
H A D | core_env.c | 37 struct mlxsw_env_line_card *line_cards[]; member 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() 848 for (i = 0; i < mlxsw_env->line_cards[slot_index]->module_count; i++) { in mlxsw_env_module_temp_event_enable() 1065 for (i = 0; i < mlxsw_env->line_cards[slot_index]->module_count; i++) { in mlxsw_env_module_oper_state_event_enable() 1189 env->line_cards[i] = kzalloc(struct_size(env->line_cards[i], in mlxsw_env_line_cards_alloc() 1193 if (!env->line_cards[i]) in mlxsw_env_line_cards_alloc() 1200 module_info = &env->line_cards[i]->module_info[j]; in mlxsw_env_line_cards_alloc() 1210 kfree(env->line_cards[i]); in mlxsw_env_line_cards_alloc() 1219 kfree(env->line_cards[i]); in mlxsw_env_line_cards_free() [all …]
|
H A D | core_thermal.c | 125 struct mlxsw_thermal_area line_cards[]; member 643 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active() 680 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive() 714 thermal = kzalloc(struct_size(thermal, line_cards, num_of_slots + 1), in mlxsw_thermal_init() 723 thermal->line_cards[0].slot_index = 0; in mlxsw_thermal_init() 787 &thermal->line_cards[0]); in mlxsw_thermal_init() 792 &thermal->line_cards[0]); in mlxsw_thermal_init() 806 thermal->line_cards[0].active = true; in mlxsw_thermal_init() 815 mlxsw_thermal_gearboxes_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init() 817 mlxsw_thermal_modules_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init() [all …]
|