Home
last modified time | relevance | path

Searched refs:dev_mutex (Results 1 – 25 of 45) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_resource.c113 struct nfp_cpp_mutex *dev_mutex) in nfp_resource_try_acquire() argument
117 if (nfp_cpp_mutex_lock(dev_mutex)) in nfp_resource_try_acquire()
128 nfp_cpp_mutex_unlock(dev_mutex); in nfp_resource_try_acquire()
135 nfp_cpp_mutex_unlock(dev_mutex); in nfp_resource_try_acquire()
154 struct nfp_cpp_mutex *dev_mutex; in nfp_resource_acquire() local
164 dev_mutex = nfp_cpp_mutex_alloc(cpp, NFP_RESOURCE_TBL_TARGET, in nfp_resource_acquire()
167 if (!dev_mutex) { in nfp_resource_acquire()
173 err = nfp_resource_try_acquire(cpp, res, dev_mutex); in nfp_resource_acquire()
197 nfp_cpp_mutex_free(dev_mutex); in nfp_resource_acquire()
202 nfp_cpp_mutex_free(dev_mutex); in nfp_resource_acquire()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx.c274 mutex_lock(&dev->dev_mutex); in rtsx_suspend()
291 mutex_unlock(&dev->dev_mutex); in rtsx_suspend()
308 mutex_lock(&dev->dev_mutex); in rtsx_resume()
319 mutex_unlock(&dev->dev_mutex); in rtsx_resume()
327 mutex_unlock(&dev->dev_mutex); in rtsx_resume()
366 mutex_lock(&dev->dev_mutex); in rtsx_control_thread()
371 mutex_unlock(&dev->dev_mutex); in rtsx_control_thread()
443 mutex_unlock(&dev->dev_mutex); in rtsx_control_thread()
483 mutex_lock(&dev->dev_mutex); in rtsx_polling_thread()
488 mutex_unlock(&dev->dev_mutex); in rtsx_polling_thread()
[all …]
Drtsx.h103 struct mutex dev_mutex; member
/kernel/linux/linux-5.10/drivers/mtd/ubi/
Dblock.c87 struct mutex dev_mutex; member
224 mutex_lock(&dev->dev_mutex); in ubiblock_open()
254 mutex_unlock(&dev->dev_mutex); in ubiblock_open()
258 mutex_unlock(&dev->dev_mutex); in ubiblock_open()
266 mutex_lock(&dev->dev_mutex); in ubiblock_release()
272 mutex_unlock(&dev->dev_mutex); in ubiblock_release()
391 mutex_init(&dev->dev_mutex); in ubiblock_create()
506 mutex_lock(&dev->dev_mutex); in ubiblock_remove()
515 mutex_unlock(&dev->dev_mutex); in ubiblock_remove()
522 mutex_unlock(&dev->dev_mutex); in ubiblock_remove()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_dec_drv.c97 mutex_lock(&dev->dev_mutex); in fops_vcodec_open()
152 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
167 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
178 mutex_lock(&dev->dev_mutex); in fops_vcodec_release()
198 mutex_unlock(&dev->dev_mutex); in fops_vcodec_release()
284 mutex_init(&dev->dev_mutex); in mtk_vcodec_probe()
307 vfd_dec->lock = &dev->dev_mutex; in mtk_vcodec_probe()
Dmtk_vcodec_enc_drv.c158 mutex_lock(&dev->dev_mutex); in fops_vcodec_open()
213 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
227 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
238 mutex_lock(&dev->dev_mutex); in fops_vcodec_release()
248 mutex_unlock(&dev->dev_mutex); in fops_vcodec_release()
360 mutex_init(&dev->dev_mutex); in mtk_vcodec_probe()
384 vfd_enc->lock = &dev->dev_mutex; in mtk_vcodec_probe()
Dmtk_vcodec_fw_vpu.c61 mutex_lock(&dev->dev_mutex); in mtk_vcodec_vpu_reset_handler()
67 mutex_unlock(&dev->dev_mutex); in mtk_vcodec_vpu_reset_handler()
/kernel/linux/linux-5.10/drivers/usb/storage/
Dusb.c174 mutex_lock(&us->dev_mutex); in usb_stor_suspend()
184 mutex_unlock(&us->dev_mutex); in usb_stor_suspend()
193 mutex_lock(&us->dev_mutex); in usb_stor_resume()
198 mutex_unlock(&us->dev_mutex); in usb_stor_resume()
230 mutex_lock(&us->dev_mutex); in usb_stor_pre_reset()
247 mutex_unlock(&us->dev_mutex); in usb_stor_post_reset()
312 mutex_lock(&(us->dev_mutex)); in usb_stor_control_thread()
321 mutex_unlock(&us->dev_mutex); in usb_stor_control_thread()
414 mutex_unlock(&us->dev_mutex); in usb_stor_control_thread()
905 mutex_lock(&us->dev_mutex); in usb_stor_scan_dwork()
[all …]
Dscsiglue.c474 mutex_lock(&(us->dev_mutex)); in device_reset()
476 mutex_unlock(&us->dev_mutex); in device_reset()
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus.c292 if (mutex_lock_interruptible(&dev->dev_mutex)) in cedrus_open()
297 mutex_unlock(&dev->dev_mutex); in cedrus_open()
328 mutex_unlock(&dev->dev_mutex); in cedrus_open()
336 mutex_unlock(&dev->dev_mutex); in cedrus_open()
347 mutex_lock(&dev->dev_mutex); in cedrus_release()
359 mutex_unlock(&dev->dev_mutex); in cedrus_release()
418 mutex_init(&dev->dev_mutex); in cedrus_probe()
427 vfd->lock = &dev->dev_mutex; in cedrus_probe()
/kernel/linux/linux-5.10/drivers/media/platform/
Dmx2_emmaprp.c200 struct mutex dev_mutex; member
698 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
712 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init()
733 if (mutex_lock_interruptible(&pcdev->dev_mutex)) { in emmaprp_open()
743 mutex_unlock(&pcdev->dev_mutex); in emmaprp_open()
753 mutex_unlock(&pcdev->dev_mutex); in emmaprp_open()
767 mutex_lock(&pcdev->dev_mutex); in emmaprp_release()
773 mutex_unlock(&pcdev->dev_mutex); in emmaprp_release()
834 mutex_init(&pcdev->dev_mutex); in emmaprp_probe()
844 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
[all …]
Dimx-pxp.c196 struct mutex dev_mutex; member
1482 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
1496 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init()
1512 if (mutex_lock_interruptible(&dev->dev_mutex)) in pxp_open()
1566 mutex_unlock(&dev->dev_mutex); in pxp_open()
1580 mutex_lock(&dev->dev_mutex); in pxp_release()
1582 mutex_unlock(&dev->dev_mutex); in pxp_release()
1691 mutex_init(&dev->dev_mutex); in pxp_probe()
1695 vfd->lock = &dev->dev_mutex; in pxp_probe()
Drcar_fdp1.c559 struct mutex dev_mutex; member
2056 src_vq->lock = &ctx->fdp1->dev_mutex; in queue_init()
2070 dst_vq->lock = &ctx->fdp1->dev_mutex; in queue_init()
2087 if (mutex_lock_interruptible(&fdp1->dev_mutex)) in fdp1_open()
2151 mutex_unlock(&fdp1->dev_mutex); in fdp1_open()
2160 mutex_unlock(&fdp1->dev_mutex); in fdp1_open()
2174 mutex_lock(&fdp1->dev_mutex); in fdp1_release()
2176 mutex_unlock(&fdp1->dev_mutex); in fdp1_release()
2281 mutex_init(&fdp1->dev_mutex); in fdp1_probe()
2346 vfd->lock = &fdp1->dev_mutex; in fdp1_probe()
Dm2m-deinterlace.c126 struct mutex dev_mutex; member
809 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
828 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init()
949 mutex_init(&pcdev->dev_mutex); in deinterlace_probe()
953 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe()
/kernel/linux/linux-5.10/drivers/mmc/host/
Drtsx_usb_sdmmc.c756 mutex_lock(&ucr->dev_mutex); in sdmmc_get_ro()
761 mutex_unlock(&ucr->dev_mutex); in sdmmc_get_ro()
784 mutex_lock(&ucr->dev_mutex); in sdmmc_get_cd()
789 mutex_unlock(&ucr->dev_mutex); in sdmmc_get_cd()
825 mutex_lock(&ucr->dev_mutex); in sdmmc_request()
860 mutex_unlock(&ucr->dev_mutex); in sdmmc_request()
1111 mutex_lock(&ucr->dev_mutex); in sdmmc_set_ios()
1142 mutex_unlock(&ucr->dev_mutex); in sdmmc_set_ios()
1161 mutex_lock(&ucr->dev_mutex); in sdmmc_switch_voltage()
1165 mutex_unlock(&ucr->dev_mutex); in sdmmc_switch_voltage()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/
Dedp_ctrl.c76 struct mutex dev_mutex; /* To protect device power status */ member
961 mutex_lock(&ctrl->dev_mutex); in edp_ctrl_on_worker()
1010 mutex_unlock(&ctrl->dev_mutex); in edp_ctrl_on_worker()
1019 mutex_lock(&ctrl->dev_mutex); in edp_ctrl_off_worker()
1059 mutex_unlock(&ctrl->dev_mutex); in edp_ctrl_off_worker()
1171 mutex_init(&ctrl->dev_mutex); in msm_edp_ctrl_init()
1206 mutex_destroy(&ctrl->dev_mutex); in msm_edp_ctrl_destroy()
1211 mutex_lock(&ctrl->dev_mutex); in msm_edp_ctrl_panel_connected()
1214 mutex_unlock(&ctrl->dev_mutex); in msm_edp_ctrl_panel_connected()
1238 mutex_unlock(&ctrl->dev_mutex); in msm_edp_ctrl_panel_connected()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c543 src_vq->lock = &ctx->dev->dev_mutex; in rotate_queue_init()
558 dst_vq->lock = &ctx->dev->dev_mutex; in rotate_queue_init()
644 if (mutex_lock_interruptible(&dev->dev_mutex)) in rotate_open()
649 mutex_unlock(&dev->dev_mutex); in rotate_open()
682 mutex_unlock(&dev->dev_mutex); in rotate_open()
688 mutex_unlock(&dev->dev_mutex); in rotate_open()
699 mutex_lock(&dev->dev_mutex); in rotate_release()
708 mutex_unlock(&dev->dev_mutex); in rotate_release()
786 mutex_init(&dev->dev_mutex); in rotate_probe()
796 vfd->lock = &dev->dev_mutex; in rotate_probe()
Dsun8i-rotate.h125 struct mutex dev_mutex; member
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c680 src_vq->lock = &ctx->dev->dev_mutex; in deinterlace_queue_init()
695 dst_vq->lock = &ctx->dev->dev_mutex; in deinterlace_queue_init()
711 if (mutex_lock_interruptible(&dev->dev_mutex)) in deinterlace_open()
716 mutex_unlock(&dev->dev_mutex); in deinterlace_open()
747 mutex_unlock(&dev->dev_mutex); in deinterlace_open()
753 mutex_unlock(&dev->dev_mutex); in deinterlace_open()
764 mutex_lock(&dev->dev_mutex); in deinterlace_release()
772 mutex_unlock(&dev->dev_mutex); in deinterlace_release()
865 mutex_init(&dev->dev_mutex); in deinterlace_probe()
875 vfd->lock = &dev->dev_mutex; in deinterlace_probe()
/kernel/linux/linux-5.10/drivers/net/dsa/microchip/
Dksz_common.c180 mutex_lock(&dev->dev_mutex); in ksz_port_bridge_join()
182 mutex_unlock(&dev->dev_mutex); in ksz_port_bridge_join()
197 mutex_lock(&dev->dev_mutex); in ksz_port_bridge_leave()
200 mutex_unlock(&dev->dev_mutex); in ksz_port_bridge_leave()
406 mutex_init(&dev->dev_mutex); in ksz_switch_register()
/kernel/linux/linux-5.10/drivers/memstick/host/
Drtsx_usb_ms.c521 mutex_lock(&ucr->dev_mutex); in rtsx_usb_ms_handle_req()
530 mutex_unlock(&ucr->dev_mutex); in rtsx_usb_ms_handle_req()
564 mutex_lock(&ucr->dev_mutex); in rtsx_usb_ms_set_param()
628 mutex_unlock(&ucr->dev_mutex); in rtsx_usb_ms_set_param()
728 mutex_lock(&ucr->dev_mutex); in rtsx_usb_ms_poll_card()
733 mutex_unlock(&ucr->dev_mutex); in rtsx_usb_ms_poll_card()
742 mutex_unlock(&ucr->dev_mutex); in rtsx_usb_ms_poll_card()
/kernel/linux/linux-5.10/drivers/input/touchscreen/
Dhideep.c156 struct mutex dev_mutex; member
900 mutex_lock(&ts->dev_mutex); in hideep_update_fw()
907 mutex_unlock(&ts->dev_mutex); in hideep_update_fw()
924 mutex_lock(&ts->dev_mutex); in hideep_fw_version_show()
927 mutex_unlock(&ts->dev_mutex); in hideep_fw_version_show()
939 mutex_lock(&ts->dev_mutex); in hideep_product_id_show()
942 mutex_unlock(&ts->dev_mutex); in hideep_product_id_show()
1023 mutex_init(&ts->dev_mutex); in hideep_probe()
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c73 static DEFINE_MUTEX(dev_mutex);
127 mutex_lock(&dev_mutex); in ch_ipsec_uld_state_change()
129 mutex_unlock(&dev_mutex); in ch_ipsec_uld_state_change()
807 mutex_lock(&dev_mutex); in ch_ipsec_exit()
814 mutex_unlock(&dev_mutex); in ch_ipsec_exit()
/kernel/linux/linux-5.10/drivers/misc/cardreader/
Drtsx_usb.c649 mutex_init(&ucr->dev_mutex); in rtsx_usb_probe()
711 if (mutex_trylock(&ucr->dev_mutex)) { in rtsx_usb_suspend()
713 mutex_unlock(&ucr->dev_mutex); in rtsx_usb_suspend()
762 mutex_lock(&ucr->dev_mutex); in rtsx_usb_pre_reset()
770 mutex_unlock(&ucr->dev_mutex); in rtsx_usb_post_reset()
/kernel/linux/linux-5.10/drivers/media/test-drivers/
Dvim2m.c198 struct mutex dev_mutex; member
1181 if (mutex_lock_interruptible(&dev->dev_mutex)) in vim2m_open()
1240 mutex_unlock(&dev->dev_mutex); in vim2m_open()
1254 mutex_lock(&dev->dev_mutex); in vim2m_release()
1256 mutex_unlock(&dev->dev_mutex); in vim2m_release()
1321 mutex_init(&dev->dev_mutex); in vim2m_probe()
1325 vfd->lock = &dev->dev_mutex; in vim2m_probe()

12