Home
last modified time | relevance | path

Searched refs:device_lock (Results 1 – 25 of 108) sorted by relevance

12345

/linux-6.6.21/drivers/misc/mei/
Dinit.c200 mutex_lock(&dev->device_lock); in mei_start()
234 mutex_unlock(&dev->device_lock); in mei_start()
239 mutex_unlock(&dev->device_lock); in mei_start()
255 mutex_lock(&dev->device_lock); in mei_restart()
262 mutex_unlock(&dev->device_lock); in mei_restart()
287 mutex_lock(&dev->device_lock); in mei_reset_work()
291 mutex_unlock(&dev->device_lock); in mei_reset_work()
307 mutex_lock(&dev->device_lock); in mei_stop()
309 mutex_unlock(&dev->device_lock); in mei_stop()
311 mutex_lock(&dev->device_lock); in mei_stop()
[all …]
Dmain.c56 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 …]
Dbus.c67 mutex_lock(&bus->device_lock); in __mei_cl_send_timeout()
98 mutex_unlock(&bus->device_lock); in __mei_cl_send_timeout()
102 mutex_lock(&bus->device_lock); in __mei_cl_send_timeout()
137 mutex_unlock(&bus->device_lock); in __mei_cl_send_timeout()
168 mutex_lock(&bus->device_lock); in __mei_cl_recv()
192 mutex_unlock(&bus->device_lock); in __mei_cl_recv()
218 mutex_lock(&bus->device_lock); in __mei_cl_recv()
254 mutex_unlock(&bus->device_lock); in __mei_cl_recv()
391 mutex_lock(&bus->device_lock); in mei_cl_bus_rx_work()
394 mutex_unlock(&bus->device_lock); in mei_cl_bus_rx_work()
[all …]
Dhw-me.c468 mutex_unlock(&dev->device_lock); in mei_me_hw_ready_wait()
472 mutex_lock(&dev->device_lock); in mei_me_hw_ready_wait()
748 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_enter_sync()
752 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_enter_sync()
786 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
790 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
803 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
807 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
940 mutex_unlock(&dev->device_lock); in mei_me_d0i3_enter_sync()
944 mutex_lock(&dev->device_lock); in mei_me_d0i3_enter_sync()
[all …]
Dgsc-me.c231 mutex_lock(&dev->device_lock); in mei_gsc_pm_runtime_suspend()
244 mutex_unlock(&dev->device_lock); in mei_gsc_pm_runtime_suspend()
258 mutex_lock(&dev->device_lock); in mei_gsc_pm_runtime_resume()
268 mutex_unlock(&dev->device_lock); in mei_gsc_pm_runtime_resume()
Dpci-txe.c299 mutex_lock(&dev->device_lock); in mei_txe_pm_runtime_suspend()
310 mutex_unlock(&dev->device_lock); in mei_txe_pm_runtime_suspend()
329 mutex_lock(&dev->device_lock); in mei_txe_pm_runtime_resume()
335 mutex_unlock(&dev->device_lock); in mei_txe_pm_runtime_resume()
Dbus-fixup.c382 WARN_ON(mutex_is_locked(&bus->device_lock)); in mei_nfc_if_version()
458 mutex_lock(&bus->device_lock); in mei_nfc()
482 mutex_unlock(&bus->device_lock); in mei_nfc()
501 mutex_lock(&bus->device_lock); in mei_nfc()
509 mutex_unlock(&bus->device_lock); in mei_nfc()
Dhw-txe.c264 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()
Dclient.c946 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 …]
Dpci-me.c446 mutex_lock(&dev->device_lock); in mei_me_pm_runtime_suspend()
453 mutex_unlock(&dev->device_lock); in mei_me_pm_runtime_suspend()
474 mutex_lock(&dev->device_lock); in mei_me_pm_runtime_resume()
478 mutex_unlock(&dev->device_lock); in mei_me_pm_runtime_resume()
Ddebugfs.c67 mutex_lock(&dev->device_lock); in mei_dbgfs_active_show()
84 mutex_unlock(&dev->device_lock); in mei_dbgfs_active_show()
/linux-6.6.21/drivers/md/
Dmd-multipath.c57 spin_lock_irqsave(&conf->device_lock, flags); in multipath_reschedule_retry()
59 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_reschedule_retry()
173 spin_lock_irqsave(&conf->device_lock, flags); in multipath_error()
175 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_error()
229 spin_lock_irq(&conf->device_lock); in multipath_add_disk()
233 spin_unlock_irq(&conf->device_lock); in multipath_add_disk()
297 spin_lock_irqsave(&conf->device_lock, flags); in multipathd()
302 spin_unlock_irqrestore(&conf->device_lock, flags); in multipathd()
326 spin_unlock_irqrestore(&conf->device_lock, flags); in multipathd()
389 spin_lock_init(&conf->device_lock); in multipath_run()
Draid1.c286 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry()
289 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry()
389 spin_lock_irqsave(&conf->device_lock, flags); in raid1_end_read_request()
394 spin_unlock_irqrestore(&conf->device_lock, flags); in raid1_end_read_request()
819 spin_lock_irq(&conf->device_lock); in flush_pending_writes()
826 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
842 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
1178 spin_lock_irq(&conf->device_lock); in raid1_unplug()
1180 spin_unlock_irq(&conf->device_lock); in raid1_unplug()
1573 spin_lock_irqsave(&conf->device_lock, flags); in raid1_write_request()
[all …]
Draid5.c85 __acquires(&conf->device_lock) in lock_device_hash_lock()
88 spin_lock(&conf->device_lock); in lock_device_hash_lock()
92 __releases(&conf->device_lock) in unlock_device_hash_lock()
94 spin_unlock(&conf->device_lock); in unlock_device_hash_lock()
99 __acquires(&conf->device_lock) in lock_all_device_hash_locks_irq()
105 spin_lock(&conf->device_lock); in lock_all_device_hash_locks_irq()
109 __releases(&conf->device_lock) in unlock_all_device_hash_locks_irq()
112 spin_unlock(&conf->device_lock); in unlock_all_device_hash_locks_irq()
174 __must_hold(&sh->raid_conf->device_lock) in raid5_wakeup_stripe_thread()
222 __must_hold(&conf->device_lock) in do_release_stripe()
[all …]
Dmd-multipath.h13 spinlock_t device_lock; member
/linux-6.6.21/net/nfc/
Dcore.c39 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-6.6.21/Documentation/translations/zh_CN/core-api/
Dmemory-hotplug.rst107 - device_online()将首先接受device_lock(),然后是mem_hotplug_lock。
109 - add_memory_resource()将首先使用mem_hotplug_lock,然后是device_lock()(在创
112 由于在使用device_lock()之前,设备对用户空间是可见的,这可能导致锁的反转。
/linux-6.6.21/drivers/vfio/
Dgroup.c31 mutex_lock(&group->device_lock); in vfio_device_get_from_name()
50 mutex_unlock(&group->device_lock); in vfio_device_get_from_name()
530 mutex_destroy(&group->device_lock); in vfio_group_release()
565 mutex_init(&group->device_lock); in vfio_group_alloc()
650 mutex_lock(&group->device_lock); in vfio_group_has_device()
653 mutex_unlock(&group->device_lock); in vfio_group_has_device()
657 mutex_unlock(&group->device_lock); in vfio_group_has_device()
769 mutex_lock(&device->group->device_lock); in vfio_device_group_register()
771 mutex_unlock(&device->group->device_lock); in vfio_device_group_register()
776 mutex_lock(&device->group->device_lock); in vfio_device_group_unregister()
[all …]
/linux-6.6.21/drivers/misc/
Dgehc-achc.c25 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-6.6.21/drivers/pci/pcie/
Derr.c56 device_lock(&dev->dev); in report_error_detected()
104 device_lock(&dev->dev); in report_mmio_enabled()
125 device_lock(&dev->dev); in report_slot_reset()
145 device_lock(&dev->dev); in report_resume()
/linux-6.6.21/drivers/net/usb/
Dkaweth.c200 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-6.6.21/drivers/dax/
Dbus.c299 device_lock(dev); in available_size_show()
317 device_lock(dev); in seed_show()
336 device_lock(dev); in create_show()
361 device_lock(dev); in create_store()
485 device_lock(dev); in free_dev_dax_id()
521 device_lock(dev); in delete_store()
522 device_lock(victim); in delete_store()
683 device_lock(dax_region->dev); in get_dax_range()
910 device_lock(dev); in size_show()
1082 device_lock(dax_region->dev); in size_store()
[all …]
/linux-6.6.21/drivers/nvdimm/
Dbtt_devs.c53 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-6.6.21/drivers/base/
Ddd.c427 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()
/linux-6.6.21/drivers/hwmon/
Dadt7411.c102 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()

12345