Lines Matching refs:goya
528 struct goya_device *goya = hdev->asic_specific; in goya_set_ddr_bar_base() local
533 if ((goya) && (goya->ddr_bar_cur_addr == addr)) in goya_set_ddr_bar_base()
544 if (goya) { in goya_set_ddr_bar_base()
545 old_addr = goya->ddr_bar_cur_addr; in goya_set_ddr_bar_base()
546 goya->ddr_bar_cur_addr = addr; in goya_set_ddr_bar_base()
728 struct goya_device *goya = hdev->asic_specific; in goya_qman0_set_security() local
730 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_qman0_set_security()
755 struct goya_device *goya = hdev->asic_specific; in goya_fetch_psoc_frequency() local
757 if (!(goya->hw_cap_initialized & HW_CAP_CPU_Q)) in goya_fetch_psoc_frequency()
818 struct goya_device *goya = hdev->asic_specific; in goya_set_frequency() local
820 if ((goya->pm_mng_profile == PM_MANUAL) || in goya_set_frequency()
821 (goya->curr_pll_profile == freq)) in goya_set_frequency()
829 goya->curr_pll_profile = freq; in goya_set_frequency()
855 struct goya_device *goya = hdev->asic_specific; in goya_late_init() local
905 goya->curr_pll_profile = PLL_LOW; in goya_late_init()
907 goya->pm_mng_profile = PM_AUTO; in goya_late_init()
911 schedule_delayed_work(&goya->goya_work->work_freq, in goya_late_init()
926 struct goya_device *goya = hdev->asic_specific; in goya_late_fini() local
928 cancel_delayed_work_sync(&goya->goya_work->work_freq); in goya_late_fini()
974 struct goya_device *goya; in goya_sw_init() local
978 goya = kzalloc(sizeof(*goya), GFP_KERNEL); in goya_sw_init()
979 if (!goya) in goya_sw_init()
983 goya->ddr_bar_cur_addr = DRAM_PHYS_BASE; in goya_sw_init()
985 goya->mme_clk = GOYA_PLL_FREQ_LOW; in goya_sw_init()
986 goya->tpc_clk = GOYA_PLL_FREQ_LOW; in goya_sw_init()
987 goya->ic_clk = GOYA_PLL_FREQ_LOW; in goya_sw_init()
989 hdev->asic_specific = goya; in goya_sw_init()
1030 spin_lock_init(&goya->hw_queues_lock); in goya_sw_init()
1039 goya->goya_work = kmalloc(sizeof(struct goya_work_freq), GFP_KERNEL); in goya_sw_init()
1040 if (!goya->goya_work) { in goya_sw_init()
1045 goya->goya_work->hdev = hdev; in goya_sw_init()
1046 INIT_DELAYED_WORK(&goya->goya_work->work_freq, goya_set_freq_to_low_job); in goya_sw_init()
1058 kfree(goya); in goya_sw_init()
1071 struct goya_device *goya = hdev->asic_specific; in goya_sw_fini() local
1080 kfree(goya->goya_work); in goya_sw_fini()
1081 kfree(goya); in goya_sw_fini()
1089 struct goya_device *goya = hdev->asic_specific; in goya_init_dma_qman() local
1126 if (goya->hw_cap_initialized & HW_CAP_MMU) in goya_init_dma_qman()
1174 struct goya_device *goya = hdev->asic_specific; in goya_init_dma_qmans() local
1178 if (goya->hw_cap_initialized & HW_CAP_DMA) in goya_init_dma_qmans()
1189 goya->hw_cap_initialized |= HW_CAP_DMA; in goya_init_dma_qmans()
1200 struct goya_device *goya = hdev->asic_specific; in goya_disable_external_queues() local
1202 if (!(goya->hw_cap_initialized & HW_CAP_DMA)) in goya_disable_external_queues()
1266 struct goya_device *goya = hdev->asic_specific; in goya_stop_external_queues() local
1268 if (!(goya->hw_cap_initialized & HW_CAP_DMA)) in goya_stop_external_queues()
1334 struct goya_device *goya = hdev->asic_specific; in goya_init_cpu_queues() local
1344 if (goya->hw_cap_initialized & HW_CAP_CPU_Q) in goya_init_cpu_queues()
1395 goya->hw_cap_initialized |= HW_CAP_CPU_Q; in goya_init_cpu_queues()
1510 struct goya_device *goya = hdev->asic_specific; in goya_tpc_mbist_workaround() local
1516 if (goya->hw_cap_initialized & HW_CAP_TPC_MBIST) in goya_tpc_mbist_workaround()
1524 goya->hw_cap_initialized |= HW_CAP_TPC_MBIST; in goya_tpc_mbist_workaround()
1537 struct goya_device *goya = hdev->asic_specific; in goya_init_golden_registers() local
1541 if (goya->hw_cap_initialized & HW_CAP_GOLDEN) in goya_init_golden_registers()
1827 goya->hw_cap_initialized |= HW_CAP_GOLDEN; in goya_init_golden_registers()
1918 struct goya_device *goya = hdev->asic_specific; in goya_init_mme_qmans() local
1921 if (goya->hw_cap_initialized & HW_CAP_MME) in goya_init_mme_qmans()
1933 goya->hw_cap_initialized |= HW_CAP_MME; in goya_init_mme_qmans()
2025 struct goya_device *goya = hdev->asic_specific; in goya_init_tpc_qmans() local
2031 if (goya->hw_cap_initialized & HW_CAP_TPC) in goya_init_tpc_qmans()
2056 goya->hw_cap_initialized |= HW_CAP_TPC; in goya_init_tpc_qmans()
2067 struct goya_device *goya = hdev->asic_specific; in goya_disable_internal_queues() local
2069 if (!(goya->hw_cap_initialized & HW_CAP_MME)) in goya_disable_internal_queues()
2076 if (!(goya->hw_cap_initialized & HW_CAP_TPC)) in goya_disable_internal_queues()
2114 struct goya_device *goya = hdev->asic_specific; in goya_stop_internal_queues() local
2117 if (!(goya->hw_cap_initialized & HW_CAP_MME)) in goya_stop_internal_queues()
2147 if (!(goya->hw_cap_initialized & HW_CAP_TPC)) in goya_stop_internal_queues()
2315 struct goya_device *goya = hdev->asic_specific; in goya_dma_stall() local
2317 if (!(goya->hw_cap_initialized & HW_CAP_DMA)) in goya_dma_stall()
2329 struct goya_device *goya = hdev->asic_specific; in goya_tpc_stall() local
2331 if (!(goya->hw_cap_initialized & HW_CAP_TPC)) in goya_tpc_stall()
2346 struct goya_device *goya = hdev->asic_specific; in goya_mme_stall() local
2348 if (!(goya->hw_cap_initialized & HW_CAP_MME)) in goya_mme_stall()
2356 struct goya_device *goya = hdev->asic_specific; in goya_enable_msix() local
2360 if (goya->hw_cap_initialized & HW_CAP_MSIX) in goya_enable_msix()
2392 goya->hw_cap_initialized |= HW_CAP_MSIX; in goya_enable_msix()
2406 struct goya_device *goya = hdev->asic_specific; in goya_sync_irqs() local
2409 if (!(goya->hw_cap_initialized & HW_CAP_MSIX)) in goya_sync_irqs()
2421 struct goya_device *goya = hdev->asic_specific; in goya_disable_msix() local
2424 if (!(goya->hw_cap_initialized & HW_CAP_MSIX)) in goya_disable_msix()
2439 goya->hw_cap_initialized &= ~HW_CAP_MSIX; in goya_disable_msix()
2606 struct goya_device *goya = hdev->asic_specific; in goya_init_cpu() local
2612 if (goya->hw_cap_initialized & HW_CAP_CPU) in goya_init_cpu()
2630 goya->hw_cap_initialized |= HW_CAP_CPU; in goya_init_cpu()
2670 struct goya_device *goya = hdev->asic_specific; in goya_mmu_init() local
2674 if (goya->hw_cap_initialized & HW_CAP_MMU) in goya_mmu_init()
2691 goya->hw_cap_initialized |= HW_CAP_MMU; in goya_mmu_init()
2791 struct goya_device *goya = hdev->asic_specific; in goya_hw_fini() local
2840 if (!hard_reset && goya) { in goya_hw_fini()
2841 goya->hw_cap_initialized &= ~(HW_CAP_DMA | HW_CAP_MME | in goya_hw_fini()
2855 if (goya) { in goya_hw_fini()
2856 goya->hw_cap_initialized &= ~(HW_CAP_CPU | HW_CAP_CPU_Q | in goya_hw_fini()
2862 memset(goya->events_stat, 0, sizeof(goya->events_stat)); in goya_hw_fini()
3145 struct goya_device *goya = hdev->asic_specific; in goya_send_cpu_message() local
3147 if (!(goya->hw_cap_initialized & HW_CAP_CPU_Q)) { in goya_send_cpu_message()
3229 struct goya_device *goya = hdev->asic_specific; in goya_test_cpu_queue() local
3235 if (!(goya->hw_cap_initialized & HW_CAP_CPU_Q)) in goya_test_cpu_queue()
3610 struct goya_device *goya = hdev->asic_specific; in goya_validate_wreg32() local
3633 if (goya->hw_cap_initialized & HW_CAP_MMU) in goya_validate_wreg32()
4112 struct goya_device *goya = hdev->asic_specific; in goya_parse_cb_no_ext_queue() local
4114 if (goya->hw_cap_initialized & HW_CAP_MMU) in goya_parse_cb_no_ext_queue()
4141 struct goya_device *goya = hdev->asic_specific; in goya_cs_parser() local
4146 if (goya->hw_cap_initialized & HW_CAP_MMU) in goya_cs_parser()
4215 struct goya_device *goya = hdev->asic_specific; in goya_read_pte() local
4221 (addr - goya->ddr_bar_cur_addr)); in goya_read_pte()
4226 struct goya_device *goya = hdev->asic_specific; in goya_write_pte() local
4232 (addr - goya->ddr_bar_cur_addr)); in goya_write_pte()
4458 struct goya_device *goya = hdev->asic_specific; in goya_print_mmu_error_info() local
4462 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_print_mmu_error_info()
4637 struct goya_device *goya = hdev->asic_specific; in goya_handle_eqe() local
4645 goya->events_stat[event_type]++; in goya_handle_eqe()
4646 goya->events_stat_aggregate[event_type]++; in goya_handle_eqe()
4754 struct goya_device *goya = hdev->asic_specific; in goya_get_events_stat() local
4757 *size = (u32) sizeof(goya->events_stat_aggregate); in goya_get_events_stat()
4758 return goya->events_stat_aggregate; in goya_get_events_stat()
4761 *size = (u32) sizeof(goya->events_stat); in goya_get_events_stat()
4762 return goya->events_stat; in goya_get_events_stat()
4874 struct goya_device *goya = hdev->asic_specific; in goya_mmu_clear_pgt_range() local
4879 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_mmu_clear_pgt_range()
4887 struct goya_device *goya = hdev->asic_specific; in goya_mmu_set_dram_default_page() local
4892 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_mmu_set_dram_default_page()
4901 struct goya_device *goya = hdev->asic_specific; in goya_mmu_add_mappings_for_device_cpu() local
4905 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_mmu_add_mappings_for_device_cpu()
4955 goya->device_cpu_mmu_mappings_done = true; in goya_mmu_add_mappings_for_device_cpu()
4982 struct goya_device *goya = hdev->asic_specific; in goya_mmu_remove_device_cpu_mappings() local
4985 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_mmu_remove_device_cpu_mappings()
4988 if (!goya->device_cpu_mmu_mappings_done) in goya_mmu_remove_device_cpu_mappings()
5019 goya->device_cpu_mmu_mappings_done = false; in goya_mmu_remove_device_cpu_mappings()
5024 struct goya_device *goya = hdev->asic_specific; in goya_mmu_prepare() local
5027 if (!(goya->hw_cap_initialized & HW_CAP_MMU)) in goya_mmu_prepare()
5043 struct goya_device *goya = hdev->asic_specific; in goya_mmu_invalidate_cache() local
5047 if (!(goya->hw_cap_initialized & HW_CAP_MMU) || in goya_mmu_invalidate_cache()
5086 struct goya_device *goya = hdev->asic_specific; in goya_send_heartbeat() local
5088 if (!(goya->hw_cap_initialized & HW_CAP_CPU_Q)) in goya_send_heartbeat()
5096 struct goya_device *goya = hdev->asic_specific; in goya_cpucp_info_get() local
5101 if (!(goya->hw_cap_initialized & HW_CAP_CPU_Q)) in goya_cpucp_info_get()
5211 __acquires(&goya->hw_queues_lock) in goya_hw_queues_lock()
5213 struct goya_device *goya = hdev->asic_specific; in goya_hw_queues_lock() local
5215 spin_lock(&goya->hw_queues_lock); in goya_hw_queues_lock()
5219 __releases(&goya->hw_queues_lock) in goya_hw_queues_unlock()
5221 struct goya_device *goya = hdev->asic_specific; in goya_hw_queues_unlock() local
5223 spin_unlock(&goya->hw_queues_lock); in goya_hw_queues_unlock()
5234 struct goya_device *goya = hdev->asic_specific; in goya_get_eeprom_data() local
5236 if (!(goya->hw_cap_initialized & HW_CAP_CPU_Q)) in goya_get_eeprom_data()