Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/x86/include/asm/insn.h | static inline int insn_last_prefix_id(struct insn *insn) {
if (insn_is_avx(insn))
return insn_vex_p_bits(insn);
if (insn->prefixes.bytes[3])
return inat_get_last_prefix_id(insn->prefixes.bytes[3]);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/insn.h | static inline int insn_offset_vex_prefix(struct insn *insn) {
return insn_offset_rex_prefix(insn) + insn->rex_prefix.nbytes;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/insn.h | static inline int insn_offset_sib(struct insn *insn) {
return insn_offset_modrm(insn) + insn->modrm.nbytes;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/insn.h | static inline int insn_offset_displacement(struct insn *insn) {
return insn_offset_sib(insn) + insn->sib.nbytes;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/insn.h | static inline int insn_offset_immediate(struct insn *insn) {
return insn_offset_displacement(insn) + insn->displacement.nbytes;
}
#define for_each_insn_prefix(insn, idx, prefix) \
for (idx = 0; idx < ARRAY_SIZE(insn->prefixes.bytes) && \
(prefix =... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/intel-mid.h |
static inline void intel_scu_devices_create(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/intel_pconfig.h |
static inline int mktme_key_program(struct mktme_key_program *key_program) {
unsigned long rax = MKTME_KEY_PROGRAM;
if (!pconfig_target_supported(MKTME_TARGET))
return -ENXIO;
asm volatile(PCONFIG
: "=a"(rax), "=b"(key_program)
: "0"(rax), "1"(key_program)
: "me... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/invpcid.h | static inline void invpcid_flush_one(unsigned long pcid, unsigned long addr) {
__invpcid(pcid, addr, INVPCID_TYPE_INDIV_ADDR);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/iosf_mbi.h |
static inline int iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(
struct notifier_block *nb) {
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/io_apic.h | static inline void print_IO_APICs(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/io_apic.h |
static inline void mp_unmap_irq(int irq) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/io_apic.h |
static inline void mask_ioapic_entries(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/io_apic.h | static inline int restore_ioapic_entries(void) { return -ENOMEM; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/io_bitmap.h | static inline void io_bitmap_share(struct task_struct *tsk) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irq.h |
static inline int irq_canonicalize(int irq) { return ((irq == 2) ? 9 : irq); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irqflags.h | static inline __cpuidle void halt(void) { native_halt(); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irq_remapping.h | static inline struct irq_domain *arch_get_ir_parent_domain(void) {
return x86_vector_domain;
}
#else | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irq_remapping.h |
static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irq_remapping.h | static inline void set_irq_remapping_broken(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irq_remapping.h | static inline int irq_remapping_prepare(void) { return -ENODEV; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/irq_remapping.h | static inline void irq_remapping_disable(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/jailhouse_para.h | static inline bool jailhouse_paravirt(void) { return false; }
#endif
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kasan.h | static inline void kasan_early_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kasan.h | static inline void kasan_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kaslr.h | static inline void init_trampoline_kaslr(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kbdleds.h | static inline int kbd_defleds(void) {
return boot_params.kbd_status & 0x20 ? (1 << VC_NUMLOCK) : 0;
}
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kmsan.h | static inline void *arch_kmsan_get_meta_or_null(void *addr, bool is_origin) {
unsigned long addr64 = (unsigned long)addr;
char *metadata_array;
unsigned long off;
int cpu;
if ((addr64 < CPU_ENTRY_AREA_BASE) ||
(addr64 >= (CPU_ENTRY_AREA_BASE + CPU_ENTRY_AREA_MAP_SIZE)))
return NULL;
cpu = (addr64... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kprobes.h | static inline int arch_prepared_optinsn(struct arch_optimized_insn *optinsn) {
return optinsn->size;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_host.h |
static inline u16 kvm_read_ldt(void) {
u16 ldt;
asm("sldt %0" : "=g"(ldt));
return ldt;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_host.h |
static inline void kvm_load_ldt(u16 sel) { asm("lldt %0" : : "rm"(sel)); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_host.h |
static inline bool kvm_is_supported_user_return_msr(u32 msr) {
return kvm_find_user_return_msr(msr) >= 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_host.h |
static inline int kvm_cpu_get_apicid(int mps_cpu) {
#ifdef CONFIG_X86_LOCAL_APIC
return default_cpu_present_to_apicid(mps_cpu);
#else
WARN_ON_ONCE(1);
return BAD_APICID;
#endif
}
#define put_smstate(type, buf, offset, val) \
*(type *)((buf) + (offset) - 0x7e00) = val
#defin... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_para.h |
static inline long kvm_hypercall1(unsigned int nr, unsigned long p1) {
long ret;
if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST))
return tdx_kvm_hypercall(nr, p1, 0, 0, 0);
asm volatile(KVM_HYPERCALL : "=a"(ret) : "a"(nr), "b"(p1) : "memory");
return ret;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_para.h |
static inline long kvm_hypercall2(unsigned int nr, unsigned long p1,
unsigned long p2) {
long ret;
if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST))
return tdx_kvm_hypercall(nr, p1, p2, 0, 0);
asm volatile(KVM_HYPERCALL
: "=a"(ret)
: "a"(nr), "b... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_para.h |
static inline long kvm_hypercall3(unsigned int nr, unsigned long p1,
unsigned long p2, unsigned long p3) {
long ret;
if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST))
return tdx_kvm_hypercall(nr, p1, p2, p3, 0);
asm volatile(KVM_HYPERCALL
: "=a"(ret)
... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/kvm_para.h | static inline void kvm_spinlock_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/local.h |
static inline void local_inc(local_t *l) {
asm volatile(_ASM_INC "%0" : "+m"(l->a.counter));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/local.h |
static inline void local_dec(local_t *l) {
asm volatile(_ASM_DEC "%0" : "+m"(l->a.counter));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/local.h |
static inline void local_sub(long i, local_t *l) {
asm volatile(_ASM_SUB "%1,%0" : "+m"(l->a.counter) : "ir"(i));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/local.h | static inline bool local_sub_and_test(long i, local_t *l) {
return GEN_BINARY_RMWcc(_ASM_SUB, l->a.counter, e, "er", i);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/local.h | static inline bool local_inc_and_test(local_t *l) {
return GEN_UNARY_RMWcc(_ASM_INC, l->a.counter, e);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/local.h | static inline bool local_add_negative(long i, local_t *l) {
return GEN_BINARY_RMWcc(_ASM_ADD, l->a.counter, s, "er", i);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mach_traps.h | static inline void reassert_nmi(void) {
int old_reg = -1;
if (do_i_have_lock_cmos())
old_reg = current_lock_cmos_reg();
else
lock_cmos(0);
outb(0x8f, 0x70);
inb(0x71); /* dummy */
outb(0x0f, 0x70);
inb(0x71); /* dummy */
if (old_reg >= 0)
outb(old_reg, 0x70);
else
unlock_cmos();
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mc146818rtc.h |
static inline void unlock_cmos(void) { cmos_lock = 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mce.h | static inline void enable_copy_mc_fragile(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mce.h | static inline void mce_intel_feature_clear(struct cpuinfo_x86 *c) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mem_encrypt.h |
static inline void __init sme_early_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mem_encrypt.h |
static inline void sev_es_init_vc_handling(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mem_encrypt.h | static inline int __init early_set_memory_encrypted(unsigned long vaddr,
unsigned long size) {
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mem_encrypt.h | static inline void mem_encrypt_free_decrypted_mem(void) {}
#define __bss_decrypted
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/microcode.h | static inline struct microcode_ops *__init init_intel_microcode(void) {
return NULL;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/microcode.h | static inline void reload_early_microcode(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/microcode.h | static inline void microcode_bsp_resume(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h | static inline void paravirt_activate_mm(struct mm_struct *prev,
struct mm_struct *next) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h | static inline void init_new_context_ldt(struct mm_struct *mm) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h | static inline int ldt_dup_context(struct mm_struct *oldmm,
struct mm_struct *mm) {
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h | static inline void arch_dup_pkeys(struct mm_struct *oldmm,
struct mm_struct *mm) {
#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
if (!cpu_feature_enabled(X86_FEATURE_OSPKE))
return;
mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map;
mm->context.execute_on... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h |
static inline void arch_exit_mmap(struct mm_struct *mm) {
paravirt_arch_exit_mmap(mm);
ldt_arch_exit_mmap(mm);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h | static inline bool is_64bit_mm(struct mm_struct *mm) { return false; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h |
static inline void arch_unmap(struct mm_struct *mm, unsigned long start,
unsigned long end) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mmu_context.h | static inline bool arch_vma_access_permitted(struct vm_area_struct *vma,
bool write, bool execute,
bool foreign) {
if (execute)
return true;
/* allow access if the VMA is not one from this process */
if (foreign || vma_... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mpspec.h |
static inline void physids_promote(unsigned long physids, physid_mask_t *map) {
physids_clear(*map);
map->mask[0] = physids;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mpspec.h |
static inline void physid_set_mask_of_physid(int physid, physid_mask_t *map) {
physids_clear(*map);
physid_set(physid, *map);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline u64 hv_do_fast_hypercall16(u16 code, u64 input1, u64 input2) {
u64 hv_status, control = (u64)code | HV_HYPERCALL_FAST_BIT;
#ifdef CONFIG_X86_64
{
__asm__ __volatile__("mov %4, %%r8\n" CALL_NOSPEC
: "=a"(hv_status), ASM_CALL_CONSTRAINT, "+c"(control),
... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h |
static inline struct hv_vp_assist_page *
hv_get_vp_assist_page(unsigned int cpu) {
if (!hv_vp_assist_page)
return NULL;
return hv_vp_assist_page[cpu];
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline void hv_ghcb_msr_write(u64 msr, u64 value) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline void hv_ghcb_msr_read(u64 msr, u64 *value) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline void hv_ghcb_terminate(unsigned int set, unsigned int reason) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h |
static inline u64 hv_get_register(unsigned int reg) {
u64 value;
if (hv_is_synic_reg(reg) && hv_isolation_type_snp())
hv_ghcb_msr_read(reg, &value);
else
rdmsrl(reg, value);
return value;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline void hv_set_register(unsigned int reg, u64 value) {
if (hv_is_synic_reg(reg) && hv_isolation_type_snp()) {
hv_ghcb_msr_write(reg, value);
if (reg >= HV_REGISTER_SINT0 && reg <= HV_REGISTER_SINT15)
wrmsrl(reg, value | 1 << 20);
} else {
wrmsrl(reg, value);
}
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline void hyperv_setup_mmu_ops(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline void clear_hv_tscchange_cb(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline int hyperv_flush_guest_mapping(u64 as) { return -1; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mshyperv.h | static inline int hv_set_mem_host_visibility(unsigned long addr, int numpages,
bool visible) {
return -1;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/msr.h | static __always_inline unsigned long long rdtsc(void) {
DECLARE_ARGS(val, low, high);
asm volatile("rdtsc" : EAX_EDX_RET(val, low, high));
return EAX_EDX_VAL(val, low, high);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/msr.h | static __always_inline unsigned long long rdtsc_ordered(void) {
DECLARE_ARGS(val, low, high);
asm volatile(ALTERNATIVE_2("rdtsc", "lfence; rdtsc", X86_FEATURE_LFENCE_RDTSC,
"rdtscp", X86_FEATURE_RDTSCP)
: EAX_EDX_RET(val, low, high)
/* RDTSCP clobbers ECX ... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/msr.h | static inline int rdmsr_on_cpu(unsigned int cpu, u32 msr_no, u32 *l, u32 *h) {
rdmsr(msr_no, *l, *h);
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/msr.h | static inline int wrmsr_safe_regs_on_cpu(unsigned int cpu, u32 regs[8]) {
return wrmsr_safe_regs(regs);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mtrr.h | static inline u8 mtrr_type_lookup(u64 addr, u64 end, u8 *uniform) {
return MTRR_TYPE_INVALID;
}
#define mtrr_save_fixed_ranges(arg) \
do { \
} while (0)
#define mtrr_save_state() ... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mtrr.h | static inline int mtrr_del_page(int reg, unsigned long base,
unsigned long size) {
return -ENODEV;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mtrr.h | static inline int mtrr_trim_uncached_memory(unsigned long end_pfn) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/mwait.h | static inline void __monitor(const void *eax, unsigned long ecx,
unsigned long edx) {
asm volatile(".byte 0x0f, 0x01, 0xc8;" ::"a"(eax), "c"(ecx), "d"(edx));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/nospec-branch.h |
static __always_inline void alternative_msr_write(unsigned int msr, u64 val,
unsigned int feature) {
asm volatile(ALTERNATIVE("", "wrmsr", % c[feature])
:
: "c"(msr), "a"((u32)val),
"d"((u32)(val >> 32)), [feature] "i"(f... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/nospec-branch.h |
static inline void indirect_branch_prediction_barrier(void) {
u64 val = PRED_CMD_IBPB;
alternative_msr_write(MSR_IA32_PRED_CMD, val, X86_FEATURE_USE_IBPB);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/nospec-branch.h | static __always_inline void mds_clear_cpu_buffers(void) {
static const u16 ds = __KERNEL_DS;
asm volatile("verw %[ds]" : : [ds] "m"(ds) : "cc");
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/nospec-branch.h | static inline void mds_idle_clear_cpu_buffers(void) {
if (static_branch_likely(&mds_idle_clear))
mds_clear_cpu_buffers();
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/numa.h | static inline void init_gi_nodes(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/numachip/numachip_csr.h | static inline void write_lcsr(unsigned long offset, unsigned int val) {
writel(swab32(val), lcsr_address(offset));
}
#define NUMACHIP2_LCSR_BASE 0xf0000000UL
#define NUMACHIP2_LCSR_SIZE 0x1000000UL | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/numachip/numachip_csr.h |
static inline void numachip2_write64_lcsr(unsigned long offset, u64 val) {
writeq(val, numachip2_lcsr_address(offset));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/numachip/numachip_csr.h | static inline unsigned int numachip2_timer(void) {
return (smp_processor_id() % 48) << 6;
}
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/numa_32.h | static inline void set_highmem_pages_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/olpc.h | static inline uint32_t olpc_board(uint8_t id) { return (id << 4) | 0x8; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/page.h |
static __always_inline u64 __canonical_address(u64 vaddr, u8 vaddr_bits) {
return ((s64)vaddr << (64 - vaddr_bits)) >> (64 - vaddr_bits);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/page_32.h |
static inline void clear_page(void *page) { memset(page, 0, PAGE_SIZE); } | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/page_64.h | static __always_inline unsigned long __phys_addr_nodebug(unsigned long x) {
unsigned long y = x - __START_KERNEL_map;
x = y + ((x > y) ? phys_base : (__START_KERNEL_map - PAGE_OFFSET));
return x;
}
#ifdef CONFIG_DEBUG_VIRTUAL | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/page_64.h | static inline void clear_page(void *page) {
kmsan_unpoison_memory(page, PAGE_SIZE);
alternative_call_2(clear_page_orig, clear_page_rep, X86_FEATURE_REP_GOOD,
clear_page_erms, X86_FEATURE_ERMS, "=D"(page),
"0"(page) : "cc", "memory", "rax", "rcx");
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/paravirt.h |
static inline void __flush_tlb_local(void) { PVOP_VCALL0(mmu.flush_tlb_user); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/paravirt.h |
static inline void __flush_tlb_global(void) {
PVOP_VCALL0(mmu.flush_tlb_kernel);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/paravirt.h |
static inline void paravirt_arch_exit_mmap(struct mm_struct *mm) {
PVOP_VCALL1(mmu.exit_mmap, mm);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/paravirt.h | static inline void __cpuid(unsigned int *eax, unsigned int *ebx,
unsigned int *ecx, unsigned int *edx) {
PVOP_VCALL4(cpu.cpuid, eax, ebx, ecx, edx);
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.