/kernel/linux/linux-6.6/sound/soc/amd/ |
H A D | acp-pcm-dma.c | 206 u32 asic_type) in set_acp_sysmem_dma_descriptors() 218 switch (asic_type) { in set_acp_sysmem_dma_descriptors() 235 switch (asic_type) { in set_acp_sysmem_dma_descriptors() 264 u16 dma_dscr_idx, u32 asic_type) in set_acp_to_i2s_dma_descriptors() 332 u32 asic_type) in config_acp_dma() 350 rtd->dma_dscr_idx_1, asic_type); in config_acp_dma() 355 rtd->dma_dscr_idx_2, asic_type); in config_acp_dma() 552 static int acp_init(void __iomem *acp_mmio, u32 asic_type) in acp_init() argument 638 if (asic_type != CHIP_STONEY) { in acp_init() 783 switch (intr_data->asic_type) { in acp_dma_open() 202 set_acp_sysmem_dma_descriptors(void __iomem *acp_mmio, u32 size, int direction, u32 pte_offset, u16 ch, u32 sram_bank, u16 dma_dscr_idx, u32 asic_type) set_acp_sysmem_dma_descriptors() argument 261 set_acp_to_i2s_dma_descriptors(void __iomem *acp_mmio, u32 size, int direction, u32 sram_bank, u16 destination, u16 ch, u16 dma_dscr_idx, u32 asic_type) set_acp_to_i2s_dma_descriptors() argument 330 config_acp_dma(void __iomem *acp_mmio, struct audio_substream_data *rtd, u32 asic_type) config_acp_dma() argument [all...] |
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
H A D | habanalabs_drv.c | 84 enum hl_asic_type asic_type = ASIC_INVALID; in get_asic_type() local 88 asic_type = ASIC_GOYA; in get_asic_type() 91 asic_type = ASIC_GAUDI; in get_asic_type() 94 asic_type = ASIC_GAUDI_SEC; in get_asic_type() 99 asic_type = ASIC_GAUDI2; in get_asic_type() 102 asic_type = ASIC_GAUDI2B; in get_asic_type() 105 asic_type = ASIC_GAUDI2C; in get_asic_type() 115 return asic_type; in get_asic_type() 118 static bool is_asic_secured(enum hl_asic_type asic_type) in is_asic_secured() argument 120 switch (asic_type) { in is_asic_secured() [all...] |
/kernel/linux/linux-5.10/sound/soc/amd/ |
H A D | acp-pcm-dma.c | 206 u32 asic_type) in set_acp_sysmem_dma_descriptors() 218 switch (asic_type) { in set_acp_sysmem_dma_descriptors() 235 switch (asic_type) { in set_acp_sysmem_dma_descriptors() 264 u16 dma_dscr_idx, u32 asic_type) in set_acp_to_i2s_dma_descriptors() 332 u32 asic_type) in config_acp_dma() 350 rtd->dma_dscr_idx_1, asic_type); in config_acp_dma() 355 rtd->dma_dscr_idx_2, asic_type); in config_acp_dma() 551 static int acp_init(void __iomem *acp_mmio, u32 asic_type) in acp_init() argument 637 if (asic_type != CHIP_STONEY) { in acp_init() 775 switch (intr_data->asic_type) { in acp_dma_open() 202 set_acp_sysmem_dma_descriptors(void __iomem *acp_mmio, u32 size, int direction, u32 pte_offset, u16 ch, u32 sram_bank, u16 dma_dscr_idx, u32 asic_type) set_acp_sysmem_dma_descriptors() argument 261 set_acp_to_i2s_dma_descriptors(void __iomem *acp_mmio, u32 size, int direction, u32 sram_bank, u16 destination, u16 ch, u16 dma_dscr_idx, u32 asic_type) set_acp_to_i2s_dma_descriptors() argument 330 config_acp_dma(void __iomem *acp_mmio, struct audio_substream_data *rtd, u32 asic_type) config_acp_dma() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | nbio_v7_4.c | 114 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_get_rev_id() 159 if (adev->asic_type == CHIP_ALDEBARAN && instance == 4) in nbio_v7_4_sdma_doorbell_range() 187 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_vcn_doorbell_range() 371 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_handle_ras_controller_intr_no_bifring() 382 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_handle_ras_controller_intr_no_bifring() 427 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_handle_ras_err_event_athub_intr_no_bifring() 439 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_handle_ras_err_event_athub_intr_no_bifring() 460 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_set_ras_controller_irq_state() 472 if (adev->asic_type == CHIP_ALDEBARAN) in nbio_v7_4_set_ras_controller_irq_state() 505 if (adev->asic_type in nbio_v7_4_set_ras_err_event_athub_irq_state() [all...] |
H A D | umc_v6_1.c | 100 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_clear_error_count_per_channel() 178 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_query_correctable_error_count() 233 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_querry_uncorrectable_error_count() 268 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_count() 285 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_count() 305 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_query_error_address() 367 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_address() 383 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_address() 397 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_err_cnt_init_per_channel()
|
H A D | gfxhub_v1_1.c | 52 if (adev->asic_type == CHIP_ALDEBARAN) { in gfxhub_v1_1_get_xgmi_info() 70 switch (adev->asic_type) { in gfxhub_v1_1_get_xgmi_info() 94 if (adev->asic_type == CHIP_ALDEBARAN) { in gfxhub_v1_1_get_xgmi_info()
|
H A D | vce_v3_0.c | 305 if (adev->asic_type >= CHIP_STONEY) in vce_v3_0_start() 342 if (adev->asic_type >= CHIP_STONEY) in vce_v3_0_stop() 368 if ((adev->asic_type == CHIP_FIJI) || in vce_v3_0_get_harvest_config() 369 (adev->asic_type == CHIP_STONEY)) in vce_v3_0_get_harvest_config() 389 if ((adev->asic_type == CHIP_POLARIS10) || in vce_v3_0_get_harvest_config() 390 (adev->asic_type == CHIP_POLARIS11) || in vce_v3_0_get_harvest_config() 391 (adev->asic_type == CHIP_POLARIS12) || in vce_v3_0_get_harvest_config() 392 (adev->asic_type == CHIP_VEGAM)) in vce_v3_0_get_harvest_config() 568 if (adev->asic_type >= CHIP_STONEY) { in vce_v3_0_mc_resume() 975 if (adev->asic_type > in vce_v3_0_set_ring_funcs() [all...] |
H A D | amdgpu_acp.c | 313 adev->acp.acp_cell[0].platform_data = &adev->asic_type; in acp_hw_init() 314 adev->acp.acp_cell[0].pdata_size = sizeof(adev->asic_type); in acp_hw_init() 351 switch (adev->asic_type) { in acp_hw_init() 363 switch (adev->asic_type) { in acp_hw_init() 380 switch (adev->asic_type) { in acp_hw_init() 421 adev->acp.acp_cell[0].platform_data = &adev->asic_type; in acp_hw_init() 422 adev->acp.acp_cell[0].pdata_size = sizeof(adev->asic_type); in acp_hw_init()
|
H A D | amdgpu_doorbell_mgr.c | 192 if (adev->asic_type < CHIP_BONAIRE) { in amdgpu_doorbell_init() 221 if (adev->asic_type >= CHIP_VEGA10) in amdgpu_doorbell_init()
|
H A D | df_v3_6.c | 223 if ((adev->asic_type == CHIP_ARCTURUS && in df_v3_6_query_hashes() 225 (adev->asic_type == CHIP_ALDEBARAN && in df_v3_6_query_hashes() 280 if (adev->asic_type == CHIP_ALDEBARAN) { in df_v3_6_get_fb_channel_number() 520 switch (adev->asic_type) { in df_v3_6_pmc_start() 562 switch (adev->asic_type) { in df_v3_6_pmc_stop() 601 switch (adev->asic_type) { in df_v3_6_pmc_get_count()
|
H A D | vi.c | 105 #define ASIC_IS_P22(asic_type, rid) ((asic_type >= CHIP_POLARIS10) && \ 106 (asic_type <= CHIP_POLARIS12) && \ 260 switch (adev->asic_type) { in vi_query_video_codecs() 496 switch (adev->asic_type) { in vi_init_golden_registers() 546 switch (adev->asic_type) { in vi_get_xclk() 902 switch (adev->asic_type) { in vi_asic_supports_baco() 928 switch (adev->asic_type) { in vi_asic_reset_method() 1131 adev->asic_type < CHIP_POLARIS10) in vi_program_aspm() 1270 if ((adev->asic_type in vi_program_aspm() [all...] |
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
H A D | habanalabs_drv.c | 63 enum hl_asic_type asic_type; in get_asic_type() local 67 asic_type = ASIC_GOYA; in get_asic_type() 70 asic_type = ASIC_GAUDI; in get_asic_type() 73 asic_type = ASIC_INVALID; in get_asic_type() 77 return asic_type; in get_asic_type() 251 * @asic_type: in case of simulator device, which device is it 259 enum hl_asic_type asic_type, int minor) in create_hdev() 274 hdev->asic_type = get_asic_type(pdev->device); in create_hdev() 275 if (hdev->asic_type == ASIC_INVALID) { in create_hdev() 281 hdev->asic_type in create_hdev() 258 create_hdev(struct hl_device **dev, struct pci_dev *pdev, enum hl_asic_type asic_type, int minor) create_hdev() argument [all...] |
H A D | mmu.c | 297 switch (hdev->asic_type) { in hl_mmu_if_set_funcs() 304 hdev->asic_type); in hl_mmu_if_set_funcs()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | soc15.c | 249 if (adev->asic_type == CHIP_RENOIR) in soc15_get_xclk() 251 if (adev->asic_type == CHIP_RAVEN) in soc15_get_xclk() 300 switch (adev->asic_type) { in soc15_read_bios_from_rom() 512 switch (adev->asic_type) { in soc15_asic_reset_method() 564 switch (adev->asic_type) { in soc15_supports_baco() 657 switch (adev->asic_type) { in soc15_reg_base_init() 682 DRM_ERROR("Unsupported asic type: %d!\n", adev->asic_type); in soc15_reg_base_init() 703 if (adev->asic_type == CHIP_VEGA20 || adev->asic_type == CHIP_ARCTURUS) in soc15_set_ip_blocks() 709 } else if (adev->asic_type in soc15_set_ip_blocks() [all...] |
H A D | umc_v6_1.c | 99 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_clear_error_count_per_channel() 177 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_query_correctable_error_count() 232 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_querry_uncorrectable_error_count() 267 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_count() 284 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_count() 305 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_query_error_address() 382 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_address() 398 if ((adev->asic_type == CHIP_ARCTURUS) && in umc_v6_1_query_ras_error_address() 412 if (adev->asic_type == CHIP_ARCTURUS) { in umc_v6_1_err_cnt_init_per_channel()
|
H A D | gmc_v9_0.c | 426 if (adev->asic_type >= CHIP_VEGA20) in gmc_v9_0_ecc_interrupt_state() 587 switch (adev->asic_type) { in gmc_v9_0_process_interrupt() 730 adev->asic_type == CHIP_VEGA20) { in gmc_v9_0_flush_gpu_tlb() 857 adev->asic_type == CHIP_VEGA20); in gmc_v9_0_flush_gpu_tlb_pasid() 1072 if (adev->asic_type == CHIP_ARCTURUS && in gmc_v9_0_get_vm_pte() 1088 switch (adev->asic_type) { in gmc_v9_0_get_vbios_fb_size() 1131 switch (adev->asic_type) { in gmc_v9_0_set_umc_funcs() 1158 switch (adev->asic_type) { in gmc_v9_0_set_mmhub_funcs() 1170 switch (adev->asic_type) { in gmc_v9_0_set_gfxhub_funcs() 1216 if (!amdgpu_sriov_vf(adev) && (adev->asic_type in gmc_v9_0_late_init() [all...] |
H A D | navi10_ih.c | 63 if (adev->asic_type < CHIP_SIENNA_CICHLID) in force_update_wptr_for_self_int() 97 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_enable_interrupts() 112 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_enable_interrupts() 128 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_enable_interrupts() 154 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_disable_interrupts() 173 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_disable_interrupts() 193 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_disable_interrupts() 301 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI10) { in navi10_ih_irq_init() 314 switch (adev->asic_type) { in navi10_ih_irq_init() 360 if (amdgpu_sriov_vf(adev) && adev->asic_type < CHIP_NAVI1 in navi10_ih_irq_init() [all...] |
H A D | gmc_v10_0.c | 618 switch (adev->asic_type) { in gmc_v10_0_set_umc_funcs() 640 switch (adev->asic_type) { in gmc_v10_0_set_gfxhub_funcs() 744 switch (adev->asic_type) { in gmc_v10_0_mc_init() 794 if (adev->asic_type == CHIP_SIENNA_CICHLID && amdgpu_emu_mode == 1) { in gmc_v10_0_sw_init() 806 switch (adev->asic_type) { in gmc_v10_0_sw_init() 919 switch (adev->asic_type) { in gmc_v10_0_init_golden_registers() 1086 if (adev->asic_type == CHIP_SIENNA_CICHLID || in gmc_v10_0_set_clockgating_state() 1087 adev->asic_type == CHIP_NAVY_FLOUNDER) in gmc_v10_0_set_clockgating_state() 1099 if (adev->asic_type == CHIP_SIENNA_CICHLID || in gmc_v10_0_get_clockgating_state() 1100 adev->asic_type in gmc_v10_0_get_clockgating_state() [all...] |
H A D | vce_v3_0.c | 305 if (adev->asic_type >= CHIP_STONEY) in vce_v3_0_start() 342 if (adev->asic_type >= CHIP_STONEY) in vce_v3_0_stop() 368 if ((adev->asic_type == CHIP_FIJI) || in vce_v3_0_get_harvest_config() 369 (adev->asic_type == CHIP_STONEY)) in vce_v3_0_get_harvest_config() 389 if ((adev->asic_type == CHIP_POLARIS10) || in vce_v3_0_get_harvest_config() 390 (adev->asic_type == CHIP_POLARIS11) || in vce_v3_0_get_harvest_config() 391 (adev->asic_type == CHIP_POLARIS12) || in vce_v3_0_get_harvest_config() 392 (adev->asic_type == CHIP_VEGAM)) in vce_v3_0_get_harvest_config() 541 if (adev->asic_type >= CHIP_STONEY) { in vce_v3_0_mc_resume() 948 if (adev->asic_type > in vce_v3_0_set_ring_funcs() [all...] |
H A D | mmhub_v2_0.c | 131 switch (adev->asic_type) { in mmhub_v2_0_print_l2_protection_fault_status() 543 switch (adev->asic_type) { in mmhub_v2_0_update_medium_grain_clock_gating() 576 switch (adev->asic_type) { in mmhub_v2_0_update_medium_grain_clock_gating() 598 switch (adev->asic_type) { in mmhub_v2_0_update_medium_grain_light_sleep() 614 switch (adev->asic_type) { in mmhub_v2_0_update_medium_grain_light_sleep() 632 switch (adev->asic_type) { in mmhub_v2_0_set_clockgating() 657 switch (adev->asic_type) { in mmhub_v2_0_get_clockgating()
|
H A D | amdgpu_acp.c | 258 switch (adev->asic_type) { in acp_hw_init() 270 switch (adev->asic_type) { in acp_hw_init() 287 switch (adev->asic_type) { in acp_hw_init() 328 adev->acp.acp_cell[0].platform_data = &adev->asic_type; in acp_hw_init() 329 adev->acp.acp_cell[0].pdata_size = sizeof(adev->asic_type); in acp_hw_init()
|
H A D | psp_v11_0.c | 86 switch (adev->asic_type) { in psp_v11_0_init_microcode() 116 if (adev->asic_type != CHIP_SIENNA_CICHLID && in psp_v11_0_init_microcode() 117 adev->asic_type != CHIP_NAVY_FLOUNDER) { in psp_v11_0_init_microcode() 123 switch (adev->asic_type) { in psp_v11_0_init_microcode() 410 (adev->asic_type != CHIP_SIENNA_CICHLID) && in psp_v11_0_ring_init() 411 (adev->asic_type != CHIP_NAVY_FLOUNDER)) in psp_v11_0_ring_init()
|
H A D | df_v3_6.c | 276 if (adev->asic_type != CHIP_ARCTURUS) in df_v3_6_query_hashes() 582 switch (adev->asic_type) { in df_v3_6_pmc_start() 623 switch (adev->asic_type) { in df_v3_6_pmc_stop() 657 switch (adev->asic_type) { in df_v3_6_pmc_get_count()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_flat_memory.c | 389 switch (dev->adev->asic_type) { in kfd_init_apertures() 406 dev->adev->asic_type); in kfd_init_apertures()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 534 struct pci_dev *pdev, unsigned int asic_type, bool vf) in kgd2kfd_probe() 540 if (asic_type >= sizeof(kfd_supported_devices) / (sizeof(void *) * 2) in kgd2kfd_probe() 541 || asic_type >= sizeof(kfd2kgd_funcs) / sizeof(void *)) { in kgd2kfd_probe() 542 dev_err(kfd_device, "asic_type %d out of range\n", asic_type); in kgd2kfd_probe() 543 return NULL; /* asic_type out of range */ in kgd2kfd_probe() 546 device_info = kfd_supported_devices[asic_type][vf]; in kgd2kfd_probe() 547 f2g = kfd2kgd_funcs[asic_type]; in kgd2kfd_probe() 551 amdgpu_asic_name[asic_type], vf ? "VF" : ""); in kgd2kfd_probe() 533 kgd2kfd_probe(struct kgd_dev *kgd, struct pci_dev *pdev, unsigned int asic_type, bool vf) kgd2kfd_probe() argument
|