Lines Matching refs:tzp
111 name = pos->tzp->governor_name; in thermal_register_governor()
259 const struct thermal_zone_params *tzp; in bind_cdev() local
265 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
275 tzp = pos->tzp; in bind_cdev()
276 if (!tzp || !tzp->tbp) in bind_cdev()
279 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
280 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
282 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
284 tzp->tbp[i].cdev = cdev; in bind_cdev()
285 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
286 tzp->tbp[i].binding_limits); in bind_cdev()
297 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
299 if (!tzp && !tz->ops->bind) in bind_tz()
314 if (!tzp || !tzp->tbp) in bind_tz()
318 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
319 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
321 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
323 tzp->tbp[i].cdev = pos; in bind_tz()
324 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
325 tzp->tbp[i].binding_limits); in bind_tz()
1259 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1284 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1287 tzp = tz->tzp; in thermal_cooling_device_unregister()
1288 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1289 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1290 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1291 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1489 const struct thermal_zone_params *tzp, in thermal_zone_device_register() argument
1526 tz->tzp = tzp; in thermal_zone_device_register()
1595 if (tz->tzp) in thermal_zone_device_register()
1596 tz->governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register()
1602 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register()
1641 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1648 tzp = tz->tzp; in thermal_zone_device_unregister()
1668 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1671 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1672 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1673 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1674 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()