Home
last modified time | relevance | path

Searched refs:mmu_prop (Results 1 – 6 of 6) sorted by relevance

/linux-6.15/drivers/accel/habanalabs/common/mmu/
H A Dmmu_v2.c64 struct hl_mmu_properties *mmu_prop; in hl_mmu_v2_unmap() local
72 mmu_prop = &prop->dmmu; in hl_mmu_v2_unmap()
74 hop_last = mmu_prop->num_hops - 1; in hl_mmu_v2_unmap()
86 for (i = 1 ; i < mmu_prop->num_hops ; i++) { in hl_mmu_v2_unmap()
138 struct hl_mmu_properties *mmu_prop; in hl_mmu_v2_map() local
145 mmu_prop = &prop->dmmu; in hl_mmu_v2_map()
147 hop_last = mmu_prop->num_hops - 1; in hl_mmu_v2_map()
249 struct hl_mmu_properties *mmu_prop; in hl_mmu_v2_get_tlb_info() local
261 mmu_prop = &prop->dmmu; in hl_mmu_v2_get_tlb_info()
278 for (i = 1 ; i < mmu_prop->num_hops ; i++) { in hl_mmu_v2_get_tlb_info()
[all …]
H A Dmmu_v2_hr.c122 struct hl_mmu_properties *mmu_prop; in _hl_mmu_v2_hr_unmap() local
130 hop_last = mmu_prop->num_hops - 1; in _hl_mmu_v2_hr_unmap()
195 if (mmu_prop->hop_shifts[hop] == 0) in hl_mmu_v2_get_last_hop()
215 struct hl_mmu_properties *mmu_prop; in _hl_mmu_v2_hr_map() local
226 mmu_prop = &prop->dmmu; in _hl_mmu_v2_hr_map()
228 mmu_prop = &prop->pmmu_huge; in _hl_mmu_v2_hr_map()
230 mmu_prop = &prop->pmmu; in _hl_mmu_v2_hr_map()
249 mmu_prop, curr_pte, &hop_new[i]); in _hl_mmu_v2_hr_map()
352 *mmu_prop = &prop->dmmu; in hl_mmu_v2_hr_get_tlb_mapping_params()
356 *mmu_prop = &prop->pmmu; in hl_mmu_v2_hr_get_tlb_mapping_params()
[all …]
H A Dmmu_v1.c20 mask = mmu_prop->hop_masks[hop_idx]; in get_hop_pte_addr()
21 shift = mmu_prop->hop_shifts[hop_idx]; in get_hop_pte_addr()
225 struct hl_mmu_properties *mmu_prop; in hl_mmu_v1_unmap() local
341 mmu_prop = &prop->dmmu; in hl_mmu_v1_map()
344 mmu_prop = &prop->pmmu_huge; in hl_mmu_v1_map()
347 mmu_prop = &prop->pmmu; in hl_mmu_v1_map()
473 mmu_prop = &prop->dmmu; in hl_mmu_v1_get_tlb_info()
476 mmu_prop = &prop->pmmu; in hl_mmu_v1_get_tlb_info()
479 mmu_prop = &prop->pmmu_huge; in hl_mmu_v1_get_tlb_info()
485 used_hops = mmu_prop->num_hops; in hl_mmu_v1_get_tlb_info()
[all …]
H A Dmmu.c230 struct hl_mmu_properties *mmu_prop; in hl_mmu_unmap_page() local
298 struct hl_mmu_properties *mmu_prop; in hl_mmu_map_page() local
326 (mmu_prop->page_size - 1)) || in hl_mmu_map_page()
328 (mmu_prop->page_size - 1)))) || in hl_mmu_map_page()
491 mmu_prop = &prop->pmmu_huge; in hl_mmu_pa_page_with_offset()
493 mmu_prop = &prop->pmmu; in hl_mmu_pa_page_with_offset()
495 mmu_prop = &prop->dmmu; in hl_mmu_pa_page_with_offset()
1080 mmu_prop->hop_table_size, in hl_mmu_hr_alloc_hop()
1082 mmu_prop->hop_table_size); in hl_mmu_hr_alloc_hop()
1169 used_hops = mmu_prop->num_hops; in hl_mmu_hr_get_tlb_info()
[all …]
/linux-6.15/drivers/accel/habanalabs/common/
H A Dhabanalabs.h1762 int (*mmu_get_real_page_size)(struct hl_device *hdev, struct hl_mmu_properties *mmu_prop,
2878 int (*get_tlb_mapping_params)(struct hl_device *hdev, struct hl_mmu_properties **mmu_prop,
3880 int hl_mmu_get_real_page_size(struct hl_device *hdev, struct hl_mmu_properties *mmu_prop,
3892 u64 hl_mmu_get_hop_pte_phys_addr(struct hl_ctx *ctx, struct hl_mmu_properties *mmu_prop,
3914 struct hl_mmu_properties *mmu_prop);
3918 struct hl_mmu_properties *mmu_prop,
/linux-6.15/drivers/accel/habanalabs/gaudi2/
H A Dgaudi2.c11468 static int gaudi2_mmu_get_real_page_size(struct hl_device *hdev, struct hl_mmu_properties *mmu_prop, in gaudi2_mmu_get_real_page_size() argument
11475 if (page_size % mmu_prop->page_size) in gaudi2_mmu_get_real_page_size()
11478 *real_page_size = mmu_prop->page_size; in gaudi2_mmu_get_real_page_size()
11482 if ((page_size % prop->dram_page_size) || (prop->dram_page_size > mmu_prop->page_size)) in gaudi2_mmu_get_real_page_size()
11499 page_size, mmu_prop->page_size >> 10); in gaudi2_mmu_get_real_page_size()