Home
last modified time | relevance | path

Searched refs:hl_device (Results 1 – 25 of 29) sorted by relevance

12

/linux/drivers/misc/habanalabs/goya/
A DgoyaP.h172 int goya_mmu_init(struct hl_device *hdev);
177 void goya_init_security(struct hl_device *hdev);
179 int goya_late_init(struct hl_device *hdev);
180 void goya_late_fini(struct hl_device *hdev);
195 int goya_test_queues(struct hl_device *hdev);
196 int goya_test_cpu_queue(struct hl_device *hdev);
207 u64 goya_get_max_power(struct hl_device *hdev);
213 int goya_cpucp_info_get(struct hl_device *hdev);
217 int goya_suspend(struct hl_device *hdev);
218 int goya_resume(struct hl_device *hdev);
[all …]
A Dgoya_hwmgr.c38 struct hl_device *hdev = dev_get_drvdata(dev); in mme_clk_show()
55 struct hl_device *hdev = dev_get_drvdata(dev); in mme_clk_store()
87 struct hl_device *hdev = dev_get_drvdata(dev); in tpc_clk_show()
104 struct hl_device *hdev = dev_get_drvdata(dev); in tpc_clk_store()
136 struct hl_device *hdev = dev_get_drvdata(dev); in ic_clk_show()
153 struct hl_device *hdev = dev_get_drvdata(dev); in ic_clk_store()
185 struct hl_device *hdev = dev_get_drvdata(dev); in mme_clk_curr_show()
202 struct hl_device *hdev = dev_get_drvdata(dev); in tpc_clk_curr_show()
219 struct hl_device *hdev = dev_get_drvdata(dev); in ic_clk_curr_show()
236 struct hl_device *hdev = dev_get_drvdata(dev); in pm_mng_profile_show()
[all …]
A Dgoya.c538 static int goya_init_iatu(struct hl_device *hdev) in goya_init_iatu()
781 int goya_late_init(struct hl_device *hdev) in goya_late_init()
842 void goya_late_fini(struct hl_device *hdev) in goya_late_fini()
902 static int goya_sw_init(struct hl_device *hdev) in goya_sw_init()
993 static int goya_sw_fini(struct hl_device *hdev) in goya_sw_fini()
1097 void goya_init_dma_qmans(struct hl_device *hdev) in goya_init_dma_qmans()
2583 int goya_mmu_init(struct hl_device *hdev) in goya_mmu_init()
2786 int goya_suspend(struct hl_device *hdev) in goya_suspend()
2797 int goya_resume(struct hl_device *hdev) in goya_resume()
3166 int goya_test_queues(struct hl_device *hdev) in goya_test_queues()
[all …]
A Dgoya_coresight.c199 static int goya_coresight_timeout(struct hl_device *hdev, u64 addr, in goya_coresight_timeout()
228 static int goya_config_stm(struct hl_device *hdev, in goya_config_stm()
301 static int goya_config_etf(struct hl_device *hdev, in goya_config_etf()
362 static int goya_etr_validate_address(struct hl_device *hdev, u64 addr, in goya_etr_validate_address()
385 static int goya_config_etr(struct hl_device *hdev, in goya_config_etr()
479 static int goya_config_funnel(struct hl_device *hdev, in goya_config_funnel()
498 static int goya_config_bmon(struct hl_device *hdev, in goya_config_bmon()
570 static int goya_config_spmu(struct hl_device *hdev, in goya_config_spmu()
655 int goya_debug_coresight(struct hl_device *hdev, void *data) in goya_debug_coresight()
694 void goya_halt_coresight(struct hl_device *hdev) in goya_halt_coresight()
/linux/drivers/misc/habanalabs/common/
A Dhabanalabs.h195 struct hl_device;
311 struct hl_device *hdev;
649 struct hl_device *hdev;
696 struct hl_device *hdev;
826 struct hl_device *hdev;
844 struct hl_device *hdev;
874 struct hl_device *hdev;
1432 struct hl_device *hdev;
1798 struct hl_device *hdev;
2509 struct hl_device { struct
[all …]
A Dsysfs.c72 u64 hl_get_max_power(struct hl_device *hdev) in hl_get_max_power()
94 void hl_set_max_power(struct hl_device *hdev) in hl_set_max_power()
115 struct hl_device *hdev = dev_get_drvdata(dev); in uboot_ver_show()
123 struct hl_device *hdev = dev_get_drvdata(dev); in armcp_kernel_ver_show()
131 struct hl_device *hdev = dev_get_drvdata(dev); in armcp_ver_show()
139 struct hl_device *hdev = dev_get_drvdata(dev); in cpld_ver_show()
148 struct hl_device *hdev = dev_get_drvdata(dev); in cpucp_kernel_ver_show()
156 struct hl_device *hdev = dev_get_drvdata(dev); in cpucp_ver_show()
164 struct hl_device *hdev = dev_get_drvdata(dev); in infineon_ver_show()
448 int hl_sysfs_init(struct hl_device *hdev) in hl_sysfs_init()
[all …]
A Dirq.c22 struct hl_device *hdev;
62 struct hl_device *hdev = eqe_work->hdev; in irq_handle_eqe()
79 struct hl_device *hdev = cq->hdev; in hl_irq_handler_cq()
140 static void handle_user_cq(struct hl_device *hdev, in handle_user_cq()
164 struct hl_device *hdev = user_cq->hdev; in hl_irq_handler_user_cq()
189 struct hl_device *hdev = user_interrupt->hdev; in hl_irq_handler_default()
209 struct hl_device *hdev = eq->hdev; in hl_irq_handler_eq()
317 void hl_cq_fini(struct hl_device *hdev, struct hl_cq *q) in hl_cq_fini()
324 void hl_cq_reset(struct hl_device *hdev, struct hl_cq *q) in hl_cq_reset()
350 int hl_eq_init(struct hl_device *hdev, struct hl_eq *q) in hl_eq_init()
[all …]
A Dfirmware_if.c49 static int hl_request_fw(struct hl_device *hdev, in hl_request_fw()
113 static int hl_fw_copy_fw_to_device(struct hl_device *hdev, in hl_fw_copy_fw_to_device()
147 static int hl_fw_copy_msg_to_device(struct hl_device *hdev, in hl_fw_copy_msg_to_device()
353 int hl_fw_test_cpu_queue(struct hl_device *hdev) in hl_fw_test_cpu_queue()
397 int hl_fw_send_heartbeat(struct hl_device *hdev) in hl_fw_send_heartbeat()
604 int hl_fw_cpucp_info_get(struct hl_device *hdev, in hl_fw_cpucp_info_get()
687 static int hl_fw_send_msi_info_msg(struct hl_device *hdev) in hl_fw_send_msi_info_msg()
741 int hl_fw_cpucp_handshake(struct hl_device *hdev, in hl_fw_cpucp_handshake()
801 int hl_fw_cpucp_pci_counters_get(struct hl_device *hdev, in hl_fw_cpucp_pci_counters_get()
2351 static int hl_fw_static_init_cpu(struct hl_device *hdev, in hl_fw_static_init_cpu()
[all …]
A Dhw_queue.c43 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_update_ci()
116 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks()
270 struct hl_device *hdev = job->cs->ctx->hdev; in ext_queue_schedule_job()
334 struct hl_device *hdev = job->cs->ctx->hdev; in int_queue_schedule_job()
370 struct hl_device *hdev = job->cs->ctx->hdev; in hw_queue_schedule_job()
403 static int init_signal_cs(struct hl_device *hdev, in init_signal_cs()
546 struct hl_device *hdev = ctx->hdev; in init_signal_wait_cs()
565 (struct hl_device *hdev, struct hl_cs *cs) in encaps_sig_first_staged_cs_handler()
626 struct hl_device *hdev = ctx->hdev; in hl_hw_queue_schedule_cs()
1070 int hl_hw_queues_create(struct hl_device *hdev) in hl_hw_queues_create()
[all …]
A Ddevice.c34 bool hl_device_operational(struct hl_device *hdev, in hl_device_operational()
60 struct hl_device *hdev; in hpriv_release()
132 struct hl_device *hdev = hpriv->hdev; in hl_device_release()
163 struct hl_device *hdev = hpriv->hdev; in hl_device_release_ctrl()
195 struct hl_device *hdev = hpriv->hdev; in hl_mmap()
329 struct hl_device *hdev = device_reset_work->hdev; in device_hard_reset_pending()
518 struct hl_device *hdev = container_of(work, struct hl_device, in set_freq_to_low_job()
534 struct hl_device *hdev = container_of(work, struct hl_device, in hl_device_heartbeat()
770 int hl_device_suspend(struct hl_device *hdev) in hl_device_suspend()
809 int hl_device_resume(struct hl_device *hdev) in hl_device_resume()
[all …]
A Dhabanalabs_ioctl.c120 struct hl_device *hdev = hpriv->hdev; in dram_usage_info()
297 struct hl_device *hdev = hpriv->hdev; in pci_counters_info()
316 struct hl_device *hdev = hpriv->hdev; in clk_throttle_info()
334 struct hl_device *hdev = hpriv->hdev; in cs_counters_info()
383 struct hl_device *hdev = hpriv->hdev; in sync_manager_info()
409 struct hl_device *hdev = hpriv->hdev; in total_energy_consumption_info()
429 struct hl_device *hdev = hpriv->hdev; in pll_frequency_info()
448 struct hl_device *hdev = hpriv->hdev; in power_info()
467 struct hl_device *hdev = hpriv->hdev; in open_stats_info()
488 struct hl_device *hdev = hpriv->hdev; in _hl_info_ioctl()
[all …]
A Dhwmgr.c10 void hl_set_pll_profile(struct hl_device *hdev, enum hl_pll_frequency freq) in hl_set_pll_profile()
16 int hl_get_clk_rate(struct hl_device *hdev, u32 *cur_clk, u32 *max_clk) in hl_get_clk_rate()
50 struct hl_device *hdev = dev_get_drvdata(dev); in clk_max_freq_mhz_show()
66 struct hl_device *hdev = dev_get_drvdata(dev); in clk_max_freq_mhz_store()
93 struct hl_device *hdev = dev_get_drvdata(dev); in clk_cur_freq_mhz_show()
113 void hl_add_device_attr(struct hl_device *hdev, in hl_add_device_attr()
A Ddebugfs.c620 struct hl_device *hdev = entry->hdev; in hl_data_read32()
657 struct hl_device *hdev = entry->hdev; in hl_data_write32()
693 struct hl_device *hdev = entry->hdev; in hl_data_read64()
730 struct hl_device *hdev = entry->hdev; in hl_data_write64()
766 struct hl_device *hdev = entry->hdev; in hl_dma_size_write()
823 struct hl_device *hdev = entry->hdev; in hl_get_power_state()
847 struct hl_device *hdev = entry->hdev; in hl_set_power_state()
875 struct hl_device *hdev = entry->hdev; in hl_i2c_data_read()
903 struct hl_device *hdev = entry->hdev; in hl_i2c_data_write()
927 struct hl_device *hdev = entry->hdev; in hl_led0_write()
[all …]
A Dcommand_buffer.c17 struct hl_device *hdev = ctx->hdev; in cb_map_mem()
116 struct hl_device *hdev = ctx->hdev; in cb_unmap_mem()
140 static void cb_fini(struct hl_device *hdev, struct hl_cb *cb) in cb_fini()
165 struct hl_device *hdev; in cb_release()
241 int hl_cb_create(struct hl_device *hdev, struct hl_cb_mgr *mgr, in hl_cb_create()
415 struct hl_device *hdev = hpriv->hdev; in hl_cb_ioctl()
492 struct hl_device *hdev = hpriv->hdev; in hl_cb_mmap()
657 int hl_cb_pool_init(struct hl_device *hdev) in hl_cb_pool_init()
680 int hl_cb_pool_fini(struct hl_device *hdev) in hl_cb_pool_fini()
694 struct hl_device *hdev = ctx->hdev; in hl_cb_va_pool_init()
[all …]
A Dhwmon.c114 struct hl_device *hdev = dev_get_drvdata(dev); in hl_read()
487 int hl_get_voltage(struct hl_device *hdev, in hl_get_voltage()
516 int hl_get_current(struct hl_device *hdev, in hl_get_current()
545 int hl_get_fan_speed(struct hl_device *hdev, in hl_get_fan_speed()
574 int hl_get_pwm_info(struct hl_device *hdev, in hl_get_pwm_info()
626 int hl_set_voltage(struct hl_device *hdev, in hl_set_voltage()
651 int hl_set_current(struct hl_device *hdev, in hl_set_current()
676 int hl_set_power(struct hl_device *hdev, in hl_set_power()
701 int hl_get_power(struct hl_device *hdev, in hl_get_power()
730 int hl_hwmon_init(struct hl_device *hdev) in hl_hwmon_init()
[all …]
A Dhabanalabs_drv.c116 struct hl_device *hdev; in hl_device_open()
210 struct hl_device *hdev; in hl_device_open_ctrl()
294 int create_hdev(struct hl_device **dev, struct pci_dev *pdev, in create_hdev()
297 struct hl_device *hdev; in create_hdev()
408 void destroy_hdev(struct hl_device *hdev) in destroy_hdev()
421 struct hl_device *hdev = dev_get_drvdata(dev); in hl_pmops_suspend()
435 struct hl_device *hdev = dev_get_drvdata(dev); in hl_pmops_resume()
460 struct hl_device *hdev; in hl_pci_probe()
501 struct hl_device *hdev; in hl_pci_remove()
525 struct hl_device *hdev = pci_get_drvdata(pdev); in hl_pci_err_detected()
[all …]
A Dasid.c12 int hl_asid_init(struct hl_device *hdev) in hl_asid_init()
27 void hl_asid_fini(struct hl_device *hdev) in hl_asid_fini()
33 unsigned long hl_asid_alloc(struct hl_device *hdev) in hl_asid_alloc()
51 void hl_asid_free(struct hl_device *hdev, unsigned long asid) in hl_asid_free()
A Dcommand_submission.c39 struct hl_device *hdev = hw_sob->hdev; in hl_sob_reset()
52 struct hl_device *hdev = hw_sob->hdev; in hl_sob_reset_error()
224 struct hl_device *hdev = hpriv->hdev; in cs_parser()
715 struct hl_device *hdev; in cs_timedout()
1127 struct hl_device *hdev = hpriv->hdev; in hl_cs_sanity_checks()
1268 struct hl_device *hdev = hpriv->hdev; in cs_ioctl_default()
1454 struct hl_device *hdev = hpriv->hdev; in hl_cs_ctx_switch()
1776 struct hl_device *hdev = hpriv->hdev; in cs_ioctl_reserve_signals()
1887 struct hl_device *hdev = hpriv->hdev; in cs_ioctl_unreserve_signals()
2283 struct hl_device *hdev = ctx->hdev; in hl_wait_for_fence()
[all …]
A Dmemory.c59 struct hl_device *hdev = ctx->hdev; in alloc_device_memory()
338 struct hl_device *hdev = ctx->hdev; in free_device_memory()
931 struct hl_device *hdev = ctx->hdev; in map_phys_pg_pack()
994 struct hl_device *hdev = ctx->hdev; in unmap_phys_pg_pack()
1025 struct hl_device *hdev = ctx->hdev; in get_paddr_from_handle()
1062 struct hl_device *hdev = ctx->hdev; in map_device_va()
1270 struct hl_device *hdev = ctx->hdev; in unmap_device_va()
1657 struct hl_device *hdev; in hl_dmabuf_attach()
1676 struct hl_device *hdev; in hl_map_dmabuf()
1738 struct hl_device *hdev = ctx->hdev; in hl_release_dmabuf()
[all …]
A Dstate_dump.c182 const char *hl_state_dump_get_sync_name(struct hl_device *hdev, u32 sync_id) in hl_state_dump_get_sync_name()
205 const char *hl_state_dump_get_monitor_name(struct hl_device *hdev, in hl_state_dump_get_monitor_name()
265 static u32 *hl_state_dump_read_sync_objects(struct hl_device *hdev, u32 index) in hl_state_dump_read_sync_objects()
309 hl_state_dump_print_syncs_single_block(struct hl_device *hdev, u32 index, in hl_state_dump_print_syncs_single_block()
393 static int hl_state_dump_print_syncs(struct hl_device *hdev, in hl_state_dump_print_syncs()
449 hl_state_dump_alloc_read_sm_block_monitors(struct hl_device *hdev, u32 index) in hl_state_dump_alloc_read_sm_block_monitors()
510 static int hl_state_dump_print_monitors_single_block(struct hl_device *hdev, in hl_state_dump_print_monitors_single_block()
561 static int hl_state_dump_print_monitors(struct hl_device *hdev, in hl_state_dump_print_monitors()
604 hl_state_dump_print_engine_fences(struct hl_device *hdev, in hl_state_dump_print_engine_fences()
653 static int hl_state_dump_print_fences(struct hl_device *hdev, char **buf, in hl_state_dump_print_fences()
[all …]
A Dcontext.c52 static void hl_encaps_sig_mgr_fini(struct hl_device *hdev, in hl_encaps_sig_mgr_fini()
73 struct hl_device *hdev = ctx->hdev; in hl_ctx_fini()
136 int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv) in hl_ctx_create()
184 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) in hl_ctx_init()
267 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_get()
380 void hl_ctx_mgr_fini(struct hl_device *hdev, struct hl_ctx_mgr *mgr) in hl_ctx_mgr_fini()
/linux/drivers/misc/habanalabs/gaudi/
A Dgaudi.c715 static int gaudi_init_iatu(struct hl_device *hdev) in gaudi_init_iatu()
1090 struct hl_device *hdev = hw_sob_group->hdev; in gaudi_sob_group_hw_reset()
1104 struct hl_device *hdev = hw_sob_group->hdev; in gaudi_sob_group_reset_error()
1279 struct hl_device *hdev; in gaudi_collective_wait_init_cs()
1816 static int gaudi_sw_init(struct hl_device *hdev) in gaudi_sw_init()
1913 static int gaudi_sw_fini(struct hl_device *hdev) in gaudi_sw_fini()
1941 struct hl_device *hdev = arg; in gaudi_irq_handler_single()
4157 static int gaudi_hw_init(struct hl_device *hdev) in gaudi_hw_init()
4383 static int gaudi_suspend(struct hl_device *hdev) in gaudi_suspend()
4394 static int gaudi_resume(struct hl_device *hdev) in gaudi_resume()
[all …]
A DgaudiP.h278 struct hl_device *hdev;
336 int (*cpucp_info_get)(struct hl_device *hdev);
356 void gaudi_init_security(struct hl_device *hdev);
357 void gaudi_ack_protection_bits_errors(struct hl_device *hdev);
358 void gaudi_add_device_attr(struct hl_device *hdev,
360 int gaudi_debug_coresight(struct hl_device *hdev, void *data);
361 void gaudi_halt_coresight(struct hl_device *hdev);
362 void gaudi_mmu_prepare_reg(struct hl_device *hdev, u64 reg, u32 asid);
/linux/drivers/misc/habanalabs/common/pci/
A Dpci.c30 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map()
75 static void hl_pci_bars_unmap(struct hl_device *hdev) in hl_pci_bars_unmap()
88 int hl_pci_elbi_read(struct hl_device *hdev, u64 addr, u32 *data) in hl_pci_elbi_read()
148 static int hl_pci_elbi_write(struct hl_device *hdev, u64 addr, u32 data) in hl_pci_elbi_write()
205 int hl_pci_iatu_write(struct hl_device *hdev, u32 addr, u32 data) in hl_pci_iatu_write()
231 static void hl_pci_reset_link_through_bridge(struct hl_device *hdev) in hl_pci_reset_link_through_bridge()
258 int hl_pci_set_inbound_region(struct hl_device *hdev, u8 region, in hl_pci_set_inbound_region()
323 int hl_pci_set_outbound_region(struct hl_device *hdev, in hl_pci_set_outbound_region()
370 enum pci_region hl_get_pci_memory_region(struct hl_device *hdev, u64 addr) in hl_get_pci_memory_region()
396 int hl_pci_init(struct hl_device *hdev) in hl_pci_init()
[all …]
/linux/drivers/misc/habanalabs/common/mmu/
A Dmmu.c27 int hl_mmu_init(struct hl_device *hdev) in hl_mmu_init()
56 void hl_mmu_fini(struct hl_device *hdev) in hl_mmu_fini()
78 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_init()
110 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_fini()
148 struct hl_device *hdev = ctx->hdev; in hl_mmu_unmap_page()
236 struct hl_device *hdev = ctx->hdev; in hl_mmu_map_page()
350 struct hl_device *hdev = ctx->hdev; in hl_mmu_map_contiguous()
408 struct hl_device *hdev = ctx->hdev; in hl_mmu_unmap_contiguous()
447 struct hl_device *hdev = ctx->hdev; in hl_mmu_swap_out()
467 struct hl_device *hdev = ctx->hdev; in hl_mmu_swap_in()
[all …]

Completed in 83 milliseconds

12