Home
last modified time | relevance | path

Searched refs:gDeviceListLock (Results 1 – 5 of 5) sorted by relevance

/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/
H A Ddevlist.c20 sem_id gDeviceListLock = -1; variable
35 acquire_sem(gDeviceListLock); in add_device_info()
40 release_sem(gDeviceListLock); in add_device_info()
49 acquire_sem(gDeviceListLock); in remove_device_info()
67 release_sem(gDeviceListLock); in remove_device_info()
76 acquire_sem(gDeviceListLock); in search_device_info()
82 release_sem(gDeviceListLock); in search_device_info()
120 acquire_sem(gDeviceListLock); in rebuild_device_names()
126 release_sem(gDeviceListLock); in rebuild_device_names()
H A Ddriver.h148 extern sem_id gDeviceListLock;
H A Ddriver.c781 if ((gDeviceListLock = create_sem(1, "dev_list_lock")) < 0) { in init_driver()
783 return gDeviceListLock; in init_driver()
800 delete_sem(gDeviceListLock); in uninit_driver()
/haiku/src/add-ons/kernel/drivers/common/
H A Dusb_modeswitch.cpp315 static mutex gDeviceListLock; variable
542 mutex_lock(&gDeviceListLock); in my_device_added()
545 mutex_unlock(&gDeviceListLock); in my_device_added()
559 mutex_lock(&gDeviceListLock); in my_device_removed()
580 mutex_unlock(&gDeviceListLock); in my_device_removed()
609 mutex_init(&gDeviceListLock, DRIVER_NAME " device list lock"); in init_driver()
616 mutex_destroy(&gDeviceListLock); in init_driver()
626 mutex_destroy(&gDeviceListLock); in init_driver()
646 mutex_lock(&gDeviceListLock); in uninit_driver()
647 mutex_destroy(&gDeviceListLock); in uninit_driver()
/haiku/src/add-ons/kernel/drivers/bus/usb/
H A Dusb_raw.cpp52 static mutex gDeviceListLock; variable
82 mutex_lock(&gDeviceListLock); in usb_raw_device_added()
86 mutex_unlock(&gDeviceListLock); in usb_raw_device_added()
111 mutex_lock(&gDeviceListLock); in usb_raw_device_removed()
126 mutex_unlock(&gDeviceListLock); in usb_raw_device_removed()
201 mutex_lock(&gDeviceListLock); in usb_raw_open()
207 mutex_unlock(&gDeviceListLock); in usb_raw_open()
214 mutex_unlock(&gDeviceListLock); in usb_raw_open()
231 mutex_lock(&gDeviceListLock); in usb_raw_free()
242 mutex_unlock(&gDeviceListLock); in usb_raw_free()
[all …]