Searched refs:reset_sem (Results 1 – 11 of 11) sorted by relevance
267 if (!down_read_trylock(&adev->reset_sem)) in xgpu_nv_mailbox_flr_work()282 up_read(&adev->reset_sem); in xgpu_nv_mailbox_flr_work()
246 if (!down_read_trylock(&adev->reset_sem)) in xgpu_ai_mailbox_flr_work()261 up_read(&adev->reset_sem); in xgpu_ai_mailbox_flr_work()
749 down_read_trylock(&adev->reset_sem)) { in gmc_v9_0_flush_gpu_tlb()755 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb()849 if (ring->sched.ready && down_read_trylock(&adev->reset_sem)) { in gmc_v9_0_flush_gpu_tlb_pasid()876 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb_pasid()885 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb_pasid()888 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb_pasid()
104 ret = down_read_killable(&adev->reset_sem); in amdgpu_debugfs_autodump_open()115 up_read(&adev->reset_sem); in amdgpu_debugfs_autodump_open()1261 r = down_read_killable(&adev->reset_sem); in amdgpu_debugfs_test_ib()1290 up_read(&adev->reset_sem); in amdgpu_debugfs_test_ib()1480 r = down_read_killable(&adev->reset_sem); in amdgpu_debugfs_ib_preempt()1523 up_read(&adev->reset_sem); in amdgpu_debugfs_ib_preempt()
328 down_read_trylock(&adev->reset_sem)) { in amdgpu_device_rreg()330 up_read(&adev->reset_sem); in amdgpu_device_rreg()413 down_read_trylock(&adev->reset_sem)) { in amdgpu_device_wreg()415 up_read(&adev->reset_sem); in amdgpu_device_wreg()3246 init_rwsem(&adev->reset_sem); in amdgpu_device_init()4411 down_write_nest_lock(&adev->reset_sem, &hive->hive_lock); in amdgpu_device_lock_adev()4413 down_write(&adev->reset_sem); in amdgpu_device_lock_adev()4437 up_write(&adev->reset_sem); in amdgpu_device_unlock_adev()
290 down_read_trylock(&adev->reset_sem)) { in gmc_v10_0_flush_gpu_tlb()300 up_read(&adev->reset_sem); in gmc_v10_0_flush_gpu_tlb()
964 struct rw_semaphore reset_sem; member
284 struct semaphore reset_sem; /* protect reset process */ member
2059 down(&hdev->reset_sem); in hclgevf_flr_prepare()2072 up(&hdev->reset_sem); in hclgevf_flr_prepare()2097 up(&hdev->reset_sem); in hclgevf_flr_done()2153 down(&hdev->reset_sem); in hclgevf_reset_service_task()2212 up(&hdev->reset_sem); in hclgevf_reset_service_task()2662 sema_init(&hdev->reset_sem, 1); in hclgevf_state_init()
739 struct semaphore reset_sem; /* protect reset process */ member
4035 down(&hdev->reset_sem); in hclge_reset_service_task()4041 up(&hdev->reset_sem); in hclge_reset_service_task()10015 down(&hdev->reset_sem); in hclge_flr_prepare()10028 up(&hdev->reset_sem); in hclge_flr_prepare()10053 up(&hdev->reset_sem); in hclge_flr_done()10116 sema_init(&hdev->reset_sem, 1); in hclge_init_ae_dev()