/drivers/misc/habanalabs/ |
D | habanalabs.h | 77 struct hl_device; 231 struct hl_device *hdev; 270 struct hl_device *hdev; 366 struct hl_device *hdev; 383 struct hl_device *hdev; 507 int (*early_init)(struct hl_device *hdev); 508 int (*early_fini)(struct hl_device *hdev); 509 int (*late_init)(struct hl_device *hdev); 510 void (*late_fini)(struct hl_device *hdev); 511 int (*sw_init)(struct hl_device *hdev); [all …]
|
D | sysfs.c | 15 long hl_get_frequency(struct hl_device *hdev, u32 pll_index, bool curr) in hl_get_frequency() 44 void hl_set_frequency(struct hl_device *hdev, u32 pll_index, u64 freq) in hl_set_frequency() 65 u64 hl_get_max_power(struct hl_device *hdev) in hl_get_max_power() 87 void hl_set_max_power(struct hl_device *hdev, u64 value) in hl_set_max_power() 108 struct hl_device *hdev = dev_get_drvdata(dev); in uboot_ver_show() 116 struct hl_device *hdev = dev_get_drvdata(dev); in armcp_kernel_ver_show() 124 struct hl_device *hdev = dev_get_drvdata(dev); in armcp_ver_show() 132 struct hl_device *hdev = dev_get_drvdata(dev); in cpld_ver_show() 141 struct hl_device *hdev = dev_get_drvdata(dev); in infineon_ver_show() 150 struct hl_device *hdev = dev_get_drvdata(dev); in fuse_ver_show() [all …]
|
D | irq.c | 21 struct hl_device *hdev; 61 struct hl_device *hdev = eqe_work->hdev; in irq_handle_eqe() 78 struct hl_device *hdev = cq->hdev; in hl_irq_handler_cq() 154 struct hl_device *hdev = eq->hdev; in hl_irq_handler_eq() 218 int hl_cq_init(struct hl_device *hdev, struct hl_cq *q, u32 hw_queue_id) in hl_cq_init() 248 void hl_cq_fini(struct hl_device *hdev, struct hl_cq *q) in hl_cq_fini() 254 void hl_cq_reset(struct hl_device *hdev, struct hl_cq *q) in hl_cq_reset() 280 int hl_eq_init(struct hl_device *hdev, struct hl_eq *q) in hl_eq_init() 307 void hl_eq_fini(struct hl_device *hdev, struct hl_eq *q) in hl_eq_fini() 316 void hl_eq_reset(struct hl_device *hdev, struct hl_eq *q) in hl_eq_reset()
|
D | hw_queue.c | 39 struct hl_device *hdev = cs->ctx->hdev; in hl_int_hw_queue_update_ci() 76 static void ext_queue_submit_bd(struct hl_device *hdev, struct hl_hw_queue *q, in ext_queue_submit_bd() 109 static int ext_queue_sanity_checks(struct hl_device *hdev, in ext_queue_sanity_checks() 158 static int int_queue_sanity_checks(struct hl_device *hdev, in int_queue_sanity_checks() 187 int hl_hw_queue_send_cb_no_cmpl(struct hl_device *hdev, u32 hw_queue_id, in hl_hw_queue_send_cb_no_cmpl() 232 struct hl_device *hdev = job->cs->ctx->hdev; in ext_hw_queue_schedule_job() 290 struct hl_device *hdev = job->cs->ctx->hdev; in int_hw_queue_schedule_job() 318 struct hl_device *hdev = cs->ctx->hdev; in hl_hw_queue_schedule_cs() 410 void hl_hw_queue_inc_ci_kernel(struct hl_device *hdev, u32 hw_queue_id) in hl_hw_queue_inc_ci_kernel() 417 static int ext_and_cpu_hw_queue_init(struct hl_device *hdev, in ext_and_cpu_hw_queue_init() [all …]
|
D | device.c | 19 bool hl_device_disabled_or_in_reset(struct hl_device *hdev) in hl_device_disabled_or_in_reset() 27 enum hl_device_status hl_device_status(struct hl_device *hdev) in hl_device_status() 44 struct hl_device *hdev; in hpriv_release() 101 struct hl_device *hdev; in hl_device_release_ctrl() 172 static int device_init_cdev(struct hl_device *hdev, struct class *hclass, in device_init_cdev() 194 static int device_cdev_sysfs_add(struct hl_device *hdev) in device_cdev_sysfs_add() 230 static void device_cdev_sysfs_del(struct hl_device *hdev) in device_cdev_sysfs_del() 252 static int device_early_init(struct hl_device *hdev) in device_early_init() 338 static void device_early_fini(struct hl_device *hdev) in device_early_fini() 362 struct hl_device *hdev = container_of(work, struct hl_device, in set_freq_to_low_job() [all …]
|
D | command_buffer.c | 14 static void cb_fini(struct hl_device *hdev, struct hl_cb *cb) in cb_fini() 22 static void cb_do_release(struct hl_device *hdev, struct hl_cb *cb) in cb_do_release() 35 struct hl_device *hdev; in cb_release() 46 static struct hl_cb *hl_cb_alloc(struct hl_device *hdev, u32 cb_size, in hl_cb_alloc() 89 int hl_cb_create(struct hl_device *hdev, struct hl_cb_mgr *mgr, in hl_cb_create() 180 int hl_cb_destroy(struct hl_device *hdev, struct hl_cb_mgr *mgr, u64 cb_handle) in hl_cb_destroy() 213 struct hl_device *hdev = hpriv->hdev; in hl_cb_ioctl() 269 struct hl_device *hdev = hpriv->hdev; in hl_cb_mmap() 339 struct hl_cb *hl_cb_get(struct hl_device *hdev, struct hl_cb_mgr *mgr, in hl_cb_get() 373 void hl_cb_mgr_fini(struct hl_device *hdev, struct hl_cb_mgr *mgr) in hl_cb_mgr_fini() [all …]
|
D | pci.c | 25 int hl_pci_bars_map(struct hl_device *hdev, const char * const name[3], in hl_pci_bars_map() 70 static void hl_pci_bars_unmap(struct hl_device *hdev) in hl_pci_bars_unmap() 89 static int hl_pci_elbi_write(struct hl_device *hdev, u64 addr, u32 data) in hl_pci_elbi_write() 146 int hl_pci_iatu_write(struct hl_device *hdev, u32 addr, u32 data) in hl_pci_iatu_write() 168 static void hl_pci_reset_link_through_bridge(struct hl_device *hdev) in hl_pci_reset_link_through_bridge() 196 int hl_pci_set_dram_bar_base(struct hl_device *hdev, u8 inbound_region, u8 bar, in hl_pci_set_dram_bar_base() 255 int hl_pci_init_iatu(struct hl_device *hdev, u64 sram_base_address, in hl_pci_init_iatu() 313 int hl_pci_set_dma_mask(struct hl_device *hdev, u8 dma_mask) in hl_pci_set_dma_mask() 363 int hl_pci_init(struct hl_device *hdev, u8 dma_mask) in hl_pci_init() 410 void hl_pci_fini(struct hl_device *hdev) in hl_pci_fini()
|
D | hwmon.c | 16 int hl_build_hwmon_channel_info(struct hl_device *hdev, in hl_build_hwmon_channel_info() 115 struct hl_device *hdev = dev_get_drvdata(dev); in hl_read() 189 struct hl_device *hdev = dev_get_drvdata(dev); in hl_write() 268 long hl_get_temperature(struct hl_device *hdev, int sensor_index, u32 attr) in hl_get_temperature() 294 long hl_get_voltage(struct hl_device *hdev, int sensor_index, u32 attr) in hl_get_voltage() 320 long hl_get_current(struct hl_device *hdev, int sensor_index, u32 attr) in hl_get_current() 346 long hl_get_fan_speed(struct hl_device *hdev, int sensor_index, u32 attr) in hl_get_fan_speed() 372 long hl_get_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr) in hl_get_pwm_info() 398 void hl_set_pwm_info(struct hl_device *hdev, int sensor_index, u32 attr, in hl_set_pwm_info() 421 int hl_hwmon_init(struct hl_device *hdev) in hl_hwmon_init() [all …]
|
D | firmware_if.c | 22 int hl_fw_push_fw_to_device(struct hl_device *hdev, const char *fw_name, in hl_fw_push_fw_to_device() 55 int hl_fw_send_pci_access_msg(struct hl_device *hdev, u32 opcode) in hl_fw_send_pci_access_msg() 65 int hl_fw_send_cpu_message(struct hl_device *hdev, u32 hw_queue_id, u32 *msg, in hl_fw_send_cpu_message() 132 int hl_fw_test_cpu_queue(struct hl_device *hdev) in hl_fw_test_cpu_queue() 159 void *hl_fw_cpu_accessible_dma_pool_alloc(struct hl_device *hdev, size_t size, in hl_fw_cpu_accessible_dma_pool_alloc() 172 void hl_fw_cpu_accessible_dma_pool_free(struct hl_device *hdev, size_t size, in hl_fw_cpu_accessible_dma_pool_free() 179 int hl_fw_send_heartbeat(struct hl_device *hdev) in hl_fw_send_heartbeat() 198 int hl_fw_armcp_info_get(struct hl_device *hdev) in hl_fw_armcp_info_get() 250 int hl_fw_get_eeprom_data(struct hl_device *hdev, void *data, size_t max_size) in hl_fw_get_eeprom_data()
|
D | context.c | 14 struct hl_device *hdev = ctx->hdev; in hl_ctx_fini() 59 int hl_ctx_create(struct hl_device *hdev, struct hl_fpriv *hpriv) in hl_ctx_create() 107 void hl_ctx_free(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_free() 117 int hl_ctx_init(struct hl_device *hdev, struct hl_ctx *ctx, bool is_kernel_ctx) in hl_ctx_init() 161 void hl_ctx_get(struct hl_device *hdev, struct hl_ctx *ctx) in hl_ctx_get() 173 struct hl_device *hdev = ctx->hdev; in hl_ctx_get_fence() 225 void hl_ctx_mgr_fini(struct hl_device *hdev, struct hl_ctx_mgr *mgr) in hl_ctx_mgr_fini()
|
D | habanalabs_drv.c | 84 struct hl_device *hdev; in hl_device_open() 175 struct hl_device *hdev; in hl_device_open_ctrl() 222 static void set_driver_behavior_per_device(struct hl_device *hdev) in set_driver_behavior_per_device() 245 int create_hdev(struct hl_device **dev, struct pci_dev *pdev, in create_hdev() 248 struct hl_device *hdev; in create_hdev() 334 void destroy_hdev(struct hl_device *hdev) in destroy_hdev() 347 struct hl_device *hdev = dev_get_drvdata(dev); in hl_pmops_suspend() 361 struct hl_device *hdev = dev_get_drvdata(dev); in hl_pmops_resume() 386 struct hl_device *hdev; in hl_pci_probe() 424 struct hl_device *hdev; in hl_pci_remove()
|
D | memory.c | 56 struct hl_device *hdev = ctx->hdev; in alloc_device_memory() 174 static int get_userptr_from_host_va(struct hl_device *hdev, in get_userptr_from_host_va() 227 static void free_userptr(struct hl_device *hdev, struct hl_userptr *userptr) in free_userptr() 266 static void free_phys_pg_pack(struct hl_device *hdev, in free_phys_pg_pack() 306 struct hl_device *hdev = ctx->hdev; in free_device_memory() 354 static void clear_va_list_locked(struct hl_device *hdev, in clear_va_list_locked() 376 static void print_va_list_locked(struct hl_device *hdev, in print_va_list_locked() 404 static void merge_va_blocks_locked(struct hl_device *hdev, in merge_va_blocks_locked() 441 static int add_va_block_locked(struct hl_device *hdev, in add_va_block_locked() 494 static inline int add_va_block(struct hl_device *hdev, in add_va_block() [all …]
|
D | habanalabs_ioctl.c | 26 static int device_status_info(struct hl_device *hdev, struct hl_info_args *args) in device_status_info() 41 static int hw_ip_info(struct hl_device *hdev, struct hl_info_args *args) in hw_ip_info() 78 static int hw_events_info(struct hl_device *hdev, bool aggregate, in hw_events_info() 95 struct hl_device *hdev = hpriv->hdev; in dram_usage_info() 117 static int hw_idle(struct hl_device *hdev, struct hl_info_args *args) in hw_idle() 133 static int debug_coresight(struct hl_device *hdev, struct hl_debug_args *args) in debug_coresight() 201 static int device_utilization(struct hl_device *hdev, struct hl_info_args *args) in device_utilization() 228 struct hl_device *hdev = hpriv->hdev; in _hl_info_ioctl() 296 struct hl_device *hdev = hpriv->hdev; in hl_debug_ioctl() 355 struct hl_device *hdev = hpriv->hdev; in _hl_ioctl() [all …]
|
D | debugfs.c | 21 static int hl_debugfs_i2c_read(struct hl_device *hdev, u8 i2c_bus, u8 i2c_addr, in hl_debugfs_i2c_read() 47 static int hl_debugfs_i2c_write(struct hl_device *hdev, u8 i2c_bus, u8 i2c_addr, in hl_debugfs_i2c_write() 74 static void hl_debugfs_led_set(struct hl_device *hdev, u8 led, u8 state) in hl_debugfs_led_set() 357 struct hl_device *hdev = dev_entry->hdev; in mmu_show() 466 struct hl_device *hdev = dev_entry->hdev; in mmu_write() 507 struct hl_device *hdev = dev_entry->hdev; in engines_show() 514 static bool hl_is_device_va(struct hl_device *hdev, u64 addr) in hl_is_device_va() 533 static int device_va_to_pa(struct hl_device *hdev, u64 virt_addr, in device_va_to_pa() 605 struct hl_device *hdev = entry->hdev; in hl_data_read32() 635 struct hl_device *hdev = entry->hdev; in hl_data_write32() [all …]
|
D | asid.c | 12 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()
|
D | command_submission.c | 15 static long _hl_cs_wait_ioctl(struct hl_device *hdev, 81 struct hl_device *hdev = hpriv->hdev; in cs_parser() 123 static void free_job(struct hl_device *hdev, struct hl_cs_job *job) in free_job() 163 struct hl_device *hdev = cs->ctx->hdev; in cs_do_release() 255 struct hl_device *hdev; in cs_timedout() 284 static int allocate_cs(struct hl_device *hdev, struct hl_ctx *ctx, in allocate_cs() 352 static void cs_rollback(struct hl_device *hdev, struct hl_cs *cs) in cs_rollback() 360 void hl_cs_rollback_all(struct hl_device *hdev) in hl_cs_rollback_all() 384 struct hl_device *hdev = cs->ctx->hdev; in job_wq_completion() 390 static struct hl_cb *validate_queue_index(struct hl_device *hdev, in validate_queue_index() [all …]
|
D | mmu.c | 30 struct hl_device *hdev = ctx->hdev; in free_hop() 42 struct hl_device *hdev = ctx->hdev; in alloc_hop() 238 struct hl_device *hdev = ctx->hdev; in dram_default_mapping_init() 338 struct hl_device *hdev = ctx->hdev; in dram_default_mapping_fini() 395 int hl_mmu_init(struct hl_device *hdev) in hl_mmu_init() 448 void hl_mmu_fini(struct hl_device *hdev) in hl_mmu_fini() 469 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_init() 493 struct hl_device *hdev = ctx->hdev; in hl_mmu_ctx_fini() 518 struct hl_device *hdev = ctx->hdev; in _hl_mmu_unmap() 669 struct hl_device *hdev = ctx->hdev; in hl_mmu_unmap() [all …]
|
/drivers/misc/habanalabs/goya/ |
D | goyaP.h | 172 void goya_get_fixed_properties(struct hl_device *hdev); 173 int goya_mmu_init(struct hl_device *hdev); 174 void goya_init_dma_qmans(struct hl_device *hdev); 175 void goya_init_mme_qmans(struct hl_device *hdev); 176 void goya_init_tpc_qmans(struct hl_device *hdev); 177 int goya_init_cpu_queues(struct hl_device *hdev); 178 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); 182 void goya_ring_doorbell(struct hl_device *hdev, u32 hw_queue_id, u32 pi); [all …]
|
D | goya_hwmgr.c | 10 void goya_set_pll_profile(struct hl_device *hdev, enum hl_pll_frequency freq) in goya_set_pll_profile() 38 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() [all …]
|
D | goya.c | 327 static int goya_mmu_clear_pgt_range(struct hl_device *hdev); 328 static int goya_mmu_set_dram_default_page(struct hl_device *hdev); 329 static int goya_mmu_add_mappings_for_device_cpu(struct hl_device *hdev); 330 static void goya_mmu_prepare(struct hl_device *hdev, u32 asid); 332 void goya_get_fixed_properties(struct hl_device *hdev) in goya_get_fixed_properties() 407 static int goya_pci_bars_map(struct hl_device *hdev) in goya_pci_bars_map() 423 static u64 goya_set_ddr_bar_base(struct hl_device *hdev, u64 addr) in goya_set_ddr_bar_base() 453 static int goya_init_iatu(struct hl_device *hdev) in goya_init_iatu() 470 static int goya_early_init(struct hl_device *hdev) in goya_early_init() 524 static int goya_early_fini(struct hl_device *hdev) in goya_early_fini() [all …]
|
D | goya_coresight.c | 200 static int goya_coresight_timeout(struct hl_device *hdev, u64 addr, in goya_coresight_timeout() 229 static int goya_config_stm(struct hl_device *hdev, in goya_config_stm() 298 static int goya_config_etf(struct hl_device *hdev, in goya_config_etf() 359 static int goya_etr_validate_address(struct hl_device *hdev, u64 addr, in goya_etr_validate_address() 376 static int goya_config_etr(struct hl_device *hdev, in goya_config_etr() 463 static int goya_config_funnel(struct hl_device *hdev, in goya_config_funnel() 482 static int goya_config_bmon(struct hl_device *hdev, in goya_config_bmon() 554 static int goya_config_spmu(struct hl_device *hdev, in goya_config_spmu() 639 int goya_debug_coresight(struct hl_device *hdev, void *data) in goya_debug_coresight() 679 void goya_halt_coresight(struct hl_device *hdev) in goya_halt_coresight()
|
D | goya_security.c | 18 static void goya_pb_set_block(struct hl_device *hdev, u64 base) in goya_pb_set_block() 28 static void goya_init_mme_protection_bits(struct hl_device *hdev) in goya_init_mme_protection_bits() 272 static void goya_init_dma_protection_bits(struct hl_device *hdev) in goya_init_dma_protection_bits() 672 static void goya_init_tpc_protection_bits(struct hl_device *hdev) in goya_init_tpc_protection_bits() 2158 static void goya_init_protection_bits(struct hl_device *hdev) in goya_init_protection_bits() 2284 void goya_init_security(struct hl_device *hdev) in goya_init_security()
|