Lines Matching defs:adev

145 	struct amdgpu_device *adev = drm_to_adev(ddev);  in amdgpu_device_get_pcie_replay_count()  local
170 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_product_name() local
192 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_product_number() local
214 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_serial_number() local
232 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_supports_px() local
249 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_supports_boco() local
267 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_supports_baco() local
300 void amdgpu_device_mm_access(struct amdgpu_device *adev, loff_t pos, in amdgpu_device_mm_access()
344 size_t amdgpu_device_aper_access(struct amdgpu_device *adev, loff_t pos, in amdgpu_device_aper_access()
387 void amdgpu_device_vram_access(struct amdgpu_device *adev, loff_t pos, in amdgpu_device_vram_access()
408 bool amdgpu_device_skip_hw_access(struct amdgpu_device *adev) in amdgpu_device_skip_hw_access()
444 uint32_t amdgpu_device_rreg(struct amdgpu_device *adev, in amdgpu_device_rreg()
484 uint8_t amdgpu_mm_rreg8(struct amdgpu_device *adev, uint32_t offset) in amdgpu_mm_rreg8()
509 void amdgpu_mm_wreg8(struct amdgpu_device *adev, uint32_t offset, uint8_t value) in amdgpu_mm_wreg8()
530 void amdgpu_device_wreg(struct amdgpu_device *adev, in amdgpu_device_wreg()
558 void amdgpu_mm_wreg_mmio_rlc(struct amdgpu_device *adev, in amdgpu_mm_wreg_mmio_rlc()
583 u32 amdgpu_mm_rdoorbell(struct amdgpu_device *adev, u32 index) in amdgpu_mm_rdoorbell()
606 void amdgpu_mm_wdoorbell(struct amdgpu_device *adev, u32 index, u32 v) in amdgpu_mm_wdoorbell()
627 u64 amdgpu_mm_rdoorbell64(struct amdgpu_device *adev, u32 index) in amdgpu_mm_rdoorbell64()
650 void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v) in amdgpu_mm_wdoorbell64()
672 u32 amdgpu_device_indirect_rreg(struct amdgpu_device *adev, in amdgpu_device_indirect_rreg()
703 u64 amdgpu_device_indirect_rreg64(struct amdgpu_device *adev, in amdgpu_device_indirect_rreg64()
739 void amdgpu_device_indirect_wreg(struct amdgpu_device *adev, in amdgpu_device_indirect_wreg()
768 void amdgpu_device_indirect_wreg64(struct amdgpu_device *adev, in amdgpu_device_indirect_wreg64()
803 static uint32_t amdgpu_invalid_rreg(struct amdgpu_device *adev, uint32_t reg) in amdgpu_invalid_rreg()
820 static void amdgpu_invalid_wreg(struct amdgpu_device *adev, uint32_t reg, uint32_t v) in amdgpu_invalid_wreg()
837 static uint64_t amdgpu_invalid_rreg64(struct amdgpu_device *adev, uint32_t reg) in amdgpu_invalid_rreg64()
854 static void amdgpu_invalid_wreg64(struct amdgpu_device *adev, uint32_t reg, uint64_t v) in amdgpu_invalid_wreg64()
872 static uint32_t amdgpu_block_invalid_rreg(struct amdgpu_device *adev, in amdgpu_block_invalid_rreg()
892 static void amdgpu_block_invalid_wreg(struct amdgpu_device *adev, in amdgpu_block_invalid_wreg()
908 static int amdgpu_device_asic_init(struct amdgpu_device *adev) in amdgpu_device_asic_init()
923 static int amdgpu_device_vram_scratch_init(struct amdgpu_device *adev) in amdgpu_device_vram_scratch_init()
939 static void amdgpu_device_vram_scratch_fini(struct amdgpu_device *adev) in amdgpu_device_vram_scratch_fini()
954 void amdgpu_device_program_register_sequence(struct amdgpu_device *adev, in amdgpu_device_program_register_sequence()
991 void amdgpu_device_pci_config_reset(struct amdgpu_device *adev) in amdgpu_device_pci_config_reset()
1003 int amdgpu_device_pci_reset(struct amdgpu_device *adev) in amdgpu_device_pci_reset()
1019 static int amdgpu_device_doorbell_init(struct amdgpu_device *adev) in amdgpu_device_doorbell_init()
1070 static void amdgpu_device_doorbell_fini(struct amdgpu_device *adev) in amdgpu_device_doorbell_fini()
1092 static void amdgpu_device_wb_fini(struct amdgpu_device *adev) in amdgpu_device_wb_fini()
1111 static int amdgpu_device_wb_init(struct amdgpu_device *adev) in amdgpu_device_wb_init()
1145 int amdgpu_device_wb_get(struct amdgpu_device *adev, u32 *wb) in amdgpu_device_wb_get()
1166 void amdgpu_device_wb_free(struct amdgpu_device *adev, u32 wb) in amdgpu_device_wb_free()
1182 int amdgpu_device_resize_fb_bar(struct amdgpu_device *adev) in amdgpu_device_resize_fb_bar()
1263 bool amdgpu_device_need_post(struct amdgpu_device *adev) in amdgpu_device_need_post()
1325 struct amdgpu_device *adev = drm_to_adev(pci_get_drvdata(pdev)); in amdgpu_device_vga_set_decode() local
1344 static void amdgpu_device_check_block_size(struct amdgpu_device *adev) in amdgpu_device_check_block_size()
1367 static void amdgpu_device_check_vm_size(struct amdgpu_device *adev) in amdgpu_device_check_vm_size()
1380 static void amdgpu_device_check_smu_prv_buffer_size(struct amdgpu_device *adev) in amdgpu_device_check_smu_prv_buffer_size()
1420 static int amdgpu_device_init_apu_flags(struct amdgpu_device *adev) in amdgpu_device_init_apu_flags()
1464 static int amdgpu_device_check_arguments(struct amdgpu_device *adev) in amdgpu_device_check_arguments()
1607 struct amdgpu_device *adev = dev; in amdgpu_device_ip_set_clockgating_state() local
1641 struct amdgpu_device *adev = dev; in amdgpu_device_ip_set_powergating_state() local
1671 void amdgpu_device_ip_get_clockgating_state(struct amdgpu_device *adev, in amdgpu_device_ip_get_clockgating_state()
1693 int amdgpu_device_ip_wait_for_idle(struct amdgpu_device *adev, in amdgpu_device_ip_wait_for_idle()
1721 bool amdgpu_device_ip_is_idle(struct amdgpu_device *adev, in amdgpu_device_ip_is_idle()
1746 amdgpu_device_ip_get_ip_block(struct amdgpu_device *adev, in amdgpu_device_ip_get_ip_block()
1769 int amdgpu_device_ip_block_version_cmp(struct amdgpu_device *adev, in amdgpu_device_ip_block_version_cmp()
1792 int amdgpu_device_ip_block_add(struct amdgpu_device *adev, in amdgpu_device_ip_block_add()
1831 static void amdgpu_device_enable_virtual_display(struct amdgpu_device *adev) in amdgpu_device_enable_virtual_display()
1885 static int amdgpu_device_parse_gpu_info_fw(struct amdgpu_device *adev) in amdgpu_device_parse_gpu_info_fw()
2071 static int amdgpu_device_ip_early_init(struct amdgpu_device *adev) in amdgpu_device_ip_early_init()
2196 static int amdgpu_device_ip_hw_init_phase1(struct amdgpu_device *adev) in amdgpu_device_ip_hw_init_phase1()
2221 static int amdgpu_device_ip_hw_init_phase2(struct amdgpu_device *adev) in amdgpu_device_ip_hw_init_phase2()
2242 static int amdgpu_device_fw_loading(struct amdgpu_device *adev) in amdgpu_device_fw_loading()
2298 static int amdgpu_device_ip_init(struct amdgpu_device *adev) in amdgpu_device_ip_init()
2419 static void amdgpu_device_fill_reset_magic(struct amdgpu_device *adev) in amdgpu_device_fill_reset_magic()
2434 static bool amdgpu_device_check_vram_lost(struct amdgpu_device *adev) in amdgpu_device_check_vram_lost()
2469 int amdgpu_device_set_cg_state(struct amdgpu_device *adev, in amdgpu_device_set_cg_state()
2505 int amdgpu_device_set_pg_state(struct amdgpu_device *adev, in amdgpu_device_set_pg_state()
2543 struct amdgpu_device *adev; in amdgpu_device_enable_mgpu_fan_boost() local
2587 static int amdgpu_device_ip_late_init(struct amdgpu_device *adev) in amdgpu_device_ip_late_init()
2660 static int amdgpu_device_ip_fini_early(struct amdgpu_device *adev) in amdgpu_device_ip_fini_early()
2729 static int amdgpu_device_ip_fini(struct amdgpu_device *adev) in amdgpu_device_ip_fini()
2785 struct amdgpu_device *adev = in amdgpu_device_delayed_init_work_handler() local
2796 struct amdgpu_device *adev = in amdgpu_device_delay_enable_gfx_off() local
2817 static int amdgpu_device_ip_suspend_phase1(struct amdgpu_device *adev) in amdgpu_device_ip_suspend_phase1()
2858 static int amdgpu_device_ip_suspend_phase2(struct amdgpu_device *adev) in amdgpu_device_ip_suspend_phase2()
2933 int amdgpu_device_ip_suspend(struct amdgpu_device *adev) in amdgpu_device_ip_suspend()
2953 static int amdgpu_device_ip_reinit_early_sriov(struct amdgpu_device *adev) in amdgpu_device_ip_reinit_early_sriov()
2988 static int amdgpu_device_ip_reinit_late_sriov(struct amdgpu_device *adev) in amdgpu_device_ip_reinit_late_sriov()
3041 static int amdgpu_device_ip_resume_phase1(struct amdgpu_device *adev) in amdgpu_device_ip_resume_phase1()
3078 static int amdgpu_device_ip_resume_phase2(struct amdgpu_device *adev) in amdgpu_device_ip_resume_phase2()
3114 static int amdgpu_device_ip_resume(struct amdgpu_device *adev) in amdgpu_device_ip_resume()
3142 static void amdgpu_device_detect_sriov_bios(struct amdgpu_device *adev) in amdgpu_device_detect_sriov_bios()
3249 bool amdgpu_device_has_dc_support(struct amdgpu_device *adev) in amdgpu_device_has_dc_support()
3261 struct amdgpu_device *adev = in amdgpu_device_xgmi_reset_func() local
3305 static int amdgpu_device_get_job_timeout_settings(struct amdgpu_device *adev) in amdgpu_device_get_job_timeout_settings()
3394 int amdgpu_device_init(struct amdgpu_device *adev, in amdgpu_device_init()
3792 static void amdgpu_device_unmap_mmio(struct amdgpu_device *adev) in amdgpu_device_unmap_mmio()
3821 void amdgpu_device_fini_hw(struct amdgpu_device *adev) in amdgpu_device_fini_hw()
3868 void amdgpu_device_fini_sw(struct amdgpu_device *adev) in amdgpu_device_fini_sw()
3912 static void amdgpu_device_evict_resources(struct amdgpu_device *adev) in amdgpu_device_evict_resources()
3938 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_suspend() local
3988 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_resume() local
4071 static bool amdgpu_device_ip_check_soft_reset(struct amdgpu_device *adev) in amdgpu_device_ip_check_soft_reset()
4107 static int amdgpu_device_ip_pre_soft_reset(struct amdgpu_device *adev) in amdgpu_device_ip_pre_soft_reset()
4134 static bool amdgpu_device_ip_need_full_reset(struct amdgpu_device *adev) in amdgpu_device_ip_need_full_reset()
4169 static int amdgpu_device_ip_soft_reset(struct amdgpu_device *adev) in amdgpu_device_ip_soft_reset()
4198 static int amdgpu_device_ip_post_soft_reset(struct amdgpu_device *adev) in amdgpu_device_ip_post_soft_reset()
4227 static int amdgpu_device_recover_vram(struct amdgpu_device *adev) in amdgpu_device_recover_vram()
4293 static int amdgpu_device_reset_sriov(struct amdgpu_device *adev, in amdgpu_device_reset_sriov()
4346 bool amdgpu_device_has_job_running(struct amdgpu_device *adev) in amdgpu_device_has_job_running()
4375 bool amdgpu_device_should_recover_gpu(struct amdgpu_device *adev) in amdgpu_device_should_recover_gpu()
4427 int amdgpu_device_mode1_reset(struct amdgpu_device *adev) in amdgpu_device_mode1_reset()
4467 int amdgpu_device_pre_asic_reset(struct amdgpu_device *adev, in amdgpu_device_pre_asic_reset()
4707 static bool amdgpu_device_lock_adev(struct amdgpu_device *adev, in amdgpu_device_lock_adev()
4734 static void amdgpu_device_unlock_adev(struct amdgpu_device *adev) in amdgpu_device_unlock_adev()
4748 static int amdgpu_device_lock_hive_adev(struct amdgpu_device *adev, struct amdgpu_hive_info *hive) in amdgpu_device_lock_hive_adev()
4782 static void amdgpu_device_resume_display_audio(struct amdgpu_device *adev) in amdgpu_device_resume_display_audio()
4794 static int amdgpu_device_suspend_display_audio(struct amdgpu_device *adev) in amdgpu_device_suspend_display_audio()
4841 struct amdgpu_device *adev, struct list_head *device_list_handle, in amdgpu_device_recheck_guilty_jobs()
4923 int amdgpu_device_gpu_recover(struct amdgpu_device *adev, in amdgpu_device_gpu_recover()
5190 static void amdgpu_device_get_pcie_info(struct amdgpu_device *adev) in amdgpu_device_get_pcie_info()
5331 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_baco_enter() local
5346 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_baco_exit() local
5368 static void amdgpu_cancel_all_tdr(struct amdgpu_device *adev) in amdgpu_cancel_all_tdr()
5394 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_pci_error_detected() local
5473 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_pci_slot_reset() local
5542 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_pci_resume() local
5569 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_cache_pci_state() local
5593 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_load_pci_state() local
5611 void amdgpu_device_flush_hdp(struct amdgpu_device *adev, in amdgpu_device_flush_hdp()
5627 void amdgpu_device_invalidate_hdp(struct amdgpu_device *adev, in amdgpu_device_invalidate_hdp()