Lines Matching refs:tbp
835 if (!tzp || !tzp->tbp) 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()
1093 if (!tz->tzp || !tz->tzp->tbp) 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()
1132 if (!tzp || !tzp->tbp) 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()
1415 if (!tzp || !tzp->tbp) 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()