Lines Matching refs:tbp
276 if (!tzp || !tzp->tbp) in bind_cdev()
280 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_cdev()
282 if (tzp->tbp[i].match(pos, cdev)) in bind_cdev()
284 tzp->tbp[i].cdev = cdev; in bind_cdev()
285 __bind(pos, tzp->tbp[i].trip_mask, cdev, in bind_cdev()
286 tzp->tbp[i].binding_limits); in bind_cdev()
314 if (!tzp || !tzp->tbp) in bind_tz()
319 if (tzp->tbp[i].cdev || !tzp->tbp[i].match) in bind_tz()
321 if (tzp->tbp[i].match(tz, pos)) in bind_tz()
323 tzp->tbp[i].cdev = pos; in bind_tz()
324 __bind(tz, tzp->tbp[i].trip_mask, pos, in bind_tz()
325 tzp->tbp[i].binding_limits); in bind_tz()
1284 if (!tz->tzp || !tz->tzp->tbp) in thermal_cooling_device_unregister()
1289 if (tzp->tbp[i].cdev == cdev) { in thermal_cooling_device_unregister()
1290 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_cooling_device_unregister()
1291 tzp->tbp[i].cdev = NULL; in thermal_cooling_device_unregister()
1668 if (!tzp || !tzp->tbp) in thermal_zone_device_unregister()
1672 if (tzp->tbp[i].cdev == cdev) { in thermal_zone_device_unregister()
1673 __unbind(tz, tzp->tbp[i].trip_mask, cdev); in thermal_zone_device_unregister()
1674 tzp->tbp[i].cdev = NULL; in thermal_zone_device_unregister()