Lines Matching refs:tbp
914 if (!tzp || !tzp->tbp) in bind_cdev()
918 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
920 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
922 tzp->tbp[i].cdev = cdev; in bind_cdev()
923 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
924 tzp->tbp[i].binding_limits, in bind_cdev()
925 tzp->tbp[i].weight); in bind_cdev()
1149 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1154 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1155 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1156 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1191 if (!tzp || !tzp->tbp) in bind_tz()
1196 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1198 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1200 tzp->tbp[i].cdev = pos; in bind_tz()
1201 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1202 tzp->tbp[i].binding_limits, in bind_tz()
1203 tzp->tbp[i].weight); in bind_tz()
1404 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1408 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1409 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1410 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()