Lines Matching refs:tbp
904 if (!tzp || !tzp->tbp) 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()
1090 if (!tz->tzp || !tz->tzp->tbp) 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()
1131 if (!tzp || !tzp->tbp) 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()
1334 if (!tzp || !tzp->tbp) 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()