Home
last modified time | relevance | path

Searched refs:pgdir (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_db.c75 struct hns_roce_db_pgdir *pgdir; in hns_roce_alloc_db_pgdir() local
77 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in hns_roce_alloc_db_pgdir()
78 if (!pgdir) in hns_roce_alloc_db_pgdir()
81 bitmap_fill(pgdir->order1, in hns_roce_alloc_db_pgdir()
83 pgdir->bits[0] = pgdir->order0; in hns_roce_alloc_db_pgdir()
84 pgdir->bits[1] = pgdir->order1; in hns_roce_alloc_db_pgdir()
85 pgdir->page = dma_alloc_coherent(dma_device, PAGE_SIZE, in hns_roce_alloc_db_pgdir()
86 &pgdir->db_dma, GFP_KERNEL); in hns_roce_alloc_db_pgdir()
87 if (!pgdir->page) { in hns_roce_alloc_db_pgdir()
88 kfree(pgdir); in hns_roce_alloc_db_pgdir()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c184 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local
186 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir()
187 if (!pgdir) in mlx5_alloc_db_pgdir()
190 pgdir->bitmap = bitmap_zalloc(db_per_page, GFP_KERNEL); in mlx5_alloc_db_pgdir()
191 if (!pgdir->bitmap) { in mlx5_alloc_db_pgdir()
192 kfree(pgdir); in mlx5_alloc_db_pgdir()
196 bitmap_fill(pgdir->bitmap, db_per_page); in mlx5_alloc_db_pgdir()
198 pgdir->db_page = mlx5_dma_zalloc_coherent_node(dev, PAGE_SIZE, in mlx5_alloc_db_pgdir()
199 &pgdir->db_dma, node); in mlx5_alloc_db_pgdir()
200 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dpte-walk.h7 extern pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
10 static inline pte_t *find_linux_pte(pgd_t *pgdir, unsigned long ea, in find_linux_pte() argument
16 pte = __find_linux_pte(pgdir, ea, is_thp, hshift); in find_linux_pte()
31 pgd_t *pgdir = init_mm.pgd; in find_init_mm_pte() local
32 return __find_linux_pte(pgdir, ea, NULL, hshift); in find_init_mm_pte()
38 static inline pte_t *find_current_mm_pte(pgd_t *pgdir, unsigned long ea, in find_current_mm_pte() argument
44 VM_WARN(pgdir != current->mm->pgd, in find_current_mm_pte()
46 pte = __find_linux_pte(pgdir, ea, is_thp, hshift); in find_current_mm_pte()
Dprocessor.h152 void *pgdir; /* root of page-table tree */ member
294 .pgdir = swapper_pg_dir, \
Dkvm_book3s.h252 pgd_t *pgdir, bool realmode, unsigned long *idx_ret);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c665 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local
667 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx4_alloc_db_pgdir()
668 if (!pgdir) in mlx4_alloc_db_pgdir()
671 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); in mlx4_alloc_db_pgdir()
672 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir()
673 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir()
674 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir()
675 &pgdir->db_dma, GFP_KERNEL); in mlx4_alloc_db_pgdir()
676 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir()
677 kfree(pgdir); in mlx4_alloc_db_pgdir()
[all …]
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dkasan.h37 void kasan_copy_shadow(pgd_t *pgdir);
42 static inline void kasan_copy_shadow(pgd_t *pgdir) { } in kasan_copy_shadow() argument
/kernel/linux/linux-5.10/arch/microblaze/include/asm/
Dprocessor.h93 void *pgdir; /* root of page-table tree */ member
99 .pgdir = swapper_pg_dir, \
Dmmu_context_mm.h120 tsk->thread.pgdir = next->pgd; in switch_mm()
132 current->thread.pgdir = mm->pgd; in activate_mm()
/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/
Dtdc.py59 def load_plugin(self, pgdir, pgname): argument
61 foo = importlib.import_module('{}.{}'.format(pgdir, pgname))
107 pgdir = source_path[0]
108 pgdir = pgdir.split('/')[0]
109 self.load_plugin(pgdir, fname)
/kernel/linux/linux-5.10/include/xen/
Dxen-front-pgdir-shbuf.h70 struct xen_front_pgdir_shbuf *pgdir; member
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dmmu_context.c20 tsk->thread.pgdir = mm->pgd; in switch_mm_pgdir()
Dpgtable.c346 pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea, in __find_linux_pte() argument
370 pgdp = pgdir + pgd_index(ea); in __find_linux_pte()
/kernel/linux/linux-5.10/arch/arm/include/asm/
Dsmp.h60 u64 pgdir; member
/kernel/linux/linux-5.10/arch/arm64/mm/
Dkasan_init.c187 void __init kasan_copy_shadow(pgd_t *pgdir) in kasan_copy_shadow() argument
193 pgdp_new = pgd_offset_pgd(pgdir, KASAN_SHADOW_START); in kasan_copy_shadow()
Dmmu.c358 static void __create_pgd_mapping(pgd_t *pgdir, phys_addr_t phys, in __create_pgd_mapping() argument
365 pgd_t *pgdp = pgd_offset_pgd(pgdir, virt); in __create_pgd_mapping()
1477 static void __remove_pgd_mapping(pgd_t *pgdir, unsigned long start, u64 size) in __remove_pgd_mapping() argument
1481 WARN_ON(pgdir != init_mm.pgd); in __remove_pgd_mapping()
/kernel/linux/linux-5.10/arch/powerpc/kvm/
De500_mmu_host.c338 pgd_t *pgdir; in kvmppc_e500_shadow_map() local
469 pgdir = vcpu_e500->vcpu.arch.pgdir; in kvmppc_e500_shadow_map()
477 ptep = find_linux_pte(pgdir, hva, NULL, NULL); in kvmppc_e500_shadow_map()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
Dhash_utils.c1303 pgd_t *pgdir; in hash_page_mm() local
1355 pgdir = mm->pgd; in hash_page_mm()
1356 if (pgdir == NULL) { in hash_page_mm()
1379 ptep = find_linux_pte(pgdir, ea, &is_thp, &hugeshift); in hash_page_mm()
1586 pgd_t *pgdir; in hash_preload() local
1600 pgdir = mm->pgd; in hash_preload()
1601 if (pgdir == NULL) in hash_preload()
/kernel/linux/linux-5.10/drivers/xen/
DMakefile43 obj-$(CONFIG_XEN_FRONT_PGDIR_SHBUF) += xen-front-pgdir-shbuf.o
Dxen-front-pgdir-shbuf.c519 struct xen_front_pgdir_shbuf *buf = cfg->pgdir; in xen_front_pgdir_shbuf_alloc()
/kernel/linux/linux-5.10/arch/x86/mm/
Dtlb.c268 static void load_new_mm_cr3(pgd_t *pgdir, u16 new_asid, bool need_flush) in load_new_mm_cr3() argument
274 new_mm_cr3 = build_cr3(pgdir, new_asid); in load_new_mm_cr3()
276 new_mm_cr3 = build_cr3_noflush(pgdir, new_asid); in load_new_mm_cr3()
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dprocessor.h255 static inline void load_cr3(pgd_t *pgdir) in load_cr3() argument
257 write_cr3(__sme_pa(pgdir)); in load_cr3()
/kernel/linux/linux-5.10/arch/microblaze/kernel/
Dasm-offsets.c85 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
/kernel/linux/linux-5.10/arch/openrisc/include/asm/
Dpgtable.h217 #define SET_PAGE_DIR(tsk, pgdir) argument
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsmp.c153 secondary_data.pgdir = virt_to_phys(idmap_pgd); in __cpu_up()

12