/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
D | alloc.c | 139 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local 141 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir() 142 if (!pgdir) in mlx5_alloc_db_pgdir() 145 bitmap_fill(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_pgdir() 146 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx5_alloc_db_pgdir() 147 &pgdir->db_dma, GFP_KERNEL); in mlx5_alloc_db_pgdir() 148 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir() 149 kfree(pgdir); in mlx5_alloc_db_pgdir() 153 return pgdir; in mlx5_alloc_db_pgdir() 156 static int mlx5_alloc_db_from_pgdir(struct mlx5_db_pgdir *pgdir, in mlx5_alloc_db_from_pgdir() argument [all …]
|
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/ |
D | alloc.c | 682 struct mlx4_db_pgdir *pgdir; in mlx4_alloc_db_pgdir() local 684 pgdir = kzalloc(sizeof *pgdir, gfp); in mlx4_alloc_db_pgdir() 685 if (!pgdir) in mlx4_alloc_db_pgdir() 688 bitmap_fill(pgdir->order1, MLX4_DB_PER_PAGE / 2); in mlx4_alloc_db_pgdir() 689 pgdir->bits[0] = pgdir->order0; in mlx4_alloc_db_pgdir() 690 pgdir->bits[1] = pgdir->order1; in mlx4_alloc_db_pgdir() 691 pgdir->db_page = dma_alloc_coherent(dma_device, PAGE_SIZE, in mlx4_alloc_db_pgdir() 692 &pgdir->db_dma, gfp); in mlx4_alloc_db_pgdir() 693 if (!pgdir->db_page) { in mlx4_alloc_db_pgdir() 694 kfree(pgdir); in mlx4_alloc_db_pgdir() [all …]
|
/linux-4.1.27/drivers/lguest/ |
D | page_tables.c | 88 return &cpu->lg->pgdirs[i].pgdir[index]; in spgd_addr() 659 release_pgd(lg->pgdirs[idx].pgdir + i); in flush_user_mappings() 737 if (lg->pgdirs[i].pgdir && lg->pgdirs[i].gpgdir == pgtable) in find_pgdir() 759 if (!cpu->lg->pgdirs[next].pgdir) { in new_pgdir() 760 cpu->lg->pgdirs[next].pgdir = in new_pgdir() 763 if (!cpu->lg->pgdirs[next].pgdir) in new_pgdir() 833 if (!lg->pgdirs[i].pgdir) in release_all_pagetables() 838 release_pgd(lg->pgdirs[i].pgdir + j); in release_all_pagetables() 1005 if (cpu->lg->pgdirs[i].pgdir) in guest_set_pte() 1009 int pgdir = find_pgdir(cpu->lg, gpgdir); in guest_set_pte() local [all …]
|
D | lg.h | 17 struct pgdir { struct 21 pgd_t *pgdir; argument 103 struct pgdir pgdirs[4];
|
/linux-4.1.27/arch/tile/include/asm/ |
D | mmu_context.h | 37 static inline void __install_page_table(pgd_t *pgdir, int asid, pgprot_t prot) in __install_page_table() argument 40 int rc = hv_install_context(__pa(pgdir), prot, asid, in __install_page_table() 46 static inline void install_page_table(pgd_t *pgdir, int asid) in install_page_table() argument 48 pte_t *ptep = virt_to_kpte((unsigned long)pgdir); in install_page_table() 49 __install_page_table(pgdir, asid, *ptep); in install_page_table()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | mmu_context_mm.h | 120 tsk->thread.pgdir = next->pgd; in switch_mm() 132 current->thread.pgdir = mm->pgd; in activate_mm()
|
D | processor.h | 116 void *pgdir; /* root of page-table tree */ member 122 .pgdir = swapper_pg_dir, \
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | pgtable.h | 250 pte_t *__find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, 252 static inline pte_t *find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, in find_linux_pte_or_hugepte() argument 259 return __find_linux_pte_or_hugepte(pgdir, ea, shift); in find_linux_pte_or_hugepte()
|
D | mmu_context.h | 50 tsk->thread.pgdir = next->pgd; in switch_mm()
|
D | processor.h | 222 void *pgdir; /* root of page-table tree */ member 334 .pgdir = swapper_pg_dir, \
|
D | kvm_book3s.h | 171 pgd_t *pgdir, bool realmode, unsigned long *idx_ret);
|
D | kvm_host.h | 591 pgd_t *pgdir; member
|
/linux-4.1.27/arch/powerpc/perf/ |
D | callchain.c | 117 pgd_t *pgdir; in read_user_stack_slow() local 125 pgdir = current->mm->pgd; in read_user_stack_slow() 126 if (!pgdir) in read_user_stack_slow() 130 ptep = find_linux_pte_or_hugepte(pgdir, addr, &shift); in read_user_stack_slow()
|
/linux-4.1.27/arch/arm/kernel/ |
D | smp.c | 89 phys_addr_t pgdir = virt_to_idmap(pgd); in get_arch_pgd() local 90 BUG_ON(pgdir & ARCH_PGD_MASK); in get_arch_pgd() 91 return pgdir >> ARCH_PGD_SHIFT; in get_arch_pgd() 111 secondary_data.pgdir = get_arch_pgd(idmap_pgd); in __cpu_up()
|
D | head.S | 384 ldr r4, [r7, lr] @ get secondary_data.pgdir
|
/linux-4.1.27/arch/powerpc/mm/ |
D | hash_utils_64.c | 997 pgd_t *pgdir; in hash_page_mm() local 1045 pgdir = mm->pgd; in hash_page_mm() 1046 if (pgdir == NULL) { in hash_page_mm() 1069 ptep = __find_linux_pte_or_hugepte(pgdir, ea, &hugeshift); in hash_page_mm() 1208 pgd_t *pgdir; in hash_preload() local 1225 pgdir = mm->pgd; in hash_preload() 1226 if (pgdir == NULL) in hash_preload() 1244 ptep = find_linux_pte_or_hugepte(pgdir, ea, &hugepage_shift); in hash_preload()
|
D | hugetlbpage.c | 971 pte_t *__find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, in __find_linux_pte_or_hugepte() argument 984 pgdp = pgdir + pgd_index(ea); in __find_linux_pte_or_hugepte()
|
/linux-4.1.27/arch/arm/include/asm/ |
D | smp.h | 64 unsigned long pgdir; member
|
/linux-4.1.27/arch/mn10300/mm/ |
D | fault.c | 68 static void print_pagetable_entries(pgd_t *pgdir, unsigned long address) 74 pgd = pgdir + __pgd_offset(address);
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | e500_mmu_host.c | 340 pgd_t *pgdir; in kvmppc_e500_shadow_map() local 471 pgdir = vcpu_e500->vcpu.arch.pgdir; in kvmppc_e500_shadow_map() 479 ptep = find_linux_pte_or_hugepte(pgdir, hva, NULL); in kvmppc_e500_shadow_map()
|
D | book3s_hv_rm_mmu.c | 139 pgd_t *pgdir, bool realmode, unsigned long *pte_idx_ret) in kvmppc_do_h_enter() argument 194 ptep = __find_linux_pte_or_hugepte(pgdir, hva, &hpage_shift); in kvmppc_do_h_enter() 197 ptep = find_linux_pte_or_hugepte(pgdir, hva, &hpage_shift); in kvmppc_do_h_enter() 348 vcpu->arch.pgdir, true, &vcpu->arch.gpr[4]); in kvmppc_h_enter()
|
D | booke.c | 768 vcpu->arch.pgdir = current->mm->pgd; in kvmppc_vcpu_run()
|
D | book3s_hv.c | 2258 vcpu->arch.pgdir = current->mm->pgd; in kvmppc_vcpu_run_hv()
|
/linux-4.1.27/arch/x86/include/asm/ |
D | processor.h | 204 static inline void load_cr3(pgd_t *pgdir) in load_cr3() argument 206 write_cr3(__pa(pgdir)); in load_cr3()
|
/linux-4.1.27/arch/cris/include/asm/ |
D | pgtable.h | 93 #define SET_PAGE_DIR(tsk,pgdir) argument
|
/linux-4.1.27/arch/microblaze/kernel/ |
D | asm-offsets.c | 85 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
|
/linux-4.1.27/arch/openrisc/include/asm/ |
D | pgtable.h | 221 #define SET_PAGE_DIR(tsk, pgdir) argument
|
/linux-4.1.27/drivers/lguest/x86/ |
D | core.c | 174 "1"(__pa(cpu->lg->pgdirs[cpu->cpu_pgd].pgdir)), in run_guest_once()
|
/linux-4.1.27/include/linux/mlx5/ |
D | driver.h | 537 struct mlx5_db_pgdir *pgdir; member
|
/linux-4.1.27/include/linux/mlx4/ |
D | device.h | 628 struct mlx4_db_pgdir *pgdir; member
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | asm-offsets.c | 111 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
|