Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ras_eeprom.c196 down_read(&adev->reset_sem); in __write_table_header()
201 up_read(&adev->reset_sem); in __write_table_header()
390 down_read(&adev->reset_sem); in __amdgpu_ras_eeprom_write()
396 up_read(&adev->reset_sem); in __amdgpu_ras_eeprom_write()
550 down_read(&adev->reset_sem); in amdgpu_ras_eeprom_update_header()
555 up_read(&adev->reset_sem); in amdgpu_ras_eeprom_update_header()
645 down_read(&adev->reset_sem); in __amdgpu_ras_eeprom_read()
651 up_read(&adev->reset_sem); in __amdgpu_ras_eeprom_read()
A Dmxgpu_ai.c255 if (!down_write_trylock(&adev->reset_sem)) in xgpu_ai_mailbox_flr_work()
273 up_write(&adev->reset_sem); in xgpu_ai_mailbox_flr_work()
A Dmxgpu_nv.c284 if (!down_write_trylock(&adev->reset_sem)) in xgpu_nv_mailbox_flr_work()
302 up_write(&adev->reset_sem); in xgpu_nv_mailbox_flr_work()
A Dgmc_v9_0.c769 down_read_trylock(&adev->reset_sem)) { in gmc_v9_0_flush_gpu_tlb()
775 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb()
871 if (ring->sched.ready && down_read_trylock(&adev->reset_sem)) { in gmc_v9_0_flush_gpu_tlb_pasid()
898 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb_pasid()
907 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb_pasid()
910 up_read(&adev->reset_sem); in gmc_v9_0_flush_gpu_tlb_pasid()
A Damdgpu_device.c426 if (down_read_trylock(&adev->reset_sem)) in amdgpu_device_skip_hw_access()
427 up_read(&adev->reset_sem); in amdgpu_device_skip_hw_access()
429 lockdep_assert_held(&adev->reset_sem); in amdgpu_device_skip_hw_access()
455 down_read_trylock(&adev->reset_sem)) { in amdgpu_device_rreg()
457 up_read(&adev->reset_sem); in amdgpu_device_rreg()
540 down_read_trylock(&adev->reset_sem)) { in amdgpu_device_wreg()
542 up_read(&adev->reset_sem); in amdgpu_device_wreg()
3460 init_rwsem(&adev->reset_sem); in amdgpu_device_init()
4714 down_write_nest_lock(&adev->reset_sem, &hive->hive_lock); in amdgpu_device_lock_adev()
4716 down_write(&adev->reset_sem); in amdgpu_device_lock_adev()
[all …]
A Damdgpu_debugfs.c1282 r = down_write_killable(&adev->reset_sem); in amdgpu_debugfs_test_ib_show()
1311 up_write(&adev->reset_sem); in amdgpu_debugfs_test_ib_show()
1520 r = down_read_killable(&adev->reset_sem); in amdgpu_debugfs_ib_preempt()
1563 up_read(&adev->reset_sem); in amdgpu_debugfs_ib_preempt()
A Dgmc_v10_0.c331 down_read_trylock(&adev->reset_sem)) { in gmc_v10_0_flush_gpu_tlb()
341 up_read(&adev->reset_sem); in gmc_v10_0_flush_gpu_tlb()
A Damdgpu.h1059 struct rw_semaphore reset_sem; member
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
A Dhclgevf_main.h290 struct semaphore reset_sem; /* protect reset process */ member
A Dhclgevf_main.c2167 down(&hdev->reset_sem); in hclgevf_reset_prepare_general()
2180 up(&hdev->reset_sem); in hclgevf_reset_prepare_general()
2207 up(&hdev->reset_sem); in hclgevf_reset_done()
2264 down(&hdev->reset_sem); in hclgevf_reset_service_task()
2323 up(&hdev->reset_sem); in hclgevf_reset_service_task()
2775 sema_init(&hdev->reset_sem, 1); in hclgevf_state_init()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.h876 struct semaphore reset_sem; /* protect reset process */ member
A Dhclge_main.c4483 down(&hdev->reset_sem); in hclge_reset_service_task()
4489 up(&hdev->reset_sem); in hclge_reset_service_task()
11560 down(&hdev->reset_sem); in hclge_reset_prepare_general()
11573 up(&hdev->reset_sem); in hclge_reset_prepare_general()
11600 up(&hdev->reset_sem); in hclge_reset_done()
11675 sema_init(&hdev->reset_sem, 1); in hclge_init_ae_dev()

Completed in 85 milliseconds