Lines Matching refs:bestDriver
172 driver_module_info*& bestDriver,
1742 device_node::_FindBestDriver(const char* path, driver_module_info*& bestDriver, in _FindBestDriver() argument
1745 if (bestDriver == NULL) in _FindBestDriver()
1758 if (bestDriver != NULL) in _FindBestDriver()
1759 put_module(bestDriver->info.name); in _FindBestDriver()
1761 bestDriver = driver; in _FindBestDriver()
1771 return bestDriver != NULL ? B_OK : B_ENTRY_NOT_FOUND; in _FindBestDriver()
1836 driver_module_info* bestDriver = NULL; in _RegisterDynamic() local
1841 _FindBestDriver(path.Path(), bestDriver, bestSupport, previous); in _RegisterDynamic()
1844 if (bestDriver != NULL) { in _RegisterDynamic()
1846 bestDriver->info.name, bestSupport)); in _RegisterDynamic()
1847 if (bestDriver->register_device(this) == B_OK) { in _RegisterDynamic()
1851 device_node* child = FindChild(bestDriver->info.name); in _RegisterDynamic()
1863 put_module(bestDriver->info.name); in _RegisterDynamic()