/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/ |
D | alloc.c | 105 struct mlx5_db_pgdir *pgdir; in mlx5_alloc_db_pgdir() local 107 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir() 108 if (!pgdir) in mlx5_alloc_db_pgdir() 111 bitmap_fill(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_pgdir() 113 pgdir->db_page = mlx5_dma_zalloc_coherent_node(dev, PAGE_SIZE, in mlx5_alloc_db_pgdir() 114 &pgdir->db_dma, node); in mlx5_alloc_db_pgdir() 115 if (!pgdir->db_page) { in mlx5_alloc_db_pgdir() 116 kfree(pgdir); in mlx5_alloc_db_pgdir() 120 return pgdir; in mlx5_alloc_db_pgdir() 123 static int mlx5_alloc_db_from_pgdir(struct mlx5_db_pgdir *pgdir, in mlx5_alloc_db_from_pgdir() argument [all …]
|
/linux-4.4.14/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.4.14/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; member 103 struct pgdir pgdirs[4];
|
/linux-4.4.14/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.4.14/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.4.14/arch/powerpc/include/asm/ |
D | pgtable.h | 261 pte_t *__find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, 263 static inline pte_t *find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, in find_linux_pte_or_hugepte() argument 270 return __find_linux_pte_or_hugepte(pgdir, ea, is_thp, shift); in find_linux_pte_or_hugepte()
|
D | processor.h | 222 void *pgdir; /* root of page-table tree */ member 342 .pgdir = swapper_pg_dir, \
|
D | mmu_context.h | 67 tsk->thread.pgdir = next->pgd; in switch_mm()
|
D | kvm_book3s.h | 172 pgd_t *pgdir, bool realmode, unsigned long *idx_ret);
|
D | kvm_host.h | 604 pgd_t *pgdir; member
|
/linux-4.4.14/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, NULL, &shift); in read_user_stack_slow()
|
/linux-4.4.14/arch/powerpc/mm/ |
D | hash_utils_64.c | 999 pgd_t *pgdir; in hash_page_mm() local 1048 pgdir = mm->pgd; in hash_page_mm() 1049 if (pgdir == NULL) { in hash_page_mm() 1072 ptep = __find_linux_pte_or_hugepte(pgdir, ea, &is_thp, &hugeshift); in hash_page_mm() 1211 pgd_t *pgdir; in hash_preload() local 1228 pgdir = mm->pgd; in hash_preload() 1229 if (pgdir == NULL) in hash_preload() 1247 ptep = find_linux_pte_or_hugepte(pgdir, ea, NULL, &hugepage_shift); in hash_preload()
|
D | hugetlbpage.c | 978 pte_t *__find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, in __find_linux_pte_or_hugepte() argument 994 pgdp = pgdir + pgd_index(ea); in __find_linux_pte_or_hugepte()
|
/linux-4.4.14/arch/arm/include/asm/ |
D | smp.h | 64 u64 pgdir; member
|
/linux-4.4.14/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.4.14/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, NULL); in kvmppc_e500_shadow_map()
|
D | book3s_hv_rm_mmu.c | 169 pgd_t *pgdir, bool realmode, unsigned long *pte_idx_ret) in kvmppc_do_h_enter() argument 224 ptep = __find_linux_pte_or_hugepte(pgdir, hva, NULL, in kvmppc_do_h_enter() 228 ptep = find_linux_pte_or_hugepte(pgdir, hva, NULL, in kvmppc_do_h_enter() 380 vcpu->arch.pgdir, true, &vcpu->arch.gpr[4]); in kvmppc_h_enter()
|
D | booke.c | 769 vcpu->arch.pgdir = current->mm->pgd; in kvmppc_vcpu_run()
|
D | book3s_hv.c | 2713 vcpu->arch.pgdir = current->mm->pgd; in kvmppc_vcpu_run_hv()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | processor.h | 209 static inline void load_cr3(pgd_t *pgdir) in load_cr3() argument 211 write_cr3(__pa(pgdir)); in load_cr3()
|
/linux-4.4.14/arch/cris/include/asm/ |
D | pgtable.h | 93 #define SET_PAGE_DIR(tsk,pgdir) argument
|
/linux-4.4.14/arch/microblaze/kernel/ |
D | asm-offsets.c | 85 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
|
/linux-4.4.14/arch/openrisc/include/asm/ |
D | pgtable.h | 221 #define SET_PAGE_DIR(tsk, pgdir) argument
|
/linux-4.4.14/arch/arm/kernel/ |
D | smp.c | 115 secondary_data.pgdir = virt_to_phys(idmap_pgd); in __cpu_up()
|
D | head.S | 401 ldrd r4, [r3, #0] @ get secondary_data.pgdir
|
/linux-4.4.14/drivers/lguest/x86/ |
D | core.c | 174 "1"(__pa(cpu->lg->pgdirs[cpu->cpu_pgd].pgdir)), in run_guest_once()
|
/linux-4.4.14/include/linux/mlx5/ |
D | driver.h | 534 struct mlx5_db_pgdir *pgdir; member
|
/linux-4.4.14/include/linux/mlx4/ |
D | device.h | 645 struct mlx4_db_pgdir *pgdir; member
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | asm-offsets.c | 111 DEFINE(PGDIR, offsetof(struct thread_struct, pgdir)); in main()
|