Home
last modified time | relevance | path

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

123

/drivers/misc/mei/
Dwd.c173 mutex_unlock(&dev->device_lock); in mei_wd_stop()
178 mutex_lock(&dev->device_lock); in mei_wd_stop()
211 mutex_lock(&dev->device_lock); in mei_wd_ops_start()
228 mutex_unlock(&dev->device_lock); in mei_wd_ops_start()
247 mutex_lock(&dev->device_lock); in mei_wd_ops_stop()
249 mutex_unlock(&dev->device_lock); in mei_wd_ops_stop()
273 mutex_lock(&dev->device_lock); in mei_wd_ops_ping()
300 mutex_unlock(&dev->device_lock); in mei_wd_ops_ping()
325 mutex_lock(&dev->device_lock); in mei_wd_ops_set_timeout()
331 mutex_unlock(&dev->device_lock); in mei_wd_ops_set_timeout()
[all …]
Dmain.c59 mutex_lock(&dev->device_lock); in mei_open()
76 mutex_unlock(&dev->device_lock); in mei_open()
81 mutex_unlock(&dev->device_lock); in mei_open()
104 mutex_lock(&dev->device_lock); in mei_release()
120 mutex_unlock(&dev->device_lock); in mei_release()
151 mutex_lock(&dev->device_lock); in mei_read()
197 mutex_unlock(&dev->device_lock); in mei_read()
208 mutex_lock(&dev->device_lock); in mei_read()
261 mutex_unlock(&dev->device_lock); in mei_read()
288 mutex_lock(&dev->device_lock); in mei_write()
[all …]
Dinit.c212 mutex_lock(&dev->device_lock); in mei_start()
260 mutex_unlock(&dev->device_lock); in mei_start()
265 mutex_unlock(&dev->device_lock); in mei_start()
281 mutex_lock(&dev->device_lock); in mei_restart()
290 mutex_unlock(&dev->device_lock); in mei_restart()
312 mutex_lock(&dev->device_lock); in mei_reset_work()
316 mutex_unlock(&dev->device_lock); in mei_reset_work()
336 mutex_lock(&dev->device_lock); in mei_stop()
345 mutex_unlock(&dev->device_lock); in mei_stop()
391 mutex_init(&dev->device_lock); in mei_device_init()
Dbus.c55 mutex_lock(&bus->device_lock); in __mei_cl_send()
88 mutex_unlock(&bus->device_lock); in __mei_cl_send()
116 mutex_lock(&bus->device_lock); in __mei_cl_recv()
133 mutex_unlock(&bus->device_lock); in __mei_cl_recv()
144 mutex_lock(&bus->device_lock); in __mei_cl_recv()
171 mutex_unlock(&bus->device_lock); in __mei_cl_recv()
238 mutex_lock(&bus->device_lock); in mei_cl_bus_event_work()
240 mutex_unlock(&bus->device_lock); in mei_cl_bus_event_work()
318 mutex_lock(&bus->device_lock); in mei_cldev_register_event_cb()
320 mutex_unlock(&bus->device_lock); in mei_cldev_register_event_cb()
[all …]
Dhw-me.c347 mutex_unlock(&dev->device_lock); in mei_me_hw_ready_wait()
351 mutex_lock(&dev->device_lock); in mei_me_hw_ready_wait()
613 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_enter_sync()
616 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_enter_sync()
651 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
654 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
667 mutex_unlock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
670 mutex_lock(&dev->device_lock); in mei_me_pg_legacy_exit_sync()
805 mutex_unlock(&dev->device_lock); in mei_me_d0i3_enter_sync()
808 mutex_lock(&dev->device_lock); in mei_me_d0i3_enter_sync()
[all …]
Dbus-fixup.c136 WARN_ON(mutex_is_locked(&bus->device_lock)); in mei_nfc_if_version()
214 mutex_lock(&bus->device_lock); in mei_nfc()
238 mutex_unlock(&bus->device_lock); in mei_nfc()
257 mutex_lock(&bus->device_lock); in mei_nfc()
265 mutex_unlock(&bus->device_lock); in mei_nfc()
Dclient.c682 mutex_lock(&dev->device_lock); in mei_host_client_init()
697 mutex_unlock(&dev->device_lock); in mei_host_client_init()
876 mutex_unlock(&dev->device_lock); in __mei_cl_disconnect()
879 mutex_lock(&dev->device_lock); in __mei_cl_disconnect()
1080 mutex_unlock(&dev->device_lock); in mei_cl_connect()
1086 mutex_lock(&dev->device_lock); in mei_cl_connect()
1332 mutex_unlock(&dev->device_lock); in mei_cl_notify_request()
1335 mutex_lock(&dev->device_lock); in mei_cl_notify_request()
1416 mutex_unlock(&dev->device_lock); in mei_cl_notify_get()
1418 mutex_lock(&dev->device_lock); in mei_cl_notify_get()
[all …]
Dpci-txe.c327 mutex_lock(&dev->device_lock); in mei_txe_pm_runtime_suspend()
346 mutex_unlock(&dev->device_lock); in mei_txe_pm_runtime_suspend()
362 mutex_lock(&dev->device_lock); in mei_txe_pm_runtime_resume()
368 mutex_unlock(&dev->device_lock); in mei_txe_pm_runtime_resume()
Dpci-me.c396 mutex_lock(&dev->device_lock); in mei_me_pm_runtime_suspend()
403 mutex_unlock(&dev->device_lock); in mei_me_pm_runtime_suspend()
422 mutex_lock(&dev->device_lock); in mei_me_pm_runtime_resume()
426 mutex_unlock(&dev->device_lock); in mei_me_pm_runtime_resume()
Dhw-txe.c269 mutex_unlock(&dev->device_lock); in mei_txe_aliveness_wait()
272 mutex_lock(&dev->device_lock); in mei_txe_aliveness_wait()
603 mutex_unlock(&dev->device_lock); in mei_txe_readiness_wait()
606 mutex_lock(&dev->device_lock); in mei_txe_readiness_wait()
1049 mutex_lock(&dev->device_lock); in mei_txe_irq_thread_handler()
1137 mutex_unlock(&dev->device_lock); in mei_txe_irq_thread_handler()
Ddebugfs.c109 mutex_lock(&dev->device_lock); in mei_dbgfs_read_active()
124 mutex_unlock(&dev->device_lock); in mei_dbgfs_read_active()
/drivers/md/
Dmultipath.c64 spin_lock_irqsave(&conf->device_lock, flags); in multipath_reschedule_retry()
66 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_reschedule_retry()
204 spin_lock_irqsave(&conf->device_lock, flags); in multipath_error()
206 spin_unlock_irqrestore(&conf->device_lock, flags); in multipath_error()
265 spin_lock_irq(&conf->device_lock); in multipath_add_disk()
269 spin_unlock_irq(&conf->device_lock); in multipath_add_disk()
333 spin_lock_irqsave(&conf->device_lock, flags); in multipathd()
338 spin_unlock_irqrestore(&conf->device_lock, flags); in multipathd()
364 spin_unlock_irqrestore(&conf->device_lock, flags); in multipathd()
433 spin_lock_init(&conf->device_lock); in multipath_run()
Draid1.c223 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry()
226 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry()
247 spin_lock_irqsave(&conf->device_lock, flags); in call_bio_endio()
250 spin_unlock_irqrestore(&conf->device_lock, flags); in call_bio_endio()
339 spin_lock_irqsave(&conf->device_lock, flags); in raid1_end_read_request()
344 spin_unlock_irqrestore(&conf->device_lock, flags); in raid1_end_read_request()
747 spin_lock_irq(&conf->device_lock); in flush_pending_writes()
753 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
771 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
1019 spin_lock_irq(&conf->device_lock); in raid1_unplug()
[all …]
Draid10.c280 spin_lock_irqsave(&conf->device_lock, flags); in reschedule_retry()
283 spin_unlock_irqrestore(&conf->device_lock, flags); in reschedule_retry()
304 spin_lock_irqsave(&conf->device_lock, flags); in raid_end_bio_io()
307 spin_unlock_irqrestore(&conf->device_lock, flags); in raid_end_bio_io()
853 spin_lock_irq(&conf->device_lock); in flush_pending_writes()
859 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
877 spin_unlock_irq(&conf->device_lock); in flush_pending_writes()
1027 spin_lock_irq(&conf->device_lock); in raid10_unplug()
1030 spin_unlock_irq(&conf->device_lock); in raid10_unplug()
1172 spin_lock_irq(&conf->device_lock); in __make_request()
[all …]
Draid5.c101 spin_lock(&conf->device_lock); in lock_device_hash_lock()
106 spin_unlock(&conf->device_lock); in unlock_device_hash_lock()
116 spin_lock(&conf->device_lock); in lock_all_device_hash_locks_irq()
122 spin_unlock(&conf->device_lock); in unlock_all_device_hash_locks_irq()
433 if (atomic_dec_and_lock(&sh->count, &conf->device_lock)) { in raid5_release_stripe()
437 spin_unlock(&conf->device_lock); in raid5_release_stripe()
699 spin_lock(&conf->device_lock); in raid5_get_active_stripe()
712 spin_unlock(&conf->device_lock); in raid5_get_active_stripe()
775 spin_lock(&conf->device_lock); in stripe_add_to_batch_list()
788 spin_unlock(&conf->device_lock); in stripe_add_to_batch_list()
[all …]
Dmultipath.h12 spinlock_t device_lock; member
/drivers/hwmon/
Dadt7411.c51 struct mutex device_lock; /* for "atomic" device accesses */ member
70 mutex_lock(&data->device_lock); in adt7411_read_10_bit()
83 mutex_unlock(&data->device_lock); in adt7411_read_10_bit()
94 mutex_lock(&data->device_lock); in adt7411_modify_bit()
108 mutex_unlock(&data->device_lock); in adt7411_modify_bit()
297 mutex_init(&data->device_lock); in adt7411_probe()
/drivers/base/
Ddd.c524 device_lock(dev); in __device_attach_async_helper()
546 device_lock(dev); in __device_attach()
637 device_lock(dev->parent); in __driver_attach()
638 device_lock(dev); in __driver_attach()
721 device_lock(dev); in device_release_driver()
750 device_lock(dev->parent); in driver_detach()
751 device_lock(dev); in driver_detach()
/drivers/net/usb/
Dkaweth.c216 spinlock_t device_lock; member
631 spin_lock(&kaweth->device_lock); in kaweth_usb_receive()
633 spin_unlock(&kaweth->device_lock); in kaweth_usb_receive()
636 spin_unlock(&kaweth->device_lock); in kaweth_usb_receive()
806 spin_lock_irq(&kaweth->device_lock); in kaweth_start_xmit()
818 spin_unlock_irq(&kaweth->device_lock); in kaweth_start_xmit()
851 spin_unlock_irq(&kaweth->device_lock); in kaweth_start_xmit()
949 spin_lock_irqsave(&kaweth->device_lock, flags); in kaweth_suspend()
951 spin_unlock_irqrestore(&kaweth->device_lock, flags); in kaweth_suspend()
966 spin_lock_irqsave(&kaweth->device_lock, flags); in kaweth_resume()
[all …]
/drivers/vfio/
Dvfio.c79 struct mutex device_lock; member
214 mutex_init(&group->device_lock); in vfio_create_group()
413 mutex_lock(&group->device_lock); in vfio_group_create_device()
415 mutex_unlock(&group->device_lock); in vfio_group_create_device()
427 mutex_unlock(&group->device_lock); in vfio_device_release()
441 kref_put_mutex(&device->kref, vfio_device_release, &group->device_lock); in vfio_device_put()
457 mutex_lock(&group->device_lock); in vfio_group_get_device()
461 mutex_unlock(&group->device_lock); in vfio_group_get_device()
465 mutex_unlock(&group->device_lock); in vfio_group_get_device()
751 mutex_lock(&group->device_lock); in vfio_device_get_from_name()
[all …]
/drivers/nvdimm/
Dbtt_devs.c73 device_lock(dev); in sector_size_store()
102 device_lock(dev); in uuid_store()
131 device_lock(dev); in namespace_store()
Dpfn_devs.c77 device_lock(dev); in mode_store()
122 device_lock(dev); in uuid_store()
151 device_lock(dev); in namespace_store()
Dclaim.c40 device_lock(&ndns->dev); in nd_detach_ndns()
65 device_lock(&attach->dev); in nd_attach_ndns()
/drivers/xen/xen-pciback/
Dpassthrough.c92 device_lock(&found_dev->dev); in __xen_pcibk_release_pci_dev()
166 device_lock(&dev->dev); in __xen_pcibk_release_devices()
/drivers/pci/pcie/aer/
Daerdrv_core.c242 device_lock(&dev->dev); in report_error_detected()
293 device_lock(&dev->dev); in report_mmio_enabled()
314 device_lock(&dev->dev); in report_slot_reset()
332 device_lock(&dev->dev); in report_resume()

123