/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_device.c | 152 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_pcie_replay_count() local 177 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_product_name() local 199 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_product_number() local 221 struct amdgpu_device *adev = drm_to_adev(ddev); in amdgpu_device_get_serial_number() local 239 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_supports_px() local 256 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_supports_boco() local 274 struct amdgpu_device *adev = drm_to_adev(dev); in amdgpu_device_supports_baco() local 307 void amdgpu_device_mm_access(struct amdgpu_device *adev, loff_t pos, in amdgpu_device_mm_access() 351 size_t amdgpu_device_aper_access(struct amdgpu_device *adev, loff_t pos, in amdgpu_device_aper_access() 394 void amdgpu_device_vram_access(struct amdgpu_device *adev, loff_t pos, in amdgpu_device_vram_access() [all …]
|
D | nv.c | 181 static int nv_query_video_codecs(struct amdgpu_device *adev, bool encode, in nv_query_video_codecs() 234 static u32 nv_pcie_rreg(struct amdgpu_device *adev, u32 reg) in nv_pcie_rreg() 243 static void nv_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in nv_pcie_wreg() 253 static u64 nv_pcie_rreg64(struct amdgpu_device *adev, u32 reg) in nv_pcie_rreg64() 262 static u32 nv_pcie_port_rreg(struct amdgpu_device *adev, u32 reg) in nv_pcie_port_rreg() 277 static void nv_pcie_wreg64(struct amdgpu_device *adev, u32 reg, u64 v) in nv_pcie_wreg64() 287 static void nv_pcie_port_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in nv_pcie_port_wreg() 302 static u32 nv_didt_rreg(struct amdgpu_device *adev, u32 reg) in nv_didt_rreg() 317 static void nv_didt_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in nv_didt_wreg() 330 static u32 nv_get_config_memsize(struct amdgpu_device *adev) in nv_get_config_memsize() [all …]
|
D | soc15.c | 154 static int soc15_query_video_codecs(struct amdgpu_device *adev, bool encode, in soc15_query_video_codecs() 188 static u32 soc15_pcie_rreg(struct amdgpu_device *adev, u32 reg) in soc15_pcie_rreg() 197 static void soc15_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in soc15_pcie_wreg() 207 static u64 soc15_pcie_rreg64(struct amdgpu_device *adev, u32 reg) in soc15_pcie_rreg64() 216 static void soc15_pcie_wreg64(struct amdgpu_device *adev, u32 reg, u64 v) in soc15_pcie_wreg64() 226 static u32 soc15_uvd_ctx_rreg(struct amdgpu_device *adev, u32 reg) in soc15_uvd_ctx_rreg() 241 static void soc15_uvd_ctx_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in soc15_uvd_ctx_wreg() 254 static u32 soc15_didt_rreg(struct amdgpu_device *adev, u32 reg) in soc15_didt_rreg() 269 static void soc15_didt_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in soc15_didt_wreg() 282 static u32 soc15_gc_cac_rreg(struct amdgpu_device *adev, u32 reg) in soc15_gc_cac_rreg() [all …]
|
D | gfx_v6_0.c | 311 static int gfx_v6_0_init_microcode(struct amdgpu_device *adev) in gfx_v6_0_init_microcode() 397 static void gfx_v6_0_tiling_mode_table_init(struct amdgpu_device *adev) in gfx_v6_0_tiling_mode_table_init() 1301 static void gfx_v6_0_select_se_sh(struct amdgpu_device *adev, u32 se_num, in gfx_v6_0_select_se_sh() 1326 static u32 gfx_v6_0_get_rb_active_bitmap(struct amdgpu_device *adev) in gfx_v6_0_get_rb_active_bitmap() 1341 static void gfx_v6_0_raster_config(struct amdgpu_device *adev, u32 *rconf) in gfx_v6_0_raster_config() 1373 static void gfx_v6_0_write_harvested_raster_configs(struct amdgpu_device *adev, in gfx_v6_0_write_harvested_raster_configs() 1463 static void gfx_v6_0_setup_rb(struct amdgpu_device *adev) in gfx_v6_0_setup_rb() 1517 static void gfx_v6_0_set_user_cu_inactive_bitmap(struct amdgpu_device *adev, in gfx_v6_0_set_user_cu_inactive_bitmap() 1531 static u32 gfx_v6_0_get_cu_enabled(struct amdgpu_device *adev) in gfx_v6_0_get_cu_enabled() 1543 static void gfx_v6_0_setup_spi(struct amdgpu_device *adev) in gfx_v6_0_setup_spi() [all …]
|
D | vi.c | 257 static int vi_query_video_codecs(struct amdgpu_device *adev, bool encode, in vi_query_video_codecs() 298 static u32 vi_pcie_rreg(struct amdgpu_device *adev, u32 reg) in vi_pcie_rreg() 311 static void vi_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in vi_pcie_wreg() 323 static u32 vi_smc_rreg(struct amdgpu_device *adev, u32 reg) in vi_smc_rreg() 335 static void vi_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in vi_smc_wreg() 349 static u32 cz_smc_rreg(struct amdgpu_device *adev, u32 reg) in cz_smc_rreg() 361 static void cz_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in cz_smc_wreg() 371 static u32 vi_uvd_ctx_rreg(struct amdgpu_device *adev, u32 reg) in vi_uvd_ctx_rreg() 383 static void vi_uvd_ctx_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in vi_uvd_ctx_wreg() 393 static u32 vi_didt_rreg(struct amdgpu_device *adev, u32 reg) in vi_didt_rreg() [all …]
|
D | vce_v2_0.c | 57 struct amdgpu_device *adev = ring->adev; in vce_v2_0_ring_get_rptr() local 74 struct amdgpu_device *adev = ring->adev; in vce_v2_0_ring_get_wptr() local 91 struct amdgpu_device *adev = ring->adev; in vce_v2_0_ring_set_wptr() local 99 static int vce_v2_0_lmi_clean(struct amdgpu_device *adev) in vce_v2_0_lmi_clean() 116 static int vce_v2_0_firmware_loaded(struct amdgpu_device *adev) in vce_v2_0_firmware_loaded() 142 static void vce_v2_0_disable_cg(struct amdgpu_device *adev) in vce_v2_0_disable_cg() 147 static void vce_v2_0_init_cg(struct amdgpu_device *adev) in vce_v2_0_init_cg() 168 static void vce_v2_0_mc_resume(struct amdgpu_device *adev) in vce_v2_0_mc_resume() 206 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vce_v2_0_is_idle() local 213 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vce_v2_0_wait_for_idle() local [all …]
|
D | vcn_v1_0.c | 67 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_early_init() local 92 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_sw_init() local 173 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_sw_fini() local 195 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_hw_init() local 232 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_hw_fini() local 255 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_suspend() local 283 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v1_0_resume() local 301 static void vcn_v1_0_mc_resume_spg_mode(struct amdgpu_device *adev) in vcn_v1_0_mc_resume_spg_mode() 368 static void vcn_v1_0_mc_resume_dpg_mode(struct amdgpu_device *adev) in vcn_v1_0_mc_resume_dpg_mode() 447 static void vcn_v1_0_disable_clock_gating(struct amdgpu_device *adev) in vcn_v1_0_disable_clock_gating() [all …]
|
D | jpeg_v3_0.c | 51 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_early_init() local 77 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_sw_init() local 119 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_sw_fini() local 139 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_hw_init() local 164 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_hw_fini() local 184 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_suspend() local 205 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in jpeg_v3_0_resume() local 217 static void jpeg_v3_0_disable_clock_gating(struct amdgpu_device *adev) in jpeg_v3_0_disable_clock_gating() 247 static void jpeg_v3_0_enable_clock_gating(struct amdgpu_device *adev) in jpeg_v3_0_enable_clock_gating() 260 static int jpeg_v3_0_disable_static_power_gating(struct amdgpu_device *adev) in jpeg_v3_0_disable_static_power_gating() [all …]
|
D | gmc_v8_0.c | 130 static void gmc_v8_0_init_golden_registers(struct amdgpu_device *adev) in gmc_v8_0_init_golden_registers() 179 static void gmc_v8_0_mc_stop(struct amdgpu_device *adev) in gmc_v8_0_mc_stop() 198 static void gmc_v8_0_mc_resume(struct amdgpu_device *adev) in gmc_v8_0_mc_resume() 221 static int gmc_v8_0_init_microcode(struct amdgpu_device *adev) in gmc_v8_0_init_microcode() 289 static int gmc_v8_0_tonga_mc_load_microcode(struct amdgpu_device *adev) in gmc_v8_0_tonga_mc_load_microcode() 358 static int gmc_v8_0_polaris_mc_load_microcode(struct amdgpu_device *adev) in gmc_v8_0_polaris_mc_load_microcode() 421 static void gmc_v8_0_vram_gtt_location(struct amdgpu_device *adev, in gmc_v8_0_vram_gtt_location() 442 static void gmc_v8_0_mc_program(struct amdgpu_device *adev) in gmc_v8_0_mc_program() 515 static int gmc_v8_0_mc_init(struct amdgpu_device *adev) in gmc_v8_0_mc_init() 632 static int gmc_v8_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev, in gmc_v8_0_flush_gpu_tlb_pasid() [all …]
|
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() 838 static void gfx_v8_0_scratch_init(struct amdgpu_device *adev) in gfx_v8_0_scratch_init() 847 struct amdgpu_device *adev = ring->adev; in gfx_v8_0_ring_test_ring() local 884 struct amdgpu_device *adev = ring->adev; in gfx_v8_0_ring_test_ib() local 939 static void gfx_v8_0_free_microcode(struct amdgpu_device *adev) in gfx_v8_0_free_microcode() 959 static int gfx_v8_0_init_microcode(struct amdgpu_device *adev) in gfx_v8_0_init_microcode() 1252 static void gfx_v8_0_get_csb_buffer(struct amdgpu_device *adev, in gfx_v8_0_get_csb_buffer() 1299 static int gfx_v8_0_cp_jump_table_num(struct amdgpu_device *adev) in gfx_v8_0_cp_jump_table_num() 1307 static int gfx_v8_0_rlc_init(struct amdgpu_device *adev) in gfx_v8_0_rlc_init() 1338 static void gfx_v8_0_mec_fini(struct amdgpu_device *adev) in gfx_v8_0_mec_fini() [all …]
|
D | gfx_v10_0.c | 188 #define RLCG_ERROR_REPORT_ENABLED(adev) \ argument 1485 static bool gfx_v10_get_rlcg_flag(struct amdgpu_device *adev, u32 acc_flags, u32 hwip, in gfx_v10_get_rlcg_flag() 1517 static u32 gfx_v10_rlcg_rw(struct amdgpu_device *adev, u32 offset, u32 v, uint32_t flag) in gfx_v10_rlcg_rw() 1592 static void gfx_v10_sriov_wreg(struct amdgpu_device *adev, u32 offset, u32 value, u32 acc_flags, u3… in gfx_v10_sriov_wreg() 1608 static u32 gfx_v10_sriov_rreg(struct amdgpu_device *adev, u32 offset, u32 acc_flags, u32 hwip) in gfx_v10_sriov_rreg() 3626 struct amdgpu_device *adev = kiq_ring->adev; in gfx10_kiq_map_queues() local 3723 static void gfx_v10_0_set_kiq_pm4_funcs(struct amdgpu_device *adev) in gfx_v10_0_set_kiq_pm4_funcs() 3728 static void gfx_v10_0_init_spm_golden_registers(struct amdgpu_device *adev) in gfx_v10_0_init_spm_golden_registers() 3751 static void gfx_v10_0_init_golden_registers(struct amdgpu_device *adev) in gfx_v10_0_init_golden_registers() 3825 static void gfx_v10_0_scratch_init(struct amdgpu_device *adev) in gfx_v10_0_scratch_init() [all …]
|
D | amdgpu_virt.c | 41 bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev) in amdgpu_virt_mmio_blocked() 49 void amdgpu_virt_init_setting(struct amdgpu_device *adev) in amdgpu_virt_init_setting() 65 void amdgpu_virt_kiq_reg_write_reg_wait(struct amdgpu_device *adev, in amdgpu_virt_kiq_reg_write_reg_wait() 118 int amdgpu_virt_request_full_gpu(struct amdgpu_device *adev, bool init) in amdgpu_virt_request_full_gpu() 141 int amdgpu_virt_release_full_gpu(struct amdgpu_device *adev, bool init) in amdgpu_virt_release_full_gpu() 162 int amdgpu_virt_reset_gpu(struct amdgpu_device *adev) in amdgpu_virt_reset_gpu() 178 void amdgpu_virt_request_init_data(struct amdgpu_device *adev) in amdgpu_virt_request_init_data() 197 int amdgpu_virt_wait_reset(struct amdgpu_device *adev) in amdgpu_virt_wait_reset() 213 int amdgpu_virt_alloc_mm_table(struct amdgpu_device *adev) in amdgpu_virt_alloc_mm_table() 242 void amdgpu_virt_free_mm_table(struct amdgpu_device *adev) in amdgpu_virt_free_mm_table() [all …]
|
D | gfx_v7_0.c | 902 static int gfx_v7_0_init_microcode(struct amdgpu_device *adev) in gfx_v7_0_init_microcode() 996 static void gfx_v7_0_free_microcode(struct amdgpu_device *adev) in gfx_v7_0_free_microcode() 1023 static void gfx_v7_0_tiling_mode_table_init(struct amdgpu_device *adev) in gfx_v7_0_tiling_mode_table_init() 1588 static void gfx_v7_0_select_se_sh(struct amdgpu_device *adev, in gfx_v7_0_select_se_sh() 1621 static u32 gfx_v7_0_get_rb_active_bitmap(struct amdgpu_device *adev) in gfx_v7_0_get_rb_active_bitmap() 1638 gfx_v7_0_raster_config(struct amdgpu_device *adev, u32 *rconf, u32 *rconf1) in gfx_v7_0_raster_config() 1670 gfx_v7_0_write_harvested_raster_configs(struct amdgpu_device *adev, in gfx_v7_0_write_harvested_raster_configs() 1785 static void gfx_v7_0_setup_rb(struct amdgpu_device *adev) in gfx_v7_0_setup_rb() 1851 static void gfx_v7_0_init_compute_vmid(struct amdgpu_device *adev) in gfx_v7_0_init_compute_vmid() 1889 static void gfx_v7_0_init_gds_vmid(struct amdgpu_device *adev) in gfx_v7_0_init_gds_vmid() [all …]
|
D | si.c | 989 static int si_query_video_codecs(struct amdgpu_device *adev, bool encode, in si_query_video_codecs() 1018 static u32 si_pcie_rreg(struct amdgpu_device *adev, u32 reg) in si_pcie_rreg() 1031 static void si_pcie_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in si_pcie_wreg() 1043 static u32 si_pciep_rreg(struct amdgpu_device *adev, u32 reg) in si_pciep_rreg() 1056 static void si_pciep_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in si_pciep_wreg() 1068 static u32 si_smc_rreg(struct amdgpu_device *adev, u32 reg) in si_smc_rreg() 1080 static void si_smc_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in si_smc_wreg() 1090 static u32 si_uvd_ctx_rreg(struct amdgpu_device *adev, u32 reg) in si_uvd_ctx_rreg() 1102 static void si_uvd_ctx_wreg(struct amdgpu_device *adev, u32 reg, u32 v) in si_uvd_ctx_wreg() 1164 static uint32_t si_get_register_value(struct amdgpu_device *adev, in si_get_register_value() [all …]
|
D | nbio_v7_0.c | 36 static void nbio_v7_0_remap_hdp_registers(struct amdgpu_device *adev) in nbio_v7_0_remap_hdp_registers() 44 static u32 nbio_v7_0_get_rev_id(struct amdgpu_device *adev) in nbio_v7_0_get_rev_id() 54 static void nbio_v7_0_mc_access_enable(struct amdgpu_device *adev, bool enable) in nbio_v7_0_mc_access_enable() 63 static u32 nbio_v7_0_get_memsize(struct amdgpu_device *adev) in nbio_v7_0_get_memsize() 68 static void nbio_v7_0_sdma_doorbell_range(struct amdgpu_device *adev, int instance, in nbio_v7_0_sdma_doorbell_range() 85 static void nbio_v7_0_vcn_doorbell_range(struct amdgpu_device *adev, bool use_doorbell, in nbio_v7_0_vcn_doorbell_range() 105 static void nbio_v7_0_enable_doorbell_aperture(struct amdgpu_device *adev, in nbio_v7_0_enable_doorbell_aperture() 111 static void nbio_v7_0_enable_doorbell_selfring_aperture(struct amdgpu_device *adev, in nbio_v7_0_enable_doorbell_selfring_aperture() 117 static void nbio_v7_0_ih_doorbell_range(struct amdgpu_device *adev, in nbio_v7_0_ih_doorbell_range() 131 static uint32_t nbio_7_0_read_syshub_ind_mmr(struct amdgpu_device *adev, uint32_t offset) in nbio_7_0_read_syshub_ind_mmr() [all …]
|
D | gmc_v7_0.c | 74 static void gmc_v7_0_init_golden_registers(struct amdgpu_device *adev) in gmc_v7_0_init_golden_registers() 90 static void gmc_v7_0_mc_stop(struct amdgpu_device *adev) in gmc_v7_0_mc_stop() 109 static void gmc_v7_0_mc_resume(struct amdgpu_device *adev) in gmc_v7_0_mc_resume() 132 static int gmc_v7_0_init_microcode(struct amdgpu_device *adev) in gmc_v7_0_init_microcode() 181 static int gmc_v7_0_mc_load_microcode(struct amdgpu_device *adev) in gmc_v7_0_mc_load_microcode() 242 static void gmc_v7_0_vram_gtt_location(struct amdgpu_device *adev, in gmc_v7_0_vram_gtt_location() 260 static void gmc_v7_0_mc_program(struct amdgpu_device *adev) in gmc_v7_0_mc_program() 322 static int gmc_v7_0_mc_init(struct amdgpu_device *adev) in gmc_v7_0_mc_init() 434 static int gmc_v7_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev, in gmc_v7_0_flush_gpu_tlb_pasid() 475 static void gmc_v7_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, in gmc_v7_0_flush_gpu_tlb() [all …]
|
D | mxgpu_nv.c | 34 static void xgpu_nv_mailbox_send_ack(struct amdgpu_device *adev) in xgpu_nv_mailbox_send_ack() 39 static void xgpu_nv_mailbox_set_valid(struct amdgpu_device *adev, bool val) in xgpu_nv_mailbox_set_valid() 53 static enum idh_event xgpu_nv_mailbox_peek_msg(struct amdgpu_device *adev) in xgpu_nv_mailbox_peek_msg() 59 static int xgpu_nv_mailbox_rcv_msg(struct amdgpu_device *adev, in xgpu_nv_mailbox_rcv_msg() 73 static uint8_t xgpu_nv_peek_ack(struct amdgpu_device *adev) in xgpu_nv_peek_ack() 78 static int xgpu_nv_poll_ack(struct amdgpu_device *adev) in xgpu_nv_poll_ack() 97 static int xgpu_nv_poll_msg(struct amdgpu_device *adev, enum idh_event event) in xgpu_nv_poll_msg() 118 static void xgpu_nv_mailbox_trans_msg (struct amdgpu_device *adev, in xgpu_nv_mailbox_trans_msg() 153 static int xgpu_nv_send_access_requests(struct amdgpu_device *adev, in xgpu_nv_send_access_requests() 209 static int xgpu_nv_request_reset(struct amdgpu_device *adev) in xgpu_nv_request_reset() [all …]
|
D | vcn_v2_0.c | 70 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_early_init() local 96 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_sw_init() local 197 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_sw_fini() local 225 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_hw_init() local 267 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_hw_fini() local 289 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_suspend() local 310 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vcn_v2_0_resume() local 328 static void vcn_v2_0_mc_resume(struct amdgpu_device *adev) in vcn_v2_0_mc_resume() 384 static void vcn_v2_0_mc_resume_dpg_mode(struct amdgpu_device *adev, bool indirect) in vcn_v2_0_mc_resume_dpg_mode() 487 static void vcn_v2_0_disable_clock_gating(struct amdgpu_device *adev) in vcn_v2_0_disable_clock_gating() [all …]
|
D | amdgpu_amdkfd.c | 66 void amdgpu_amdkfd_device_probe(struct amdgpu_device *adev) in amdgpu_amdkfd_device_probe() 93 static void amdgpu_doorbell_get_kfd_info(struct amdgpu_device *adev, in amdgpu_doorbell_get_kfd_info() 113 void amdgpu_amdkfd_device_init(struct amdgpu_device *adev) in amdgpu_amdkfd_device_init() 174 void amdgpu_amdkfd_device_fini_sw(struct amdgpu_device *adev) in amdgpu_amdkfd_device_fini_sw() 182 void amdgpu_amdkfd_interrupt(struct amdgpu_device *adev, in amdgpu_amdkfd_interrupt() 189 void amdgpu_amdkfd_suspend(struct amdgpu_device *adev, bool run_pm) in amdgpu_amdkfd_suspend() 195 int amdgpu_amdkfd_resume_iommu(struct amdgpu_device *adev) in amdgpu_amdkfd_resume_iommu() 205 int amdgpu_amdkfd_resume(struct amdgpu_device *adev, bool run_pm) in amdgpu_amdkfd_resume() 215 int amdgpu_amdkfd_pre_reset(struct amdgpu_device *adev) in amdgpu_amdkfd_pre_reset() 225 int amdgpu_amdkfd_post_reset(struct amdgpu_device *adev) in amdgpu_amdkfd_post_reset() [all …]
|
D | gmc_v10_0.c | 58 static int gmc_v10_0_ecc_interrupt_state(struct amdgpu_device *adev, in gmc_v10_0_ecc_interrupt_state() 67 gmc_v10_0_vm_fault_interrupt_state(struct amdgpu_device *adev, in gmc_v10_0_vm_fault_interrupt_state() 91 static int gmc_v10_0_process_interrupt(struct amdgpu_device *adev, in gmc_v10_0_process_interrupt() 177 static void gmc_v10_0_set_irq_funcs(struct amdgpu_device *adev) in gmc_v10_0_set_irq_funcs() 195 static bool gmc_v10_0_use_invalidate_semaphore(struct amdgpu_device *adev, in gmc_v10_0_use_invalidate_semaphore() 204 struct amdgpu_device *adev, in gmc_v10_0_get_atc_vmid_pasid_mapping_info() 223 static void gmc_v10_0_flush_vm_hub(struct amdgpu_device *adev, uint32_t vmid, in gmc_v10_0_flush_vm_hub() 314 static void gmc_v10_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, in gmc_v10_0_flush_gpu_tlb() 408 static int gmc_v10_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev, in gmc_v10_0_flush_gpu_tlb_pasid() 516 struct amdgpu_device *adev = ring->adev; in gmc_v10_0_emit_pasid_mapping() local [all …]
|
D | gmc_v9_0.c | 412 static int gmc_v9_0_ecc_interrupt_state(struct amdgpu_device *adev, in gmc_v9_0_ecc_interrupt_state() 462 static int gmc_v9_0_vm_fault_interrupt_state(struct amdgpu_device *adev, in gmc_v9_0_vm_fault_interrupt_state() 508 static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev, in gmc_v9_0_process_interrupt() 659 static void gmc_v9_0_set_irq_funcs(struct amdgpu_device *adev) in gmc_v9_0_set_irq_funcs() 697 static bool gmc_v9_0_use_invalidate_semaphore(struct amdgpu_device *adev, in gmc_v9_0_use_invalidate_semaphore() 710 static bool gmc_v9_0_get_atc_vmid_pasid_mapping_info(struct amdgpu_device *adev, in gmc_v9_0_get_atc_vmid_pasid_mapping_info() 739 static void gmc_v9_0_flush_gpu_tlb(struct amdgpu_device *adev, uint32_t vmid, in gmc_v9_0_flush_gpu_tlb() 857 static int gmc_v9_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev, in gmc_v9_0_flush_gpu_tlb_pasid() 941 struct amdgpu_device *adev = ring->adev; in gmc_v9_0_emit_flush_gpu_tlb() local 989 struct amdgpu_device *adev = ring->adev; in gmc_v9_0_emit_pasid_mapping() local [all …]
|
D | uvd_v5_0.c | 58 struct amdgpu_device *adev = ring->adev; in uvd_v5_0_ring_get_rptr() local 72 struct amdgpu_device *adev = ring->adev; in uvd_v5_0_ring_get_wptr() local 86 struct amdgpu_device *adev = ring->adev; in uvd_v5_0_ring_set_wptr() local 93 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_early_init() local 105 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_sw_init() local 136 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_sw_fini() local 154 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_hw_init() local 211 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_hw_fini() local 224 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_suspend() local 260 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in uvd_v5_0_resume() local [all …]
|
D | mxgpu_ai.c | 35 static void xgpu_ai_mailbox_send_ack(struct amdgpu_device *adev) in xgpu_ai_mailbox_send_ack() 40 static void xgpu_ai_mailbox_set_valid(struct amdgpu_device *adev, bool val) in xgpu_ai_mailbox_set_valid() 54 static enum idh_event xgpu_ai_mailbox_peek_msg(struct amdgpu_device *adev) in xgpu_ai_mailbox_peek_msg() 61 static int xgpu_ai_mailbox_rcv_msg(struct amdgpu_device *adev, in xgpu_ai_mailbox_rcv_msg() 76 static uint8_t xgpu_ai_peek_ack(struct amdgpu_device *adev) { in xgpu_ai_peek_ack() 80 static int xgpu_ai_poll_ack(struct amdgpu_device *adev) in xgpu_ai_poll_ack() 99 static int xgpu_ai_poll_msg(struct amdgpu_device *adev, enum idh_event event) in xgpu_ai_poll_msg() 117 static void xgpu_ai_mailbox_trans_msg (struct amdgpu_device *adev, in xgpu_ai_mailbox_trans_msg() 161 static int xgpu_ai_send_access_requests(struct amdgpu_device *adev, in xgpu_ai_send_access_requests() 188 static int xgpu_ai_request_reset(struct amdgpu_device *adev) in xgpu_ai_request_reset() [all …]
|
D | vce_v3_0.c | 79 struct amdgpu_device *adev = ring->adev; in vce_v3_0_ring_get_rptr() local 111 struct amdgpu_device *adev = ring->adev; in vce_v3_0_ring_get_wptr() local 143 struct amdgpu_device *adev = ring->adev; in vce_v3_0_ring_set_wptr() local 163 static void vce_v3_0_override_vce_clock_gating(struct amdgpu_device *adev, bool override) in vce_v3_0_override_vce_clock_gating() 168 static void vce_v3_0_set_vce_sw_clock_gating(struct amdgpu_device *adev, in vce_v3_0_set_vce_sw_clock_gating() 235 static int vce_v3_0_firmware_loaded(struct amdgpu_device *adev) in vce_v3_0_firmware_loaded() 265 static int vce_v3_0_start(struct amdgpu_device *adev) in vce_v3_0_start() 331 static int vce_v3_0_stop(struct amdgpu_device *adev) in vce_v3_0_stop() 364 static unsigned vce_v3_0_get_harvest_config(struct amdgpu_device *adev) in vce_v3_0_get_harvest_config() 401 struct amdgpu_device *adev = (struct amdgpu_device *)handle; in vce_v3_0_early_init() local [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/ |
D | kv_dpm.c | 71 static u32 kv_convert_vid2_to_vid7(struct amdgpu_device *adev, in kv_convert_vid2_to_vid7() 93 static u32 kv_convert_vid7_to_vid2(struct amdgpu_device *adev, in kv_convert_vid7_to_vid2() 117 static void sumo_take_smu_control(struct amdgpu_device *adev, bool enable) in sumo_take_smu_control() 136 static void sumo_construct_sclk_voltage_mapping_table(struct amdgpu_device *adev, in sumo_construct_sclk_voltage_mapping_table() 158 static void sumo_construct_vid_mapping_table(struct amdgpu_device *adev, in sumo_construct_vid_mapping_table() 377 static struct kv_power_info *kv_get_pi(struct amdgpu_device *adev) in kv_get_pi() 410 static int kv_program_pt_config_registers(struct amdgpu_device *adev, in kv_program_pt_config_registers() 459 static void kv_do_enable_didt(struct amdgpu_device *adev, bool enable) in kv_do_enable_didt() 501 static int kv_enable_didt(struct amdgpu_device *adev, bool enable) in kv_enable_didt() 561 static int kv_enable_smc_cac(struct amdgpu_device *adev, bool enable) in kv_enable_smc_cac() [all …]
|