Lines Matching refs:tzp

154 		name = pos->tzp->governor_name;  in thermal_register_governor()
1036 const struct thermal_zone_params *tzp; in bind_cdev() local
1042 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
1052 tzp = pos->tzp; in bind_cdev()
1053 if (!tzp || !tzp->tbp) in bind_cdev()
1056 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
1057 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
1059 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
1061 tzp->tbp[i].cdev = cdev; in bind_cdev()
1062 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
1063 tzp->tbp[i].binding_limits, in bind_cdev()
1064 tzp->tbp[i].weight); in bind_cdev()
1263 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1288 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1291 tzp = tz->tzp; in thermal_cooling_device_unregister()
1292 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1293 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1294 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1295 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1313 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
1315 if (!tzp && !tz->ops->bind) in bind_tz()
1330 if (!tzp || !tzp->tbp) in bind_tz()
1334 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
1335 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1337 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1339 tzp->tbp[i].cdev = pos; in bind_tz()
1340 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1341 tzp->tbp[i].binding_limits, in bind_tz()
1342 tzp->tbp[i].weight); in bind_tz()
1376 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register() argument
1427 tz->tzp = tzp; in thermal_zone_device_register()
1461 if (tz->tzp) in thermal_zone_device_register()
1462 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1474 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register()
1518 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1525 tzp = tz->tzp; in thermal_zone_device_unregister()
1546 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1549 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1550 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1551 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1552 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()