/linux/drivers/misc/mei/ |
H A D | main.c | 56 mutex_lock(&dev->device_lock); in mei_open() 74 mutex_unlock(&dev->device_lock); in mei_open() 79 mutex_unlock(&dev->device_lock); in mei_open() 123 mutex_lock(&dev->device_lock); in mei_release() 154 mutex_unlock(&dev->device_lock); in mei_release() 184 mutex_lock(&dev->device_lock); in mei_read() 218 mutex_unlock(&dev->device_lock); in mei_read() 226 mutex_lock(&dev->device_lock); in mei_read() 276 mutex_unlock(&dev->device_lock); in mei_read() 324 mutex_lock(&dev->device_lock); in mei_write() [all …]
|
H A D | init.c | 222 mutex_lock(&dev->device_lock); in mei_start() 256 mutex_unlock(&dev->device_lock); in mei_start() 261 mutex_unlock(&dev->device_lock); in mei_start() 277 mutex_lock(&dev->device_lock); in mei_restart() 284 mutex_unlock(&dev->device_lock); in mei_restart() 309 mutex_lock(&dev->device_lock); in mei_reset_work() 313 mutex_unlock(&dev->device_lock); in mei_reset_work() 329 mutex_lock(&dev->device_lock); in mei_stop() 331 mutex_unlock(&dev->device_lock); in mei_stop() 333 mutex_lock(&dev->device_lock); in mei_stop() [all …]
|
H A D | hw-me.c | 479 mutex_unlock(&dev->device_lock); in mei_me_hw_ready_wait() 483 mutex_lock(&dev->device_lock); in mei_me_hw_ready_wait() 798 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_enter_sync() 802 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_enter_sync() 836 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync() 840 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync() 853 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync() 857 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync() 990 mutex_unlock(&dev->device_lock); in mei_me_d0i3_enter_sync() 994 mutex_lock(&dev->device_lock); in mei_me_d0i3_enter_sync() [all …]
|
H A D | gsc-me.c | 217 mutex_lock(&dev->device_lock); in mei_gsc_pm_runtime_suspend() 230 mutex_unlock(&dev->device_lock); in mei_gsc_pm_runtime_suspend() 241 mutex_lock(&dev->device_lock); in mei_gsc_pm_runtime_resume() 251 mutex_unlock(&dev->device_lock); in mei_gsc_pm_runtime_resume()
|
H A D | pci-txe.c | 275 mutex_lock(&dev->device_lock); in mei_txe_pm_runtime_suspend() 286 mutex_unlock(&dev->device_lock); in mei_txe_pm_runtime_suspend() 301 mutex_lock(&dev->device_lock); in mei_txe_pm_runtime_resume() 307 mutex_unlock(&dev->device_lock); in mei_txe_pm_runtime_resume()
|
H A D | bus-fixup.c | 384 WARN_ON(mutex_is_locked(&bus->device_lock)); in mei_nfc_if_version() 460 mutex_lock(&bus->device_lock); in mei_nfc() 484 mutex_unlock(&bus->device_lock); in mei_nfc() 503 mutex_lock(&bus->device_lock); in mei_nfc() 511 mutex_unlock(&bus->device_lock); in mei_nfc()
|
H A D | client.c | 946 mutex_unlock(&dev->device_lock); in __mei_cl_disconnect() 951 mutex_lock(&dev->device_lock); in __mei_cl_disconnect() 1163 mutex_unlock(&dev->device_lock); in mei_cl_connect() 1170 mutex_lock(&dev->device_lock); in mei_cl_connect() 1564 mutex_unlock(&dev->device_lock); in mei_cl_notify_request() 1570 mutex_lock(&dev->device_lock); in mei_cl_notify_request() 1652 mutex_unlock(&dev->device_lock); in mei_cl_notify_get() 1654 mutex_lock(&dev->device_lock); in mei_cl_notify_get() 2088 mutex_unlock(&dev->device_lock); in mei_cl_write() 2093 mutex_lock(&dev->device_lock); in mei_cl_write() [all …]
|
H A D | hw-txe.c | 264 mutex_unlock(&dev->device_lock); in mei_txe_aliveness_wait() 267 mutex_lock(&dev->device_lock); in mei_txe_aliveness_wait() 610 mutex_unlock(&dev->device_lock); in mei_txe_readiness_wait() 613 mutex_lock(&dev->device_lock); in mei_txe_readiness_wait() 1059 mutex_lock(&dev->device_lock); in mei_txe_irq_thread_handler() 1149 mutex_unlock(&dev->device_lock); in mei_txe_irq_thread_handler()
|
H A D | debugfs.c | 67 mutex_lock(&dev->device_lock); in mei_dbgfs_active_show() 84 mutex_unlock(&dev->device_lock); in mei_dbgfs_active_show()
|
H A D | platform-vsc.c | 304 guard(mutex)(&mei_dev->device_lock); in mei_vsc_event_cb() 407 mutex_lock(&mei_dev->device_lock); in mei_vsc_suspend() 412 mutex_unlock(&mei_dev->device_lock); in mei_vsc_suspend()
|
/linux/net/nfc/ |
H A D | core.c | 39 device_lock(&dev->dev); in nfc_fw_download() 95 device_lock(&dev->dev); in nfc_dev_up() 143 device_lock(&dev->dev); in nfc_dev_down() 208 device_lock(&dev->dev); in nfc_start_poll() 247 device_lock(&dev->dev); in nfc_stop_poll() 292 device_lock(&dev->dev); in nfc_dep_link_up() 336 device_lock(&dev->dev); in nfc_dep_link_down() 402 device_lock(&dev->dev); in nfc_activate_target() 449 device_lock(&dev->dev); in nfc_deactivate_target() 496 device_lock(&dev->dev); in nfc_data_exchange() [all …]
|
/linux/drivers/vfio/ |
H A D | group.c | 31 mutex_lock(&group->device_lock); in vfio_device_get_from_name() 50 mutex_unlock(&group->device_lock); in vfio_device_get_from_name() 535 mutex_destroy(&group->device_lock); in vfio_group_release() 570 mutex_init(&group->device_lock); in vfio_group_alloc() 655 mutex_lock(&group->device_lock); in vfio_group_has_device() 658 mutex_unlock(&group->device_lock); in vfio_group_has_device() 662 mutex_unlock(&group->device_lock); in vfio_group_has_device() 774 mutex_lock(&device->group->device_lock); in vfio_device_group_register() 776 mutex_unlock(&device->group->device_lock); in vfio_device_group_register() 781 mutex_lock(&device->group->device_lock); in vfio_device_group_unregister() [all …]
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | memory-hotplug.rst | 107 - device_online()将首先接受device_lock(),然后是mem_hotplug_lock。 109 - add_memory_resource()将首先使用mem_hotplug_lock,然后是device_lock()(在创 112 由于在使用device_lock()之前,设备对用户空间是可见的,这可能导致锁的反转。
|
/linux/drivers/misc/ |
H A D | gehc-achc.c | 25 struct mutex device_lock; /* avoid concurrent device access */ member 445 mutex_lock(&achc->device_lock); in update_firmware_store() 447 mutex_unlock(&achc->device_lock); in update_firmware_store() 461 mutex_lock(&achc->device_lock); in reset_show() 463 mutex_unlock(&achc->device_lock); in reset_show() 482 mutex_lock(&achc->device_lock); in reset_store() 484 mutex_unlock(&achc->device_lock); in reset_store() 519 mutex_init(&achc->device_lock); in gehc_achc_probe()
|
/linux/drivers/net/usb/ |
H A D | kaweth.c | 200 spinlock_t device_lock; member 532 spin_lock_irqsave(&kaweth->device_lock, flags); in kaweth_usb_receive() 534 spin_unlock_irqrestore(&kaweth->device_lock, flags); in kaweth_usb_receive() 537 spin_unlock_irqrestore(&kaweth->device_lock, flags); in kaweth_usb_receive() 705 spin_lock_irq(&kaweth->device_lock); in kaweth_start_xmit() 717 spin_unlock_irq(&kaweth->device_lock); in kaweth_start_xmit() 750 spin_unlock_irq(&kaweth->device_lock); in kaweth_start_xmit() 833 spin_lock_irqsave(&kaweth->device_lock, flags); in kaweth_suspend() 835 spin_unlock_irqrestore(&kaweth->device_lock, flags); in kaweth_suspend() 849 spin_lock_irqsave(&kaweth->device_lock, flags); in kaweth_resume() [all …]
|
/linux/drivers/base/ |
H A D | dd.c | 427 device_lock(dev); in coredump_store() 522 device_lock(dev); in state_synced_store() 539 device_lock(dev); in state_synced_show() 973 device_lock(dev); in __device_attach_async_helper() 1005 device_lock(dev); in __device_attach() 1094 device_lock(parent); in __device_driver_lock() 1095 device_lock(dev); in __device_driver_lock() 1203 device_lock(dev); in __driver_attach()
|
H A D | driver.c | 74 device_lock(dev); in driver_set_override() 91 device_lock(dev); in driver_set_override()
|
/linux/drivers/nvdimm/ |
H A D | btt_devs.c | 53 device_lock(dev); in sector_size_store() 82 device_lock(dev); in uuid_store() 111 device_lock(dev); in namespace_store() 129 device_lock(dev); in size_show()
|
/linux/drivers/hwmon/ |
H A D | adt7411.c | 102 struct mutex device_lock; /* for "atomic" device accesses */ member 122 mutex_lock(&data->device_lock); in adt7411_read_10_bit() 135 mutex_unlock(&data->device_lock); in adt7411_read_10_bit() 146 mutex_lock(&data->device_lock); in adt7411_modify_bit() 160 mutex_unlock(&data->device_lock); in adt7411_modify_bit() 682 mutex_init(&data->device_lock); in adt7411_probe()
|
/linux/drivers/md/ |
H A D | raid1.c | 284 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry() 287 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry() 387 spin_lock_irqsave(&conf->device_lock, flags); in raid1_end_read_request() 392 spin_unlock_irqrestore(&conf->device_lock, flags); in raid1_end_read_request() 922 spin_lock_irq(&conf->device_lock); in flush_pending_writes() 929 spin_unlock_irq(&conf->device_lock); in flush_pending_writes() 945 spin_unlock_irq(&conf->device_lock); in flush_pending_writes() 1279 spin_lock_irq(&conf->device_lock); in raid1_unplug() 1281 spin_unlock_irq(&conf->device_lock); in raid1_unplug() 1687 spin_lock_irqsave(&conf->device_lock, flags); in raid1_write_request() [all …]
|
H A D | raid5.c | 86 __acquires(&conf->device_lock) in lock_device_hash_lock() 89 spin_lock(&conf->device_lock); in lock_device_hash_lock() 93 __releases(&conf->device_lock) in unlock_device_hash_lock() 95 spin_unlock(&conf->device_lock); in unlock_device_hash_lock() 100 __acquires(&conf->device_lock) in lock_all_device_hash_locks_irq() 106 spin_lock(&conf->device_lock); in lock_all_device_hash_locks_irq() 110 __releases(&conf->device_lock) in unlock_all_device_hash_locks_irq() 113 spin_unlock(&conf->device_lock); in unlock_all_device_hash_locks_irq() 175 __must_hold(&sh->raid_conf->device_lock) in raid5_wakeup_stripe_thread() 223 __must_hold(&conf->device_lock) in do_release_stripe() [all …]
|
H A D | raid10.c | 303 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry() 306 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry() 867 spin_lock_irq(&conf->device_lock); in flush_pending_writes() 874 spin_unlock_irq(&conf->device_lock); in flush_pending_writes() 900 spin_unlock_irq(&conf->device_lock); in flush_pending_writes() 1093 spin_lock_irq(&conf->device_lock); in raid10_unplug() 1095 spin_unlock_irq(&conf->device_lock); in raid10_unplug() 1290 spin_lock_irqsave(&conf->device_lock, flags); in raid10_write_one_disk() 1292 spin_unlock_irqrestore(&conf->device_lock, flags); in raid10_write_one_disk() 2021 spin_lock_irqsave(&conf->device_lock, flags); in raid10_error() [all …]
|
/linux/Documentation/core-api/ |
H A D | memory-hotplug.rst | 102 - device_online() will first take the device_lock(), followed by 105 the device_lock() (while creating the devices, during bus_add_device()). 107 As the device is visible to user space before taking the device_lock(), this
|
/linux/drivers/xen/xen-pciback/ |
H A D | passthrough.c | 93 device_lock(&found_dev->dev); in __xen_pcibk_release_pci_dev() 167 device_lock(&dev->dev); in __xen_pcibk_release_devices()
|
H A D | vpci.c | 177 device_lock(&found_dev->dev); in __xen_pcibk_release_pci_dev() 221 device_lock(&dev->dev); in __xen_pcibk_release_devices()
|