Searched refs:gDeviceListLock (Results 1 – 5 of 5) sorted by relevance
20 sem_id gDeviceListLock = -1; variable35 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()
148 extern sem_id gDeviceListLock;
781 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()
315 static mutex gDeviceListLock; variable542 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()
52 static mutex gDeviceListLock; variable82 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 …]