Home
last modified time | relevance | path

Searched refs:io_mutex (Results 1 – 25 of 27) sorted by relevance

12

/drivers/most/
Dmost_cdev.c35 struct mutex io_mutex; member
131 mutex_lock(&c->io_mutex); in comp_open()
133 mutex_unlock(&c->io_mutex); in comp_open()
138 mutex_unlock(&c->io_mutex); in comp_open()
146 mutex_unlock(&c->io_mutex); in comp_open()
161 mutex_lock(&c->io_mutex); in comp_close()
167 mutex_unlock(&c->io_mutex); in comp_close()
169 mutex_unlock(&c->io_mutex); in comp_close()
190 mutex_lock(&c->io_mutex); in comp_write()
192 mutex_unlock(&c->io_mutex); in comp_write()
[all …]
Dmost_usb.c117 struct mutex io_mutex; member
254 mutex_lock(&mdev->io_mutex); in hdm_poison_channel()
263 mutex_unlock(&mdev->io_mutex); in hdm_poison_channel()
478 mutex_lock(&mdev->io_mutex); in hdm_enqueue()
524 mutex_unlock(&mdev->io_mutex); in hdm_enqueue()
531 mutex_unlock(&mdev->io_mutex); in hdm_enqueue()
737 mutex_lock(&mdev->io_mutex); in wq_clear_halt()
763 mutex_unlock(&mdev->io_mutex); in wq_clear_halt()
969 mutex_init(&mdev->io_mutex); in hdm_probe()
1059 mutex_lock(&mdev->io_mutex); in hdm_probe()
[all …]
/drivers/usb/misc/
Dyurex.c62 struct mutex io_mutex; member
204 mutex_init(&dev->io_mutex); in yurex_probe()
321 mutex_lock(&dev->io_mutex); in yurex_disconnect()
323 mutex_unlock(&dev->io_mutex); in yurex_disconnect()
378 mutex_lock(&dev->io_mutex); in yurex_open()
380 mutex_unlock(&dev->io_mutex); in yurex_open()
409 mutex_lock(&dev->io_mutex); in yurex_read()
411 mutex_unlock(&dev->io_mutex); in yurex_read()
418 mutex_unlock(&dev->io_mutex); in yurex_read()
444 mutex_lock(&dev->io_mutex); in yurex_write()
[all …]
/drivers/usb/
Dusb-skeleton.c63 struct mutex io_mutex; /* synchronize I/O with disconnect */ member
146 mutex_lock(&dev->io_mutex); in skel_flush()
155 mutex_unlock(&dev->io_mutex); in skel_flush()
237 rv = mutex_lock_interruptible(&dev->io_mutex); in skel_read()
328 mutex_unlock(&dev->io_mutex); in skel_read()
422 mutex_lock(&dev->io_mutex); in skel_write()
424 mutex_unlock(&dev->io_mutex); in skel_write()
438 mutex_unlock(&dev->io_mutex); in skel_write()
502 mutex_init(&dev->io_mutex); in skel_probe()
573 mutex_lock(&dev->io_mutex); in skel_disconnect()
[all …]
/drivers/s390/cio/
Dvfio_ccw_async.c27 mutex_lock(&private->io_mutex); in vfio_ccw_async_region_read()
33 mutex_unlock(&private->io_mutex); in vfio_ccw_async_region_read()
49 if (!mutex_trylock(&private->io_mutex)) in vfio_ccw_async_region_write()
63 mutex_unlock(&private->io_mutex); in vfio_ccw_async_region_write()
Dvfio_ccw_chp.c27 mutex_lock(&private->io_mutex); in vfio_ccw_schib_region_read()
45 mutex_unlock(&private->io_mutex); in vfio_ccw_schib_region_read()
98 mutex_lock(&private->io_mutex); in vfio_ccw_crw_region_read()
111 mutex_unlock(&private->io_mutex); in vfio_ccw_crw_region_read()
Dvfio_ccw_ops.c226 mutex_lock(&private->io_mutex); in vfio_ccw_mdev_read_io_region()
232 mutex_unlock(&private->io_mutex); in vfio_ccw_mdev_read_io_region()
272 if (!mutex_trylock(&private->io_mutex)) in vfio_ccw_mdev_write_io_region()
285 mutex_unlock(&private->io_mutex); in vfio_ccw_mdev_write_io_region()
Dvfio_ccw_drv.c103 mutex_lock(&private->io_mutex); in vfio_ccw_sch_io_todo()
105 mutex_unlock(&private->io_mutex); in vfio_ccw_sch_io_todo()
197 mutex_init(&private->io_mutex); in vfio_ccw_sch_probe()
Dvfio_ccw_private.h100 struct mutex io_mutex; member
/drivers/platform/chrome/
Dcros_ec_lpc_mec.c17 static DEFINE_MUTEX(io_mutex);
95 mutex_lock(&io_mutex); in cros_ec_lpc_io_bytes_mec()
137 mutex_unlock(&io_mutex); in cros_ec_lpc_io_bytes_mec()
152 mutex_destroy(&io_mutex); in cros_ec_lpc_mec_destroy()
/drivers/media/usb/hdpvr/
Dhdpvr-video.c191 mutex_lock(&dev->io_mutex); in hdpvr_submit_buffers()
222 mutex_unlock(&dev->io_mutex); in hdpvr_submit_buffers()
230 mutex_lock(&dev->io_mutex); in hdpvr_get_next_buffer()
233 mutex_unlock(&dev->io_mutex); in hdpvr_get_next_buffer()
239 mutex_unlock(&dev->io_mutex); in hdpvr_get_next_buffer()
338 mutex_unlock(&dev->io_mutex); in hdpvr_stop_streaming()
345 mutex_lock(&dev->io_mutex); in hdpvr_stop_streaming()
392 mutex_lock(&dev->io_mutex); in hdpvr_release()
397 mutex_unlock(&dev->io_mutex); in hdpvr_release()
418 mutex_lock(&dev->io_mutex); in hdpvr_read()
[all …]
Dhdpvr-core.c296 mutex_init(&dev->io_mutex); in hdpvr_probe()
349 mutex_lock(&dev->io_mutex); in hdpvr_probe()
351 mutex_unlock(&dev->io_mutex); in hdpvr_probe()
356 mutex_unlock(&dev->io_mutex); in hdpvr_probe()
418 mutex_lock(&dev->io_mutex); in hdpvr_disconnect()
422 mutex_unlock(&dev->io_mutex); in hdpvr_disconnect()
426 mutex_lock(&dev->io_mutex); in hdpvr_disconnect()
428 mutex_unlock(&dev->io_mutex); in hdpvr_disconnect()
Dhdpvr.h96 struct mutex io_mutex; member
/drivers/net/wireless/realtek/rtl818x/rtl8187/
Drtl8225.c27 mutex_lock(&priv->io_mutex); in rtl818x_ioread8_idx()
34 mutex_unlock(&priv->io_mutex); in rtl818x_ioread8_idx()
44 mutex_lock(&priv->io_mutex); in rtl818x_ioread16_idx()
51 mutex_unlock(&priv->io_mutex); in rtl818x_ioread16_idx()
61 mutex_lock(&priv->io_mutex); in rtl818x_ioread32_idx()
68 mutex_unlock(&priv->io_mutex); in rtl818x_ioread32_idx()
76 mutex_lock(&priv->io_mutex); in rtl818x_iowrite8_idx()
84 mutex_unlock(&priv->io_mutex); in rtl818x_iowrite8_idx()
90 mutex_lock(&priv->io_mutex); in rtl818x_iowrite16_idx()
98 mutex_unlock(&priv->io_mutex); in rtl818x_iowrite16_idx()
[all …]
Drtl8187.h147 struct mutex io_mutex; member
/drivers/usb/class/
Dusbtmc.c109 struct mutex io_mutex; /* only one i/o function running at a time */ member
189 mutex_lock(&data->io_mutex); in usbtmc_open()
204 mutex_unlock(&data->io_mutex); in usbtmc_open()
228 mutex_lock(&data->io_mutex); in usbtmc_flush()
241 mutex_unlock(&data->io_mutex); in usbtmc_flush()
251 mutex_lock(&file_data->data->io_mutex); in usbtmc_release()
257 mutex_unlock(&file_data->data->io_mutex); in usbtmc_release()
619 mutex_unlock(&data->io_mutex); in usbtmc488_ioctl_wait_srq()
627 mutex_lock(&data->io_mutex); in usbtmc488_ioctl_wait_srq()
1383 mutex_lock(&data->io_mutex); in usbtmc_read()
[all …]
/drivers/md/
Draid5-ppl.c120 struct mutex io_mutex; member
375 mutex_lock(&log->io_mutex); in ppl_write_stripe()
378 mutex_unlock(&log->io_mutex); in ppl_write_stripe()
392 mutex_unlock(&log->io_mutex); in ppl_write_stripe()
547 mutex_lock(&log->io_mutex); in ppl_write_stripe_run()
549 mutex_unlock(&log->io_mutex); in ppl_write_stripe_run()
1421 mutex_init(&log->io_mutex); in ppl_init_log()
1488 mutex_lock(&log->io_mutex); in ppl_modify_log()
1499 mutex_unlock(&log->io_mutex); in ppl_modify_log()
Draid5-cache.c101 struct mutex io_mutex; member
878 mutex_lock(&log->io_mutex); in r5l_append_flush_payload()
882 mutex_unlock(&log->io_mutex); in r5l_append_flush_payload()
899 mutex_unlock(&log->io_mutex); in r5l_append_flush_payload()
1041 mutex_lock(&log->io_mutex); in r5l_write_stripe()
1084 mutex_unlock(&log->io_mutex); in r5l_write_stripe()
1094 mutex_lock(&log->io_mutex); in r5l_write_stripe_run()
1096 mutex_unlock(&log->io_mutex); in r5l_write_stripe_run()
1117 mutex_lock(&log->io_mutex); in r5l_handle_flush_request()
1124 mutex_unlock(&log->io_mutex); in r5l_handle_flush_request()
[all …]
/drivers/s390/char/
Dvmur.c109 mutex_init(&urd->io_mutex); in urdev_alloc()
255 rc = mutex_lock_interruptible(&urd->io_mutex); in do_ur_io()
274 mutex_unlock(&urd->io_mutex); in do_ur_io()
548 rc = mutex_lock_interruptible(&urd->io_mutex); in ur_read()
552 mutex_unlock(&urd->io_mutex); in ur_read()
Dvmur.h67 struct mutex io_mutex; /* Serialises device IO */ member
/drivers/md/bcache/
Ddebug.c40 down(&b->io_mutex); in bch_btree_verify()
105 up(&b->io_mutex); in bch_btree_verify()
Dbtree.c300 up(&b->io_mutex); in btree_node_write_unlock()
420 down(&b->io_mutex); in __bch_btree_node_write()
526 BUG_ON(b->io_mutex.count != 1); in mca_data_free()
581 sema_init(&b->io_mutex, 1); in mca_bucket_alloc()
606 if (down_trylock(&b->io_mutex)) in mca_reap()
608 up(&b->io_mutex); in mca_reap()
637 down(&b->io_mutex); in mca_reap()
638 up(&b->io_mutex); in mca_reap()
937 BUG_ON(b->io_mutex.count != 1); in mca_alloc()
Dbtree.h139 struct semaphore io_mutex; member
/drivers/spi/
Dspi-mux.c144 lockdep_set_subclass(&ctlr->io_mutex, 1); in spi_mux_probe()
Dspi.c1556 mutex_lock(&ctlr->io_mutex); in __spi_pump_messages()
1564 mutex_unlock(&ctlr->io_mutex); in __spi_pump_messages()
1585 mutex_unlock(&ctlr->io_mutex); in __spi_pump_messages()
1626 mutex_unlock(&ctlr->io_mutex); in __spi_pump_messages()
2600 mutex_init(&ctlr->io_mutex); in __spi_alloc_controller()
3545 mutex_lock(&spi->controller->io_mutex); in spi_setup()
3550 mutex_unlock(&spi->controller->io_mutex); in spi_setup()
3560 mutex_unlock(&spi->controller->io_mutex); in spi_setup()
3582 mutex_unlock(&spi->controller->io_mutex); in spi_setup()

12