Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/x86/include/asm/apic.h | static inline void lapic_update_tsc_freq(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h | static inline void apic_intr_mode_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h | static inline void native_apic_msr_write(u32 reg, u32 v) {
if (reg == APIC_DFR || reg == APIC_ID || reg == APIC_LDR || reg == APIC_LVR)
return;
wrmsr(APIC_BASE_MSR + (reg >> 4), v, 0);
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h |
static inline void native_apic_msr_eoi_write(u32 reg, u32 v) {
__wrmsr(APIC_BASE_MSR + (APIC_EOI >> 4), APIC_EOI_ACK, 0);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h |
static inline u64 native_x2apic_icr_read(void) {
unsigned long val;
rdmsrl(APIC_BASE_MSR + (APIC_ICR >> 4), val);
return val;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h |
static inline void apic_write(u32 reg, u32 val) { apic->write(reg, val); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h |
static inline void apic_eoi(void) { apic->eoi_write(APIC_EOI, APIC_EOI_ACK); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h | static inline void ack_APIC_irq(void) { apic_eoi(); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/apic.h | static inline unsigned default_get_apic_id(unsigned long x) {
unsigned int ver = GET_APIC_VERSION(apic_read(APIC_LVR));
if (APIC_XAPIC(ver) || boot_cpu_has(X86_FEATURE_EXTD_APICID))
return (x >> 24) & 0xFF;
else
return (x >> 24) & 0x0F;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/arch_hweight.h |
static inline unsigned int __arch_hweight16(unsigned int w) {
return __arch_hweight32(w & 0xffff);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/arch_hweight.h | static inline unsigned long __arch_hweight64(__u64 w) {
return __arch_hweight32((u32)w) + __arch_hweight32((u32)(w >> 32));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h | static __always_inline bool arch_atomic_sub_and_test(int i, atomic_t *v) {
return GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, e, "er", i);
}
#define arch_atomic_sub_and_test arch_atomic_sub_and_test | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h | static __always_inline void arch_atomic_dec(atomic_t *v) {
asm volatile(LOCK_PREFIX "decl %0" : "+m"(v->counter)::"memory");
}
#define arch_atomic_dec arch_atomic_dec | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h | static __always_inline bool arch_atomic_dec_and_test(atomic_t *v) {
return GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, e);
}
#define arch_atomic_dec_and_test arch_atomic_dec_and_test | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h |
static __always_inline int arch_atomic_fetch_add(int i, atomic_t *v) {
return xadd(&v->counter, i);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h |
static __always_inline int arch_atomic_xchg(atomic_t *v, int new) {
return arch_xchg(&v->counter, new);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h |
static __always_inline int arch_atomic_fetch_or(int i, atomic_t *v) {
int val = arch_atomic_read(v);
do {
} while (!arch_atomic_try_cmpxchg(v, &val, val | i));
return val;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic.h | static __always_inline int arch_atomic_fetch_xor(int i, atomic_t *v) {
int val = arch_atomic_read(v);
do {
} while (!arch_atomic_try_cmpxchg(v, &val, val ^ i));
return val;
}
#define arch_atomic_fetch_xor arch_atomic_fetch_xor
#ifdef CONFIG_X86_32
#include <asm/atomic64_32.h>
#else
#include <asm/atomic64_64.... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_32.h | static inline void arch_atomic64_set(atomic64_t *v, s64 i) {
unsigned high = (unsigned)(i >> 32);
unsigned low = (unsigned)i;
alternative_atomic64(set, , "S"(v), "b"(low), "c"(high) : "eax", "edx",
"memory");
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_32.h |
static inline s64 arch_atomic64_dec_return(atomic64_t *v) {
s64 a;
alternative_atomic64(dec_return, "=&A"(a), "S"(v) : "memory", "ecx");
return a;
}
#define arch_atomic64_dec_return arch_atomic64_dec_return | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_32.h |
static inline int arch_atomic64_inc_not_zero(atomic64_t *v) {
int r;
alternative_atomic64(inc_not_zero, "=&a"(r), "S"(v) : "ecx", "edx", "memory");
return r;
}
#define arch_atomic64_inc_not_zero arch_atomic64_inc_not_zero | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_32.h |
static inline s64 arch_atomic64_dec_if_positive(atomic64_t *v) {
s64 r;
alternative_atomic64(dec_if_positive, "=&A"(r), "S"(v) : "ecx", "memory");
return r;
}
#define arch_atomic64_dec_if_positive arch_atomic64_dec_if_positive | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_32.h |
static inline s64 arch_atomic64_fetch_xor(s64 i, atomic64_t *v) {
s64 old, c = 0;
while ((old = arch_atomic64_cmpxchg(v, c, c ^ i)) != c)
c = old;
return old;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_32.h |
static inline s64 arch_atomic64_fetch_add(s64 i, atomic64_t *v) {
s64 old, c = 0;
while ((old = arch_atomic64_cmpxchg(v, c, c + i)) != c)
c = old;
return old;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/atomic64_64.h |
static inline s64 arch_atomic64_sub_return(s64 i, atomic64_t *v) {
return arch_atomic64_add_return(-i, v);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/barrier.h | static inline unsigned long array_index_mask_nospec(unsigned long index,
unsigned long size) {
unsigned long mask;
asm volatile("cmp %1,%2; sbb %0,%0;"
: "=r"(mask)
: "g"(size), "r"(index)
: "cc");
return mask;
}
#d... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h |
static __always_inline void arch___clear_bit(unsigned long nr,
volatile unsigned long *addr) {
asm volatile(__ASM_SIZE(btr) " %1,%0" : : ADDR, "Ir"(nr) : "memory");
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h |
static __always_inline void arch_change_bit(long nr,
volatile unsigned long *addr) {
if (__builtin_constant_p(nr)) {
asm volatile(LOCK_PREFIX "xorb %b1,%0"
: CONST_MASK_ADDR(nr, addr)
: "iq"(CONST_MASK(nr)));
} else {
asm volatil... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h |
static __always_inline bool
arch___test_and_set_bit(unsigned long nr, volatile unsigned long *addr) {
bool oldbit;
asm(__ASM_SIZE(bts) " %2,%1" CC_SET(c)
: CC_OUT(c)(oldbit)
: ADDR, "Ir"(nr)
: "memory");
return oldbit;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h |
static __always_inline bool
arch___test_and_change_bit(unsigned long nr, volatile unsigned long *addr) {
bool oldbit;
asm volatile(__ASM_SIZE(btc) " %2,%1" CC_SET(c)
: CC_OUT(c)(oldbit)
: ADDR, "Ir"(nr)
: "memory");
return oldbit;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h |
static __always_inline bool
arch_test_and_change_bit(long nr, volatile unsigned long *addr) {
return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(btc), *addr, c, "Ir", nr);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h |
static __always_inline bool
constant_test_bit(long nr, const volatile unsigned long *addr) {
return ((1UL << (nr & (BITS_PER_LONG - 1))) &
(addr[nr >> _BITOPS_LONG_SHIFT])) != 0;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h | static __always_inline unsigned long __fls(unsigned long word) {
asm("bsr %1,%0" : "=r"(word) : "rm"(word));
return word;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bitops.h | static __always_inline int fls(unsigned int x) {
int r;
#ifdef CONFIG_X86_64
asm("bsrl %1,%0" : "=r"(r) : "rm"(x), "0"(-1));
#elif defined(CONFIG_X86_CMOV)
asm("bsrl %1,%0\n\t"
"cmovzl %2,%0"
: "=&r"(r)
: "rm"(x), "rm"(-1));
#else
asm("bsrl %1,%0\n\t"
"jnz 1f\n\t"
"movl $-1,%0\n"... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/bootparam_utils.h | static void sanitize_boot_params(struct boot_params *boot_params) {
if (boot_params->sentinel) {
static struct boot_params scratch;
char *bp_base = (char *)boot_params;
char *save_base = (char *)&scratch;
int i;
const struct boot_params_to_save to_save[] = {
BOOT_PARAM_PRESERVE(screen_in... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/checksum_32.h | static inline __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
const struct in6_addr *daddr, __u32 len,
__u8 proto, __wsum sum) {
asm("addl 0(%1), %0 ;\n"
"adcl 4(%1), %0 ;\n"
"adcl 8(%1), %0 ;\n"
"adcl 12(%1), %0 ;\n"
... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/checksum_64.h |
static inline unsigned add32_with_carry(unsigned a, unsigned b) {
asm("addl %2,%0\n\t"
"adcl $0,%0"
: "=r"(a)
: "0"(a), "rm"(b));
return a;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/clocksource.h |
static inline void vclocks_set_used(unsigned int which) {
WRITE_ONCE(vclocks_used, READ_ONCE(vclocks_used) | (1 << which));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cmpxchg_32.h |
static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) {
u64 prev;
asm volatile("cmpxchg8b %1"
: "=A"(prev), "+m"(*ptr)
: "b"((u32) new), "c"((u32)(new >> 32)), "0"(old)
: "memory");
return prev;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cmpxchg_32.h | static inline bool __try_cmpxchg64(volatile u64 *ptr, u64 *pold, u64 new) {
bool success;
u64 old = *pold;
asm volatile(LOCK_PREFIX "cmpxchg8b %[ptr]" CC_SET(z)
: CC_OUT(z)(success), [ptr] "+m"(*ptr), "+A"(old)
: "b"((u32) new), "c"((u32)(new >> 32))
: "memory");
if... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cmpxchg_64.h |
static inline void set_64bit(volatile u64 *ptr, u64 val) { *ptr = val; }
#define arch_cmpxchg64(ptr, o, n) \
({ \
BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/coco.h |
static inline u64 cc_mkdec(u64 val) { return val; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/compat.h |
static inline bool in_32bit_syscall(void) {
return in_ia32_syscall() || in_x32_syscall();
}
#ifdef CONFIG_COMPAT | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cpu.h |
static inline void prefill_possible_map(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cpu.h | static inline void __init sld_setup(struct cpuinfo_x86 *c) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cpu.h | static inline void init_ia32_feat_ctl(struct cpuinfo_x86 *c) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cpuid.h |
static inline unsigned int cpuid_ecx(unsigned int op) {
unsigned int eax, ebx, ecx, edx;
cpuid(op, &eax, &ebx, &ecx, &edx);
return ecx;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cpumask.h | static __always_inline bool arch_cpu_online(int cpu) {
return arch_test_bit(cpu, cpumask_bits(cpu_online_mask));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/cpumask.h | static __always_inline bool arch_cpu_online(int cpu) { return cpu == 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/debugreg.h | static __always_inline unsigned long native_get_debugreg(int regno) {
unsigned long val = 0;
switch (regno) {
case 0:
asm("mov %%db0, %0" : "=r"(val));
break;
case 1:
asm("mov %%db1, %0" : "=r"(val));
break;
case 2:
asm("mov %%db2, %0" : "=r"(val));
break;
case 3:
asm("mov %%db3... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/debugreg.h | static inline void set_dr_addr_mask(unsigned long mask, int dr) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline struct desc_struct *get_current_gdt_rw(void) {
return this_cpu_ptr(&gdt_page)->gdt;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline struct desc_struct *get_cpu_gdt_ro(int cpu) {
return (struct desc_struct *)&get_cpu_entry_area(cpu)->gdt;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline struct desc_struct *get_current_gdt_ro(void) {
return get_cpu_gdt_ro(smp_processor_id());
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h |
static inline void native_write_idt_entry(gate_desc *idt, int entry,
const gate_desc *gate) {
memcpy(&idt[entry], gate, sizeof(*gate));
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h |
static inline void set_tssldt_descriptor(void *d, unsigned long addr,
unsigned type, unsigned size) {
struct ldttss_desc *desc = d;
memset(desc, 0, sizeof(*desc));
desc->limit0 = (u16)size;
desc->base0 = (u16)addr;
desc->base1 = (addr >> 16) & 0xFF;
desc->type = t... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h |
static inline void native_gdt_invalidate(void) {
const struct desc_ptr invalid_gdt = {.address = 0, .size = 0};
native_load_gdt(&invalid_gdt);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline void native_load_tr_desc(void) {
struct desc_ptr gdt;
int cpu = raw_smp_processor_id();
bool restore = 0;
struct desc_struct *fixmap_gdt;
native_store_gdt(&gdt);
fixmap_gdt = get_cpu_gdt_ro(cpu);
if (gdt.address == (unsigned long)fixmap_gdt) {
load_direct_gdt(cpu);
restore = 1;
}... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline void refresh_tss_limit(void) {
DEBUG_LOCKS_WARN_ON(preemptible());
if (unlikely(this_cpu_read(__tss_limit_invalid)))
force_reload_TR();
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline void invalidate_tss_limit(void) {
DEBUG_LOCKS_WARN_ON(preemptible());
if (unlikely(test_thread_flag(TIF_IO_BITMAP)))
force_reload_TR();
else
this_cpu_write(__tss_limit_invalid, true);
}
#define LDT_empty(info) \
((info)->base_addr ==... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h |
static inline unsigned long get_desc_base(const struct desc_struct *desc) {
return (unsigned)(desc->base0 | ((desc->base1) << 16) |
((desc->base2) << 24));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc.h | static inline void idt_setup_early_pf(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc_defs.h |
static inline unsigned long gate_offset(const gate_desc *g) {
#ifdef CONFIG_X86_64
return g->offset_low | ((unsigned long)g->offset_middle << 16) |
((unsigned long)g->offset_high << 32);
#else
return g->offset_low | ((unsigned long)g->offset_middle << 16);
#endif
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/desc_defs.h |
static inline unsigned long gate_segment(const gate_desc *g) {
return g->segment;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/dma.h | static inline void set_dma_addr(unsigned int dmanr, unsigned int a) {
set_dma_page(dmanr, a >> 16);
if (dmanr <= 3) {
dma_outb(a & 0xff, ((dmanr & 3) << 1) + IO_DMA1_BASE);
dma_outb((a >> 8) & 0xff, ((dmanr & 3) << 1) + IO_DMA1_BASE);
} else {
dma_outb((a >> 1) & 0xff, ((dmanr & 3) << 2) + IO_DMA2_BAS... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/dma.h | static inline int get_dma_residue(unsigned int dmanr) {
unsigned int io_port;
unsigned short count;
io_port = (dmanr <= 3) ? ((dmanr & 3) << 1) + 1 + IO_DMA1_BASE
: ((dmanr & 3) << 2) + 2 + IO_DMA2_BASE;
count = 1 + dma_inb(io_port);
count += dma_inb(io_port) << 8;
return (dmanr... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/doublefault.h | static inline void doublefault_init_cpu_tss(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/e820/api.h | static inline bool is_ISA_range(u64 start, u64 end) {
return start >= ISA_START_ADDRESS && end <= ISA_END_ADDRESS;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h |
static inline bool efi_runtime_supported(void) {
if (IS_ENABLED(CONFIG_X86_64) == efi_enabled(EFI_64BIT))
return true;
return IS_ENABLED(CONFIG_EFI_MIXED);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h |
static inline bool efi_is_64bit(void) {
extern const bool efi_is64;
return efi_is64;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h | static inline void *efi64_zero_upper(void *p) {
((u32 *)p)[1] = 0;
return p;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h |
static inline bool efi_is_64bit(void) { return IS_ENABLED(CONFIG_X86_64); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h | static inline void parse_efi_setup(u64 phys_addr, u32 data_len) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h | static inline bool efi_is_table_address(unsigned long phys_addr) {
return false;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/efi.h |
static inline void efi_fake_memmap(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/elf.h | static inline void elf_common_init(struct thread_struct *t,
struct pt_regs *regs, const u16 ds) {
/*regs->ax = */ regs->bx = regs->cx = regs->dx = 0;
regs->si = regs->di = regs->bp = 0;
regs->r8 = regs->r9 = regs->r10 = regs->r11 = 0;
regs->r12 = regs->r13 = regs->r14 = regs-... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/extable.h | static inline bool ex_handler_bpf(const struct exception_table_entry *x,
struct pt_regs *regs) {
return false;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/fixmap.h | static inline void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys,
pgprot_t flags) {
native_set_fixmap(idx, phys, flags);
}
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/floppy.h |
static void _fd_chose_dma_mode(char *addr, unsigned long size) {
if (can_use_virtual_dma == 2) {
if ((unsigned long)addr >= (unsigned long)high_memory ||
isa_virt_to_bus(addr) >= 0x1000000 || _CROSS_64KB(addr, size, 0))
use_virtual_dma = 1;
else
use_virtual_dma = 0;
} else {
use_vir... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/fpu/api.h | static inline void fpstate_free(struct fpu *fpu) {}
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/fpu/api.h |
static inline void fpstate_set_confidential(struct fpu_guest *gfpu) {
gfpu->fpstate->is_confidential = true;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/fpu/sched.h | static inline void switch_fpu_prepare(struct fpu *old_fpu, int cpu) {
if (cpu_feature_enabled(X86_FEATURE_FPU) && !(current->flags & PF_KTHREAD)) {
save_fpregs_to_fpstate(old_fpu);
old_fpu->last_cpu = cpu;
trace_x86_fpu_regs_deactivated(old_fpu);
}
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/fpu/sched.h | static inline void switch_fpu_finish(void) {
if (cpu_feature_enabled(X86_FEATURE_FPU))
set_thread_flag(TIF_NEED_FPU_LOAD);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/fpu/xcr.h |
static inline void xsetbv(u32 index, u64 value) {
u32 eax = value;
u32 edx = value >> 32;
asm volatile("xsetbv" ::"a"(eax), "d"(edx), "c"(index));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ftrace.h | static inline unsigned long ftrace_call_adjust(unsigned long addr) {
return addr;
}
#ifdef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ftrace.h | static inline void set_ftrace_ops_ro(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ftrace.h | static inline bool arch_syscall_match_sym_name(const char *sym,
const char *name) {
return !strcmp(sym + 3, name + 3) ||
(!strncmp(sym, "__x64_", 6) && !strcmp(sym + 9, name + 3)) ||
(!strncmp(sym, "__ia32_", 7) && !strcmp(sym + 10, name + 3)) ||
... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/futex.h |
static __always_inline int
arch_futex_atomic_op_inuser(int op, int oparg, int *oval, u32 __user *uaddr) {
if (!user_access_begin(uaddr, sizeof(u32)))
return -EFAULT;
switch (op) {
case FUTEX_OP_SET:
unsafe_atomic_op1("xchgl %0, %2", oval, uaddr, oparg, Efault);
break;
case FUTEX_OP_ADD:
unsafe... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/gart.h | static inline void gart_iommu_hole_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/geode.h |
static inline int is_geode_gx(void) {
return ((boot_cpu_data.x86_vendor == X86_VENDOR_NSC) &&
(boot_cpu_data.x86 == 5) && (boot_cpu_data.x86_model == 5));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/hardirq.h | static inline void kvm_set_cpu_l1tf_flush_l1d(void) {
__this_cpu_write(irq_stat.kvm_cpu_l1tf_flush_l1d, 1);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/hardirq.h | static inline void kvm_set_cpu_l1tf_flush_l1d(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/hw_irq.h | static inline void lock_vector_lock(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/hw_irq.h | static inline void unlock_vector_lock(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/hypervisor.h | static inline bool hypervisor_is_type(enum x86_hypervisor_type type) {
return type == X86_HYPER_NATIVE;
}
#endif
#endif /* _ASM_X86_HYPERVISOR_H */ | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ibt.h | static inline bool is_endbr(u32 val) {
if (val == gen_endbr_poison())
return true;
val &= ~0x01000000U;
return val == gen_endbr();
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/inat.h |
static inline int inat_is_operand_size_prefix(insn_attr_t attr) {
return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/inat.h |
static inline int inat_has_immediate(insn_attr_t attr) {
return attr & INAT_IMM_MASK;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/insn.h |
static inline void insn_field_set(struct insn_field *p, insn_value_t v,
unsigned char n) {
p->value = v;
p->nbytes = n;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/insn.h |
static inline int insn_is_evex(struct insn *insn) {
if (!insn->prefixes.got)
insn_get_prefixes(insn);
return (insn->vex_prefix.nbytes == 4);
} | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.