Lines Matching refs:map

168         struct rt_thermal_cooling_map *map = &zdev->cooling_maps[i++];  in thermal_ofw_setup()  local
170 map->cells_nr = rt_ofw_count_phandle_cells(cm_np, "cooling-device", "#cooling-cells"); in thermal_ofw_setup()
171 map->cells = rt_calloc(sizeof(*map->cells), map->cells_nr); in thermal_ofw_setup()
173 if (!map->cells) in thermal_ofw_setup()
180 map->trips = rt_ofw_data(trip_np); in thermal_ofw_setup()
183 if (!map->trips) in thermal_ofw_setup()
190 rt_ofw_prop_read_u32(cm_np, "contribution", &map->contribution); in thermal_ofw_setup()
192 for (int c = 0; c < map->cells_nr; ++c) in thermal_ofw_setup()
194 struct rt_thermal_cooling_cell *cell = &map->cells[c]; in thermal_ofw_setup()
314 struct rt_thermal_cooling_map *map = &zdev->cooling_maps[i]; in rt_thermal_zone_device_unregister() local
316 for (int c = 0; c < map->cells_nr; ++c) in rt_thermal_zone_device_unregister()
318 cdev = map->cells[i].cooling_devices; in rt_thermal_zone_device_unregister()
326 rt_free(map->cells); in rt_thermal_zone_device_unregister()
388 struct rt_thermal_cooling_map *map = &zdev->cooling_maps[map_idx]; in dumb_governor_tuning() local
390 if (zdev->cooling && zdev->temperature > map->trips->temperature) in dumb_governor_tuning()
392 if (zdev->temperature - zdev->last_temperature > map->trips->hysteresis) in dumb_governor_tuning()
396 else if (zdev->last_temperature - zdev->temperature > map->trips->hysteresis) in dumb_governor_tuning()
725 struct rt_thermal_cooling_map *map = &zdev->cooling_maps[i]; in rt_thermal_cooling_device_kick() local
727 for (int c = 0; c < map->cells_nr; ++c) in rt_thermal_cooling_device_kick()
729 cell = &map->cells[c]; in rt_thermal_cooling_device_kick()
881 struct rt_thermal_cooling_map *map = &zdev->cooling_maps[i]; in list_thermal() local
883 for (int c = 0; c < map->cells_nr; ++c, ++id) in list_thermal()
885 trips = map->trips; in list_thermal()
886 cell = &map->cells[c]; in list_thermal()