Lines Matching refs:tbp
1053 if (!tzp || !tzp->tbp) in bind_cdev()
1057 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
1059 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
1061 tzp->tbp[i].cdev = cdev; in bind_cdev()
1062 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
1063 tzp->tbp[i].binding_limits, in bind_cdev()
1064 tzp->tbp[i].weight); in bind_cdev()
1288 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1293 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1294 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1295 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1330 if (!tzp || !tzp->tbp) in bind_tz()
1335 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
1337 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
1339 tzp->tbp[i].cdev = pos; in bind_tz()
1340 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
1341 tzp->tbp[i].binding_limits, in bind_tz()
1342 tzp->tbp[i].weight); in bind_tz()
1546 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1550 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1551 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1552 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()