Home
last modified time | relevance | path

Searched refs:dram_page_size (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/accel/habanalabs/common/mmu/
Dmmu.c498 !is_power_of_2(prop->dram_page_size)) { in hl_mmu_pa_page_with_offset()
499 u64 dram_page_size, dram_base, abs_phys_addr, abs_virt_addr, in hl_mmu_pa_page_with_offset() local
509 dram_page_size = prop->dram_page_size; in hl_mmu_pa_page_with_offset()
513 page_id = DIV_ROUND_DOWN_ULL(abs_phys_addr, dram_page_size); in hl_mmu_pa_page_with_offset()
514 page_start = page_id * dram_page_size; in hl_mmu_pa_page_with_offset()
515 div_u64_rem(abs_virt_addr, dram_page_size, &page_off); in hl_mmu_pa_page_with_offset()
Dmmu_v1.c40 do_div(num_of_hop3, prop->dram_page_size); in dram_default_mapping_init()
140 do_div(num_of_hop3, prop->dram_page_size); in dram_default_mapping_fini()
/linux-6.12.1/drivers/accel/habanalabs/common/
Dmemory.c2611 u32 dram_page_size) in vm_ctx_init_with_ranges() argument
2664 dram_range_start, dram_range_end, dram_page_size); in vm_ctx_init_with_ranges()
2705 u32 host_page_size, host_huge_page_size, dram_page_size; in hl_vm_ctx_init() local
2718 dram_page_size = prop->dram_page_size ? in hl_vm_ctx_init()
2719 prop->dram_page_size : prop->dmmu.page_size; in hl_vm_ctx_init()
2730 dram_range_start, dram_range_end, dram_page_size); in hl_vm_ctx_init()
2843 if (is_power_of_2(prop->dram_page_size)) in hl_vm_init()
2845 gen_pool_create(__ffs(prop->dram_page_size), -1); in hl_vm_init()
Dhabanalabs_ioctl.c79 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info()
80 prop->dram_page_size; in hw_ip_info()
85 hw_ip.dram_page_size = prop->dram_page_size; in hw_ip_info()
Dhabanalabs.h750 u32 dram_page_size; member
/linux-6.12.1/include/uapi/drm/
Dhabanalabs_accel.h931 __u64 dram_page_size; member
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/
Dgaudi2.c2344 prop->dram_page_size = GAUDI2_COMPENSATE_TLB_PAGE_SIZE_FACTOR * basic_hbm_page_size; in gaudi2_set_dram_properties()
2345 prop->device_mem_alloc_default_page_size = prop->dram_page_size; in gaudi2_set_dram_properties()
2351 prop->dram_user_base_address = DRAM_PHYS_BASE + prop->dram_page_size; in gaudi2_set_dram_properties()
2374 (prop->dram_page_size * in gaudi2_set_dram_properties()
2375 DIV_ROUND_UP_SECTOR_T(prop->dram_size, prop->dram_page_size)); in gaudi2_set_dram_properties()
2376 prop->dmmu.end_addr = prop->dmmu.start_addr + prop->dram_page_size * in gaudi2_set_dram_properties()
2392 ((prop->dram_page_size - hbm_drv_base_offset) - in gaudi2_set_dram_properties()
11482 if ((page_size % prop->dram_page_size) || (prop->dram_page_size > mmu_prop->page_size)) in gaudi2_mmu_get_real_page_size()
11493 *real_page_size = prop->dram_page_size; in gaudi2_mmu_get_real_page_size()
/linux-6.12.1/drivers/accel/habanalabs/goya/
Dgoya.c416 prop->dram_page_size = PAGE_SIZE_2MB; in goya_set_fixed_properties()
417 prop->device_mem_alloc_default_page_size = prop->dram_page_size; in goya_set_fixed_properties()
/linux-6.12.1/drivers/accel/habanalabs/gaudi/
Dgaudi.c617 prop->dram_page_size = PAGE_SIZE_2MB; in gaudi_set_fixed_properties()
618 prop->device_mem_alloc_default_page_size = prop->dram_page_size; in gaudi_set_fixed_properties()