Searched refs:pmd (Results 201 - 225 of 293) sorted by relevance

1234567891011>>

/linux-master/arch/xtensa/mm/
H A Dtlb.c181 pmd_t *pmd; local
196 pmd = pmd_offset(pud, vaddr);
197 if (pmd_none_or_clear_bad(pmd))
199 pte = pte_offset_map(pmd, vaddr);
/linux-master/arch/arm/include/asm/
H A Dtlbflush.h570 static inline void flush_pmd_entry(void *pmd) argument
574 tlb_op(TLB_DCLEAN, "c7, c10, 1 @ flush_pmd", pmd);
575 tlb_l2_op(TLB_L2CLEAN_FR, "c15, c9, 1 @ L2 flush_pmd", pmd);
581 static inline void clean_pmd_entry(void *pmd) argument
585 tlb_op(TLB_DCLEAN, "c7, c10, 1 @ flush_pmd", pmd);
586 tlb_l2_op(TLB_L2CLEAN_FR, "c15, c9, 1 @ L2 flush_pmd", pmd);
638 #define update_mmu_cache_pmd(vma, address, pmd) do { } while (0)
/linux-master/arch/arm64/mm/
H A Dmmu.c197 pmd_t pmd = READ_ONCE(*pmdp); local
200 BUG_ON(pmd_sect(pmd));
201 if (pmd_none(pmd)) {
214 BUG_ON(pmd_bad(pmd));
491 * We don't select ARCH_ENABLE_SPLIT_PMD_PTLOCK if pmd is
878 pmd_t *pmdp, pmd; local
883 pmd = READ_ONCE(*pmdp);
884 if (pmd_none(pmd))
887 WARN_ON(!pmd_present(pmd));
888 if (pmd_sect(pmd)) {
1025 pmd_t *pmdp, pmd; local
1248 pmd_t pmd; local
[all...]
H A Dproc.S378 pmd .req x13
380 kpti_map_pgtbl pmd, 2
381 kpti_mk_tbl_ng pmd, PTRS_PER_PMD
384 pmd .req pgd
390 pte_to_phys cur_ptep, pmd
408 .unreq pmd
H A Dfixmap.c45 pmd_t pmd = READ_ONCE(*pmdp); local
48 if (pmd_none(pmd)) {
/linux-master/arch/sh/include/asm/
H A Dpgtable_32.h403 static inline unsigned long pmd_page_vaddr(pmd_t pmd) argument
405 return (unsigned long)pmd_val(pmd);
408 #define pmd_pfn(pmd) (__pa(pmd_val(pmd)) >> PAGE_SHIFT)
409 #define pmd_page(pmd) (virt_to_page(pmd_val(pmd)))
/linux-master/arch/powerpc/mm/ptdump/
H A Dhashpagetable.c374 static void walk_pte(struct pg_state *st, pmd_t *pmd, unsigned long start) argument
376 pte_t *pte = pte_offset_kernel(pmd, 0);
410 pmd_t *pmd = pmd_offset(pud, 0); local
414 for (i = 0; i < PTRS_PER_PMD; i++, pmd++) {
416 if (!pmd_none(*pmd))
417 /* pmd exists */
418 walk_pte(st, pmd, addr);
/linux-master/arch/mips/mm/
H A Dinit.c241 pmd_t *pmd; local
255 pmd = (pmd_t *)pud;
256 for (; (k < PTRS_PER_PMD) && (vaddr < end); pmd++, k++) {
257 if (pmd_none(*pmd)) {
265 set_pmd(pmd, __pmd((unsigned long)pte));
266 BUG_ON(pte != pte_offset_kernel(pmd, 0));
/linux-master/drivers/md/
H A Ddm-thin.c239 struct dm_pool_metadata *pmd; member in struct:pool
1095 r = dm_pool_block_is_shared(pool->pmd, b, &shared);
1108 r = dm_pool_block_is_shared(pool->pmd, e, &shared);
1173 r = dm_pool_inc_data_range(pool->pmd, m->data_block, data_end);
1206 r = dm_pool_dec_data_range(pool->pmd, m->data_block,
1451 r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free);
1471 r = dm_pool_get_free_block_count(pool->pmd, &nr_free);
1492 r = dm_pool_commit_metadata(pool->pmd);
1524 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks);
1541 r = dm_pool_get_free_block_count(pool->pmd,
2945 struct dm_pool_metadata *pmd; local
[all...]
/linux-master/arch/powerpc/mm/book3s64/
H A Dhash_tlb.c224 void flush_hash_table_pmd_range(struct mm_struct *mm, pmd_t *pmd, unsigned long addr) argument
241 start_pte = pte_offset_map(pmd, addr);
H A Dhash_pgtable.c226 pmd_t pmd; local
232 pmd = *pmdp;
237 * to hugepage, we first clear the pmd, then invalidate all
239 * page fault will see a none pmd and take the slow path that
252 * covered by pmd. This make sure we take a
253 * fault and will find the pmd as none, which will
259 flush_hash_table_pmd_range(vma->vm_mm, &pmd, address);
260 return pmd;
264 * We want to put the pgtable in pmd and use pgtable for tracking
280 * before we set the hugepage PTE at pmd leve
[all...]
/linux-master/arch/sparc/include/asm/
H A Dpage_64.h70 typedef struct { unsigned long pmd; } pmd_t; member in struct:__anon138
77 #define pmd_val(x) ((x).pmd)
/linux-master/mm/
H A Dptdump.c98 static int ptdump_pmd_entry(pmd_t *pmd, unsigned long addr, argument
102 pmd_t val = READ_ONCE(*pmd);
H A Dmadvise.c171 static int swapin_walk_pmd_entry(pmd_t *pmd, unsigned long start, argument
186 ptep = pte_offset_map_lock(vma->vm_mm, pmd, addr, &ptl);
336 static int madvise_cold_or_pageout_pte_range(pmd_t *pmd, argument
360 if (pmd_trans_huge(*pmd)) {
365 ptl = pmd_trans_huge_lock(pmd, vma);
369 orig_pmd = *pmd;
403 pmdp_invalidate(vma, addr, pmd);
406 set_pmd_at(mm, addr, pmd, orig_pmd);
407 tlb_remove_pmd_tlb_entry(tlb, pmd, addr);
434 start_pte = pte = pte_offset_map_lock(vma->vm_mm, pmd, add
642 madvise_free_pte_range(pmd_t *pmd, unsigned long addr, unsigned long end, struct mm_walk *walk) argument
[all...]
/linux-master/arch/powerpc/include/asm/book3s/64/
H A Dhash.h140 #define hash__pmd_bad(pmd) (pmd_val(pmd) & H_PMD_BAD_BITS)
/linux-master/arch/powerpc/mm/kasan/
H A Dinit_book3e_64.c27 static inline bool kasan_pte_table(pmd_t pmd) argument
29 return pmd_page(pmd) == virt_to_page(lm_alias(kasan_early_shadow_pte));
/linux-master/arch/parisc/include/asm/
H A Dpage.h39 * the pmd and pgd in ZONE_DMA (i.e. under 4GB) */
44 typedef struct { __u32 pmd; } pmd_t; member in struct:__anon7
47 #define pmd_val(x) ((x).pmd + 0)
/linux-master/arch/sparc/mm/
H A Dfault_32.c276 pmd_t *pmd, *pmd_k; local
290 pmd = pmd_offset(pud, address);
296 if (pmd_present(*pmd) || !pmd_present(*pmd_k))
299 *pmd = *pmd_k;
/linux-master/arch/riscv/kernel/
H A Dhibernate.c215 pmd_t pmd = READ_ONCE(*src_pmdp); local
219 if (pmd_none(pmd))
222 if (pmd_leaf(pmd)) {
223 set_pmd(dst_pmdp, __pmd(pmd_val(pmd) | pgprot_val(prot)));
/linux-master/include/linux/
H A Dpagewalk.h65 int (*pmd_entry)(pmd_t *pmd, unsigned long addr,
/linux-master/arch/m68k/kernel/
H A Dsys_m68k.c472 pmd_t *pmd; local
487 pmd = pmd_offset(pud, (unsigned long)mem);
488 if (!pmd_present(*pmd))
490 pte = pte_offset_map_lock(mm, pmd, (unsigned long)mem, &ptl);
/linux-master/arch/powerpc/mm/book3s32/
H A Dmmu.c303 pmd_t *pmd; local
307 pmd = pmd_off(mm, ea);
308 if (!pmd_none(*pmd))
309 add_hash_page(mm->context.id, ea, pmd_val(*pmd));
/linux-master/arch/riscv/include/asm/
H A Dpgtable-64.h64 unsigned long pmd; member in struct:__anon5
67 #define pmd_val(x) ((x).pmd)
260 static inline unsigned long _pmd_pfn(pmd_t pmd) argument
262 return __page_val_to_pfn(pmd_val(pmd));
268 pr_err("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e))
/linux-master/arch/m68k/mm/
H A Dkmap.c94 printk("iounmap: bad pmd (%08lx)\n", pmd_val(*pmd_dir));
375 unsigned long pmd = pmd_val(*pmd_dir); local
377 if ((pmd & _DESCTYPE_MASK) == _PAGE_PRESENT) {
378 *pmd_dir = __pmd((pmd & _CACHEMASK040) | cmode);
387 printk("iocachemode: bad pmd (%08lx)\n", pmd_val(*pmd_dir));
/linux-master/arch/um/kernel/
H A Dtrap.c29 pmd_t *pmd; local
101 pmd = pmd_off(mm, address);
102 pte = pte_offset_kernel(pmd, address);

Completed in 233 milliseconds

1234567891011>>