Lines Matching refs:tzp
152 name = pos->tzp->governor_name; in thermal_register_governor()
818 const struct thermal_zone_params *tzp; in bind_cdev() local
824 if (!pos->tzp && !pos->ops->bind) in bind_cdev()
834 tzp = pos->tzp; in bind_cdev()
835 if (!tzp || !tzp->tbp) in bind_cdev()
838 for (i = 0; i < tzp->num_tbps; i++) { in bind_cdev()
839 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
841 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
843 tzp->tbp[i].cdev = cdev; in bind_cdev()
844 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
845 tzp->tbp[i].binding_limits, in bind_cdev()
846 tzp->tbp[i].weight); in bind_cdev()
1068 const struct thermal_zone_params *tzp; in thermal_cooling_device_unregister() local
1093 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1096 tzp = tz->tzp; in thermal_cooling_device_unregister()
1097 for (i = 0; i < tzp->num_tbps; i++) { in thermal_cooling_device_unregister()
1098 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1099 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1100 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1115 const struct thermal_zone_params *tzp = tz->tzp; in bind_tz() local
1117 if (!tzp && !tz->ops->bind) in bind_tz()
1132 if (!tzp || !tzp->tbp) in bind_tz()
1136 for (i = 0; i < tzp->num_tbps; i++) { in bind_tz()
1137 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1139 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1141 tzp->tbp[i].cdev = pos; in bind_tz()
1142 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1143 tzp->tbp[i].binding_limits, in bind_tz()
1144 tzp->tbp[i].weight); in bind_tz()
1212 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register_with_trips() argument
1281 tz->tzp = tzp; in thermal_zone_device_register_with_trips()
1319 if (tz->tzp) in thermal_zone_device_register_with_trips()
1320 governor = __find_governor(tz->tzp->governor_name); in thermal_zone_device_register_with_trips()
1332 if (!tz->tzp || !tz->tzp->no_hwmon) { in thermal_zone_device_register_with_trips()
1371 struct thermal_zone_params *tzp, int passive_delay, in thermal_zone_device_register() argument
1375 devdata, ops, tzp, in thermal_zone_device_register()
1387 const struct thermal_zone_params *tzp; in thermal_zone_device_unregister() local
1394 tzp = tz->tzp; in thermal_zone_device_unregister()
1415 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1418 for (i = 0; i < tzp->num_tbps; i++) { in thermal_zone_device_unregister()
1419 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1420 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1421 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()