| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_amdkfd.c | 74 void amdgpu_amdkfd_device_probe(struct amdgpu_device *adev) in amdgpu_amdkfd_device_probe() 97 static void amdgpu_doorbell_get_kfd_info(struct amdgpu_device *adev, in amdgpu_doorbell_get_kfd_info() 131 struct amdgpu_device *adev = container_of(work, struct amdgpu_device, in amdgpu_amdkfd_reset_work() local 152 int amdgpu_amdkfd_drm_client_create(struct amdgpu_device *adev) in amdgpu_amdkfd_drm_client_create() 172 void amdgpu_amdkfd_device_init(struct amdgpu_device *adev) in amdgpu_amdkfd_device_init() 239 void amdgpu_amdkfd_device_fini_sw(struct amdgpu_device *adev) in amdgpu_amdkfd_device_fini_sw() 248 void amdgpu_amdkfd_interrupt(struct amdgpu_device *adev, in amdgpu_amdkfd_interrupt() 255 void amdgpu_amdkfd_teardown_processes(struct amdgpu_device *adev) in amdgpu_amdkfd_teardown_processes() 260 void amdgpu_amdkfd_suspend(struct amdgpu_device *adev, bool suspend_proc) in amdgpu_amdkfd_suspend() 270 int amdgpu_amdkfd_resume(struct amdgpu_device *adev, bool resume_proc) in amdgpu_amdkfd_resume() [all …]
|
| H A D | soc24.c | 74 static int soc24_query_video_codecs(struct amdgpu_device *adev, bool encode, in soc24_query_video_codecs() 92 static u32 soc24_get_config_memsize(struct amdgpu_device *adev) in soc24_get_config_memsize() 97 static u32 soc24_get_xclk(struct amdgpu_device *adev) in soc24_get_xclk() 102 void soc24_grbm_select(struct amdgpu_device *adev, in soc24_grbm_select() 136 static uint32_t soc24_get_register_value(struct amdgpu_device *adev, in soc24_get_register_value() 150 static int soc24_read_register(struct amdgpu_device *adev, u32 se_num, in soc24_read_register() 174 soc24_asic_reset_method(struct amdgpu_device *adev) in soc24_asic_reset_method() 198 static int soc24_asic_reset(struct amdgpu_device *adev) in soc24_asic_reset() 224 static void soc24_program_aspm(struct amdgpu_device *adev) in soc24_program_aspm() 242 static bool soc24_need_reset_on_init(struct amdgpu_device *adev) in soc24_need_reset_on_init() [all …]
|
| H A D | vce_v2_0.c | 62 struct amdgpu_device *adev = ring->adev; in vce_v2_0_ring_get_rptr() local 79 struct amdgpu_device *adev = ring->adev; in vce_v2_0_ring_get_wptr() local 96 struct amdgpu_device *adev = ring->adev; in vce_v2_0_ring_set_wptr() local 104 static int vce_v2_0_lmi_clean(struct amdgpu_device *adev) in vce_v2_0_lmi_clean() 121 static int vce_v2_0_firmware_loaded(struct amdgpu_device *adev) in vce_v2_0_firmware_loaded() 147 static void vce_v2_0_disable_cg(struct amdgpu_device *adev) in vce_v2_0_disable_cg() 152 static void vce_v2_0_init_cg(struct amdgpu_device *adev) in vce_v2_0_init_cg() 173 static void vce_v2_0_mc_resume(struct amdgpu_device *adev) in vce_v2_0_mc_resume() 211 struct amdgpu_device *adev = ip_block->adev; in vce_v2_0_is_idle() local 218 struct amdgpu_device *adev = ip_block->adev; in vce_v2_0_wait_for_idle() local [all …]
|
| H A D | gfx_v11_0.c | 371 struct amdgpu_device *adev = kiq_ring->adev; in gfx11_kiq_set_resources() local 437 struct amdgpu_device *adev = kiq_ring->adev; in gfx11_kiq_unmap_queues() local 507 static void gfx_v11_0_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v11_0_set_kiq_pm4_funcs() 512 static void gfx_v11_0_init_golden_registers(struct amdgpu_device *adev) in gfx_v11_0_init_golden_registers() 583 struct amdgpu_device *adev = ring->adev; in gfx_v11_0_ring_test_ring() local 624 struct amdgpu_device *adev = ring->adev; in gfx_v11_0_ring_test_ib() local 684 static void gfx_v11_0_free_microcode(struct amdgpu_device *adev) in gfx_v11_0_free_microcode() 694 static int gfx_v11_0_init_toc_microcode(struct amdgpu_device *adev, const char *ucode_prefix) in gfx_v11_0_init_toc_microcode() 717 static void gfx_v11_0_check_fw_cp_gfx_shadow(struct amdgpu_device *adev) in gfx_v11_0_check_fw_cp_gfx_shadow() 738 static int gfx_v11_0_init_microcode(struct amdgpu_device *adev) in gfx_v11_0_init_microcode() [all …]
|
| H A D | gfx_v12_0.c | 355 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v12_0_kiq_unmap_queues() local 425 static void gfx_v12_0_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v12_0_set_kiq_pm4_funcs() 454 struct amdgpu_device *adev = ring->adev; in gfx_v12_0_ring_test_ring() local 496 struct amdgpu_device *adev = ring->adev; in gfx_v12_0_ring_test_ib() local 556 static void gfx_v12_0_free_microcode(struct amdgpu_device *adev) in gfx_v12_0_free_microcode() 566 static int gfx_v12_0_init_toc_microcode(struct amdgpu_device *adev, const char *ucode_prefix) in gfx_v12_0_init_toc_microcode() 589 static int gfx_v12_0_init_microcode(struct amdgpu_device *adev) in gfx_v12_0_init_microcode() 677 static u32 gfx_v12_0_get_csb_size(struct amdgpu_device *adev) in gfx_v12_0_get_csb_size() 696 static void gfx_v12_0_get_csb_buffer(struct amdgpu_device *adev, u32 *buffer) in gfx_v12_0_get_csb_buffer() 726 static void gfx_v12_0_rlc_fini(struct amdgpu_device *adev) in gfx_v12_0_rlc_fini() [all …]
|
| H A D | gfx_v10_0.c | 3709 struct amdgpu_device *adev = kiq_ring->adev; in gfx10_kiq_set_resources() local 3825 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v10_0_kiq_reset_hw_queue() local 3887 static void gfx_v10_0_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v10_0_set_kiq_pm4_funcs() 3892 static void gfx_v10_0_init_spm_golden_registers(struct amdgpu_device *adev) in gfx_v10_0_init_spm_golden_registers() 3915 static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev) in gfx_v10_0_init_golden_registers() 4035 struct amdgpu_device *adev = ring->adev; in gfx_v10_0_ring_test_ring() local 4073 struct amdgpu_device *adev = ring->adev; in gfx_v10_0_ring_test_ib() local 4128 static void gfx_v10_0_free_microcode(struct amdgpu_device *adev) in gfx_v10_0_free_microcode() 4140 static void gfx_v10_0_check_fw_write_wait(struct amdgpu_device *adev) in gfx_v10_0_check_fw_write_wait() 4176 static bool gfx_v10_0_navi10_gfxoff_should_enable(struct amdgpu_device *adev) in gfx_v10_0_navi10_gfxoff_should_enable() [all …]
|
| H A D | gmc_v11_0.c | 53 static int gmc_v11_0_ecc_interrupt_state(struct amdgpu_device *adev, in gmc_v11_0_ecc_interrupt_state() 62 gmc_v11_0_vm_fault_interrupt_state(struct amdgpu_device *adev, in gmc_v11_0_vm_fault_interrupt_state() 99 static int gmc_v11_0_process_interrupt(struct amdgpu_device *adev, in gmc_v11_0_process_interrupt() 176 static void gmc_v11_0_set_irq_funcs(struct amdgpu_device *adev) in gmc_v11_0_set_irq_funcs() 194 static bool gmc_v11_0_use_invalidate_semaphore(struct amdgpu_device *adev, in gmc_v11_0_use_invalidate_semaphore() 202 struct amdgpu_device *adev, in gmc_v11_0_get_vmid_pasid_mapping_info() 220 static void gmc_v11_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, in gmc_v11_0_flush_gpu_tlb() 324 static void gmc_v11_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev, in gmc_v11_0_flush_gpu_tlb_pasid() 402 struct amdgpu_device *adev = ring->adev; in gmc_v11_0_emit_pasid_mapping() local 445 static void gmc_v11_0_get_vm_pde(struct amdgpu_device *adev, int level, in gmc_v11_0_get_vm_pde() [all …]
|
| H A D | gfx_v12_1.c | 275 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v12_1_kiq_unmap_queues() local 345 static void gfx_v12_1_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v12_1_set_kiq_pm4_funcs() 382 struct amdgpu_device *adev = ring->adev; in gfx_v12_1_ring_test_ring() local 429 struct amdgpu_device *adev = ring->adev; in gfx_v12_1_ring_test_ib() local 489 static void gfx_v12_1_free_microcode(struct amdgpu_device *adev) in gfx_v12_1_free_microcode() 497 static int gfx_v12_1_init_toc_microcode(struct amdgpu_device *adev, const char *ucode_prefix) in gfx_v12_1_init_toc_microcode() 520 static int gfx_v12_1_init_microcode(struct amdgpu_device *adev) in gfx_v12_1_init_microcode() 586 static u32 gfx_v12_1_get_csb_size(struct amdgpu_device *adev) in gfx_v12_1_get_csb_size() 605 static void gfx_v12_1_get_csb_buffer(struct amdgpu_device *adev, u32 *buffer) in gfx_v12_1_get_csb_buffer() 635 static void gfx_v12_1_rlc_fini(struct amdgpu_device *adev) in gfx_v12_1_rlc_fini() [all …]
|
| H A D | gfx_v9_4_3.c | 177 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_4_3_kiq_set_resources() local 201 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_4_3_kiq_map_queues() local 294 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_4_3_kiq_reset_hw_queue() local 337 static void gfx_v9_4_3_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v9_4_3_set_kiq_pm4_funcs() 346 static void gfx_v9_4_3_init_golden_registers(struct amdgpu_device *adev) in gfx_v9_4_3_init_golden_registers() 418 struct amdgpu_device *adev = ring->adev; in gfx_v9_4_3_ring_test_ring() local 452 struct amdgpu_device *adev = ring->adev; in gfx_v9_4_3_ring_test_ib() local 508 static uint64_t gfx_v9_4_3_get_gpu_clock_counter(struct amdgpu_device *adev) in gfx_v9_4_3_get_gpu_clock_counter() 521 static void gfx_v9_4_3_free_microcode(struct amdgpu_device *adev) in gfx_v9_4_3_free_microcode() 533 static int gfx_v9_4_3_init_rlc_microcode(struct amdgpu_device *adev, in gfx_v9_4_3_init_rlc_microcode() [all …]
|
| H A D | gfxhub_v2_1.c | 79 gfxhub_v2_1_print_l2_protection_fault_status(struct amdgpu_device *adev, in gfxhub_v2_1_print_l2_protection_fault_status() 108 static u64 gfxhub_v2_1_get_fb_location(struct amdgpu_device *adev) in gfxhub_v2_1_get_fb_location() 118 static u64 gfxhub_v2_1_get_mc_fb_offset(struct amdgpu_device *adev) in gfxhub_v2_1_get_mc_fb_offset() 123 static void gfxhub_v2_1_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, in gfxhub_v2_1_setup_vm_pt_regs() 137 static void gfxhub_v2_1_init_gart_aperture_regs(struct amdgpu_device *adev) in gfxhub_v2_1_init_gart_aperture_regs() 154 static void gfxhub_v2_1_init_system_aperture_regs(struct amdgpu_device *adev) in gfxhub_v2_1_init_system_aperture_regs() 190 static void gfxhub_v2_1_init_tlb_regs(struct amdgpu_device *adev) in gfxhub_v2_1_init_tlb_regs() 209 static void gfxhub_v2_1_init_cache_regs(struct amdgpu_device *adev) in gfxhub_v2_1_init_cache_regs() 260 static void gfxhub_v2_1_enable_system_domain(struct amdgpu_device *adev) in gfxhub_v2_1_enable_system_domain() 272 static void gfxhub_v2_1_disable_identity_aperture(struct amdgpu_device *adev) in gfxhub_v2_1_disable_identity_aperture() [all …]
|
| H A D | gfx_v8_0.c | 736 static void gfx_v8_0_init_golden_registers(struct amdgpu_device *adev) in gfx_v8_0_init_golden_registers() 840 struct amdgpu_device *adev = ring->adev; in gfx_v8_0_ring_test_ring() local 870 struct amdgpu_device *adev = ring->adev; in gfx_v8_0_ring_test_ib() local 925 static void gfx_v8_0_free_microcode(struct amdgpu_device *adev) in gfx_v8_0_free_microcode() 939 static int gfx_v8_0_init_microcode(struct amdgpu_device *adev) in gfx_v8_0_init_microcode() 1224 static void gfx_v8_0_get_csb_buffer(struct amdgpu_device *adev, u32 *buffer) in gfx_v8_0_get_csb_buffer() 1244 static int gfx_v8_0_cp_jump_table_num(struct amdgpu_device *adev) in gfx_v8_0_cp_jump_table_num() 1252 static int gfx_v8_0_rlc_init(struct amdgpu_device *adev) in gfx_v8_0_rlc_init() 1283 static void gfx_v8_0_mec_fini(struct amdgpu_device *adev) in gfx_v8_0_mec_fini() 1288 static int gfx_v8_0_mec_init(struct amdgpu_device *adev) in gfx_v8_0_mec_init() [all …]
|
| H A D | mmhub_v1_0.c | 37 static u64 mmhub_v1_0_get_fb_location(struct amdgpu_device *adev) in mmhub_v1_0_get_fb_location() 54 static void mmhub_v1_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, in mmhub_v1_0_setup_vm_pt_regs() 68 static void mmhub_v1_0_init_gart_aperture_regs(struct amdgpu_device *adev) in mmhub_v1_0_init_gart_aperture_regs() 85 static void mmhub_v1_0_init_system_aperture_regs(struct amdgpu_device *adev) in mmhub_v1_0_init_system_aperture_regs() 137 static void mmhub_v1_0_init_tlb_regs(struct amdgpu_device *adev) in mmhub_v1_0_init_tlb_regs() 157 static void mmhub_v1_0_init_cache_regs(struct amdgpu_device *adev) in mmhub_v1_0_init_cache_regs() 199 static void mmhub_v1_0_enable_system_domain(struct amdgpu_device *adev) in mmhub_v1_0_enable_system_domain() 211 static void mmhub_v1_0_disable_identity_aperture(struct amdgpu_device *adev) in mmhub_v1_0_disable_identity_aperture() 232 static void mmhub_v1_0_init_saw(struct amdgpu_device *adev) in mmhub_v1_0_init_saw() 278 static void mmhub_v1_0_setup_vmid_config(struct amdgpu_device *adev) in mmhub_v1_0_setup_vmid_config() [all …]
|
| H A D | amdgpu_gfx.c | 50 int amdgpu_gfx_mec_queue_to_bit(struct amdgpu_device *adev, int mec, in amdgpu_gfx_mec_queue_to_bit() 63 void amdgpu_queue_mask_bit_to_mec_queue(struct amdgpu_device *adev, int bit, in amdgpu_queue_mask_bit_to_mec_queue() 74 bool amdgpu_gfx_is_mec_queue_enabled(struct amdgpu_device *adev, in amdgpu_gfx_is_mec_queue_enabled() 81 static int amdgpu_gfx_me_queue_to_bit(struct amdgpu_device *adev, in amdgpu_gfx_me_queue_to_bit() 95 bool amdgpu_gfx_is_me_queue_enabled(struct amdgpu_device *adev, in amdgpu_gfx_is_me_queue_enabled() 113 void amdgpu_gfx_parse_disable_cu(struct amdgpu_device *adev, unsigned int *mask, in amdgpu_gfx_parse_disable_cu() 149 static bool amdgpu_gfx_is_graphics_multipipe_capable(struct amdgpu_device *adev) in amdgpu_gfx_is_graphics_multipipe_capable() 154 static bool amdgpu_gfx_is_compute_multipipe_capable(struct amdgpu_device *adev) in amdgpu_gfx_is_compute_multipipe_capable() 173 bool amdgpu_gfx_is_high_priority_graphics_queue(struct amdgpu_device *adev, in amdgpu_gfx_is_high_priority_graphics_queue() 195 bool amdgpu_gfx_is_high_priority_compute_queue(struct amdgpu_device *adev, in amdgpu_gfx_is_high_priority_compute_queue() [all …]
|
| H A D | jpeg_v4_0.c | 72 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_early_init() local 94 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_sw_init() local 164 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_sw_fini() local 185 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_hw_init() local 222 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_hw_fini() local 276 static void jpeg_v4_0_disable_clock_gating(struct amdgpu_device *adev) in jpeg_v4_0_disable_clock_gating() 300 static void jpeg_v4_0_enable_clock_gating(struct amdgpu_device *adev) in jpeg_v4_0_enable_clock_gating() 324 static int jpeg_v4_0_disable_static_power_gating(struct amdgpu_device *adev) in jpeg_v4_0_disable_static_power_gating() 354 static int jpeg_v4_0_enable_static_power_gating(struct amdgpu_device *adev) in jpeg_v4_0_enable_static_power_gating() 388 static int jpeg_v4_0_start(struct amdgpu_device *adev) in jpeg_v4_0_start() [all …]
|
| H A D | soc21.c | 170 static int soc21_query_video_codecs(struct amdgpu_device *adev, bool encode, in soc21_query_video_codecs() 225 static u32 soc21_didt_rreg(struct amdgpu_device *adev, u32 reg) in soc21_didt_rreg() 240 static void soc21_didt_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in soc21_didt_wreg() 253 static u32 soc21_get_config_memsize(struct amdgpu_device *adev) in soc21_get_config_memsize() 258 static u32 soc21_get_xclk(struct amdgpu_device *adev) in soc21_get_xclk() 270 void soc21_grbm_select(struct amdgpu_device *adev, in soc21_grbm_select() 282 static bool soc21_read_disabled_bios(struct amdgpu_device *adev) in soc21_read_disabled_bios() 310 static uint32_t soc21_get_register_value(struct amdgpu_device *adev, in soc21_get_register_value() 323 static int soc21_read_register(struct amdgpu_device *adev, u32 se_num, in soc21_read_register() 387 soc21_asic_reset_method(struct amdgpu_device *adev) in soc21_asic_reset_method() [all …]
|
| H A D | jpeg_v5_0_1.c | 116 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_early_init() local 151 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_sw_init() local 246 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_sw_fini() local 268 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_hw_init() local 325 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_hw_fini() local 350 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_suspend() local 371 struct amdgpu_device *adev = ip_block->adev; in jpeg_v5_0_1_resume() local 383 static void jpeg_v5_0_1_init_inst(struct amdgpu_device *adev, int i) in jpeg_v5_0_1_init_inst() 404 static void jpeg_v5_0_1_deinit_inst(struct amdgpu_device *adev, int i) in jpeg_v5_0_1_deinit_inst() 420 struct amdgpu_device *adev = ring->adev; in jpeg_v5_0_1_init_jrbc() local [all …]
|
| H A D | gfxhub_v2_0.c | 76 gfxhub_v2_0_print_l2_protection_fault_status(struct amdgpu_device *adev, in gfxhub_v2_0_print_l2_protection_fault_status() 105 static u64 gfxhub_v2_0_get_fb_location(struct amdgpu_device *adev) in gfxhub_v2_0_get_fb_location() 115 static u64 gfxhub_v2_0_get_mc_fb_offset(struct amdgpu_device *adev) in gfxhub_v2_0_get_mc_fb_offset() 120 static void gfxhub_v2_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, in gfxhub_v2_0_setup_vm_pt_regs() 134 static void gfxhub_v2_0_init_gart_aperture_regs(struct amdgpu_device *adev) in gfxhub_v2_0_init_gart_aperture_regs() 151 static void gfxhub_v2_0_init_system_aperture_regs(struct amdgpu_device *adev) in gfxhub_v2_0_init_system_aperture_regs() 186 static void gfxhub_v2_0_init_tlb_regs(struct amdgpu_device *adev) in gfxhub_v2_0_init_tlb_regs() 205 static void gfxhub_v2_0_init_cache_regs(struct amdgpu_device *adev) in gfxhub_v2_0_init_cache_regs() 254 static void gfxhub_v2_0_enable_system_domain(struct amdgpu_device *adev) in gfxhub_v2_0_enable_system_domain() 266 static void gfxhub_v2_0_disable_identity_aperture(struct amdgpu_device *adev) in gfxhub_v2_0_disable_identity_aperture() [all …]
|
| H A D | amdgpu_gmc.c | 44 bool amdgpu_gmc_is_pdb0_enabled(struct amdgpu_device *adev) in amdgpu_gmc_is_pdb0_enabled() 57 int amdgpu_gmc_pdb0_alloc(struct amdgpu_device *adev) in amdgpu_gmc_pdb0_alloc() 115 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_gmc_get_pde_for_bo() local 137 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_gmc_pd_addr() local 163 int amdgpu_gmc_set_pte_pde(struct amdgpu_device *adev, void *cpu_pt_addr, in amdgpu_gmc_set_pte_pde() 190 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_gmc_agp_addr() local 214 void amdgpu_gmc_vram_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, in amdgpu_gmc_vram_location() 256 void amdgpu_gmc_sysvm_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc) in amdgpu_gmc_sysvm_location() 283 void amdgpu_gmc_set_gart_size(struct amdgpu_device *adev, u64 default_size) in amdgpu_gmc_set_gart_size() 303 void amdgpu_gmc_gart_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc, in amdgpu_gmc_gart_location() [all …]
|
| H A D | gfxhub_v1_2.c | 37 static u64 gfxhub_v1_2_get_mc_fb_offset(struct amdgpu_device *adev) in gfxhub_v1_2_get_mc_fb_offset() 42 static void gfxhub_v1_2_xcc_setup_vm_pt_regs(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_setup_vm_pt_regs() 64 static void gfxhub_v1_2_setup_vm_pt_regs(struct amdgpu_device *adev, in gfxhub_v1_2_setup_vm_pt_regs() 74 static void gfxhub_v1_2_xcc_init_gart_aperture_regs(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_init_gart_aperture_regs() 126 gfxhub_v1_2_xcc_init_system_aperture_regs(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_init_system_aperture_regs() 196 static void gfxhub_v1_2_xcc_init_tlb_regs(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_init_tlb_regs() 222 static void gfxhub_v1_2_xcc_init_cache_regs(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_init_cache_regs() 271 static void gfxhub_v1_2_xcc_enable_system_domain(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_enable_system_domain() 291 gfxhub_v1_2_xcc_disable_identity_aperture(struct amdgpu_device *adev, in gfxhub_v1_2_xcc_disable_identity_aperture() 319 gfxhub_v1_2_per_process_xnack_support(struct amdgpu_device *adev) in gfxhub_v1_2_per_process_xnack_support() [all …]
|
| H A D | jpeg_v4_0_5.c | 87 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_5_early_init() local 120 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_5_sw_init() local 197 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_5_sw_fini() local 218 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_5_hw_init() local 249 struct amdgpu_device *adev = ip_block->adev; in jpeg_v4_0_5_hw_fini() local 307 static void jpeg_v4_0_5_disable_clock_gating(struct amdgpu_device *adev, int inst) in jpeg_v4_0_5_disable_clock_gating() 331 static void jpeg_v4_0_5_enable_clock_gating(struct amdgpu_device *adev, int inst) in jpeg_v4_0_5_enable_clock_gating() 355 static void jpeg_engine_4_0_5_dpg_clock_gating_mode(struct amdgpu_device *adev, in jpeg_engine_4_0_5_dpg_clock_gating_mode() 374 static int jpeg_v4_0_5_disable_static_power_gating(struct amdgpu_device *adev, int inst) in jpeg_v4_0_5_disable_static_power_gating() 394 static int jpeg_v4_0_5_enable_static_power_gating(struct amdgpu_device *adev, int inst) in jpeg_v4_0_5_enable_static_power_gating() [all …]
|
| H A D | mmhub_v2_0.c | 140 mmhub_v2_0_print_l2_protection_fault_status(struct amdgpu_device *adev, in mmhub_v2_0_print_l2_protection_fault_status() 172 static void mmhub_v2_0_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmid, in mmhub_v2_0_setup_vm_pt_regs() 186 static void mmhub_v2_0_init_gart_aperture_regs(struct amdgpu_device *adev) in mmhub_v2_0_init_gart_aperture_regs() 203 static void mmhub_v2_0_init_system_aperture_regs(struct amdgpu_device *adev) in mmhub_v2_0_init_system_aperture_regs() 240 static void mmhub_v2_0_init_tlb_regs(struct amdgpu_device *adev) in mmhub_v2_0_init_tlb_regs() 259 static void mmhub_v2_0_init_cache_regs(struct amdgpu_device *adev) in mmhub_v2_0_init_cache_regs() 310 static void mmhub_v2_0_enable_system_domain(struct amdgpu_device *adev) in mmhub_v2_0_enable_system_domain() 322 static void mmhub_v2_0_disable_identity_aperture(struct amdgpu_device *adev) in mmhub_v2_0_disable_identity_aperture() 348 static void mmhub_v2_0_setup_vmid_config(struct amdgpu_device *adev) in mmhub_v2_0_setup_vmid_config() 398 static void mmhub_v2_0_program_invalidation(struct amdgpu_device *adev) in mmhub_v2_0_program_invalidation() [all …]
|
| H A D | vce_v1_0.c | 75 struct amdgpu_device *adev = ring->adev; in vce_v1_0_ring_get_rptr() local 92 struct amdgpu_device *adev = ring->adev; in vce_v1_0_ring_get_wptr() local 109 struct amdgpu_device *adev = ring->adev; in vce_v1_0_ring_set_wptr() local 117 static int vce_v1_0_lmi_clean(struct amdgpu_device *adev) in vce_v1_0_lmi_clean() 133 static int vce_v1_0_firmware_loaded(struct amdgpu_device *adev) in vce_v1_0_firmware_loaded() 158 static void vce_v1_0_init_cg(struct amdgpu_device *adev) in vce_v1_0_init_cg() 189 static int vce_v1_0_load_fw(struct amdgpu_device *adev) in vce_v1_0_load_fw() 252 static int vce_v1_0_wait_for_fw_validation(struct amdgpu_device *adev) in vce_v1_0_wait_for_fw_validation() 289 static int vce_v1_0_mc_resume(struct amdgpu_device *adev) in vce_v1_0_mc_resume() 359 struct amdgpu_device *adev = ip_block->adev; in vce_v1_0_is_idle() local [all …]
|
| H A D | nbif_v6_3_1.c | 97 static void nbif_v6_3_1_remap_hdp_registers(struct amdgpu_device *adev) in nbif_v6_3_1_remap_hdp_registers() 112 static u32 nbif_v6_3_1_get_rev_id(struct amdgpu_device *adev) in nbif_v6_3_1_get_rev_id() 129 static void nbif_v6_3_1_mc_access_enable(struct amdgpu_device *adev, bool enable) in nbif_v6_3_1_mc_access_enable() 148 static u32 nbif_v6_3_1_get_memsize(struct amdgpu_device *adev) in nbif_v6_3_1_get_memsize() 153 static void nbif_v6_3_1_sdma_doorbell_range(struct amdgpu_device *adev, in nbif_v6_3_1_sdma_doorbell_range() 201 static void nbif_v6_3_1_vcn_doorbell_range(struct amdgpu_device *adev, in nbif_v6_3_1_vcn_doorbell_range() 253 static void nbif_v6_3_1_vpe_doorbell_range(struct amdgpu_device *adev, in nbif_v6_3_1_vpe_doorbell_range() 300 static void nbif_v6_3_1_gc_doorbell_init(struct amdgpu_device *adev) in nbif_v6_3_1_gc_doorbell_init() 311 static void nbif_v6_3_1_enable_doorbell_aperture(struct amdgpu_device *adev, in nbif_v6_3_1_enable_doorbell_aperture() 319 nbif_v6_3_1_enable_doorbell_selfring_aperture(struct amdgpu_device *adev, in nbif_v6_3_1_enable_doorbell_selfring_aperture() [all …]
|
| H A D | gfx_v9_0.c | 930 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_0_kiq_set_resources() local 1048 struct amdgpu_device *adev = kiq_ring->adev; in gfx_v9_0_kiq_reset_hw_queue() local 1091 static void gfx_v9_0_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v9_0_set_kiq_pm4_funcs() 1096 static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev) in gfx_v9_0_init_golden_registers() 1196 struct amdgpu_device *adev = ring->adev; in gfx_v9_0_ring_test_ring() local 1226 struct amdgpu_device *adev = ring->adev; in gfx_v9_0_ring_test_ib() local 1281 static void gfx_v9_0_free_microcode(struct amdgpu_device *adev) in gfx_v9_0_free_microcode() 1293 static void gfx_v9_0_check_fw_write_wait(struct amdgpu_device *adev) in gfx_v9_0_check_fw_write_wait() 1401 static bool is_raven_kicker(struct amdgpu_device *adev) in is_raven_kicker() 1409 static bool check_if_enlarge_doorbell_range(struct amdgpu_device *adev) in check_if_enlarge_doorbell_range() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | si_dpm.c | 1868 static struct si_power_info *si_get_pi(struct amdgpu_device *adev) in si_get_pi() 1901 static void si_calculate_leakage_for_v_and_t(struct amdgpu_device *adev, in si_calculate_leakage_for_v_and_t() 1929 static void si_calculate_leakage_for_v(struct amdgpu_device *adev, in si_calculate_leakage_for_v() 1940 static void si_update_dte_from_pl2(struct amdgpu_device *adev, in si_update_dte_from_pl2() 1970 static struct rv7xx_power_info *rv770_get_pi(struct amdgpu_device *adev) in rv770_get_pi() 1977 static struct ni_power_info *ni_get_pi(struct amdgpu_device *adev) in ni_get_pi() 1991 static void si_initialize_powertune_defaults(struct amdgpu_device *adev) in si_initialize_powertune_defaults() 2195 static u32 si_get_smc_power_scaling_factor(struct amdgpu_device *adev) in si_get_smc_power_scaling_factor() 2200 static u32 si_calculate_cac_wintime(struct amdgpu_device *adev) in si_calculate_cac_wintime() 2225 static int si_calculate_adjusted_tdp_limits(struct amdgpu_device *adev, in si_calculate_adjusted_tdp_limits() [all …]
|