Lines Matching refs:tzp

152 		name = pos->tzp->governor_name;  in thermal_register_governor()
836 const struct thermal_zone_params *tzp; in bind_cdev() local
842 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
852 tzp = pos->tzp; in bind_cdev()
853 if (!tzp || !tzp->tbp) in bind_cdev()
856 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
857 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
859 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
861 tzp->tbp[i].cdev = cdev; in bind_cdev()
862 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
863 tzp->tbp[i].binding_limits, in bind_cdev()
864 tzp->tbp[i].weight); in bind_cdev()
1074 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1099 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1102 tzp = tz->tzp; in thermal_cooling_device_unregister()
1103 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1104 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1105 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1106 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1125 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
1127 if (!tzp && !tz->ops->bind) in bind_tz()
1142 if (!tzp || !tzp->tbp) in bind_tz()
1146 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
1147 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1149 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1151 tzp->tbp[i].cdev = pos; in bind_tz()
1152 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1153 tzp->tbp[i].binding_limits, in bind_tz()
1154 tzp->tbp[i].weight); in bind_tz()
1188 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register() argument
1247 tz->tzp = tzp; in thermal_zone_device_register()
1278 if (tz->tzp) in thermal_zone_device_register()
1279 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1291 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register()
1335 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1342 tzp = tz->tzp; in thermal_zone_device_unregister()
1363 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1366 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1367 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1368 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1369 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()