Home
last modified time | relevance | path

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

12

/linux-6.1.9/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 …]
/linux-6.1.9/drivers/staging/rts5208/
Drtsx.c267 mutex_lock(&dev->dev_mutex); in rtsx_suspend()
284 mutex_unlock(&dev->dev_mutex); in rtsx_suspend()
301 mutex_lock(&dev->dev_mutex); in rtsx_resume()
312 mutex_unlock(&dev->dev_mutex); in rtsx_resume()
320 mutex_unlock(&dev->dev_mutex); in rtsx_resume()
359 mutex_lock(&dev->dev_mutex); in rtsx_control_thread()
364 mutex_unlock(&dev->dev_mutex); in rtsx_control_thread()
436 mutex_unlock(&dev->dev_mutex); in rtsx_control_thread()
476 mutex_lock(&dev->dev_mutex); in rtsx_polling_thread()
481 mutex_unlock(&dev->dev_mutex); in rtsx_polling_thread()
[all …]
Drtsx.h103 struct mutex dev_mutex; member
/linux-6.1.9/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()
395 mutex_init(&dev->dev_mutex); in ubiblock_create()
507 mutex_lock(&dev->dev_mutex); in ubiblock_remove()
516 mutex_unlock(&dev->dev_mutex); in ubiblock_remove()
523 mutex_unlock(&dev->dev_mutex); in ubiblock_remove()
[all …]
/linux-6.1.9/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.c459 mutex_lock(&(us->dev_mutex)); in device_reset()
461 mutex_unlock(&us->dev_mutex); in device_reset()
Dusb.h93 struct mutex dev_mutex; /* protect pusb_dev */ member
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_enc_drv.c121 mutex_lock(&dev->dev_mutex); in fops_vcodec_open()
180 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
194 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
205 mutex_lock(&dev->dev_mutex); in fops_vcodec_release()
215 mutex_unlock(&dev->dev_mutex); in fops_vcodec_release()
294 mutex_init(&dev->dev_mutex); in mtk_vcodec_probe()
318 vfd_enc->lock = &dev->dev_mutex; in mtk_vcodec_probe()
Dmtk_vcodec_dec_drv.c151 mutex_lock(&dev->dev_mutex); in fops_vcodec_open()
219 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
233 mutex_unlock(&dev->dev_mutex); in fops_vcodec_open()
244 mutex_lock(&dev->dev_mutex); in fops_vcodec_release()
261 mutex_unlock(&dev->dev_mutex); in fops_vcodec_release()
334 mutex_init(&dev->dev_mutex); in mtk_vcodec_probe()
357 vfd_dec->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()
/linux-6.1.9/drivers/media/platform/nxp/
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()
832 mutex_init(&pcdev->dev_mutex); in emmaprp_probe()
842 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
[all …]
Dimx-pxp.c196 struct mutex dev_mutex; member
1508 src_vq->lock = &ctx->dev->dev_mutex; in queue_init()
1522 dst_vq->lock = &ctx->dev->dev_mutex; in queue_init()
1538 if (mutex_lock_interruptible(&dev->dev_mutex)) in pxp_open()
1593 mutex_unlock(&dev->dev_mutex); in pxp_open()
1607 mutex_lock(&dev->dev_mutex); in pxp_release()
1609 mutex_unlock(&dev->dev_mutex); in pxp_release()
1713 mutex_init(&dev->dev_mutex); in pxp_probe()
1717 vfd->lock = &dev->dev_mutex; in pxp_probe()
/linux-6.1.9/drivers/staging/media/sunxi/cedrus/
Dcedrus.c341 if (mutex_lock_interruptible(&dev->dev_mutex)) in cedrus_open()
346 mutex_unlock(&dev->dev_mutex); in cedrus_open()
377 mutex_unlock(&dev->dev_mutex); in cedrus_open()
385 mutex_unlock(&dev->dev_mutex); in cedrus_open()
396 mutex_lock(&dev->dev_mutex); in cedrus_release()
408 mutex_unlock(&dev->dev_mutex); in cedrus_release()
468 mutex_init(&dev->dev_mutex); in cedrus_probe()
479 vfd->lock = &dev->dev_mutex; in cedrus_probe()
/linux-6.1.9/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()
1108 mutex_lock(&ucr->dev_mutex); in sdmmc_set_ios()
1139 mutex_unlock(&ucr->dev_mutex); in sdmmc_set_ios()
1158 mutex_lock(&ucr->dev_mutex); in sdmmc_switch_voltage()
1162 mutex_unlock(&ucr->dev_mutex); in sdmmc_switch_voltage()
[all …]
/linux-6.1.9/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
/linux-6.1.9/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()
859 mutex_init(&dev->dev_mutex); in deinterlace_probe()
869 vfd->lock = &dev->dev_mutex; in deinterlace_probe()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c74 static DEFINE_MUTEX(dev_mutex);
125 mutex_lock(&dev_mutex); in ch_ipsec_uld_state_change()
127 mutex_unlock(&dev_mutex); in ch_ipsec_uld_state_change()
805 mutex_lock(&dev_mutex); in ch_ipsec_exit()
812 mutex_unlock(&dev_mutex); in ch_ipsec_exit()
/linux-6.1.9/drivers/media/platform/renesas/
Drcar_fdp1.c559 struct mutex dev_mutex; member
2052 src_vq->lock = &ctx->fdp1->dev_mutex; in queue_init()
2066 dst_vq->lock = &ctx->fdp1->dev_mutex; in queue_init()
2083 if (mutex_lock_interruptible(&fdp1->dev_mutex)) in fdp1_open()
2147 mutex_unlock(&fdp1->dev_mutex); in fdp1_open()
2156 mutex_unlock(&fdp1->dev_mutex); in fdp1_open()
2170 mutex_lock(&fdp1->dev_mutex); in fdp1_release()
2172 mutex_unlock(&fdp1->dev_mutex); in fdp1_release()
2277 mutex_init(&fdp1->dev_mutex); in fdp1_probe()
2340 vfd->lock = &fdp1->dev_mutex; in fdp1_probe()
/linux-6.1.9/drivers/media/test-drivers/
Dvim2m.c193 struct mutex dev_mutex; member
1171 if (mutex_lock_interruptible(&dev->dev_mutex)) in vim2m_open()
1230 mutex_unlock(&dev->dev_mutex); in vim2m_open()
1244 mutex_lock(&dev->dev_mutex); in vim2m_release()
1246 mutex_unlock(&dev->dev_mutex); in vim2m_release()
1311 mutex_init(&dev->dev_mutex); in vim2m_probe()
1315 vfd->lock = &dev->dev_mutex; in vim2m_probe()
/linux-6.1.9/drivers/media/platform/
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()
/linux-6.1.9/drivers/media/platform/ti/vpe/
Dvpe.c379 struct mutex dev_mutex; member
2234 src_vq->lock = &dev->dev_mutex; in queue_init()
2249 dst_vq->lock = &dev->dev_mutex; in queue_init()
2286 if (mutex_lock_interruptible(&dev->dev_mutex)) { in vpe_open()
2382 mutex_unlock(&dev->dev_mutex); in vpe_open()
2396 mutex_unlock(&dev->dev_mutex); in vpe_open()
2409 mutex_lock(&dev->dev_mutex); in vpe_release()
2438 mutex_unlock(&dev->dev_mutex); in vpe_release()
2498 vfd->lock = &dev->dev_mutex; in vpe_fw_cb()
2542 mutex_init(&dev->dev_mutex); in vpe_probe()

12