Home
last modified time | relevance | path

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

12

/Linux-v4.19/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, HNS_ROCE_DB_PER_PAGE / 2); in hns_roce_alloc_db_pgdir()
82 pgdir->bits[0] = pgdir->order0; in hns_roce_alloc_db_pgdir()
83 pgdir->bits[1] = pgdir->order1; in hns_roce_alloc_db_pgdir()
84 pgdir->page = dma_alloc_coherent(dma_device, PAGE_SIZE, in hns_roce_alloc_db_pgdir()
85 &pgdir->db_dma, GFP_KERNEL); in hns_roce_alloc_db_pgdir()
86 if (!pgdir->page) { in hns_roce_alloc_db_pgdir()
87 kfree(pgdir); in hns_roce_alloc_db_pgdir()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c183 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local
185 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir()
186 if (!pgdir) in mlx5_alloc_db_pgdir()
189 pgdir->bitmap = kcalloc(BITS_TO_LONGS(db_per_page), in mlx5_alloc_db_pgdir()
193 if (!pgdir->bitmap) { in mlx5_alloc_db_pgdir()
194 kfree(pgdir); in mlx5_alloc_db_pgdir()
198 bitmap_fill(pgdir->bitmap, db_per_page); in mlx5_alloc_db_pgdir()
200 pgdir->db_page = mlx5_dma_zalloc_coherent_node(dev, PAGE_SIZE, in mlx5_alloc_db_pgdir()
201 &pgdir->db_dma, node); in mlx5_alloc_db_pgdir()
202 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir()
[all …]
/Linux-v4.19/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
14 return __find_linux_pte(pgdir, ea, is_thp, hshift); in find_linux_pte()
19 pgd_t *pgdir = init_mm.pgd; in find_init_mm_pte() local
20 return __find_linux_pte(pgdir, ea, NULL, hshift); in find_init_mm_pte()
26 static inline pte_t *find_current_mm_pte(pgd_t *pgdir, unsigned long ea, in find_current_mm_pte() argument
30 VM_WARN(pgdir != current->mm->pgd, in find_current_mm_pte()
32 return __find_linux_pte(pgdir, ea, is_thp, hshift); in find_current_mm_pte()
Dprocessor.h257 void *pgdir; /* root of page-table tree */ member
382 .pgdir = swapper_pg_dir, \
Dkvm_book3s.h234 pgd_t *pgdir, bool realmode, unsigned long *idx_ret);
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c666 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local
668 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx4_alloc_db_pgdir()
669 if (!pgdir) in mlx4_alloc_db_pgdir()
672 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); in mlx4_alloc_db_pgdir()
673 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir()
674 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir()
675 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir()
676 &pgdir->db_dma, GFP_KERNEL); in mlx4_alloc_db_pgdir()
677 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir()
678 kfree(pgdir); in mlx4_alloc_db_pgdir()
[all …]
/Linux-v4.19/arch/arm64/include/asm/
Dkasan.h36 void kasan_copy_shadow(pgd_t *pgdir);
41 static inline void kasan_copy_shadow(pgd_t *pgdir) { } in kasan_copy_shadow() argument
/Linux-v4.19/arch/microblaze/include/asm/
Dprocessor.h108 void *pgdir; /* root of page-table tree */ member
114 .pgdir = swapper_pg_dir, \
Dmmu_context_mm.h123 tsk->thread.pgdir = next->pgd; in switch_mm()
135 current->thread.pgdir = mm->pgd; in activate_mm()
/Linux-v4.19/arch/powerpc/perf/
Dcallchain.c118 pgd_t *pgdir; in read_user_stack_slow() local
126 pgdir = current->mm->pgd; in read_user_stack_slow()
127 if (!pgdir) in read_user_stack_slow()
131 ptep = find_current_mm_pte(pgdir, addr, NULL, &shift); in read_user_stack_slow()
/Linux-v4.19/arch/powerpc/mm/
Dmmu_context.c24 tsk->thread.pgdir = mm->pgd; in switch_mm_pgdir()
Dhash_utils_64.c1222 pgd_t *pgdir; in hash_page_mm() local
1270 pgdir = mm->pgd; in hash_page_mm()
1271 if (pgdir == NULL) { in hash_page_mm()
1293 ptep = find_linux_pte(pgdir, ea, &is_thp, &hugeshift); in hash_page_mm()
1489 pgd_t *pgdir; in hash_preload() local
1503 pgdir = mm->pgd; in hash_preload()
1504 if (pgdir == NULL) in hash_preload()
1522 ptep = find_current_mm_pte(pgdir, ea, NULL, &hugepage_shift); in hash_preload()
Dhugetlbpage.c775 pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea, in __find_linux_pte() argument
791 pgdp = pgdir + pgd_index(ea); in __find_linux_pte()
/Linux-v4.19/arch/arm/include/asm/
Dsmp.h64 u64 pgdir; member
/Linux-v4.19/arch/arm64/mm/
Dkasan_init.c156 void __init kasan_copy_shadow(pgd_t *pgdir) in kasan_copy_shadow() argument
162 pgdp_new = pgd_offset_raw(pgdir, KASAN_SHADOW_START); in kasan_copy_shadow()
Dmmu.c324 static void __create_pgd_mapping(pgd_t *pgdir, phys_addr_t phys, in __create_pgd_mapping() argument
331 pgd_t *pgdp = pgd_offset_raw(pgdir, virt); in __create_pgd_mapping()
/Linux-v4.19/arch/x86/mm/
Dtlb.c104 static void load_new_mm_cr3(pgd_t *pgdir, u16 new_asid, bool need_flush) in load_new_mm_cr3() argument
110 new_mm_cr3 = build_cr3(pgdir, new_asid); in load_new_mm_cr3()
112 new_mm_cr3 = build_cr3_noflush(pgdir, new_asid); in load_new_mm_cr3()
/Linux-v4.19/arch/powerpc/kvm/
De500_mmu_host.c341 pgd_t *pgdir; in kvmppc_e500_shadow_map() local
472 pgdir = vcpu_e500->vcpu.arch.pgdir; in kvmppc_e500_shadow_map()
480 ptep = find_linux_pte(pgdir, hva, NULL, NULL); in kvmppc_e500_shadow_map()
Dbook3s_hv_rm_mmu.c200 pgd_t *pgdir, bool realmode, unsigned long *pte_idx_ret) in kvmppc_do_h_enter() argument
262 ptep = __find_linux_pte(pgdir, hva, NULL, &hpage_shift); in kvmppc_do_h_enter()
420 vcpu->arch.pgdir, true, in kvmppc_h_enter()
Dbook3s_64_vio_hv.c420 ptep = __find_linux_pte(vcpu->arch.pgdir, ua, NULL, &shift); in kvmppc_rm_ua_to_hpa()
/Linux-v4.19/arch/x86/include/asm/
Dprocessor.h249 static inline void load_cr3(pgd_t *pgdir) in load_cr3() argument
251 write_cr3(__sme_pa(pgdir)); in load_cr3()
/Linux-v4.19/arch/microblaze/kernel/
Dasm-offsets.c85 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
/Linux-v4.19/arch/openrisc/include/asm/
Dpgtable.h222 #define SET_PAGE_DIR(tsk, pgdir) argument
/Linux-v4.19/arch/arm/kernel/
Dsmp.c122 secondary_data.pgdir = virt_to_phys(idmap_pgd); in __cpu_up()
/Linux-v4.19/arch/powerpc/xmon/
Dxmon.c3007 pgd_t *pgdp, *pgdir; in show_pte() local
3033 pgdir = pgd_offset_k(0); in show_pte()
3036 pgdir = pgd_offset(mm, 0); in show_pte()
3044 printf("pgd @ 0x%px\n", pgdir); in show_pte()

12