Lines Matching refs:tzp

163 		name = pos->tzp->governor_name;  in thermal_register_governor()
320 const struct thermal_zone_params *tzp; in bind_cdev() local
326 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
336 tzp = pos->tzp; in bind_cdev()
337 if (!tzp || !tzp->tbp) in bind_cdev()
340 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
341 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
343 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
345 tzp->tbp[i].cdev = cdev; in bind_cdev()
346 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
347 tzp->tbp[i].binding_limits, in bind_cdev()
348 tzp->tbp[i].weight); in bind_cdev()
359 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
361 if (!tzp && !tz->ops->bind) in bind_tz()
376 if (!tzp || !tzp->tbp) in bind_tz()
380 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
381 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) 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()
387 tzp->tbp[i].binding_limits, in bind_tz()
388 tzp->tbp[i].weight); in bind_tz()
924 if (tz->tzp) in sustainable_power_show()
925 return sprintf(buf, "%u\n", tz->tzp->sustainable_power); in sustainable_power_show()
937 if (!tz->tzp) in sustainable_power_store()
943 tz->tzp->sustainable_power = sustainable_power; in sustainable_power_store()
957 if (tz->tzp) \
958 return sprintf(buf, "%u\n", tz->tzp->name); \
970 if (!tz->tzp) \
976 tz->tzp->name = value; \
1567 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1592 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1595 tzp = tz->tzp; in thermal_cooling_device_unregister()
1596 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1597 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1598 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1599 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1798 struct thermal_zone_params *tzp, in thermal_zone_device_register() argument
1836 tz->tzp = tzp; in thermal_zone_device_register()
1916 if (tz->tzp) in thermal_zone_device_register()
1917 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1929 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register()
1965 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1972 tzp = tz->tzp; in thermal_zone_device_unregister()
1992 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1995 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1996 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1997 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1998 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()