Home
last modified time | relevance | path

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

1234

/drivers/misc/mei/
Dinit.c188 mutex_lock(&dev->device_lock); in mei_start()
232 mutex_unlock(&dev->device_lock); in mei_start()
237 mutex_unlock(&dev->device_lock); in mei_start()
253 mutex_lock(&dev->device_lock); in mei_restart()
260 mutex_unlock(&dev->device_lock); in mei_restart()
285 mutex_lock(&dev->device_lock); in mei_reset_work()
289 mutex_unlock(&dev->device_lock); in mei_reset_work()
305 mutex_lock(&dev->device_lock); in mei_stop()
307 mutex_unlock(&dev->device_lock); in mei_stop()
309 mutex_lock(&dev->device_lock); in mei_stop()
[all …]
Dmain.c54 mutex_lock(&dev->device_lock); in mei_open()
72 mutex_unlock(&dev->device_lock); in mei_open()
77 mutex_unlock(&dev->device_lock); in mei_open()
121 mutex_lock(&dev->device_lock); in mei_release()
152 mutex_unlock(&dev->device_lock); in mei_release()
182 mutex_lock(&dev->device_lock); in mei_read()
216 mutex_unlock(&dev->device_lock); in mei_read()
224 mutex_lock(&dev->device_lock); in mei_read()
274 mutex_unlock(&dev->device_lock); in mei_read()
322 mutex_lock(&dev->device_lock); in mei_write()
[all …]
Dbus.c46 mutex_lock(&bus->device_lock); in __mei_cl_send()
77 mutex_unlock(&bus->device_lock); in __mei_cl_send()
81 mutex_lock(&bus->device_lock); in __mei_cl_send()
107 mutex_unlock(&bus->device_lock); in __mei_cl_send()
138 mutex_lock(&bus->device_lock); in __mei_cl_recv()
162 mutex_unlock(&bus->device_lock); in __mei_cl_recv()
188 mutex_lock(&bus->device_lock); in __mei_cl_recv()
217 mutex_unlock(&bus->device_lock); in __mei_cl_recv()
354 mutex_lock(&bus->device_lock); in mei_cl_bus_rx_work()
357 mutex_unlock(&bus->device_lock); in mei_cl_bus_rx_work()
[all …]
Dhw-me.c435 mutex_unlock(&dev->device_lock); in mei_me_hw_ready_wait()
439 mutex_lock(&dev->device_lock); in mei_me_hw_ready_wait()
709 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_enter_sync()
712 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_enter_sync()
747 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
750 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
763 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
766 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
901 mutex_unlock(&dev->device_lock); in mei_me_d0i3_enter_sync()
904 mutex_lock(&dev->device_lock); in mei_me_d0i3_enter_sync()
[all …]
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.c335 WARN_ON(mutex_is_locked(&bus->device_lock)); in mei_nfc_if_version()
411 mutex_lock(&bus->device_lock); in mei_nfc()
435 mutex_unlock(&bus->device_lock); in mei_nfc()
454 mutex_lock(&bus->device_lock); in mei_nfc()
462 mutex_unlock(&bus->device_lock); in mei_nfc()
Dclient.c941 mutex_unlock(&dev->device_lock); in __mei_cl_disconnect()
946 mutex_lock(&dev->device_lock); in __mei_cl_disconnect()
1158 mutex_unlock(&dev->device_lock); in mei_cl_connect()
1165 mutex_lock(&dev->device_lock); in mei_cl_connect()
1557 mutex_unlock(&dev->device_lock); in mei_cl_notify_request()
1563 mutex_lock(&dev->device_lock); in mei_cl_notify_request()
1645 mutex_unlock(&dev->device_lock); in mei_cl_notify_get()
1647 mutex_lock(&dev->device_lock); in mei_cl_notify_get()
2055 mutex_unlock(&dev->device_lock); in mei_cl_write()
2059 mutex_lock(&dev->device_lock); in mei_cl_write()
[all …]
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()
1063 mutex_lock(&dev->device_lock); in mei_txe_irq_thread_handler()
1153 mutex_unlock(&dev->device_lock); in mei_txe_irq_thread_handler()
Dpci-me.c436 mutex_lock(&dev->device_lock); in mei_me_pm_runtime_suspend()
443 mutex_unlock(&dev->device_lock); in mei_me_pm_runtime_suspend()
464 mutex_lock(&dev->device_lock); in mei_me_pm_runtime_resume()
468 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()
/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()
177 spin_lock_irqsave(&conf->device_lock, flags); in multipath_error()
179 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_error()
234 spin_lock_irq(&conf->device_lock); in multipath_add_disk()
238 spin_unlock_irq(&conf->device_lock); in multipath_add_disk()
303 spin_lock_irqsave(&conf->device_lock, flags); in multipathd()
308 spin_unlock_irqrestore(&conf->device_lock, flags); in multipathd()
332 spin_unlock_irqrestore(&conf->device_lock, flags); in multipathd()
395 spin_lock_init(&conf->device_lock); in multipath_run()
Draid1.c282 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry()
285 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry()
386 spin_lock_irqsave(&conf->device_lock, flags); in raid1_end_read_request()
391 spin_unlock_irqrestore(&conf->device_lock, flags); in raid1_end_read_request()
820 spin_lock_irq(&conf->device_lock); in flush_pending_writes()
828 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
844 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
1164 spin_lock_irq(&conf->device_lock); in raid1_unplug()
1167 spin_unlock_irq(&conf->device_lock); in raid1_unplug()
1555 spin_lock_irqsave(&conf->device_lock, flags); in raid1_write_request()
[all …]
Draid5.c85 spin_lock(&conf->device_lock); in lock_device_hash_lock()
90 spin_unlock(&conf->device_lock); in unlock_device_hash_lock()
100 spin_lock(&conf->device_lock); in lock_all_device_hash_locks_irq()
106 spin_unlock(&conf->device_lock); in unlock_all_device_hash_locks_irq()
405 if (atomic_dec_and_lock_irqsave(&sh->count, &conf->device_lock, flags)) { in raid5_release_stripe()
409 spin_unlock_irqrestore(&conf->device_lock, flags); in raid5_release_stripe()
751 spin_lock(&conf->device_lock); in raid5_get_active_stripe()
769 spin_unlock(&conf->device_lock); in raid5_get_active_stripe()
835 spin_lock(&conf->device_lock); in stripe_add_to_batch_list()
853 spin_unlock(&conf->device_lock); in stripe_add_to_batch_list()
[all …]
Draid10.c276 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry()
279 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry()
865 spin_lock_irq(&conf->device_lock); in flush_pending_writes()
873 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
909 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
1090 spin_lock_irq(&conf->device_lock); in raid10_unplug()
1093 spin_unlock_irq(&conf->device_lock); in raid10_unplug()
1311 spin_lock_irqsave(&conf->device_lock, flags); in raid10_write_one_disk()
1314 spin_unlock_irqrestore(&conf->device_lock, flags); in raid10_write_one_disk()
2032 spin_lock_irqsave(&conf->device_lock, flags); in raid10_error()
[all …]
/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()
/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 …]
/drivers/pci/pcie/
Derr.c55 device_lock(&dev->dev); in report_error_detected()
97 device_lock(&dev->dev); in report_mmio_enabled()
116 device_lock(&dev->dev); in report_slot_reset()
134 device_lock(&dev->dev); in report_resume()
/drivers/dax/
Dbus.c263 device_lock(dev); in available_size_show()
281 device_lock(dev); in seed_show()
300 device_lock(dev); in create_show()
325 device_lock(dev); in create_store()
442 device_lock(dev); in free_dev_dax_id()
478 device_lock(dev); in delete_store()
479 device_lock(victim); in delete_store()
642 device_lock(dax_region->dev); in get_dax_range()
869 device_lock(dev); in size_show()
1041 device_lock(dax_region->dev); in size_store()
[all …]
/drivers/dax/pmem/
Dcompat.c24 device_lock(&dev_dax->dev); in dax_pmem_compat_probe()
37 device_lock(dev); in dax_pmem_compat_release()
/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()
/drivers/base/
Ddd.c406 device_lock(dev); in coredump_store()
500 device_lock(dev); in state_synced_show()
922 device_lock(dev); in __device_attach_async_helper()
954 device_lock(dev); in __device_attach()
1043 device_lock(parent); in __device_driver_lock()
1044 device_lock(dev); in __device_driver_lock()
1151 device_lock(dev); in __driver_attach()
Ddriver.c68 device_lock(dev); in driver_set_override()
85 device_lock(dev); in driver_set_override()
/drivers/cxl/core/
Dbus.c102 device_lock(dev); in target_list_show()
227 device_lock(dev); in cxl_port_release()
259 device_lock(&port->dev); in unregister_port()
397 device_lock(&port->dev); in add_dport()
470 device_lock(&port->dev); in cxl_decoder_alloc()
/drivers/cxl/
Dpmem.c51 device_lock(&cxl_nvb->dev); in cxl_nvdimm_probe()
120 device_lock(&cxl_nvb->dev); in cxl_nvb_update_state()
/drivers/xen/xen-pciback/
Dpassthrough.c93 device_lock(&found_dev->dev); in __xen_pcibk_release_pci_dev()
167 device_lock(&dev->dev); in __xen_pcibk_release_devices()

1234