Lines Matching defs:hdev

360 int goya_set_fixed_properties(struct hl_device *hdev)  in goya_set_fixed_properties()
508 static int goya_pci_bars_map(struct hl_device *hdev) in goya_pci_bars_map()
524 static u64 goya_set_ddr_bar_base(struct hl_device *hdev, u64 addr) in goya_set_ddr_bar_base()
558 static int goya_init_iatu(struct hl_device *hdev) in goya_init_iatu()
592 static enum hl_device_hw_state goya_get_hw_state(struct hl_device *hdev) in goya_get_hw_state()
608 static int goya_early_init(struct hl_device *hdev) in goya_early_init()
709 static int goya_early_fini(struct hl_device *hdev) in goya_early_fini()
717 static void goya_mmu_prepare_reg(struct hl_device *hdev, u64 reg, u32 asid) in goya_mmu_prepare_reg()
724 static void goya_qman0_set_security(struct hl_device *hdev, bool secure) in goya_qman0_set_security()
745 static void goya_fetch_psoc_frequency(struct hl_device *hdev) in goya_fetch_psoc_frequency()
814 int goya_set_frequency(struct hl_device *hdev, enum hl_pll_frequency freq) in goya_set_frequency()
837 struct hl_device *hdev = goya_work->hdev; in goya_set_freq_to_low_job() local
850 int goya_late_init(struct hl_device *hdev) in goya_late_init()
919 void goya_late_fini(struct hl_device *hdev) in goya_late_fini()
928 static void goya_set_pci_memory_regions(struct hl_device *hdev) in goya_set_pci_memory_regions()
967 static int goya_sw_init(struct hl_device *hdev) in goya_sw_init()
1064 static int goya_sw_fini(struct hl_device *hdev) in goya_sw_fini()
1081 static void goya_init_dma_qman(struct hl_device *hdev, int dma_id, in goya_init_dma_qman()
1133 static void goya_init_dma_ch(struct hl_device *hdev, int dma_id) in goya_init_dma_ch()
1167 void goya_init_dma_qmans(struct hl_device *hdev) in goya_init_dma_qmans()
1193 static void goya_disable_external_queues(struct hl_device *hdev) in goya_disable_external_queues()
1207 static int goya_stop_queue(struct hl_device *hdev, u32 cfg_reg, in goya_stop_queue()
1257 static int goya_stop_external_queues(struct hl_device *hdev) in goya_stop_external_queues()
1327 int goya_init_cpu_queues(struct hl_device *hdev) in goya_init_cpu_queues()
1394 static void goya_set_pll_refclk(struct hl_device *hdev) in goya_set_pll_refclk()
1432 static void goya_disable_clk_rlx(struct hl_device *hdev) in goya_disable_clk_rlx()
1438 static void _goya_tpc_mbist_workaround(struct hl_device *hdev, u8 tpc_id) in _goya_tpc_mbist_workaround()
1503 static void goya_tpc_mbist_workaround(struct hl_device *hdev) in goya_tpc_mbist_workaround()
1530 static void goya_init_golden_registers(struct hl_device *hdev) in goya_init_golden_registers()
1825 static void goya_init_mme_qman(struct hl_device *hdev) in goya_init_mme_qman()
1875 static void goya_init_mme_cmdq(struct hl_device *hdev) in goya_init_mme_cmdq()
1911 void goya_init_mme_qmans(struct hl_device *hdev) in goya_init_mme_qmans()
1931 static void goya_init_tpc_qman(struct hl_device *hdev, u32 base_off, int tpc_id) in goya_init_tpc_qman()
1981 static void goya_init_tpc_cmdq(struct hl_device *hdev, int tpc_id) in goya_init_tpc_cmdq()
2018 void goya_init_tpc_qmans(struct hl_device *hdev) in goya_init_tpc_qmans()
2060 static void goya_disable_internal_queues(struct hl_device *hdev) in goya_disable_internal_queues()
2107 static int goya_stop_internal_queues(struct hl_device *hdev) in goya_stop_internal_queues()
2308 static void goya_dma_stall(struct hl_device *hdev) in goya_dma_stall()
2322 static void goya_tpc_stall(struct hl_device *hdev) in goya_tpc_stall()
2339 static void goya_mme_stall(struct hl_device *hdev) in goya_mme_stall()
2349 static int goya_enable_msix(struct hl_device *hdev) in goya_enable_msix()
2399 static void goya_sync_irqs(struct hl_device *hdev) in goya_sync_irqs()
2414 static void goya_disable_msix(struct hl_device *hdev) in goya_disable_msix()
2437 static void goya_enable_timestamp(struct hl_device *hdev) in goya_enable_timestamp()
2450 static void goya_disable_timestamp(struct hl_device *hdev) in goya_disable_timestamp()
2456 static void goya_halt_engines(struct hl_device *hdev, bool hard_reset, bool fw_reset) in goya_halt_engines()
2497 static int goya_load_firmware_to_device(struct hl_device *hdev) in goya_load_firmware_to_device()
2514 static int goya_load_boot_fit_to_device(struct hl_device *hdev) in goya_load_boot_fit_to_device()
2523 static void goya_init_dynamic_firmware_loader(struct hl_device *hdev) in goya_init_dynamic_firmware_loader()
2546 static void goya_init_static_firmware_loader(struct hl_device *hdev) in goya_init_static_firmware_loader()
2566 static void goya_init_firmware_preload_params(struct hl_device *hdev) in goya_init_firmware_preload_params()
2578 static void goya_init_firmware_loader(struct hl_device *hdev) in goya_init_firmware_loader()
2599 static int goya_init_cpu(struct hl_device *hdev) in goya_init_cpu()
2630 static int goya_mmu_update_asid_hop0_addr(struct hl_device *hdev, u32 asid, in goya_mmu_update_asid_hop0_addr()
2662 int goya_mmu_init(struct hl_device *hdev) in goya_mmu_init()
2716 static int goya_hw_init(struct hl_device *hdev) in goya_hw_init()
2784 static int goya_hw_fini(struct hl_device *hdev, bool hard_reset, bool fw_reset) in goya_hw_fini()
2862 int goya_suspend(struct hl_device *hdev) in goya_suspend()
2867 int goya_resume(struct hl_device *hdev) in goya_resume()
2872 static int goya_mmap(struct hl_device *hdev, struct vm_area_struct *vma, in goya_mmap()
2888 void goya_ring_doorbell(struct hl_device *hdev, u32 hw_queue_id, u32 pi) in goya_ring_doorbell()
2973 void goya_pqe_write(struct hl_device *hdev, __le64 *pqe, struct hl_bd *bd) in goya_pqe_write()
2979 static void *goya_dma_alloc_coherent(struct hl_device *hdev, size_t size, in goya_dma_alloc_coherent()
2992 static void goya_dma_free_coherent(struct hl_device *hdev, size_t size, in goya_dma_free_coherent()
3001 int goya_scrub_device_mem(struct hl_device *hdev) in goya_scrub_device_mem()
3006 void *goya_get_int_queue_base(struct hl_device *hdev, u32 queue_id, in goya_get_int_queue_base()
3064 static int goya_send_job_on_qman0(struct hl_device *hdev, struct hl_cs_job *job) in goya_send_job_on_qman0()
3131 int goya_send_cpu_message(struct hl_device *hdev, u32 *msg, u16 len, in goya_send_cpu_message()
3149 int goya_test_queue(struct hl_device *hdev, u32 hw_queue_id) in goya_test_queue()
3216 int goya_test_cpu_queue(struct hl_device *hdev) in goya_test_cpu_queue()
3230 int goya_test_queues(struct hl_device *hdev) in goya_test_queues()
3243 static void *goya_dma_pool_zalloc(struct hl_device *hdev, size_t size, in goya_dma_pool_zalloc()
3260 static void goya_dma_pool_free(struct hl_device *hdev, void *vaddr, in goya_dma_pool_free()
3269 void *goya_cpu_accessible_dma_pool_alloc(struct hl_device *hdev, size_t size, in goya_cpu_accessible_dma_pool_alloc()
3281 void goya_cpu_accessible_dma_pool_free(struct hl_device *hdev, size_t size, in goya_cpu_accessible_dma_pool_free()
3287 u32 goya_get_dma_desc_list_size(struct hl_device *hdev, struct sg_table *sgt) in goya_get_dma_desc_list_size()
3327 static int goya_pin_memory_before_cs(struct hl_device *hdev, in goya_pin_memory_before_cs()
3373 static int goya_validate_dma_pkt_host(struct hl_device *hdev, in goya_validate_dma_pkt_host()
3476 static int goya_validate_dma_pkt_no_host(struct hl_device *hdev, in goya_validate_dma_pkt_no_host()
3521 static int goya_validate_dma_pkt_no_mmu(struct hl_device *hdev, in goya_validate_dma_pkt_no_mmu()
3558 static int goya_validate_dma_pkt_mmu(struct hl_device *hdev, in goya_validate_dma_pkt_mmu()
3595 static int goya_validate_wreg32(struct hl_device *hdev, in goya_validate_wreg32()
3639 static int goya_validate_cb(struct hl_device *hdev, in goya_validate_cb()
3746 static int goya_patch_dma_packet(struct hl_device *hdev, in goya_patch_dma_packet()
3876 static int goya_patch_cb(struct hl_device *hdev, in goya_patch_cb()
3974 static int goya_parse_cb_mmu(struct hl_device *hdev, in goya_parse_cb_mmu()
4049 static int goya_parse_cb_no_mmu(struct hl_device *hdev, in goya_parse_cb_no_mmu()
4097 static int goya_parse_cb_no_ext_queue(struct hl_device *hdev, in goya_parse_cb_no_ext_queue()
4128 int goya_cs_parser(struct hl_device *hdev, struct hl_cs_parser *parser) in goya_cs_parser()
4141 void goya_add_end_of_cb_packets(struct hl_device *hdev, void *kernel_address, in goya_add_end_of_cb_packets()
4166 void goya_update_eq_ci(struct hl_device *hdev, u32 val) in goya_update_eq_ci()
4171 void goya_restore_phase_topology(struct hl_device *hdev) in goya_restore_phase_topology()
4176 static void goya_clear_sm_regs(struct hl_device *hdev) in goya_clear_sm_regs()
4196 static int goya_debugfs_read_dma(struct hl_device *hdev, u64 addr, u32 size, void *blob_addr) in goya_debugfs_read_dma()
4202 static u64 goya_read_pte(struct hl_device *hdev, u64 addr) in goya_read_pte()
4213 static void goya_write_pte(struct hl_device *hdev, u64 addr, u64 val) in goya_write_pte()
4422 static void goya_print_razwi_info(struct hl_device *hdev) in goya_print_razwi_info()
4445 static void goya_print_mmu_error_info(struct hl_device *hdev) in goya_print_mmu_error_info()
4467 static void goya_print_out_of_sync_info(struct hl_device *hdev, in goya_print_out_of_sync_info()
4476 static void goya_print_irq_info(struct hl_device *hdev, u16 event_type, in goya_print_irq_info()
4491 static int goya_unmask_irq_arr(struct hl_device *hdev, u32 *irq_arr, in goya_unmask_irq_arr()
4542 static int goya_compute_reset_late_init(struct hl_device *hdev) in goya_compute_reset_late_init()
4552 static int goya_unmask_irq(struct hl_device *hdev, u16 event_type) in goya_unmask_irq()
4573 static void goya_print_clk_change_info(struct hl_device *hdev, u16 event_type) in goya_print_clk_change_info()
4621 void goya_handle_eqe(struct hl_device *hdev, struct hl_eq_entry *eq_entry) in goya_handle_eqe()
4741 void *goya_get_events_stat(struct hl_device *hdev, bool aggregate, u32 *size) in goya_get_events_stat()
4754 static int goya_memset_device_memory(struct hl_device *hdev, u64 addr, u64 size, in goya_memset_device_memory()
4826 int goya_context_switch(struct hl_device *hdev, u32 asid) in goya_context_switch()
4860 static int goya_mmu_clear_pgt_range(struct hl_device *hdev) in goya_mmu_clear_pgt_range()
4874 static int goya_mmu_set_dram_default_page(struct hl_device *hdev) in goya_mmu_set_dram_default_page()
4887 static int goya_mmu_add_mappings_for_device_cpu(struct hl_device *hdev) in goya_mmu_add_mappings_for_device_cpu()
4968 void goya_mmu_remove_device_cpu_mappings(struct hl_device *hdev) in goya_mmu_remove_device_cpu_mappings()
5011 static void goya_mmu_prepare(struct hl_device *hdev, u32 asid) in goya_mmu_prepare()
5029 static int goya_mmu_invalidate_cache(struct hl_device *hdev, bool is_hard, in goya_mmu_invalidate_cache()
5063 static int goya_mmu_invalidate_cache_range(struct hl_device *hdev, in goya_mmu_invalidate_cache_range()
5073 int goya_send_heartbeat(struct hl_device *hdev) in goya_send_heartbeat()
5083 int goya_cpucp_info_get(struct hl_device *hdev) in goya_cpucp_info_get()
5120 static bool goya_is_device_idle(struct hl_device *hdev, u64 *mask_arr, u8 mask_len, in goya_is_device_idle()
5199 static void goya_hw_queues_lock(struct hl_device *hdev) in goya_hw_queues_lock()
5207 static void goya_hw_queues_unlock(struct hl_device *hdev) in goya_hw_queues_unlock()
5215 static u32 goya_get_pci_id(struct hl_device *hdev) in goya_get_pci_id()
5220 static int goya_get_eeprom_data(struct hl_device *hdev, void *data, in goya_get_eeprom_data()
5231 static void goya_cpu_init_scrambler_dram(struct hl_device *hdev) in goya_cpu_init_scrambler_dram()
5249 u32 goya_get_queue_id_for_cq(struct hl_device *hdev, u32 cq_idx) in goya_get_queue_id_for_cq()
5254 static u32 goya_get_signal_cb_size(struct hl_device *hdev) in goya_get_signal_cb_size()
5259 static u32 goya_get_wait_cb_size(struct hl_device *hdev) in goya_get_wait_cb_size()
5264 static u32 goya_gen_signal_cb(struct hl_device *hdev, void *data, u16 sob_id, in goya_gen_signal_cb()
5270 static u32 goya_gen_wait_cb(struct hl_device *hdev, in goya_gen_wait_cb()
5276 static void goya_reset_sob(struct hl_device *hdev, void *data) in goya_reset_sob()
5281 static void goya_reset_sob_group(struct hl_device *hdev, u16 sob_group) in goya_reset_sob_group()
5286 u64 goya_get_device_time(struct hl_device *hdev) in goya_get_device_time()
5298 static int goya_collective_wait_create_jobs(struct hl_device *hdev, in goya_collective_wait_create_jobs()
5310 static int goya_get_hw_block_id(struct hl_device *hdev, u64 block_addr, in goya_get_hw_block_id()
5316 static int goya_block_mmap(struct hl_device *hdev, struct vm_area_struct *vma, in goya_block_mmap()
5322 static void goya_enable_events_from_fw(struct hl_device *hdev) in goya_enable_events_from_fw()
5328 static int goya_ack_mmu_page_fault_or_access_error(struct hl_device *hdev, u64 mmu_cap_mask) in goya_ack_mmu_page_fault_or_access_error()
5347 static int goya_gen_sync_to_engine_map(struct hl_device *hdev, in goya_gen_sync_to_engine_map()
5361 struct hl_device *hdev, in goya_print_single_monitor()
5370 struct hl_device *hdev, u64 base_offset, u64 status_base_offset, in goya_print_fences_single_engine()
5386 static void goya_state_dump_init(struct hl_device *hdev) in goya_state_dump_init()
5393 static u32 goya_get_sob_addr(struct hl_device *hdev, u32 sob_id) in goya_get_sob_addr()
5403 static int goya_get_monitor_dump(struct hl_device *hdev, void *data) in goya_get_monitor_dump()
5408 static void goya_check_if_razwi_happened(struct hl_device *hdev) in goya_check_if_razwi_happened()
5412 static int goya_scrub_device_dram(struct hl_device *hdev, u64 val) in goya_scrub_device_dram()
5417 static int goya_set_dram_properties(struct hl_device *hdev) in goya_set_dram_properties()
5422 static int goya_set_binning_masks(struct hl_device *hdev) in goya_set_binning_masks()
5427 static int goya_send_device_activity(struct hl_device *hdev, bool open) in goya_send_device_activity()
5535 void goya_set_asic_funcs(struct hl_device *hdev) in goya_set_asic_funcs()