Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/infiniband/hw/hns/
H A Dhns_roce_db.c75 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in hns_roce_alloc_db_pgdir()
76 if (!pgdir) in hns_roce_alloc_db_pgdir()
79 bitmap_fill(pgdir->order1, in hns_roce_alloc_db_pgdir()
81 pgdir->bits[0] = pgdir->order0; in hns_roce_alloc_db_pgdir()
82 pgdir->bits[1] = pgdir->order1; in hns_roce_alloc_db_pgdir()
85 if (!pgdir->page) { in hns_roce_alloc_db_pgdir()
86 kfree(pgdir); in hns_roce_alloc_db_pgdir()
90 return pgdir; in hns_roce_alloc_db_pgdir()
115 db->u.pgdir = pgdir; in hns_roce_alloc_db_from_pgdir()
137 if (!pgdir) { in hns_roce_alloc_db()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A Dalloc.c139 pgdir = kzalloc_node(sizeof(*pgdir), GFP_KERNEL, node); in mlx5_alloc_db_pgdir()
140 if (!pgdir) in mlx5_alloc_db_pgdir()
144 if (!pgdir->bitmap) { in mlx5_alloc_db_pgdir()
145 kfree(pgdir); in mlx5_alloc_db_pgdir()
155 kfree(pgdir); in mlx5_alloc_db_pgdir()
159 return pgdir; in mlx5_alloc_db_pgdir()
175 db->u.pgdir = pgdir; in mlx5_alloc_db_from_pgdir()
178 db->db = pgdir->db_page + offset / sizeof(*pgdir->db_page); in mlx5_alloc_db_from_pgdir()
199 if (!pgdir) { in mlx5_db_alloc_node()
226 db->u.pgdir->db_page, db->u.pgdir->db_dma); in mlx5_db_free()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c645 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx4_alloc_db_pgdir()
646 if (!pgdir) in mlx4_alloc_db_pgdir()
650 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir()
651 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir()
654 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir()
655 kfree(pgdir); in mlx4_alloc_db_pgdir()
659 return pgdir; in mlx4_alloc_db_pgdir()
684 db->u.pgdir = pgdir; in mlx4_alloc_db_from_pgdir()
706 if (!pgdir) { in mlx4_db_alloc()
743 db->u.pgdir->db_page, db->u.pgdir->db_dma); in mlx4_db_free()
[all …]
/linux-6.15/arch/powerpc/include/asm/
H A 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()
H A Dprocessor.h145 void *pgdir; /* root of page-table tree */ member
290 .pgdir = swapper_pg_dir, \
299 .pgdir = swapper_pg_dir, \
/linux-6.15/arch/microblaze/include/asm/
H A Dprocessor.h57 void *pgdir; /* root of page-table tree */ member
63 .pgdir = swapper_pg_dir, \
H A Dmmu_context_mm.h117 tsk->thread.pgdir = next->pgd; in switch_mm()
130 current->thread.pgdir = mm->pgd; in activate_mm()
/linux-6.15/include/xen/
H A Dxen-front-pgdir-shbuf.h70 struct xen_front_pgdir_shbuf *pgdir; member
/linux-6.15/arch/arm/include/asm/
H A Dsmp.h55 u64 pgdir; member
/linux-6.15/arch/powerpc/kvm/
H A De500_mmu_host.c339 pgd_t *pgdir; in kvmppc_e500_shadow_map() local
373 pgdir = vcpu_e500->vcpu.arch.pgdir; in kvmppc_e500_shadow_map()
381 ptep = find_linux_pte(pgdir, hva, NULL, &psize); in kvmppc_e500_shadow_map()
/linux-6.15/arch/powerpc/mm/
H A Dmmu_context.c20 tsk->thread.pgdir = mm->pgd; in switch_mm_pgdir()
H A Dpgtable.c428 pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea, in __find_linux_pte() argument
456 pgdp = pgdir + pgd_index(ea); in __find_linux_pte()
/linux-6.15/tools/testing/selftests/tc-testing/
H A Dtdc.py60 def load_plugin(self, pgdir, pgname): argument
64 foo = importlib.import_module('{}.{}'.format(pgdir, pgname))
119 pgdir = source_path[0]
120 pgdir = pgdir.split('/')[0]
121 self.load_plugin(pgdir, fname)
/linux-6.15/arch/arm64/mm/
H A Dmmu.c427 static void __create_pgd_mapping_locked(pgd_t *pgdir, phys_addr_t phys, in __create_pgd_mapping_locked() argument
434 pgd_t *pgdp = pgd_offset_pgd(pgdir, virt); in __create_pgd_mapping_locked()
455 static void __create_pgd_mapping(pgd_t *pgdir, phys_addr_t phys, in __create_pgd_mapping() argument
462 __create_pgd_mapping_locked(pgdir, phys, virt, size, prot, in __create_pgd_mapping()
469 void create_kpti_ng_temp_pgd(pgd_t *pgdir, phys_addr_t phys, unsigned long virt,
1299 static void __remove_pgd_mapping(pgd_t *pgdir, unsigned long start, u64 size) in __remove_pgd_mapping() argument
1303 WARN_ON(pgdir != init_mm.pgd); in __remove_pgd_mapping()
/linux-6.15/drivers/xen/
H A DMakefile40 obj-$(CONFIG_XEN_FRONT_PGDIR_SHBUF) += xen-front-pgdir-shbuf.o
H A Dxen-front-pgdir-shbuf.c517 struct xen_front_pgdir_shbuf *buf = cfg->pgdir; in xen_front_pgdir_shbuf_alloc()
/linux-6.15/arch/x86/include/asm/
H A Dprocessor.h249 static inline void load_cr3(pgd_t *pgdir) in load_cr3() argument
251 write_cr3(__sme_pa(pgdir)); in load_cr3()
/linux-6.15/arch/powerpc/mm/book3s64/
H A Dhash_utils.c1706 pgd_t *pgdir; in hash_page_mm() local
1760 pgdir = mm->pgd; in hash_page_mm()
1761 if (pgdir == NULL) { in hash_page_mm()
1784 ptep = find_linux_pte(pgdir, ea, &is_thp, &hugeshift); in hash_page_mm()
2017 pgd_t *pgdir; in hash_preload() local
2031 pgdir = mm->pgd; in hash_preload()
2032 if (pgdir == NULL) in hash_preload()
/linux-6.15/arch/x86/mm/
H A Dtlb.c558 static void load_new_mm_cr3(pgd_t *pgdir, u16 new_asid, unsigned long lam, in load_new_mm_cr3() argument
565 new_mm_cr3 = build_cr3(pgdir, new_asid, lam); in load_new_mm_cr3()
567 new_mm_cr3 = build_cr3_noflush(pgdir, new_asid, lam); in load_new_mm_cr3()
/linux-6.15/arch/arm64/kernel/pi/
H A Dmap_kernel.c21 extern void idmap_cpu_replace_ttbr1(void *pgdir);
/linux-6.15/arch/riscv/mm/
H A Dinit.c932 static void __init create_kernel_page_table(pgd_t *pgdir, in create_kernel_page_table() argument
940 create_pgd_mapping(pgdir, va, in create_kernel_page_table()
948 create_pgd_mapping(pgdir, va, in create_kernel_page_table()
953 static void __init create_kernel_page_table(pgd_t *pgdir, bool early) in create_kernel_page_table() argument
959 create_pgd_mapping(pgdir, va, in create_kernel_page_table()
/linux-6.15/arch/microblaze/kernel/
H A Dasm-offsets.c83 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
/linux-6.15/arch/openrisc/include/asm/
H A Dpgtable.h201 #define SET_PAGE_DIR(tsk, pgdir) argument
/linux-6.15/arch/arm/kernel/
H A Dsmp.c152 secondary_data.pgdir = virt_to_phys(idmap_pgd); in __cpu_up()
H A Dhead.S420 ldrd r4, r5, [r3, #0] @ get secondary_data.pgdir

12