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()
85 struct thermal_zone_device *pos; in thermal_register_governor() local
103 list_for_each_entry(pos, &thermal_tz_list, node) { in thermal_register_governor()
108 if (pos->governor) in thermal_register_governor()
111 name = pos->tzp->governor_name; in thermal_register_governor()
114 pos->governor = governor; in thermal_register_governor()
125 struct thermal_zone_device *pos; in thermal_unregister_governor() local
137 list_for_each_entry(pos, &thermal_tz_list, node) { in thermal_unregister_governor()
138 if (!strncasecmp(pos->governor->name, governor->name, in thermal_unregister_governor()
140 pos->governor = NULL; in thermal_unregister_governor()
195 struct thermal_instance *pos = NULL; in get_thermal_instance() local
201 list_for_each_entry(pos, &tz->thermal_instances, tz_node) { in get_thermal_instance()
202 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
203 target_instance = pos; in get_thermal_instance()
260 struct thermal_zone_device *pos = NULL; in bind_cdev() local
264 list_for_each_entry(pos, &thermal_tz_list, node) { in bind_cdev()
265 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
268 if (pos->ops->bind) { in bind_cdev()
269 ret = pos->ops->bind(pos, cdev); in bind_cdev()
271 print_bind_err_msg(pos, cdev, ret); in bind_cdev()
275 tzp = pos->tzp; in bind_cdev()
282 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
285 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
296 struct thermal_cooling_device *pos = NULL; in bind_tz() local
306 list_for_each_entry(pos, &thermal_cdev_list, node) { in bind_tz()
307 ret = tz->ops->bind(tz, pos); in bind_tz()
309 print_bind_err_msg(tz, pos, ret); in bind_tz()
317 list_for_each_entry(pos, &thermal_cdev_list, node) { in bind_tz()
321 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
323 tzp->tbp[i].cdev = pos; in bind_tz()
324 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
491 struct thermal_instance *pos; in thermal_zone_device_reset() local
495 list_for_each_entry(pos, &tz->thermal_instances, tz_node) in thermal_zone_device_reset()
496 pos->initialized = false; in thermal_zone_device_reset()
971 struct thermal_instance *pos; in thermal_zone_bind_cooling_device() local
1035 list_for_each_entry(pos, &tz->thermal_instances, tz_node) in thermal_zone_bind_cooling_device()
1036 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
1080 struct thermal_instance *pos, *next; in thermal_zone_unbind_cooling_device() local
1084 list_for_each_entry_safe(pos, next, &tz->thermal_instances, tz_node) { in thermal_zone_unbind_cooling_device()
1085 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1086 list_del(&pos->tz_node); in thermal_zone_unbind_cooling_device()
1087 list_del(&pos->cdev_node); in thermal_zone_unbind_cooling_device()
1099 device_remove_file(&tz->device, &pos->attr); in thermal_zone_unbind_cooling_device()
1100 sysfs_remove_link(&tz->device.kobj, pos->name); in thermal_zone_unbind_cooling_device()
1101 release_idr(&tz->idr, &tz->lock, pos->id); in thermal_zone_unbind_cooling_device()
1102 kfree(pos); in thermal_zone_unbind_cooling_device()
1150 struct thermal_zone_device *pos = NULL; in __thermal_cooling_device_register() local
1196 list_for_each_entry(pos, &thermal_tz_list, node) in __thermal_cooling_device_register()
1197 if (atomic_cmpxchg(&pos->need_update, 1, 0)) in __thermal_cooling_device_register()
1198 thermal_zone_device_update(pos); in __thermal_cooling_device_register()
1261 struct thermal_cooling_device *pos = NULL; in thermal_cooling_device_unregister() local
1267 list_for_each_entry(pos, &thermal_cdev_list, node) in thermal_cooling_device_unregister()
1268 if (pos == cdev) in thermal_cooling_device_unregister()
1270 if (pos != cdev) { in thermal_cooling_device_unregister()
1643 struct thermal_zone_device *pos = NULL; in thermal_zone_device_unregister() local
1651 list_for_each_entry(pos, &thermal_tz_list, node) in thermal_zone_device_unregister()
1652 if (pos == tz) in thermal_zone_device_unregister()
1654 if (pos != tz) { in thermal_zone_device_unregister()
1713 struct thermal_zone_device *pos = NULL, *ref = ERR_PTR(-EINVAL); in thermal_zone_get_zone_by_name() local
1720 list_for_each_entry(pos, &thermal_tz_list, node) in thermal_zone_get_zone_by_name()
1721 if (!strncasecmp(name, pos->type, THERMAL_NAME_LENGTH)) { in thermal_zone_get_zone_by_name()
1723 ref = pos; in thermal_zone_get_zone_by_name()