/Linux-v5.10/drivers/misc/habanalabs/common/ |
D | asid.c | 14 hdev->asid_bitmap = kcalloc(BITS_TO_LONGS(hdev->asic_prop.max_asid), in hl_asid_init() 40 hdev->asic_prop.max_asid); in hl_asid_alloc() 41 if (found == hdev->asic_prop.max_asid) in hl_asid_alloc() 53 if (WARN((asid == 0 || asid >= hdev->asic_prop.max_asid), in hl_asid_free()
|
D | sysfs.c | 107 return sprintf(buf, "%s\n", hdev->asic_prop.uboot_ver); in uboot_ver_show() 115 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in armcp_kernel_ver_show() 123 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in armcp_ver_show() 132 hdev->asic_prop.cpucp_info.cpld_version); in cpld_ver_show() 140 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version); in cpucp_kernel_ver_show() 148 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version); in cpucp_ver_show() 157 hdev->asic_prop.cpucp_info.infineon_version); in infineon_ver_show() 165 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.fuse_version); in fuse_ver_show() 173 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.thermal_version); in thermal_ver_show() 181 return sprintf(buf, "%s\n", hdev->asic_prop.preboot_ver); in preboot_btl_ver_show() [all …]
|
D | context.c | 26 for (i = 0 ; i < hdev->asic_prop.max_pending_cs ; i++) in hl_ctx_fini() 142 ctx->cs_pending = kcalloc(hdev->asic_prop.max_pending_cs, in hl_ctx_init() 212 struct asic_fixed_properties *asic_prop = &ctx->hdev->asic_prop; in hl_ctx_get_fence() local 222 if (seq + asic_prop->max_pending_cs < ctx->cs_sequence) { in hl_ctx_get_fence() 227 fence = ctx->cs_pending[seq & (asic_prop->max_pending_cs - 1)]; in hl_ctx_get_fence()
|
D | mmu_v1.c | 33 hdev->asic_prop.mmu_hop_table_size); in _free_hop() 49 struct asic_fixed_properties *prop = &hdev->asic_prop; in alloc_hop() 88 return ctx->hdev->asic_prop.mmu_pgt_addr + in get_phys_hop0_addr() 89 (ctx->asid * ctx->hdev->asic_prop.mmu_hop_table_size); in get_phys_hop0_addr() 95 (ctx->asid * ctx->hdev->asic_prop.mmu_hop_table_size); in get_hop0_addr() 177 return hop_addr + ctx->hdev->asic_prop.mmu_pte_size * in get_hopN_pte_addr() 245 u64 page_mask = (ctx->hdev->asic_prop.mmu_hop_table_size - 1); in get_phys_addr() 261 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_init() 361 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_default_mapping_fini() 419 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_v1_init() [all …]
|
D | mmu.c | 14 struct asic_fixed_properties *prop = &hdev->asic_prop; in is_dram_va() 116 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_unmap() 192 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_mmu_map()
|
D | hw_queue.c | 51 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_int_hw_queue_update_ci() 369 offset = job->cs->sequence & (hdev->asic_prop.max_pending_cs - 1); in hw_queue_schedule_job() 504 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_schedule_cs() 718 struct asic_fixed_properties *prop = &hdev->asic_prop; in sync_stream_queue_init() 851 struct asic_fixed_properties *asic = &hdev->asic_prop; in hl_hw_queues_create() 892 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queues_destroy() 904 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_reset()
|
D | device.c | 282 if (hdev->asic_prop.completion_queues_count) { in device_early_init() 283 hdev->cq_wq = kcalloc(hdev->asic_prop.completion_queues_count, in device_early_init() 292 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) { in device_early_init() 348 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in device_early_init() 384 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in device_early_fini() 452 hdev->high_pll = hdev->asic_prop.high_pll; in device_late_init() 984 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in hl_device_reset() 1191 cq_cnt = hdev->asic_prop.completion_queues_count; in hl_device_init() 1307 hdev->asic_prop.dram_size / 1024 / 1024 / 1024); in hl_device_init() 1480 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in hl_device_fini()
|
D | pci.c | 157 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_pci_iatu_write() 207 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_pci_set_inbound_region() 270 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_pci_set_outbound_region()
|
D | command_buffer.c | 19 struct asic_fixed_properties *prop = &hdev->asic_prop; in cb_map_mem() 271 cb_size <= hdev->asic_prop.cb_pool_cb_size) { in hl_cb_create() 620 for (i = 0 ; i < hdev->asic_prop.cb_pool_cb_cnt ; i++) { in hl_cb_pool_init() 621 cb = hl_cb_alloc(hdev, hdev->asic_prop.cb_pool_cb_size, in hl_cb_pool_init() 650 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_cb_va_pool_init()
|
D | command_submission.c | 433 (hdev->asic_prop.max_pending_cs - 1)]; in allocate_cs() 443 cs->jobs_in_queue_cnt = kcalloc(hdev->asic_prop.max_queues, in allocate_cs() 456 (hdev->asic_prop.max_pending_cs - 1)] = in allocate_cs() 492 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in hl_cs_rollback_all() 523 struct asic_fixed_properties *asic = &hdev->asic_prop; in validate_queue_index() 811 if (chunk->queue_index >= hdev->asic_prop.max_queues) { in cs_ioctl_signal_wait() 819 hw_queue_prop = &hdev->asic_prop.hw_queues_props[q_idx]; in cs_ioctl_signal_wait() 822 if ((q_idx >= hdev->asic_prop.max_queues) || in cs_ioctl_signal_wait()
|
D | memory.c | 64 page_size = hdev->asic_prop.dram_page_size; in alloc_device_memory() 642 huge_page_size = ctx->hdev->asic_prop.pmmu_huge.page_size; in init_phys_pg_pack_from_userptr() 867 u32 page_size = hdev->asic_prop.pmmu.page_size, in map_device_va() 868 huge_page_size = hdev->asic_prop.pmmu_huge.page_size; in map_device_va() 932 va_block_align = hdev->asic_prop.dmmu.page_size; in map_device_va() 1075 hdev->asic_prop.pmmu.page_size) in unmap_device_va() 1676 struct asic_fixed_properties *prop = &ctx->hdev->asic_prop; in hl_vm_ctx_init() 1796 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_vm_init()
|
D | habanalabs_ioctl.c | 47 struct asic_fixed_properties *prop = &hdev->asic_prop; in hw_ip_info() 107 struct asic_fixed_properties *prop = &hdev->asic_prop; in dram_usage_info() 339 struct asic_fixed_properties *prop = &hdev->asic_prop; in sync_manager_info()
|
D | debugfs.c | 306 return ctx->hdev->asic_prop.mmu_pgt_addr + in get_hop0_addr() 307 (ctx->asid * ctx->hdev->asic_prop.mmu_hop_table_size); in get_hop0_addr() 313 return hop_addr + ctx->hdev->asic_prop.mmu_pte_size * in get_hopN_pte_addr() 378 struct asic_fixed_properties *prop = &hdev->asic_prop; in mmu_show() 595 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_is_device_va() 619 struct asic_fixed_properties *prop = &hdev->asic_prop; in device_va_to_pa()
|
D | hwmon.c | 542 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_hwmon_init()
|
D | firmware_if.c | 273 struct asic_fixed_properties *prop = &hdev->asic_prop; in hl_fw_cpucp_info_get()
|
D | habanalabs.h | 1626 struct asic_fixed_properties asic_prop; member
|
/Linux-v5.10/drivers/misc/habanalabs/goya/ |
D | goya.c | 362 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_get_fixed_properties() 567 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_early_init() 622 kfree(hdev->asic_prop.hw_queues_props); in goya_early_init() 636 kfree(hdev->asic_prop.hw_queues_props); in goya_early_fini() 672 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_fetch_psoc_frequency() 707 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_late_init() 1654 qman_base_addr = hdev->asic_prop.sram_base_address + in goya_init_mme_qman() 1761 qman_base_addr = hdev->asic_prop.sram_base_address + base_off; in goya_init_tpc_qman() 2164 int cq_cnt = hdev->asic_prop.completion_queues_count; in goya_enable_msix() 2220 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in goya_sync_irqs() [all …]
|
D | goya_coresight.c | 268 frequency = hdev->asic_prop.psoc_timestamp_frequency; in goya_config_stm() 367 struct asic_fixed_properties *prop = &hdev->asic_prop; in goya_etr_validate_address()
|
/Linux-v5.10/drivers/misc/habanalabs/gaudi/ |
D | gaudi.c | 368 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_get_fixed_properties() 567 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_early_init() 614 kfree(hdev->asic_prop.hw_queues_props); in gaudi_early_init() 620 kfree(hdev->asic_prop.hw_queues_props); in gaudi_early_fini() 634 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_fetch_psoc_frequency() 670 struct asic_fixed_properties *prop = &hdev->asic_prop; in _gaudi_init_tpc_mem() 1092 for (i = 0 ; i < hdev->asic_prop.completion_queues_count ; i++) in gaudi_irq_handler_single() 1137 int cq_cnt = hdev->asic_prop.completion_queues_count; in gaudi_enable_msi_multi() 1205 int i, cq_cnt = hdev->asic_prop.completion_queues_count; in gaudi_sync_irqs() 1226 int i, irq, cq_cnt = hdev->asic_prop.completion_queues_count; in gaudi_disable_msi() [all …]
|
D | gaudi_coresight.c | 424 frequency = hdev->asic_prop.psoc_timestamp_frequency; in gaudi_config_stm() 532 struct asic_fixed_properties *prop = &hdev->asic_prop; in gaudi_etr_validate_address()
|