Searched refs:dmmu (Results 1 – 13 of 13) sorted by relevance
/linux-6.12.1/drivers/accel/habanalabs/common/mmu/ |
D | mmu.c | 33 return hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_is_dram_va() 34 prop->dmmu.start_addr, in hl_is_dram_va() 35 prop->dmmu.end_addr); in hl_is_dram_va() 199 return &prop->dmmu; in hl_mmu_get_prop() 393 prop->dmmu.start_addr, prop->dmmu.end_addr)) in hl_mmu_map_contiguous() 394 page_size = prop->dmmu.page_size; in hl_mmu_map_contiguous() 453 prop->dmmu.start_addr, prop->dmmu.end_addr)) in hl_mmu_unmap_contiguous() 454 page_size = prop->dmmu.page_size; in hl_mmu_unmap_contiguous() 495 mmu_prop = &prop->dmmu; in hl_mmu_pa_page_with_offset() 564 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_get_tlb_info() [all …]
|
D | mmu_v2.c | 72 mmu_prop = &prop->dmmu; in hl_mmu_v2_unmap() 145 mmu_prop = &prop->dmmu; in hl_mmu_v2_map() 253 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v2_get_tlb_info() 254 prop->dmmu.start_addr, in hl_mmu_v2_get_tlb_info() 255 prop->dmmu.end_addr); in hl_mmu_v2_get_tlb_info() 261 mmu_prop = &prop->dmmu; in hl_mmu_v2_get_tlb_info()
|
D | mmu_v2_hr.c | 129 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in _hl_mmu_v2_hr_unmap() 226 mmu_prop = &prop->dmmu; in _hl_mmu_v2_hr_map() 341 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v2_hr_get_tlb_mapping_params() 342 prop->dmmu.start_addr, in hl_mmu_v2_hr_get_tlb_mapping_params() 343 prop->dmmu.end_addr); in hl_mmu_v2_hr_get_tlb_mapping_params() 352 *mmu_prop = &prop->dmmu; in hl_mmu_v2_hr_get_tlb_mapping_params()
|
D | mmu_v1.c | 230 mmu_prop = is_dram_addr ? &prop->dmmu : &prop->pmmu; in hl_mmu_v1_unmap() 341 mmu_prop = &prop->dmmu; in hl_mmu_v1_map() 462 is_dram_addr = hl_mem_area_inside_range(virt_addr, prop->dmmu.page_size, in hl_mmu_v1_get_tlb_info() 463 prop->dmmu.start_addr, in hl_mmu_v1_get_tlb_info() 464 prop->dmmu.end_addr); in hl_mmu_v1_get_tlb_info() 473 mmu_prop = &prop->dmmu; in hl_mmu_v1_get_tlb_info()
|
/linux-6.12.1/drivers/accel/habanalabs/goya/ |
D | goya.c | 420 prop->dmmu.hop_shifts[MMU_HOP0] = MMU_V1_0_HOP0_SHIFT; in goya_set_fixed_properties() 421 prop->dmmu.hop_shifts[MMU_HOP1] = MMU_V1_0_HOP1_SHIFT; in goya_set_fixed_properties() 422 prop->dmmu.hop_shifts[MMU_HOP2] = MMU_V1_0_HOP2_SHIFT; in goya_set_fixed_properties() 423 prop->dmmu.hop_shifts[MMU_HOP3] = MMU_V1_0_HOP3_SHIFT; in goya_set_fixed_properties() 424 prop->dmmu.hop_shifts[MMU_HOP4] = MMU_V1_0_HOP4_SHIFT; in goya_set_fixed_properties() 425 prop->dmmu.hop_masks[MMU_HOP0] = MMU_V1_0_HOP0_MASK; in goya_set_fixed_properties() 426 prop->dmmu.hop_masks[MMU_HOP1] = MMU_V1_0_HOP1_MASK; in goya_set_fixed_properties() 427 prop->dmmu.hop_masks[MMU_HOP2] = MMU_V1_0_HOP2_MASK; in goya_set_fixed_properties() 428 prop->dmmu.hop_masks[MMU_HOP3] = MMU_V1_0_HOP3_MASK; in goya_set_fixed_properties() 429 prop->dmmu.hop_masks[MMU_HOP4] = MMU_V1_0_HOP4_MASK; in goya_set_fixed_properties() [all …]
|
D | goya_coresight.c | 379 range_start = prop->dmmu.start_addr; in goya_etr_validate_address() 380 range_end = prop->dmmu.end_addr; in goya_etr_validate_address()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2.c | 2373 prop->dmmu.start_addr = prop->dram_base_address + in gaudi2_set_dram_properties() 2376 prop->dmmu.end_addr = prop->dmmu.start_addr + prop->dram_page_size * in gaudi2_set_dram_properties() 2377 div_u64((VA_HBM_SPACE_END - prop->dmmu.start_addr), prop->dmmu.page_size); in gaudi2_set_dram_properties() 2470 prop->dmmu.pgt_size = HMMU_PAGE_TABLES_SIZE; in gaudi2_set_fixed_properties() 2473 prop->dmmu.hop_shifts[MMU_HOP0] = DHOP0_SHIFT; in gaudi2_set_fixed_properties() 2474 prop->dmmu.hop_shifts[MMU_HOP1] = DHOP1_SHIFT; in gaudi2_set_fixed_properties() 2475 prop->dmmu.hop_shifts[MMU_HOP2] = DHOP2_SHIFT; in gaudi2_set_fixed_properties() 2476 prop->dmmu.hop_shifts[MMU_HOP3] = DHOP3_SHIFT; in gaudi2_set_fixed_properties() 2477 prop->dmmu.hop_masks[MMU_HOP0] = DHOP0_MASK; in gaudi2_set_fixed_properties() 2478 prop->dmmu.hop_masks[MMU_HOP1] = DHOP1_MASK; in gaudi2_set_fixed_properties() [all …]
|
D | gaudi2_coresight.c | 2171 prop->dmmu.start_addr, in gaudi2_etr_validate_address() 2172 prop->dmmu.end_addr)) in gaudi2_etr_validate_address()
|
/linux-6.12.1/drivers/accel/habanalabs/common/ |
D | debugfs.c | 643 (addr >= prop->dmmu.start_addr && addr < prop->dmmu.end_addr)) in hl_is_device_va() 664 dram_start_addr = prop->dmmu.start_addr; in hl_is_device_internal_memory_va() 665 dram_end_addr = prop->dmmu.end_addr; in hl_is_device_internal_memory_va()
|
D | memory.c | 1139 va_block_align = hdev->asic_prop.dmmu.page_size; in map_device_va() 2716 dram_range_start = prop->dmmu.start_addr; in hl_vm_ctx_init() 2717 dram_range_end = prop->dmmu.end_addr - 1; in hl_vm_ctx_init() 2719 prop->dram_page_size : prop->dmmu.page_size; in hl_vm_ctx_init()
|
D | habanalabs_ioctl.c | 71 prop->dmmu.start_addr : prop->dram_user_base_address; in hw_ip_info() 671 info.page_order_bitmask = hdev->asic_prop.dmmu.supported_pages_mask; in dev_mem_alloc_page_sizes_info()
|
D | habanalabs.h | 713 struct hl_mmu_properties dmmu; member
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi/ |
D | gaudi.c | 646 memcpy(&prop->dmmu, &prop->pmmu, sizeof(prop->pmmu)); in gaudi_set_fixed_properties() 647 prop->dmmu.start_addr = (VA_HOST_SPACE_START + VA_HOST_SPACE_SIZE / 2); in gaudi_set_fixed_properties() 648 prop->dmmu.end_addr = VA_HOST_SPACE_END; in gaudi_set_fixed_properties() 649 prop->dmmu.page_size = PAGE_SIZE_2MB; in gaudi_set_fixed_properties() 650 prop->dmmu.pgt_size = prop->mmu_pgt_size; in gaudi_set_fixed_properties() 3652 (i * prop->dmmu.hop_table_size); in gaudi_mmu_init()
|