Lines Matching refs:pos
69 struct thermal_governor *pos; in __find_governor() local
74 list_for_each_entry(pos, &thermal_governor_list, governor_list) in __find_governor()
75 if (!strncasecmp(name, pos->name, THERMAL_NAME_LENGTH)) in __find_governor()
76 return pos; in __find_governor()
137 struct thermal_zone_device *pos; in thermal_register_governor() local
155 list_for_each_entry(pos, &thermal_tz_list, node) { in thermal_register_governor()
160 if (pos->governor) in thermal_register_governor()
163 name = pos->tzp->governor_name; in thermal_register_governor()
168 ret = thermal_set_governor(pos, governor); in thermal_register_governor()
170 dev_err(&pos->device, in thermal_register_governor()
172 governor->name, pos->type, ret); in thermal_register_governor()
184 struct thermal_zone_device *pos; in thermal_unregister_governor() local
196 list_for_each_entry(pos, &thermal_tz_list, node) { in thermal_unregister_governor()
197 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
199 thermal_set_governor(pos, NULL); in thermal_unregister_governor()
254 struct thermal_instance *pos = NULL; in get_thermal_instance() local
260 list_for_each_entry(pos, &tz->thermal_instances, tz_node) { in get_thermal_instance()
261 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
262 target_instance = pos; in get_thermal_instance()
321 struct thermal_zone_device *pos = NULL; in bind_cdev() local
325 list_for_each_entry(pos, &thermal_tz_list, node) { in bind_cdev()
326 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
329 if (pos->ops->bind) { in bind_cdev()
330 ret = pos->ops->bind(pos, cdev); in bind_cdev()
332 print_bind_err_msg(pos, cdev, ret); in bind_cdev()
336 tzp = pos->tzp; in bind_cdev()
343 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
346 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
358 struct thermal_cooling_device *pos = NULL; in bind_tz() local
368 list_for_each_entry(pos, &thermal_cdev_list, node) { in bind_tz()
369 ret = tz->ops->bind(tz, pos); in bind_tz()
371 print_bind_err_msg(tz, pos, ret); in bind_tz()
379 list_for_each_entry(pos, &thermal_cdev_list, node) { in bind_tz()
383 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
385 tzp->tbp[i].cdev = pos; in bind_tz()
386 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
552 struct thermal_instance *pos; in thermal_zone_device_reset() local
556 list_for_each_entry(pos, &tz->thermal_instances, tz_node) in thermal_zone_device_reset()
557 pos->initialized = false; in thermal_zone_device_reset()
875 struct thermal_governor *pos; in available_policies_show() local
881 list_for_each_entry(pos, &thermal_governor_list, governor_list) { in available_policies_show()
883 count += scnprintf(buf + count, size, "%s ", pos->name); in available_policies_show()
1265 struct thermal_instance *pos; in thermal_zone_bind_cooling_device() local
1340 list_for_each_entry(pos, &tz->thermal_instances, tz_node) in thermal_zone_bind_cooling_device()
1341 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
1387 struct thermal_instance *pos, *next; in thermal_zone_unbind_cooling_device() local
1391 list_for_each_entry_safe(pos, next, &tz->thermal_instances, tz_node) { in thermal_zone_unbind_cooling_device()
1392 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1393 list_del(&pos->tz_node); in thermal_zone_unbind_cooling_device()
1394 list_del(&pos->cdev_node); in thermal_zone_unbind_cooling_device()
1406 device_remove_file(&tz->device, &pos->weight_attr); in thermal_zone_unbind_cooling_device()
1407 device_remove_file(&tz->device, &pos->attr); in thermal_zone_unbind_cooling_device()
1408 sysfs_remove_link(&tz->device.kobj, pos->name); in thermal_zone_unbind_cooling_device()
1409 release_idr(&tz->idr, &tz->lock, pos->id); in thermal_zone_unbind_cooling_device()
1410 kfree(pos); in thermal_zone_unbind_cooling_device()
1458 struct thermal_zone_device *pos = NULL; in __thermal_cooling_device_register() local
1504 list_for_each_entry(pos, &thermal_tz_list, node) in __thermal_cooling_device_register()
1505 if (atomic_cmpxchg(&pos->need_update, 1, 0)) in __thermal_cooling_device_register()
1506 thermal_zone_device_update(pos); in __thermal_cooling_device_register()
1569 struct thermal_cooling_device *pos = NULL; in thermal_cooling_device_unregister() local
1575 list_for_each_entry(pos, &thermal_cdev_list, node) in thermal_cooling_device_unregister()
1576 if (pos == cdev) in thermal_cooling_device_unregister()
1578 if (pos != cdev) { in thermal_cooling_device_unregister()
1967 struct thermal_zone_device *pos = NULL; in thermal_zone_device_unregister() local
1975 list_for_each_entry(pos, &thermal_tz_list, node) in thermal_zone_device_unregister()
1976 if (pos == tz) in thermal_zone_device_unregister()
1978 if (pos != tz) { in thermal_zone_device_unregister()
2038 struct thermal_zone_device *pos = NULL, *ref = ERR_PTR(-EINVAL); in thermal_zone_get_zone_by_name() local
2045 list_for_each_entry(pos, &thermal_tz_list, node) in thermal_zone_get_zone_by_name()
2046 if (!strncasecmp(name, pos->type, THERMAL_NAME_LENGTH)) { in thermal_zone_get_zone_by_name()
2048 ref = pos; in thermal_zone_get_zone_by_name()