Lines Matching defs:hl_mmu_funcs
2824 struct hl_mmu_funcs { struct
2825 int (*init)(struct hl_device *hdev);
2826 void (*fini)(struct hl_device *hdev);
2827 int (*ctx_init)(struct hl_ctx *ctx);
2828 void (*ctx_fini)(struct hl_ctx *ctx);
2829 int (*map)(struct hl_ctx *ctx, u64 virt_addr, u64 phys_addr, u32 page_size,
2831 int (*unmap)(struct hl_ctx *ctx, u64 virt_addr, bool is_dram_addr);
2832 void (*flush)(struct hl_ctx *ctx);
2833 void (*swap_out)(struct hl_ctx *ctx);
2834 void (*swap_in)(struct hl_ctx *ctx);
2835 int (*get_tlb_info)(struct hl_ctx *ctx, u64 virt_addr, struct hl_mmu_hop_info *hops);
2836 struct hl_hr_mmu_funcs hr_funcs;