Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_db.c73 struct hns_roce_db_pgdir *pgdir; in hns_roce_alloc_db_pgdir() local
75 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()
83 pgdir->page = dma_alloc_coherent(dma_device, PAGE_SIZE, in hns_roce_alloc_db_pgdir()
84 &pgdir->db_dma, GFP_KERNEL); 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()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dalloc.c137 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local
139 pgdir = kzalloc_node(sizeof(*pgdir), GFP_KERNEL, node); in mlx5_alloc_db_pgdir()
140 if (!pgdir) in mlx5_alloc_db_pgdir()
143 pgdir->bitmap = bitmap_zalloc_node(db_per_page, GFP_KERNEL, node); in mlx5_alloc_db_pgdir()
144 if (!pgdir->bitmap) { in mlx5_alloc_db_pgdir()
145 kfree(pgdir); in mlx5_alloc_db_pgdir()
149 bitmap_fill(pgdir->bitmap, db_per_page); in mlx5_alloc_db_pgdir()
151 pgdir->db_page = mlx5_dma_zalloc_coherent_node(dev, PAGE_SIZE, in mlx5_alloc_db_pgdir()
152 &pgdir->db_dma, node); in mlx5_alloc_db_pgdir()
153 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c643 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local
645 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx4_alloc_db_pgdir()
646 if (!pgdir) in mlx4_alloc_db_pgdir()
649 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); 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()
652 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir()
653 &pgdir->db_dma, GFP_KERNEL); in mlx4_alloc_db_pgdir()
654 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir()
655 kfree(pgdir); in mlx4_alloc_db_pgdir()
[all …]
/linux/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/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/include/xen/
H A Dxen-front-pgdir-shbuf.h70 struct xen_front_pgdir_shbuf *pgdir; member
/linux/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()
H A Dbook3s_hv_rm_mmu.c186 pgd_t *pgdir, bool realmode, unsigned long *pte_idx_ret) in kvmppc_do_h_enter() argument
405 vcpu->arch.pgdir, true, in kvmppc_h_enter()
/linux/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/arch/arm/include/asm/
H A Dsmp.h55 u64 pgdir; member
/linux/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/arch/powerpc/mm/book3s64/
H A Dhash_utils.c1725 pgd_t *pgdir; in hash_page_mm() local
1779 pgdir = mm->pgd; in hash_page_mm()
1780 if (pgdir == NULL) { in hash_page_mm()
1803 ptep = find_linux_pte(pgdir, ea, &is_thp, &hugeshift); in hash_page_mm()
2036 pgd_t *pgdir; in hash_preload() local
2050 pgdir = mm->pgd; in hash_preload()
2051 if (pgdir == NULL) in hash_preload()
/linux/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/arch/x86/mm/
H A Dtlb.c565 static void load_new_mm_cr3(pgd_t *pgdir, u16 new_asid, unsigned long lam, in load_new_mm_cr3() argument
572 new_mm_cr3 = build_cr3(pgdir, new_asid, lam); in load_new_mm_cr3()
574 new_mm_cr3 = build_cr3_noflush(pgdir, new_asid, lam); in load_new_mm_cr3()
/linux/arch/riscv/mm/
H A Dinit.c944 static void __init create_kernel_page_table(pgd_t *pgdir, in create_kernel_page_table() argument
952 create_pgd_mapping(pgdir, va, in create_kernel_page_table()
960 create_pgd_mapping(pgdir, va, in create_kernel_page_table()
965 static void __init create_kernel_page_table(pgd_t *pgdir, bool early) in create_kernel_page_table() argument
971 create_pgd_mapping(pgdir, va, in create_kernel_page_table()
/linux/arch/microblaze/kernel/
H A Dasm-offsets.c84 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
/linux/arch/arm64/kernel/pi/
H A Dmap_kernel.c21 extern void idmap_cpu_replace_ttbr1(phys_addr_t pgdir);
/linux/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
/linux/sound/xen/
H A Dxen_snd_front_alsa.c475 buf_cfg.pgdir = &stream->shbuf; in alsa_hw_params()
/linux/arch/powerpc/kernel/
H A Dasm-offsets.c127 OFFSET(PGDIR, thread_struct, pgdir); in main()

12