Home
last modified time | relevance | path

Searched refs:state_mutex (Results 1 – 25 of 46) sorted by relevance

12

/linux-6.12.1/drivers/vfio/pci/pds/
Dvfio_dev.c48 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_set_device_state()
77 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_set_device_state()
91 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_get_device_state()
93 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_get_device_state()
134 mutex_init(&pds_vfio->state_mutex); in pds_vfio_init_device()
155 mutex_destroy(&pds_vfio->state_mutex); in pds_vfio_release_device()
183 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_close_device()
187 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_close_device()
Dpci_drv.c37 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_recovery()
43 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_recovery()
169 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_pci_aer_reset_done()
171 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_pci_aer_reset_done()
Ddirty.c609 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_dma_logging_report()
611 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_dma_logging_report()
625 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_dma_logging_start()
628 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_dma_logging_start()
639 mutex_lock(&pds_vfio->state_mutex); in pds_vfio_dma_logging_stop()
641 mutex_unlock(&pds_vfio->state_mutex); in pds_vfio_dma_logging_stop()
Dvfio_dev.h19 struct mutex state_mutex; /* protect migration state */ member
/linux-6.12.1/drivers/vfio/pci/qat/
Dmain.c52 struct mutex state_mutex; member
137 mutex_lock(&qat_vdev->state_mutex); in qat_vf_precopy_ioctl()
140 mutex_unlock(&qat_vdev->state_mutex); in qat_vf_precopy_ioctl()
160 mutex_unlock(&qat_vdev->state_mutex); in qat_vf_precopy_ioctl()
493 mutex_lock(&qat_vdev->state_mutex); in qat_vf_pci_set_device_state()
511 mutex_unlock(&qat_vdev->state_mutex); in qat_vf_pci_set_device_state()
522 mutex_lock(&qat_vdev->state_mutex); in qat_vf_pci_get_device_state()
524 mutex_unlock(&qat_vdev->state_mutex); in qat_vf_pci_get_device_state()
535 mutex_lock(&qat_vdev->state_mutex); in qat_vf_pci_get_data_size()
537 mutex_unlock(&qat_vdev->state_mutex); in qat_vf_pci_get_data_size()
[all …]
/linux-6.12.1/drivers/infiniband/ulp/iser/
Diser_verbs.c354 mutex_lock(&iser_conn->state_mutex); in iser_release_work()
356 mutex_unlock(&iser_conn->state_mutex); in iser_release_work()
409 mutex_lock(&iser_conn->state_mutex); in iser_conn_release()
422 mutex_unlock(&iser_conn->state_mutex); in iser_conn_release()
444 lockdep_assert_held(&iser_conn->state_mutex); in iser_conn_terminate()
482 lockdep_assert_held(&iser_conn->state_mutex); in iser_connect_error()
530 lockdep_assert_held(&iser_conn->state_mutex); in iser_addr_handler()
581 lockdep_assert_held(&iser_conn->state_mutex); in iser_route_handler()
625 lockdep_assert_held(&iser_conn->state_mutex); in iser_connected_handler()
655 lockdep_assert_held(&iser_conn->state_mutex); in iser_cleanup_handler()
[all …]
Discsi_iser.c475 mutex_lock(&iser_conn->state_mutex); in iscsi_iser_conn_bind()
497 mutex_unlock(&iser_conn->state_mutex); in iscsi_iser_conn_bind()
543 mutex_lock(&iser_conn->state_mutex); in iscsi_iser_conn_stop()
554 mutex_unlock(&iser_conn->state_mutex); in iscsi_iser_conn_stop()
634 mutex_lock(&iser_conn->state_mutex); in iscsi_iser_session_create()
638 mutex_unlock(&iser_conn->state_mutex); in iscsi_iser_session_create()
657 mutex_unlock(&iser_conn->state_mutex); in iscsi_iser_session_create()
660 mutex_unlock(&iser_conn->state_mutex); in iscsi_iser_session_create()
851 mutex_lock(&iser_conn->state_mutex); in iscsi_iser_ep_poll()
855 mutex_unlock(&iser_conn->state_mutex); in iscsi_iser_ep_poll()
[all …]
/linux-6.12.1/sound/usb/line6/
Dpcm.c307 mutex_lock(&line6pcm->state_mutex); in line6_pcm_acquire()
324 mutex_unlock(&line6pcm->state_mutex); in line6_pcm_acquire()
337 mutex_lock(&line6pcm->state_mutex); in line6_pcm_release()
344 mutex_unlock(&line6pcm->state_mutex); in line6_pcm_release()
356 mutex_lock(&line6pcm->state_mutex); in snd_line6_hw_params()
364 mutex_unlock(&line6pcm->state_mutex); in snd_line6_hw_params()
374 mutex_lock(&line6pcm->state_mutex); in snd_line6_hw_free()
376 mutex_unlock(&line6pcm->state_mutex); in snd_line6_hw_free()
537 mutex_init(&line6pcm->state_mutex); in line6_init_pcm()
591 mutex_lock(&line6pcm->state_mutex); in snd_line6_prepare()
[all …]
Dpcm.h147 struct mutex state_mutex; member
/linux-6.12.1/arch/powerpc/platforms/cell/spufs/
Dcontext.c40 mutex_init(&ctx->state_mutex); in alloc_spu_context()
74 mutex_lock(&ctx->state_mutex); in destroy_spu_context()
76 mutex_unlock(&ctx->state_mutex); in destroy_spu_context()
109 mutex_lock(&ctx->state_mutex); in spu_forget()
Dsched.c542 mutex_unlock(&ctx->state_mutex); in spu_prio_wait()
544 mutex_lock(&ctx->state_mutex); in spu_prio_wait()
658 if (!mutex_trylock(&victim->state_mutex)) { in find_victim()
671 mutex_unlock(&victim->state_mutex); in find_victim()
689 mutex_unlock(&victim->state_mutex); in find_victim()
725 mutex_lock(&ctx->state_mutex); in spu_schedule()
861 mutex_lock(&ctx->state_mutex); in __spu_deactivate()
895 mutex_lock(&ctx->state_mutex); in spu_yield()
897 mutex_unlock(&ctx->state_mutex); in spu_yield()
1031 WARN_ON(!mutex_is_locked(&ctx->state_mutex)); in spuctx_switch_state()
Dspufs.h82 struct mutex state_mutex; member
261 return mutex_lock_interruptible(&ctx->state_mutex); in spu_acquire()
266 mutex_unlock(&ctx->state_mutex); in spu_release()
Drun.c337 mutex_lock(&ctx->state_mutex); in spu_process_callback()
385 mutex_lock(&ctx->state_mutex); in spufs_run_spu()
/linux-6.12.1/drivers/scsi/cxlflash/
Docxl_hw.c134 mutex_lock(&ctx->state_mutex); in ocxlflash_psa_map()
138 mutex_unlock(&ctx->state_mutex); in ocxlflash_psa_map()
141 mutex_unlock(&ctx->state_mutex); in ocxlflash_psa_map()
340 mutex_lock(&ctx->state_mutex); in start_context()
376 mutex_unlock(&ctx->state_mutex); in start_context()
409 mutex_lock(&ctx->state_mutex); in ocxlflash_stop_context()
412 mutex_unlock(&ctx->state_mutex); in ocxlflash_stop_context()
508 mutex_init(&ctx->state_mutex); in ocxlflash_dev_context_init()
543 mutex_lock(&ctx->state_mutex); in ocxlflash_release_context()
547 mutex_unlock(&ctx->state_mutex); in ocxlflash_release_context()
[all …]
Docxl_hw.h61 struct mutex state_mutex; /* Mutex to update context state */ member
/linux-6.12.1/net/nfc/hci/
Dllc_shdlc.c31 struct mutex state_mutex; member
595 mutex_lock(&shdlc->state_mutex); in llc_shdlc_sm_work()
665 mutex_unlock(&shdlc->state_mutex); in llc_shdlc_sm_work()
676 mutex_lock(&shdlc->state_mutex); in llc_shdlc_connect()
683 mutex_unlock(&shdlc->state_mutex); in llc_shdlc_connect()
694 mutex_lock(&shdlc->state_mutex); in llc_shdlc_disconnect()
698 mutex_unlock(&shdlc->state_mutex); in llc_shdlc_disconnect()
735 mutex_init(&shdlc->state_mutex); in llc_shdlc_init()
/linux-6.12.1/drivers/vfio/pci/mlx5/
Dcmd.c45 lockdep_assert_held(&mvdev->state_mutex); in mlx5vf_cmd_suspend_vhca()
77 lockdep_assert_held(&mvdev->state_mutex); in mlx5vf_cmd_resume_vhca()
97 lockdep_assert_held(&mvdev->state_mutex); in mlx5vf_cmd_query_vhca_migration_state()
179 mutex_lock(&mvdev->state_mutex); in mlx5fv_vf_event()
185 mutex_lock(&mvdev->state_mutex); in mlx5fv_vf_event()
203 mutex_lock(&mvdev->state_mutex); in mlx5vf_cmd_close_migratable()
256 mutex_init(&mvdev->state_mutex); in mlx5vf_cmd_set_migratable()
374 lockdep_assert_held(&mvdev->state_mutex); in mlx5vf_dma_data_buffer()
402 lockdep_assert_held(&migf->mvdev->state_mutex); in mlx5vf_free_data_buffer()
510 lockdep_assert_held(&migf->mvdev->state_mutex); in mlx5vf_get_data_buffer()
[all …]
Dmain.c339 mutex_lock(&mvdev->state_mutex); in mlx5vf_mig_file_save_work()
507 mutex_lock(&mvdev->state_mutex); in mlx5vf_precopy_ioctl()
902 mutex_lock(&migf->mvdev->state_mutex); in mlx5vf_resume_write()
1225 mutex_unlock(&mvdev->state_mutex); in mlx5vf_state_mutex_unlock()
1239 mutex_lock(&mvdev->state_mutex); in mlx5vf_pci_set_device_state()
1270 mutex_lock(&mvdev->state_mutex); in mlx5vf_pci_get_data_size()
1285 mutex_lock(&mvdev->state_mutex); in mlx5vf_pci_get_device_state()
1307 if (!mutex_trylock(&mvdev->state_mutex)) { in mlx5vf_pci_aer_reset_done()
/linux-6.12.1/drivers/vfio/pci/hisilicon/
Dhisi_acc_vfio_pci.c772 mutex_lock(&hisi_acc_vdev->state_mutex); in hisi_acc_vf_precopy_ioctl()
774 mutex_unlock(&hisi_acc_vdev->state_mutex); in hisi_acc_vf_precopy_ioctl()
793 mutex_unlock(&hisi_acc_vdev->state_mutex); in hisi_acc_vf_precopy_ioctl()
798 mutex_unlock(&hisi_acc_vdev->state_mutex); in hisi_acc_vf_precopy_ioctl()
1040 mutex_lock(&hisi_acc_vdev->state_mutex); in hisi_acc_vfio_pci_set_device_state()
1060 mutex_unlock(&hisi_acc_vdev->state_mutex); in hisi_acc_vfio_pci_set_device_state()
1079 mutex_lock(&hisi_acc_vdev->state_mutex); in hisi_acc_vfio_pci_get_device_state()
1081 mutex_unlock(&hisi_acc_vdev->state_mutex); in hisi_acc_vfio_pci_get_device_state()
1093 mutex_lock(&hisi_acc_vdev->state_mutex); in hisi_acc_vf_pci_aer_reset_done()
1095 mutex_unlock(&hisi_acc_vdev->state_mutex); in hisi_acc_vf_pci_aer_reset_done()
[all …]
Dhisi_acc_vfio_pci.h104 struct mutex state_mutex; member
/linux-6.12.1/drivers/net/ethernet/fungible/funeth/
Dfuneth_main.c1226 mutex_lock(&ed->state_mutex); in fun_set_vf_mac()
1237 mutex_unlock(&ed->state_mutex); in fun_set_vf_mac()
1257 mutex_lock(&ed->state_mutex); in fun_set_vf_vlan()
1271 mutex_unlock(&ed->state_mutex); in fun_set_vf_vlan()
1288 mutex_lock(&ed->state_mutex); in fun_set_vf_rate()
1298 mutex_unlock(&ed->state_mutex); in fun_set_vf_rate()
1309 mutex_lock(&ed->state_mutex); in fun_get_vf_config()
1323 mutex_unlock(&ed->state_mutex); in fun_get_vf_config()
1974 mutex_lock(&ed->state_mutex); in funeth_sriov_configure()
1976 mutex_unlock(&ed->state_mutex); in funeth_sriov_configure()
[all …]
/linux-6.12.1/drivers/net/phy/
Dphylink.c75 struct mutex state_mutex; member
1471 mutex_lock(&pl->state_mutex); in phylink_resolve()
1578 mutex_unlock(&pl->state_mutex); in phylink_resolve()
1721 mutex_init(&pl->state_mutex); in phylink_create()
1827 mutex_lock(&pl->state_mutex); in phylink_phy_change()
1840 mutex_unlock(&pl->state_mutex); in phylink_phy_change()
1967 mutex_lock(&pl->state_mutex); in phylink_bringup_phy()
1979 mutex_unlock(&pl->state_mutex); in phylink_bringup_phy()
2149 mutex_lock(&pl->state_mutex); in phylink_disconnect_phy()
2151 mutex_unlock(&pl->state_mutex); in phylink_disconnect_phy()
[all …]
/linux-6.12.1/samples/vfio-mdev/
Dmtty.c169 struct mutex state_mutex; member
818 mutex_unlock(&mdev_state->state_mutex); in mtty_state_mutex_unlock()
853 mutex_lock(&mdev_state->state_mutex); in mtty_precopy_ioctl()
1233 mutex_lock(&mdev_state->state_mutex); in mtty_set_state()
1265 mutex_lock(&mdev_state->state_mutex); in mtty_get_state()
1345 mutex_init(&mdev_state->state_mutex); in mtty_init_dev()
1388 mutex_destroy(&mdev_state->state_mutex); in mtty_release_dev()
1407 if (!mutex_trylock(&mdev_state->state_mutex)) { in mtty_reset()
/linux-6.12.1/drivers/scsi/
Dscsi_sysfs.c820 mutex_lock(&sdev->state_mutex); in store_state_field()
826 mutex_unlock(&sdev->state_mutex); in store_state_field()
836 mutex_unlock(&sdev->state_mutex); in store_state_field()
1478 mutex_lock(&sdev->state_mutex); in __scsi_remove_device()
1490 mutex_unlock(&sdev->state_mutex); in __scsi_remove_device()
1508 mutex_lock(&sdev->state_mutex); in __scsi_remove_device()
1510 mutex_unlock(&sdev->state_mutex); in __scsi_remove_device()
Dscsi_lib.c2748 mutex_lock(&sdev->state_mutex); in scsi_device_quiesce()
2754 mutex_unlock(&sdev->state_mutex); in scsi_device_quiesce()
2775 mutex_lock(&sdev->state_mutex); in scsi_device_resume()
2782 mutex_unlock(&sdev->state_mutex); in scsi_device_resume()
2887 mutex_lock(&sdev->state_mutex); in scsi_device_block()
2898 mutex_unlock(&sdev->state_mutex); in scsi_device_block()
2977 mutex_lock(&sdev->state_mutex); in scsi_internal_device_unblock()
2979 mutex_unlock(&sdev->state_mutex); in scsi_internal_device_unblock()
3060 mutex_lock(&sdev->state_mutex); in scsi_host_block()
3062 mutex_unlock(&sdev->state_mutex); in scsi_host_block()

12