Lines Matching refs:tzp
152 name = pos->tzp->governor_name; in thermal_register_governor()
807 const struct thermal_zone_params *tzp; in bind_cdev() local
813 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
823 tzp = pos->tzp; in bind_cdev()
824 if (!tzp || !tzp->tbp) in bind_cdev()
827 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
828 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
830 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
832 tzp->tbp[i].cdev = cdev; in bind_cdev()
833 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
834 tzp->tbp[i].binding_limits, in bind_cdev()
835 tzp->tbp[i].weight); in bind_cdev()
1059 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1084 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1087 tzp = tz->tzp; in thermal_cooling_device_unregister()
1088 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1089 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1090 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1091 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1110 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
1112 if (!tzp && !tz->ops->bind) in bind_tz()
1127 if (!tzp || !tzp->tbp) in bind_tz()
1131 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
1132 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1134 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1136 tzp->tbp[i].cdev = pos; in bind_tz()
1137 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1138 tzp->tbp[i].binding_limits, in bind_tz()
1139 tzp->tbp[i].weight); in bind_tz()
1181 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register_with_trips() argument
1249 tz->tzp = tzp; in thermal_zone_device_register_with_trips()
1286 if (tz->tzp) in thermal_zone_device_register_with_trips()
1287 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips()
1299 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips()
1338 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register() argument
1342 devdata, ops, tzp, in thermal_zone_device_register()
1354 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1361 tzp = tz->tzp; in thermal_zone_device_unregister()
1382 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1385 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1386 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1387 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1388 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()