Lines Matching refs:tzp
160 name = pos->tzp->governor_name; in thermal_register_governor()
887 const struct thermal_zone_params *tzp; in bind_cdev() local
893 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
903 tzp = pos->tzp; in bind_cdev()
904 if (!tzp || !tzp->tbp) in bind_cdev()
907 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
908 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
910 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
912 tzp->tbp[i].cdev = cdev; in bind_cdev()
913 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
914 tzp->tbp[i].binding_limits, in bind_cdev()
915 tzp->tbp[i].weight); in bind_cdev()
1065 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1090 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1093 tzp = tz->tzp; in thermal_cooling_device_unregister()
1094 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1095 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1096 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1097 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1114 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
1116 if (!tzp && !tz->ops->bind) in bind_tz()
1131 if (!tzp || !tzp->tbp) in bind_tz()
1135 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
1136 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1138 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1140 tzp->tbp[i].cdev = pos; in bind_tz()
1141 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1142 tzp->tbp[i].binding_limits, in bind_tz()
1143 tzp->tbp[i].weight); in bind_tz()
1177 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register() argument
1216 tz->tzp = tzp; in thermal_zone_device_register()
1250 if (tz->tzp) in thermal_zone_device_register()
1251 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1263 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register()
1307 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1314 tzp = tz->tzp; in thermal_zone_device_unregister()
1334 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1337 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1338 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1339 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1340 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()