Home
last modified time | relevance | path

Searched refs:reset_sem (Results 1 – 11 of 11) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
Dmxgpu_nv.c267 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()
Dmxgpu_ai.c246 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()
Dgmc_v9_0.c749 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()
Damdgpu_debugfs.c104 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()
Damdgpu_device.c328 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()
Dgmc_v10_0.c290 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()
Damdgpu.h964 struct rw_semaphore reset_sem; member
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.h284 struct semaphore reset_sem; /* protect reset process */ member
Dhclgevf_main.c2059 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()
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h739 struct semaphore reset_sem; /* protect reset process */ member
Dhclge_main.c4035 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()