Projectname large_stringclasses 15
values | Filepath large_stringlengths 4 106 ⌀ | Function large_stringlengths 11 3.45k | Label list |
|---|---|---|---|
Linux Kernel | arch/x86/include/asm/pgtable_types.h | static inline void update_page_count(int level, unsigned long pages) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/pkeys.h | static inline int mm_pkey_alloc(struct mm_struct *mm) {
u16 all_pkeys_mask = ((1U << arch_max_pkey()) - 1);
int ret;
/*
* Are we out of pkeys? We must handle this specially
* because ffz() behavior is undefined if there are no
* zeros.
*/
if (mm_pkey_allocation_map(mm) == all_pkeys_mask)
retu... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/pkeys.h |
static inline int vma_pkey(struct vm_area_struct *vma) {
unsigned long vma_pkey_mask =
VM_PKEY_BIT0 | VM_PKEY_BIT1 | VM_PKEY_BIT2 | VM_PKEY_BIT3;
return (vma->vm_flags & vma_pkey_mask) >> VM_PKEY_SHIFT;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/pkru.h |
static inline bool __pkru_allows_read(u32 pkru, u16 pkey) {
int pkru_pkey_bits = pkey * PKRU_BITS_PER_PKEY;
return !(pkru & (PKRU_AD_BIT << pkru_pkey_bits));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/preempt.h |
static __always_inline void clear_preempt_need_resched(void) {
raw_cpu_or_4(__preempt_count, PREEMPT_NEED_RESCHED);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/preempt.h | static __always_inline bool __preempt_count_dec_and_test(void) {
return GEN_UNARY_RMWcc("decl", __preempt_count, e, __percpu_arg([var]));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/preempt.h | static __always_inline bool should_resched(int preempt_offset) {
return unlikely(raw_cpu_read_4(__preempt_count) == preempt_offset);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/processor-cyrix.h |
static inline void setCx86(u8 reg, u8 data) { pc_conf_set(reg, data); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/processor.h | static inline unsigned long read_cr3_pa(void) {
return __read_cr3() & CR3_ADDR_MASK;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/processor.h |
static __always_inline bool on_thread_stack(void) {
return (unsigned long)(current_top_of_stack() - current_stack_pointer) <
THREAD_SIZE;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/processor.h | static inline void load_sp0(unsigned long sp0) { native_load_sp0(sp0); }
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/processor.h |
static inline unsigned long get_debugctlmsr(void) {
unsigned long debugctlmsr = 0;
#ifndef CONFIG_X86_DEBUGCTLMSR
if (boot_cpu_data.x86 < 6)
return 0;
#endif
rdmsrl(MSR_IA32_DEBUGCTLMSR, debugctlmsr);
return debugctlmsr;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/processor.h | static inline u32 amd_get_nodes_per_socket(void) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/processor.h | static inline u32 amd_get_highest_perf(void) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/prom.h | static inline void x86_dtb_init(void) {}
#define of_ioapic 0
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/pti.h | static inline void pti_check_boottime_disable(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ptrace.h |
static inline unsigned long user_stack_pointer(struct pt_regs *regs) {
return regs->sp;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ptrace.h | static inline unsigned long regs_get_register(struct pt_regs *regs,
unsigned int offset) {
if (unlikely(offset > MAX_REG_OFFSET))
return 0;
#ifdef CONFIG_X86_32
if (offset == offsetof(struct pt_regs, cs) ||
offset == offsetof(struct pt_regs, ss) ||
offs... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/ptrace.h | static inline unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs,
unsigned int n) {
unsigned long *addr;
unsigned long val;
long ret;
addr = regs_get_kernel_stack_nth_addr(regs, n);
if (addr) {
ret = copy_from_kernel_nofault(&val, addr, size... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/pvclock.h | static __always_inline unsigned
pvclock_read_begin(const struct pvclock_vcpu_time_info *src) {
unsigned version = src->version & ~1;
virt_rmb();
return version;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/pvclock.h | static __always_inline bool
pvclock_read_retry(const struct pvclock_vcpu_time_info *src, unsigned version) {
virt_rmb();
return unlikely(version != src->version);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/pvclock.h | static inline u64 pvclock_scale_delta(u64 delta, u32 mul_frac, int shift) {
u64 product;
#ifdef __i386__
u32 tmp1, tmp2;
#else
ulong tmp;
#endif
if (shift < 0)
delta >>= -shift;
else
delta <<= shift;
#ifdef __i386__
__asm__("mul %5 ; "
"mov %4,%%eax ; "
"mov %%edx,%4 ;... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/qspinlock.h | static __always_inline u32
queued_fetch_set_pending_acquire(struct qspinlock *lock) {
u32 val;
val = GEN_BINARY_RMWcc(LOCK_PREFIX "btsl", lock->val.counter, c, "I",
_Q_PENDING_OFFSET) *
_Q_PENDING_VAL;
val |= atomic_read(&lock->val) & ~_Q_PENDING_MASK;
return val;
}
#ifdef CO... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/qspinlock.h | static inline bool virt_spin_lock(struct qspinlock *lock) {
if (!static_branch_likely(&virt_spin_lock_key))
return false;
do {
while (atomic_read(&lock->val) != 0)
cpu_relax();
} while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0);
return true;
}
#else | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline void sev_es_ist_enter(struct pt_regs *regs) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline void sev_es_ist_exit(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline int rmpadjust(unsigned long vaddr, bool rmp_psize,
unsigned long attrs) {
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline void __init early_snp_set_memory_private(unsigned long vaddr,
unsigned long paddr,
unsigned int npages) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline void snp_set_memory_shared(unsigned long vaddr,
unsigned int npages) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline void snp_set_memory_private(unsigned long vaddr,
unsigned int npages) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sev.h | static inline void snp_abort(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/signal.h |
static inline void __const_sigaddset(sigset_t *set, int _sig) {
unsigned long sig = _sig - 1;
set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW);
}
#define sigdelset(set, sig) \
(__builtin_constant_p(sig) ? __const_sigdelset((set), (sig)) \
... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/simd.h | static __must_check inline bool may_use_simd(void) { return irq_fpu_usable(); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline void smp_cpus_done(unsigned int max_cpus) {
smp_ops.smp_cpus_done(max_cpus);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline int __cpu_up(unsigned int cpu, struct task_struct *tidle) {
return smp_ops.cpu_up(cpu, tidle);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline void play_dead(void) { smp_ops.play_dead(); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline void smp_send_reschedule(int cpu) {
smp_ops.smp_send_reschedule(cpu);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline struct cpumask *cpu_llc_shared_mask(int cpu) {
return per_cpu(cpu_llc_shared_map, cpu);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline struct cpumask *cpu_l2c_shared_mask(int cpu) {
return per_cpu(cpu_l2c_shared_map, cpu);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/smp.h |
static inline struct cpumask *cpu_llc_shared_mask(int cpu) {
return (struct cpumask *)cpumask_of(0);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h |
static __always_inline unsigned long native_read_cr2(void) {
unsigned long val;
asm volatile("mov %%cr2,%0\n\t" : "=r"(val) : __FORCE_ORDER);
return val;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h |
static __always_inline void native_write_cr2(unsigned long val) {
asm volatile("mov %0,%%cr2" : : "r"(val) : "memory");
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h |
static inline unsigned long __native_read_cr3(void) {
unsigned long val;
asm volatile("mov %%cr3,%0\n\t" : "=r"(val) : __FORCE_ORDER);
return val;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h |
static inline void native_write_cr3(unsigned long val) {
asm volatile("mov %0,%%cr3" : : "r"(val) : "memory");
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h |
static __always_inline unsigned long read_cr2(void) {
return native_read_cr2();
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h |
static inline void clflush(volatile void *__p) {
asm volatile("clflush %0" : "+m"(*(volatile char __force *)__p));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/special_insns.h | static inline void clwb(volatile void *__p) {
volatile struct {
char x[64];
} *p = __p;
asm volatile(ALTERNATIVE_2(".byte 0x3e; clflush (%[pax])",
".byte 0x66; clflush (%[pax])",
X86_FEATURE_CLFLUSHOPT,
".byte 0x66, 0x0f, ... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/stackprotector.h | static __always_inline void boot_init_stack_canary(void) {
unsigned long canary = get_random_canary();
#ifdef CONFIG_X86_64
BUILD_BUG_ON(offsetof(struct fixed_percpu_data, stack_canary) != 40);
#endif
current->stack_canary = canary;
#ifdef CONFIG_X86_64
this_cpu_write(fixed_percpu_data.stack_canary, canary);
... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/stackprotector.h | static inline void cpu_init_stack_canary(int cpu, struct task_struct *idle) {}
#endif
#endif /* _ASM_STACKPROTECTOR_H */ | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/string_64.h | static inline void *memset32(uint32_t *s, uint32_t v, size_t n) {
long d0, d1;
asm volatile("rep\n\t"
"stosl"
: "=&c"(d0), "=&D"(d1)
: "a"(v), "1"(s), "0"(n)
: "memory");
return s;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/string_64.h | static inline void *memset64(uint64_t *s, uint64_t v, size_t n) {
long d0, d1;
asm volatile("rep\n\t"
"stosq"
: "=&c"(d0), "=&D"(d1)
: "a"(v), "1"(s), "0"(n)
: "memory");
return s;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/string_64.h | static __always_inline void memcpy_flushcache(void *dst, const void *src,
size_t cnt) {
if (__builtin_constant_p(cnt)) {
switch (cnt) {
case 4:
asm("movntil %1, %0" : "=m"(*(u32 *)dst) : "r"(*(u32 *)src));
return;
case 8:
asm("movntiq %1, %0"... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/svm.h |
static inline void __unused_size_checks(void) {
BUILD_BUG_ON(sizeof(struct vmcb_save_area) != EXPECTED_VMCB_SAVE_AREA_SIZE);
BUILD_BUG_ON(sizeof(struct ghcb_save_area) != EXPECTED_GHCB_SAVE_AREA_SIZE);
BUILD_BUG_ON(sizeof(struct sev_es_save_area) !=
EXPECTED_SEV_ES_SAVE_AREA_SIZE);
BUILD_BUG_ON(... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sync_bitops.h | static inline int sync_test_and_change_bit(long nr,
volatile unsigned long *addr) {
return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(btc), *addr, c, "Ir", nr);
}
#define sync_test_bit(nr, addr) test_bit(nr, addr) | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/sync_core.h | static inline void sync_core_before_usermode(void) {
if (static_cpu_has(X86_FEATURE_PTI))
return;
/*
* Even if we're in an interrupt, we might reschedule before returning,
* in which case we could switch to a different thread in the same mm
* and return using SYSRET or SYSEXIT. Instead of trying to ... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/syscall.h | static inline long syscall_get_error(struct task_struct *task,
struct pt_regs *regs) {
unsigned long error = regs->ax;
#ifdef CONFIG_IA32_EMULATION
if (task->thread_info.status & (TS_COMPAT | TS_I386_REGS_POKED))
/*
* Sign-extend the value so (int)-EFOO becomes (long)-... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/syscall.h |
static inline void syscall_get_arguments(struct task_struct *task,
struct pt_regs *regs,
unsigned long *args) {
memcpy(args, ®s->bx, 6 * sizeof(args[0]));
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/syscall.h |
static inline void syscall_get_arguments(struct task_struct *task,
struct pt_regs *regs,
unsigned long *args) {
#ifdef CONFIG_IA32_EMULATION
if (task->thread_info.status & TS_COMPAT) {
*args++ = regs->bx;
*args++ = regs->cx;
... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/tdx.h |
static inline bool tdx_early_handle_ve(struct pt_regs *regs) { return false; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/text-patching.h | static inline void apply_paravirt(struct paravirt_patch_site *start,
struct paravirt_patch_site *end) {}
#define __parainstructions NULL
#define __parainstructions_end NULL
#endif | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/text-patching.h | static __always_inline void int3_emulate_push(struct pt_regs *regs,
unsigned long val) {
regs->sp -= sizeof(unsigned long);
*(unsigned long *)regs->sp = val;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/tlb.h |
static inline void tlb_flush(struct mmu_gather *tlb) {
unsigned long start = 0UL, end = TLB_FLUSH_ALL;
unsigned int stride_shift = tlb_get_unmap_shift(tlb);
if (!tlb->fullmm && !tlb->need_flush_all) {
start = tlb->start;
end = tlb->end;
}
flush_tlb_mm_range(tlb->mm, start, end, stride_shift, tlb->f... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/tlbflush.h | static inline void cr4_set_bits_irqsoff(unsigned long mask) {
cr4_update_irqsoff(mask, 0);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/tlbflush.h | static inline void cr4_init_shadow(void) {
this_cpu_write(cpu_tlbstate.cr4, __read_cr4());
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/tlbflush.h |
static inline void flush_tlb_page(struct vm_area_struct *vma, unsigned long a) {
flush_tlb_mm_range(vma->vm_mm, a, a + PAGE_SIZE, PAGE_SHIFT, false);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/tlbflush.h | static inline bool pte_needs_flush(pte_t oldpte, pte_t newpte) {
if (!(pte_flags(oldpte) & _PAGE_PRESENT))
return false;
/* PFN changed ; needs flush */
if (pte_pfn(oldpte) != pte_pfn(newpte))
return true;
/*
* check PTE flags; ignore access-bit; see comment in
* ptep_clear_flush_young().
*/... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/topology.h |
static inline void setup_node_to_cpumask_map(void) {}
#endif
#include <asm-generic/topology.h> | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/topology.h |
static inline int topology_max_smt_threads(void) { return __max_smt_threads; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/topology.h | static inline int topology_phys_to_logical_die(unsigned int die,
unsigned int cpu) {
return 0;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/topology.h | static inline int sched_set_itmt_support(void) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/topology.h | static inline void arch_set_max_freq_ratio(bool turbo_disabled) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/trace/common.h | static inline bool trace_pagefault_enabled(void) { return false; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/tsc.h | static inline void tsc_verify_tsc_adjust(bool resume) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uaccess_32.h |
static __always_inline unsigned long
__copy_from_user_inatomic_nocache(void *to, const void __user *from,
unsigned long n) {
return __copy_from_user_ll_nocache_nozero(to, from, n);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uaccess_64.h | static __always_inline __must_check unsigned long
copy_user_generic(void *to, const void *from, unsigned len) {
unsigned ret;
alternative_call_2(
copy_user_generic_unrolled, copy_user_generic_string,
X86_FEATURE_REP_GOOD, copy_user_enhanced_fast_string, X86_FEATURE_ERMS,
ASM_OUTPUT2("=a"(ret), "=... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/unwind.h |
static inline void unwind_start(struct unwind_state *state,
struct task_struct *task, struct pt_regs *regs,
unsigned long *first_frame) {
first_frame = first_frame ?: get_stack_pointer(task, regs);
__unwind_start(state, task, regs, first_frame);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv.h | static inline int uv(int uvtype) {
if (uvtype >= 0 && uvtype <= 30)
return 1 << uvtype;
return 1;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv.h | static inline bool is_early_uv_system(void) {
return uv_systab_phys && uv_systab_phys != EFI_INVALID_TABLE_ADDR;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv.h | static inline int is_uv_hubbed(int uv) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv.h | static inline void uv_system_init(void) {} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int is_uv1_hub(void) { return 0; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int is_uv2_hub(void) { return is_uv(UV2); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int is_uv4a_hub(void) { return is_uv(UV4A); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int is_uvy_hub(void) { return is_uv(UVY); } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned int uv_gpa_shift(void) { return uv_hub_info->gpa_shift; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline struct uv_gam_range_s *uv_gam_range(unsigned long pa) {
struct uv_gam_range_s *gr = uv_hub_info->gr_table;
unsigned long pal = (pa & uv_hub_info->gpa_mask) >> UV_GAM_RANGE_SHFT;
int i, num = uv_hub_info->gr_table_len;
if (gr) {
for (i = 0; i < num; i++, gr++) {
if (pal < gr->limit)
... | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned long uv_gam_range_base(unsigned long pa) {
struct uv_gam_range_s *gr = uv_gam_range(pa);
int base = gr->base;
if (base < 0)
return 0UL;
return uv_hub_info->gr_table[base].limit;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned long uv_soc_phys_ram_to_nasid(unsigned long paddr) {
return uv_gam_range(paddr)->nasid;
}
#define _uv_soc_phys_ram_to_nasid | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned long uv_gpa_to_gnode(unsigned long gpa) {
unsigned int n_lshift = uv_hub_info->n_lshift;
if (n_lshift)
return gpa >> n_lshift;
return uv_gam_range(gpa)->nasid >> 1;
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned long uv_gpa_to_offset(unsigned long gpa) {
unsigned int m_shift = uv_hub_info->m_shift;
if (m_shift)
return (gpa << m_shift) >> m_shift;
return (gpa & uv_hub_info->gpa_mask) - uv_gam_range_base(gpa);
} | [
1,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h |
static inline int uv_socket_to_node(int socket) {
return _uv_socket_to_node(socket, uv_hub_info->socket_to_node);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned long *uv_global_mmr32_address(int pnode,
unsigned long offset) {
return __va(UV_GLOBAL_MMR32_BASE | UV_GLOBAL_MMR32_PNODE_BITS(pnode) |
offset);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h |
static inline void uv_write_global_mmr32(int pnode, unsigned long offset,
unsigned long val) {
writeq(val, uv_global_mmr32_address(pnode, offset));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h |
static inline unsigned char uv_read_global_mmr8(int pnode,
unsigned long offset) {
return readb(uv_global_mmr64_address(pnode, offset));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline unsigned long *uv_local_mmr_address(unsigned long offset) {
return __va(UV_LOCAL_MMR_BASE | offset);
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int uv_node_to_blade_id(int nid) { return nid; } | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int uv_cpu_to_blade_id(int cpu) {
return uv_node_to_blade_id(cpu_to_node(cpu));
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/uv/uv_hub.h | static inline int uv_cpu_to_pnode(int cpu) {
return uv_cpu_hub_info(cpu)->pnode;
} | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/vdso/gettimeofday.h |
static __always_inline long
clock_gettime32_fallback(clockid_t _clkid, struct old_timespec32 *_ts) {
long ret;
asm("mov %%ebx, %%edx \n"
"mov %[clock], %%ebx \n"
"call __kernel_vsyscall \n"
"mov %%edx, %%ebx \n"
: "=a"(ret), "=m"(*_ts)
: "0"(__NR_clock_gettime), [clock] "g"(_clkid), ... | [
0,
0
] |
Linux Kernel | arch/x86/include/asm/vdso/gettimeofday.h |
static __always_inline long
gettimeofday_fallback(struct __kernel_old_timeval *_tv, struct timezone *_tz) {
long ret;
asm("mov %%ebx, %%edx \n"
"mov %2, %%ebx \n"
"call __kernel_vsyscall \n"
"mov %%edx, %%ebx \n"
: "=a"(ret)
: "0"(__NR_gettimeofday), "g"(_tv), "c"(_tz)
: "memor... | [
0,
0
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.