Lines Matching refs:tbp
853 if (!tzp || !tzp->tbp) in bind_cdev()
857 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
859 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
861 tzp->tbp[i].cdev = cdev; in bind_cdev()
862 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
863 tzp->tbp[i].binding_limits, in bind_cdev()
864 tzp->tbp[i].weight); in bind_cdev()
1099 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1104 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1105 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1106 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1142 if (!tzp || !tzp->tbp) in bind_tz()
1147 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1149 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1151 tzp->tbp[i].cdev = pos; in bind_tz()
1152 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1153 tzp->tbp[i].binding_limits, in bind_tz()
1154 tzp->tbp[i].weight); in bind_tz()
1363 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1367 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1368 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1369 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()