Projectname
large_stringclasses
15 values
Filepath
large_stringlengths
4
106
⌀
Function
large_stringlengths
11
3.45k
Label
list
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline unsigned long __read_cr3(void) { return PVOP_ALT_CALL0(unsigned long, mmu.read_cr3, "mov %%cr3, %%rax;", ALT_NOT(X86_FEATURE_XENPV)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void halt(void) { PVOP_VCALL0(irq.halt); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline int paravirt_write_msr_safe(unsigned msr, unsigned low, unsigned high) { return PVOP_CALL3(int, cpu.write_msr_safe, msr, low, high); } #define rdmsr(msr, val1, val2) \ do { ...
[ 1, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void wrmsrl(unsigned msr, u64 val) { wrmsr(msr, (u32)val, (u32)(val >> 32)); } #define wrmsr_safe(msr, a, b) paravirt_write_msr_safe(msr, a, b) #define rdmsr_safe(msr, a, b) \ ({ ...
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline int rdmsrl_safe(unsigned msr, unsigned long long *p) { int err; *p = paravirt_read_msr_safe(msr, &err); return err; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void load_idt(const struct desc_ptr *dtr) { PVOP_VCALL1(cpu.load_idt, dtr); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void set_ldt(const void *addr, unsigned entries) { PVOP_VCALL2(cpu.set_ldt, addr, entries); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void load_gs_index(unsigned int gs) { PVOP_VCALL1(cpu.load_gs_index, gs); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void write_ldt_entry(struct desc_struct *dt, int entry, const void *desc) { PVOP_VCALL3(cpu.write_ldt_entry, dt, entry, desc); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void write_gdt_entry(struct desc_struct *dt, int entry, void *desc, int type) { PVOP_VCALL4(cpu.write_gdt_entry, dt, entry, desc, type); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void tss_invalidate_io_bitmap(void) { PVOP_VCALL0(cpu.invalidate_io_bitmap); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void tss_update_io_bitmap(void) { PVOP_VCALL0(cpu.update_io_bitmap); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) { PVOP_VCALL2(mmu.alloc_pte, mm, pfn); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) { PVOP_VCALL2(mmu.alloc_pud, mm, pfn); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline pte_t __pte(pteval_t val) { return (pte_t){PVOP_ALT_CALLEE1(pteval_t, mmu.make_pte, val, "mov %%rdi, %%rax", ALT_NOT(X86_FEATURE_XENPV))}; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline pgdval_t pgd_val(pgd_t pgd) { return PVOP_ALT_CALLEE1(pgdval_t, mmu.pgd_val, pgd.pgd, "mov %%rdi, %%rax", ALT_NOT(X86_FEATURE_XENPV)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void set_pud(pud_t *pudp, pud_t pud) { PVOP_VCALL2(mmu.set_pud, pudp, native_pud_val(pud)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void set_p4d(p4d_t *p4dp, p4d_t p4d) { p4dval_t val = native_p4d_val(p4d); PVOP_VCALL2(mmu.set_p4d, p4dp, val); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void arch_enter_lazy_mmu_mode(void) { PVOP_VCALL0(mmu.lazy_mode.enter); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static inline void __set_fixmap(unsigned idx, phys_addr_t phys, pgprot_t flags) { pv_ops.mmu.set_fixmap(idx, phys, flags); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static __always_inline void pv_queued_spin_lock_slowpath(struct qspinlock *lock, u32 val) { PVOP_VCALL2(lock.queued_spin_lock_slowpath, lock, val); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static __always_inline bool pv_vcpu_is_preempted(long cpu) { return PVOP_ALT_CALLEE1(bool, lock.vcpu_is_preempted, cpu, "xor %%" _ASM_AX ", %%" _ASM_AX ";", ALT_NOT(X86_FEATURE_VCPUPREEMPT)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/paravirt.h
static __always_inline unsigned long arch_local_save_flags(void) { return PVOP_ALT_CALLEE0(unsigned long, irq.save_fl, "pushf; pop %%rax;", ALT_NOT(X86_FEATURE_XENPV)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/parport.h
static int parport_pc_find_nonpci_ports(int autoirq, int autodma) { return parport_pc_find_isa_ports(autoirq, autodma); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pc-conf-reg.h
static inline u8 pc_conf_get(u8 reg) { outb(reg, PC_CONF_INDEX); return inb(PC_CONF_DATA); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pci.h
static inline int __pcibus_to_node(const struct pci_bus *bus) { return to_pci_sysdata(bus)->node; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pci_x86.h
static inline unsigned char mmio_config_readb(void __iomem *pos) { u8 val; asm volatile("movb (%1),%%al" : "=a"(val) : "r"(pos)); return val; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pci_x86.h
static inline unsigned int mmio_config_readl(void __iomem *pos) { u32 val; asm volatile("movl (%1),%%eax" : "=a"(val) : "r"(pos)); return val; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/percpu.h
static __always_inline bool x86_this_cpu_constant_test_bit(unsigned int nr, const unsigned long __percpu *addr) { unsigned long __percpu *a = (unsigned long __percpu *)addr + nr / BITS_PER_LONG; #ifdef CONFIG_X86_64 return ((1UL << (nr % BITS_PER_LONG)) & raw_cpu_read_8(*a)) !...
[ 1, 0 ]
Linux Kernel
arch/x86/include/asm/perf_event_p4.h
static inline bool p4_is_event_cascaded(u64 config) { u32 cccr = p4_config_unpack_cccr(config); return !!(cccr & P4_CCCR_CASCADE); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/perf_event_p4.h
static inline u32 p4_default_escr_conf(int cpu, int exclude_os, int exclude_usr) { u32 escr = 0; if (!p4_ht_thread(cpu)) { if (!exclude_os) escr |= P4_ESCR_T0_OS; if (!exclude_usr) escr |= P4_ESCR_T0_USR; } else { if (!exclude_os) escr |= P4_E...
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgalloc.h
static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) { }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgalloc.h
static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) { }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgalloc.h
static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte) { unsigned long pfn = page_to_pfn(pte); paravirt_alloc_pte(mm, pfn); set_pmd(pmd, __pmd(((pteval_t)pfn << PAGE_SHIFT) | _PAGE_TABLE)); }
[ 1, 0 ]
Linux Kernel
arch/x86/include/asm/pgalloc.h
static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) { paravirt_alloc_pmd(mm, __pa(pmd) >> PAGE_SHIFT); set_pud(pud, __pud(_PAGE_TABLE | __pa(pmd))); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgalloc.h
static inline void pud_populate_safe(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) { paravirt_alloc_pmd(mm, __pa(pmd) >> PAGE_SHIFT); set_pud_safe(pud, __pud(_PAGE_TABLE | __pa(pmd))); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgalloc.h
static inline void __pud_free_tlb(struct mmu_gather *tlb, pud_t *pud, unsigned long address) { ___pud_free_tlb(tlb, pud); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-2level.h
static inline void native_pud_clear(pud_t *pudp) {}
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-2level.h
static inline bool __pte_needs_invert(u64 val) { return false; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-3level.h
static inline pmd_t pmd_read_atomic(pmd_t *pmdp) { pmdval_t ret; u32 *tmp = (u32 *)pmdp; ret = (pmdval_t)(*tmp); if (ret) { smp_rmb(); ret |= ((pmdval_t) * (tmp + 1)) << 32; } return (pmd_t){ret}; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-3level.h
static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte) { set_64bit((unsigned long long *)(ptep), native_pte_val(pte)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-3level.h
static inline void native_set_pmd(pmd_t *pmdp, pmd_t pmd) { set_64bit((unsigned long long *)(pmdp), native_pmd_val(pmd)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-3level.h
static inline void native_set_pud(pud_t *pudp, pud_t pud) { #ifdef CONFIG_PAGE_TABLE_ISOLATION pud.p4d.pgd = pti_set_user_pgtbl(&pudp->p4d.pgd, pud.p4d.pgd); #endif set_64bit((unsigned long long *)(pudp), native_pud_val(pud)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-3level.h
static inline void native_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) { ptep->pte_low = 0; smp_wmb(); ptep->pte_high = 0; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable-3level.h
static inline pte_t native_ptep_get_and_clear(pte_t *ptep) { pte_t res; res.pte = (pteval_t)arch_atomic64_xchg((atomic64_t *)ptep, 0); return res; } #else #define native_ptep_get_and_clear(xp) native_local_ptep_get_and_clear(xp) #endif
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_young(pud_t pud) { return pud_flags(pud) & _PAGE_ACCESSED; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pte_write(pte_t pte) { return pte_flags(pte) & _PAGE_RW; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pte_global(pte_t pte) { return pte_flags(pte) & _PAGE_GLOBAL; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pte_special(pte_t pte) { return pte_flags(pte) & _PAGE_SPECIAL; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline unsigned long pmd_pfn(pmd_t pmd) { phys_addr_t pfn = pmd_val(pmd); pfn ^= protnone_mask(pfn); return (pfn & pmd_pfn_mask(pmd)) >> PAGE_SHIFT; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline unsigned long p4d_pfn(p4d_t p4d) { return (p4d_val(p4d) & p4d_pfn_mask(p4d)) >> PAGE_SHIFT; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_trans_huge(pud_t pud) { return (pud_val(pud) & (_PAGE_PSE | _PAGE_DEVMAP)) == _PAGE_PSE; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int has_transparent_hugepage(void) { return boot_cpu_has(X86_FEATURE_PSE); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_devmap(pud_t pud) { return !!(pud_val(pud) & _PAGE_DEVMAP); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_devmap(pud_t pud) { return 0; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pte_t pte_wrprotect(pte_t pte) { return pte_clear_flags(pte, _PAGE_RW); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pte_t pte_mkdirty(pte_t pte) { return pte_set_flags(pte, _PAGE_DIRTY | _PAGE_SOFT_DIRTY); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pte_t pte_mkglobal(pte_t pte) { return pte_set_flags(pte, _PAGE_GLOBAL); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pmd_uffd_wp(pmd_t pmd) { return pmd_flags(pmd) & _PAGE_UFFD_WP; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pmd_t pmd_wrprotect(pmd_t pmd) { return pmd_clear_flags(pmd, _PAGE_RW); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pmd_t pmd_mkdevmap(pmd_t pmd) { return pmd_set_flags(pmd, _PAGE_DEVMAP); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pte_soft_dirty(pte_t pte) { return pte_flags(pte) & _PAGE_SOFT_DIRTY; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_soft_dirty(pud_t pud) { return pud_flags(pud) & _PAGE_SOFT_DIRTY; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pmd_t pmd_mksoft_dirty(pmd_t pmd) { return pmd_set_flags(pmd, _PAGE_SOFT_DIRTY); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pud_t pud_mksoft_dirty(pud_t pud) { return pud_set_flags(pud, _PAGE_SOFT_DIRTY); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pte_t pte_clear_soft_dirty(pte_t pte) { return pte_clear_flags(pte, _PAGE_SOFT_DIRTY); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pgprotval_t massage_pgprot(pgprot_t pgprot) { pgprotval_t protval = pgprot_val(pgprot); if (protval & _PAGE_PRESENT) protval &= __supported_pte_mask; return protval; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pgprotval_t check_pgprot(pgprot_t pgprot) { pgprotval_t massaged_val = massage_pgprot(pgprot); #ifdef CONFIG_DEBUG_VM WARN_ONCE(pgprot_val(pgprot) != massaged_val, "attempted to set unsupported pgprot: %016llx " "bits: %016llx supported: %016llx\n", (u64)pgprot_val...
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot) { phys_addr_t pfn = (phys_addr_t)page_nr << PAGE_SHIFT; pfn ^= protnone_mask(pgprot_val(pgprot)); pfn &= PHYSICAL_PMD_PAGE_MASK; return __pmd(pfn | check_pgprot(pgprot)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pte_none(pte_t pte) { return !(pte.pte & ~(_PAGE_KNL_ERRATUM_MASK)); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pmd_none(pmd_t pmd) { unsigned long val = native_pmd_val(pmd); return (val & ~_PAGE_KNL_ERRATUM_MASK) == 0; }
[ 1, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_present(pud_t pud) { return pud_flags(pud) & _PAGE_PRESENT; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pmd_t *pud_pgtable(pud_t pud) { return (pmd_t *)__va(pud_val(pud) & pud_pfn_mask(pud)); } #define pud_page(pud) pfn_to_page(pud_pfn(pud))
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int p4d_none(p4d_t p4d) { return (native_p4d_val(p4d) & ~(_PAGE_KNL_ERRATUM_MASK)) == 0; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pud_t *p4d_pgtable(p4d_t p4d) { return (pud_t *)__va(p4d_val(p4d) & p4d_pfn_mask(p4d)); } #define p4d_page(p4d) pfn_to_page(p4d_pfn(p4d))
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pgd_none(pgd_t pgd) { if (!pgtable_l5_enabled()) return 0; return !native_pgd_val(pgd); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pud_t native_local_pudp_get_and_clear(pud_t *pudp) { pud_t res = *pudp; native_pud_clear(pudp); return res; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp, pmd_t pmd) { page_table_check_pmd_set(mm, addr, pmdp, pmd); set_pmd(pmdp, pmd); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pud_write(pud_t pud) { return pud_flags(pud) & _PAGE_RW; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline void *ptr_set_bit(void *ptr, int bit) { unsigned long __ptr = (unsigned long)ptr; __ptr |= BIT(bit); return (void *)__ptr; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pgd_t *user_to_kernel_pgdp(pgd_t *pgdp) { return ptr_clear_bit(pgdp, PTI_PGTABLE_SWITCH_BIT); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline p4d_t *kernel_to_user_p4dp(p4d_t *p4dp) { return ptr_set_bit(p4dp, PTI_PGTABLE_SWITCH_BIT); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline unsigned long page_level_mask(enum pg_level level) { return ~(page_level_size(level) - 1); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline void update_mmu_cache(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep) {}
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline int pte_swp_exclusive(pte_t pte) { return pte_flags(pte) & _PAGE_SWP_EXCLUSIVE; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline pmd_t pmd_swp_mkuffd_wp(pmd_t pmd) { return pmd_set_flags(pmd, _PAGE_SWP_UFFD_WP); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline bool pmd_access_permitted(pmd_t pmd, bool write) { return __pte_access_permitted(pmd_val(pmd), write); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline bool arch_has_hw_pte_young(void) { return true; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline bool arch_has_hw_nonleaf_pmd_young(void) { return !cpu_feature_enabled(X86_FEATURE_XENPV); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable.h
static inline bool pud_user_accessible_page(pud_t pud) { return pud_leaf(pud) && (pud_val(pud) & _PAGE_PRESENT) && (pud_val(pud) & _PAGE_USER); } #endif #endif #endif /* _ASM_X86_PGTABLE_H */
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_64.h
static inline bool mm_p4d_folded(struct mm_struct *mm) { return !pgtable_l5_enabled(); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_64.h
static inline pmd_t native_pmdp_get_and_clear(pmd_t *xp) { #ifdef CONFIG_SMP return native_make_pmd(xchg(&xp->pmd, 0)); #else pmd_t ret = *xp; native_pmd_clear(xp); return ret; #endif }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_64.h
static inline bool gup_fast_permitted(unsigned long start, unsigned long end) { if (end >> __VIRTUAL_MASK_SHIFT) return false; return true; } #include <asm/pgtable-invert.h> #endif #endif /* _ASM_X86_PGTABLE_64_H */
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_64_types.h
static inline bool pgtable_l5_enabled(void) { return __pgtable_l5_enabled; } #else #define pgtable_l5_enabled() cpu_feature_enabled(X86_FEATURE_LA57) #endif #else
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_types.h
static inline pgd_t native_make_pgd(pgdval_t val) { return (pgd_t){val & PGD_ALLOWED_BITS}; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_types.h
static inline pmd_t native_make_pmd(pmdval_t val) { return (pmd_t){.pud.p4d.pgd = native_make_pgd(val)}; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_types.h
static inline pmdval_t pmd_pfn_mask(pmd_t pmd) { if (native_pmd_val(pmd) & _PAGE_PSE) return PHYSICAL_PMD_PAGE_MASK; else return PTE_PFN_MASK; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_types.h
static inline pte_t native_make_pte(pteval_t val) { return (pte_t){.pte = val}; }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_types.h
static inline pgprot_t pgprot_4k_2_large(pgprot_t pgprot) { return __pgprot(protval_4k_2_large(pgprot_val(pgprot))); }
[ 0, 0 ]
Linux Kernel
arch/x86/include/asm/pgtable_types.h
static inline pgprotval_t protval_large_2_4k(pgprotval_t val) { return (val & ~(_PAGE_PAT | _PAGE_PAT_LARGE)) | ((val & _PAGE_PAT_LARGE) >> (_PAGE_BIT_PAT_LARGE - _PAGE_BIT_PAT)); }
[ 0, 0 ]