Lines Matching refs:tbp
337 if (!tzp || !tzp->tbp) in bind_cdev()
341 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
343 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
345 tzp->tbp[i].cdev = cdev; in bind_cdev()
346 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
347 tzp->tbp[i].binding_limits, in bind_cdev()
348 tzp->tbp[i].weight); in bind_cdev()
376 if (!tzp || !tzp->tbp) in bind_tz()
381 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
383 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
385 tzp->tbp[i].cdev = pos; in bind_tz()
386 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
387 tzp->tbp[i].binding_limits, in bind_tz()
388 tzp->tbp[i].weight); in bind_tz()
1592 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1597 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1598 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1599 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1992 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1996 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1997 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1998 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()