Lines Matching refs:gearbox_tz

536 mlxsw_thermal_gearbox_tz_init(struct mlxsw_thermal_module *gearbox_tz)  in mlxsw_thermal_gearbox_tz_init()  argument
541 if (gearbox_tz->slot_index) in mlxsw_thermal_gearbox_tz_init()
543 gearbox_tz->slot_index, gearbox_tz->module + 1); in mlxsw_thermal_gearbox_tz_init()
546 gearbox_tz->module + 1); in mlxsw_thermal_gearbox_tz_init()
547 gearbox_tz->tzdev = thermal_zone_device_register_with_trips(tz_name, in mlxsw_thermal_gearbox_tz_init()
548 gearbox_tz->trips, in mlxsw_thermal_gearbox_tz_init()
551 gearbox_tz, in mlxsw_thermal_gearbox_tz_init()
554 gearbox_tz->parent->polling_delay); in mlxsw_thermal_gearbox_tz_init()
555 if (IS_ERR(gearbox_tz->tzdev)) in mlxsw_thermal_gearbox_tz_init()
556 return PTR_ERR(gearbox_tz->tzdev); in mlxsw_thermal_gearbox_tz_init()
558 ret = thermal_zone_device_enable(gearbox_tz->tzdev); in mlxsw_thermal_gearbox_tz_init()
560 thermal_zone_device_unregister(gearbox_tz->tzdev); in mlxsw_thermal_gearbox_tz_init()
566 mlxsw_thermal_gearbox_tz_fini(struct mlxsw_thermal_module *gearbox_tz) in mlxsw_thermal_gearbox_tz_fini() argument
568 thermal_zone_device_unregister(gearbox_tz->tzdev); in mlxsw_thermal_gearbox_tz_fini()
577 struct mlxsw_thermal_module *gearbox_tz; in mlxsw_thermal_gearboxes_init() local
602 gearbox_tz = &area->tz_gearbox_arr[i]; in mlxsw_thermal_gearboxes_init()
603 memcpy(gearbox_tz->trips, default_thermal_trips, in mlxsw_thermal_gearboxes_init()
605 memcpy(gearbox_tz->cooling_states, default_cooling_states, in mlxsw_thermal_gearboxes_init()
607 gearbox_tz->module = i; in mlxsw_thermal_gearboxes_init()
608 gearbox_tz->parent = thermal; in mlxsw_thermal_gearboxes_init()
609 gearbox_tz->slot_index = area->slot_index; in mlxsw_thermal_gearboxes_init()
610 err = mlxsw_thermal_gearbox_tz_init(gearbox_tz); in mlxsw_thermal_gearboxes_init()