Searched refs:line_cards (Results 1 – 3 of 3) sorted by relevance
62 struct mlxsw_hwmon_dev line_cards[]; member796 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 …]
36 struct mlxsw_env_line_card *line_cards[]; member42 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 …]
106 struct mlxsw_thermal_area line_cards[]; member925 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_active()962 linecard = &thermal->line_cards[slot_index]; in mlxsw_thermal_got_inactive()996 thermal = kzalloc(struct_size(thermal, line_cards, num_of_slots + 1), in mlxsw_thermal_init()1004 thermal->line_cards[0].slot_index = 0; in mlxsw_thermal_init()1071 &thermal->line_cards[0]); in mlxsw_thermal_init()1076 &thermal->line_cards[0]); in mlxsw_thermal_init()1090 thermal->line_cards[0].active = true; in mlxsw_thermal_init()1099 mlxsw_thermal_gearboxes_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init()1101 mlxsw_thermal_modules_fini(thermal, &thermal->line_cards[0]); in mlxsw_thermal_init()[all …]