Home
last modified time | relevance | path

Searched refs:read_lock (Results 1 – 25 of 64) sorted by relevance

123

/drivers/iio/adc/
Denvelope-detector.c49 struct mutex read_lock; /* protects everything else */ member
205 mutex_lock(&env->read_lock); in envelope_detector_read_raw()
215 mutex_unlock(&env->read_lock); in envelope_detector_read_raw()
226 mutex_unlock(&env->read_lock); in envelope_detector_read_raw()
257 mutex_lock(&env->read_lock); in envelope_store_invert()
264 mutex_unlock(&env->read_lock); in envelope_store_invert()
294 mutex_lock(&env->read_lock); in envelope_store_comp_interval()
296 mutex_unlock(&env->read_lock); in envelope_store_comp_interval()
340 mutex_init(&env->read_lock); in envelope_detector_probe()
/drivers/gpu/drm/msm/
Dmsm_perf.c30 struct mutex read_lock; member
126 mutex_lock(&perf->read_lock); in perf_read()
144 mutex_unlock(&perf->read_lock); in perf_read()
214 mutex_init(&perf->read_lock); in msm_perf_debugfs_init()
231 mutex_destroy(&perf->read_lock); in msm_perf_debugfs_cleanup()
Dmsm_rd.c89 struct mutex read_lock, write_lock; member
141 mutex_lock(&rd->read_lock); in rd_read()
164 mutex_unlock(&rd->read_lock); in rd_read()
240 mutex_destroy(&rd->read_lock); in rd_cleanup()
256 mutex_init(&rd->read_lock); in rd_init()
Dmsm_submitqueue.c89 read_lock(&ctx->queuelock); in msm_submitqueue_get()
/drivers/nvme/host/
Dhwmon.c16 struct mutex read_lock; member
90 mutex_lock(&data->read_lock); in nvme_hwmon_read()
111 mutex_unlock(&data->read_lock); in nvme_hwmon_read()
244 mutex_init(&data->read_lock); in nvme_hwmon_init()
/drivers/hwmon/
Dsht15.c164 struct mutex read_lock; member
458 mutex_lock(&data->read_lock); in sht15_update_status()
508 mutex_unlock(&data->read_lock); in sht15_update_status()
590 mutex_lock(&data->read_lock); in sht15_update_measurements()
606 mutex_unlock(&data->read_lock); in sht15_update_measurements()
714 mutex_lock(&data->read_lock); in sht15_status_store()
722 mutex_unlock(&data->read_lock); in sht15_status_store()
928 mutex_init(&data->read_lock); in sht15_probe()
/drivers/md/
Ddm-region-hash.c335 read_lock(&rh->hash_lock); in __rh_find()
346 read_lock(&rh->hash_lock); in dm_rh_get_state()
417 read_lock(&rh->hash_lock); in dm_rh_mark_nosync()
510 read_lock(&rh->hash_lock); in rh_inc()
547 read_lock(&rh->hash_lock); in dm_rh_dec()
607 read_lock(&rh->hash_lock); in __rh_recovery_prepare()
697 read_lock(&rh->hash_lock); in dm_rh_delay()
/drivers/parisc/
Dpdc_stable.c230 read_lock(&entry->rw_lock); in pdcspath_hwpath_read()
350 read_lock(&entry->rw_lock); in pdcspath_layer_read()
551 read_lock(&pathentry->rw_lock); in pdcs_auto_read()
604 read_lock(&pathentry->rw_lock); in pdcs_timer_read()
785 read_lock(&pathentry->rw_lock); in pdcs_auto_write()
1042 read_lock(&entry->rw_lock); in pdcs_unregister_pathentries()
/drivers/platform/surface/
Dsurface_aggregator_cdev.c63 struct mutex read_lock; /* Guards FIFO buffer read access */ member
476 mutex_init(&client->read_lock); in ssam_cdev_device_open()
489 mutex_destroy(&client->read_lock); in ssam_cdev_device_open()
517 mutex_destroy(&client->read_lock); in ssam_cdev_device_release()
617 if (mutex_lock_interruptible(&client->read_lock)) { in ssam_cdev_read()
623 mutex_unlock(&client->read_lock); in ssam_cdev_read()
Dsurface_dtx.c183 struct mutex read_lock; /* Guards FIFO buffer read access. */ member
414 mutex_init(&client->read_lock); in surface_dtx_open()
430 mutex_destroy(&client->read_lock); in surface_dtx_open()
454 mutex_destroy(&client->read_lock); in surface_dtx_release()
502 if (mutex_lock_interruptible(&client->read_lock)) { in surface_dtx_read()
508 mutex_unlock(&client->read_lock); in surface_dtx_read()
/drivers/tty/
Dtty_jobctrl.c134 read_lock(&tasklist_lock); in tty_open_proc_set_tty()
202 read_lock(&tasklist_lock); in tty_signal_session_leader()
329 read_lock(&tasklist_lock); in disassociate_ctty()
370 read_lock(&tasklist_lock); in tiocsctty()
/drivers/char/hw_random/
Dcctrng.c72 spinlock_t read_lock; member
222 if (!spin_trylock(&drvdata->read_lock)) { in cctrng_read()
246 spin_unlock(&drvdata->read_lock); in cctrng_read()
508 spin_lock_init(&drvdata->read_lock); in cctrng_probe()
/drivers/staging/axis-fifo/
Daxis-fifo.c132 struct mutex read_lock; /* lock for reading */ member
370 if (!mutex_trylock(&fifo->read_lock)) in axis_fifo_read()
382 mutex_lock(&fifo->read_lock); in axis_fifo_read()
453 mutex_unlock(&fifo->read_lock); in axis_fifo_read()
832 mutex_init(&fifo->read_lock); in axis_fifo_probe()
/drivers/iio/
Dindustrialio-event.c43 struct mutex read_lock; member
149 if (mutex_lock_interruptible(&ev_int->read_lock)) in iio_event_chrdev_read()
152 mutex_unlock(&ev_int->read_lock); in iio_event_chrdev_read()
486 mutex_init(&ev_int->read_lock); in iio_setup_ev_int()
/drivers/input/serio/
Dhp_sdc.c185 read_lock(&hp_sdc.rtq_lock); in hp_sdc_take()
238 read_lock(&hp_sdc.hook_lock); in hp_sdc_isr()
250 read_lock(&hp_sdc.hook_lock); in hp_sdc_isr()
257 read_lock(&hp_sdc.hook_lock); in hp_sdc_isr()
266 read_lock(&hp_sdc.hook_lock); in hp_sdc_isr()
286 read_lock(&hp_sdc.hook_lock); in hp_sdc_nmisr()
/drivers/usb/class/
Dcdc-acm.h74 spinlock_t read_lock; member
Dcdc-acm.c332 spin_lock_irqsave(&acm->read_lock, flags); in acm_process_notification()
352 spin_unlock_irqrestore(&acm->read_lock, flags); in acm_process_notification()
497 spin_lock_irqsave(&acm->read_lock, flags); in acm_process_read_urb()
500 spin_unlock_irqrestore(&acm->read_lock, flags); in acm_process_read_urb()
1005 spin_lock_irq(&acm->read_lock); in wait_serial_change()
1009 spin_unlock_irq(&acm->read_lock); in wait_serial_change()
1375 spin_lock_init(&acm->read_lock); in acm_probe()
/drivers/bluetooth/
Dbfusb.c190 read_lock(&data->lock); in bfusb_tx_complete()
343 read_lock(&data->lock); in bfusb_rx_complete()
506 read_lock(&data->lock); in bfusb_send_frame()
/drivers/vdpa/vdpa_user/
Diova_domain.c216 read_lock(&domain->bounce_lock); in vduse_domain_get_bounce_page()
392 read_lock(&domain->bounce_lock); in vduse_domain_map_page()
415 read_lock(&domain->bounce_lock); in vduse_domain_unmap_page()
/drivers/isdn/mISDN/
Dcore.c274 read_lock(&bp_lock); in get_all_Bprotocols()
286 read_lock(&bp_lock); in get_Bprotocol4mask()
/drivers/staging/greybus/
Duart.c53 spinlock_t read_lock; member
645 spin_lock_irq(&gb_tty->read_lock); in wait_serial_change()
649 spin_unlock_irq(&gb_tty->read_lock); in wait_serial_change()
867 spin_lock_init(&gb_tty->read_lock); in gb_uart_probe()
/drivers/atm/
Datmtcp.c170 read_lock(&vcc_sklist_lock); in atmtcp_v_ioctl()
299 read_lock(&vcc_sklist_lock); in atmtcp_c_send()
/drivers/gpu/drm/
Ddrm_vma_manager.c404 read_lock(&node->vm_lock); in drm_vma_node_is_allowed()
/drivers/scsi/lpfc/
Dlpfc_vmid.c178 read_lock(&vport->vmid_lock); in lpfc_vmid_get_appid()
/drivers/s390/scsi/
Dzfcp_erp.c114 read_lock(&adapter->port_list_lock); in zfcp_erp_action_dismiss_adapter()
651 read_lock(&adapter->port_list_lock); in zfcp_erp_port_forced_reopen_all()
663 read_lock(&adapter->port_list_lock); in _zfcp_erp_port_reopen_all()

123