data_type
large_stringclasses
3 values
source
large_stringclasses
29 values
code
large_stringlengths
98
49.4M
filepath
large_stringlengths
5
161
message
large_stringclasses
234 values
commit
large_stringclasses
234 values
subject
large_stringclasses
418 values
critique
large_stringlengths
101
1.26M
metadata
dict
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-divide.S * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Alpha division.. */ /* * The alpha chip doesn't provide hardware division, so we have to do it * by hand. The compiler expects the functions * * __divqu:...
arch/alpha/lib/ev6-divide.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-memchr.S * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Finds characters in a memory area. Optimized for the Alpha: * * - memory accessed as aligned quadwords only * - uses cmpbge to compare 8 bytes in para...
arch/alpha/lib/ev6-memchr.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-memcpy.S * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> * * Reasonably optimized memcpy() routine for the Alpha 21264 * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in parallel * * Much of the i...
arch/alpha/lib/ev6-memcpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-memset.S * * This is an efficient (and relatively small) implementation of the C library * "memset()" function for the 21264 implementation of Alpha. * * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Much of the inf...
arch/alpha/lib/ev6-memset.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-stxcpy.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Copy a null-terminated string from SRC to DST. * * This is an internal routine used by strcpy, stpcpy, and strcat. * As such, it uses special linkage convention...
arch/alpha/lib/ev6-stxcpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev6-stxncpy.S * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST. * * This is an internal routine used by strncpy, stpncpy, and strncat. * As such, ...
arch/alpha/lib/ev6-stxncpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strcat.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Append a null-terminated string from SRC to DST. * * Much of the information about 21264 scheduling/coding comes from: * Compiler Writer's Guide for the Alpha ...
arch/alpha/lib/ev67-strcat.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strchr.S * 21264 version contributed by Rick Gorton <rick.gorton@alpha-processor.com> * * Return the address of a given character within a null-terminated * string, or null if it is not found. * * Much of the information about 21264 scheduling/codin...
arch/alpha/lib/ev67-strchr.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strlen.S * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> * * Finds length of a 0-terminated string. Optimized for the * Alpha architecture: * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in para...
arch/alpha/lib/ev67-strlen.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strncat.S * 21264 version contributed by Rick Gorton <rick.gorton@api-networks.com> * * Append no more than COUNT characters from the null-terminated string SRC * to the null-terminated string DST. Always null-terminate the new DST. * * This differ...
arch/alpha/lib/ev67-strncat.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/ev67-strrchr.S * 21264 version by Rick Gorton <rick.gorton@alpha-processor.com> * * Finds length of a 0-terminated string. Optimized for the * Alpha architecture: * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in par...
arch/alpha/lib/ev67-strrchr.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/fls.c */ #include <linux/module.h> #include <linux/bitops.h> /* This is fls(x)-1, except zero is held to zero. This allows most efficient input into extbl, plus it allows easy handling of fls(0)=0. */ const unsigned char __flsm1_tab[256] = { 0, 0, ...
arch/alpha/lib/fls.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/fpreg.c * * (C) Copyright 1998 Linus Torvalds */ #include <linux/compiler.h> #include <linux/export.h> #include <linux/preempt.h> #include <asm/fpu.h> #include <asm/thread_info.h> #if defined(CONFIG_ALPHA_EV6) || defined(CONFIG_ALPHA_EV67) #define STT(reg,va...
arch/alpha/lib/fpreg.c
null
null
null
null
null
source
linux
/* Copyright (C) 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger (davidm@cs.arizona.edu). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the ...
arch/alpha/lib/memchr.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/alpha/lib/memcpy.c * * Copyright (C) 1995 Linus Torvalds */ /* * This is a reasonably optimized memcpy() routine. */ /* * Note that the C code is written to be optimized into good assembly. However, * at this point gcc is unable to sanely compile "if (n >...
arch/alpha/lib/memcpy.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/memmove.S * * Barely optimized memmove routine for Alpha EV5. * * This is hand-massaged output from the original memcpy.c. We defer to * memcpy whenever possible; the backwards copy loops are not unrolled. */ #include <linux/export.h> .set noat .set n...
arch/alpha/lib/memmove.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * linux/arch/alpha/lib/memset.S * * This is an efficient (and small) implementation of the C library "memset()" * function for the alpha. * * (C) Copyright 1996 Linus Torvalds * * This routine is "moral-ware": you are free to use it any way you wish, and * the only obl...
arch/alpha/lib/memset.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/srm_printk.c */ #include <linux/kernel.h> #include <asm/console.h> long srm_printk(const char *fmt, ...) { static char buf[1024]; va_list args; long len, num_lf; char *src, *dst; va_start(args, fmt); len = vsprintf(buf, fmt, args); va_end(args); /* c...
arch/alpha/lib/srm_printk.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/alpha/lib/srm_puts.c */ #include <linux/string.h> #include <asm/console.h> long srm_puts(const char *str, long len) { long remaining, written; if (!callback_init_done) return len; for (remaining = len; remaining > 0; remaining -= written) { written = callback_...
arch/alpha/lib/srm_puts.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> typedef unsigned int instr; #define MAJOR_OP 0xfc000000 #define LDA_OP 0x20000000 #define STQ_OP 0xb4000000 #define BR_OP 0xc0000000 #define STK_ALLOC_1 0x23de8000 /* lda $30,-X($30) */ #define STK_ALLOC_1M 0xffff8000 #define STK_ALLOC_2 0x43c0153e /* ...
arch/alpha/lib/stacktrace.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strcat.S * Contributed by Richard Henderson (rth@tamu.edu) * * Append a null-terminated string from SRC to DST. */ #include <linux/export.h> .text .align 3 .globl strcat .ent strcat strcat: .frame $30, 0, $26 .prologue 0 mov $16, $0 # set up ret...
arch/alpha/lib/strcat.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strchr.S * Contributed by Richard Henderson (rth@tamu.edu) * * Return the address of a given character within a null-terminated * string, or null if it is not found. */ #include <linux/export.h> #include <asm/regdef.h> .set noreorder .set noat .align...
arch/alpha/lib/strchr.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strcpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy a null-terminated string from SRC to DST. Return a pointer * to the null-terminator in the source. */ #include <linux/export.h> .text .align 3 .globl strcpy .ent strcpy strcpy: .fr...
arch/alpha/lib/strcpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * strlen.S (c) 1995 David Mosberger (davidm@cs.arizona.edu) * * Finds length of a 0-terminated string. Optimized for the * Alpha architecture: * * - memory accessed as aligned quadwords only * - uses bcmpge to compare 8 bytes in parallel * - does binary search to find ...
arch/alpha/lib/strlen.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strncat.S * Contributed by Richard Henderson (rth@tamu.edu) * * Append no more than COUNT characters from the null-terminated string SRC * to the null-terminated string DST. Always null-terminate the new DST. * * This differs slightly from the semantics...
arch/alpha/lib/strncat.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strncpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST. If SRC does not cover all of COUNT, the balance is * zeroed. * * Or, rather, if the kernel cared about that w...
arch/alpha/lib/strncpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/strrchr.S * Contributed by Richard Henderson (rth@tamu.edu) * * Return the address of the last occurrence of a given character * within a null-terminated string, or null if it is not found. */ #include <linux/export.h> #include <asm/regdef.h> .set noreo...
arch/alpha/lib/strrchr.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/stxcpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy a null-terminated string from SRC to DST. * * This is an internal routine used by strcpy, stpcpy, and strcat. * As such, it uses special linkage conventions to make implementation * of ...
arch/alpha/lib/stxcpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * arch/alpha/lib/stxncpy.S * Contributed by Richard Henderson (rth@tamu.edu) * * Copy no more than COUNT bytes of the null-terminated string from * SRC to DST. * * This is an internal routine used by strncpy, stpncpy, and strncat. * As such, it uses special linkage conv...
arch/alpha/lib/stxncpy.S
null
null
null
null
null
source
linux
#include "strcpy.S" #ifdef CONFIG_ALPHA_EV67 #include "ev67-strcat.S" #else #include "strcat.S" #endif #ifdef CONFIG_ALPHA_EV6 #include "ev6-stxcpy.S" #else #include "stxcpy.S" #endif
arch/alpha/lib/stycpy.S
null
null
null
null
null
source
linux
#include "strncpy.S" #ifdef CONFIG_ALPHA_EV67 #include "ev67-strncat.S" #else #include "strncat.S" #endif #ifdef CONFIG_ALPHA_EV6 #include "ev6-stxncpy.S" #else #include "stxncpy.S" #endif
arch/alpha/lib/styncpy.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1993, 2000 Linus Torvalds * * Delay routines, using a pre-computed "loops_per_jiffy" value. */ #include <linux/module.h> #include <linux/sched.h> /* for udelay's use of smp_processor_id */ #include <asm/param.h> #include <asm/smp.h> #include <linux/delay.h> /...
arch/alpha/lib/udelay.c
null
null
null
null
null
source
linux
# Alpha 21064 __udiv_qrnnd # Copyright (C) 1992, 1994, 1995, 2000 Free Software Foundation, Inc. # The GNU MP Library is free software; you can redistribute it and/or modify # the Free Software Foundation; either version 2 of the License, or (at your # option) any later version. # Free Software Foundation gives...
arch/alpha/lib/udiv-qrnnd.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #include <linux/module.h> #include <linux/types.h> #include <linux/kernel.h> #include <linux/sched.h> #include <asm/ptrace.h> #include <asm/fpu.h> #include <linux/uaccess.h> #include "sfp-util.h" #include <math-emu/soft-fp.h> #include <math-emu/single.h> #include <math-emu/dou...
arch/alpha/math-emu/math.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/types.h> #include <asm/byteorder.h> #include <asm/fpu.h> #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ ((sl) = (al) + (bl), (sh) = (ah) + (bh) + ((sl) < (al))) #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ ((sl...
arch/alpha/math-emu/sfp-util.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/alpha/mm/fault.c * * Copyright (C) 1995 Linus Torvalds */ #include <linux/sched/signal.h> #include <linux/kernel.h> #include <linux/mm.h> #include <asm/io.h> #define __EXTERN_INLINE inline #include <asm/mmu_context.h> #include <asm/tlbflush.h> #undef __EXTER...
arch/alpha/mm/fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/alpha/mm/init.c * * Copyright (C) 1995 Linus Torvalds */ /* 2.3.x zone allocator, 1999 Andrea Arcangeli <andrea@suse.de> */ #include <linux/pagemap.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/errno.h> #inclu...
arch/alpha/mm/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Alpha TLB shootdown helpers * * Copyright (C) 2025 Magnus Lindholm <linmag7@gmail.com> * * Alpha-specific TLB flush helpers that cannot be expressed purely * as inline functions. * * These helpers provide combined MM context handling (ASN rollover) * and immediate TLB i...
arch/alpha/mm/tlbflush.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_ARCREGS_H #define _ASM_ARC_ARCREGS_H /* Build Configuration Registers */ #define ARC_REG_AUX_DCCM 0x18 /* DCCM Base Addr ARCv2 */ #define ARC_REG_ERP_CTRL 0x3F /* ARCv2 Err...
arch/arc/include/asm/arcregs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #include <generated/asm-offsets.h>
arch/arc/include/asm/asm-offsets.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com) * * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> */ #ifndef __ASM_ARC_ASSERTS_H #define __ASM_ARC_ASSERTS_H /* Helpers to sanitize config options. */ void chk_opt_strict(char *opt_name, bool hw_exists, ...
arch/arc/include/asm/asserts.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ASM_ARC_ATOMIC_LLSC_H #define _ASM_ARC_ATOMIC_LLSC_H #define arch_atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) #define ATOMIC_OP(op, asm_op) \ static inline void arch_atomic_##op(int i, atomic_t *v) \ { \ unsigned int val; \ \ __a...
arch/arc/include/asm/atomic-llsc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ASM_ARC_ATOMIC_SPLOCK_H #define _ASM_ARC_ATOMIC_SPLOCK_H /* * Non hardware assisted Atomic-R-M-W * Locking would change to irq-disabling only (UP) and spinlocks (SMP) */ static inline void arch_atomic_set(atomic_t *v, int i) { /* * Independent of hardware su...
arch/arc/include/asm/atomic-spinlock.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_ATOMIC_H #define _ASM_ARC_ATOMIC_H #ifndef __ASSEMBLER__ #include <linux/types.h> #include <linux/compiler.h> #include <asm/cmpxchg.h> #include <asm/barrier.h> #include <a...
arch/arc/include/asm/atomic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * ARCv2 supports 64-bit exclusive load (LLOCKD) / store (SCONDD) * - The address HAS to be 64-bit aligned */ #ifndef _ASM_ARC_ATOMIC64_ARCV2_H #define _ASM_ARC_ATOMIC64_ARCV2_H typedef struct { s64 __aligned(8) counter; } atomic64_t; #define ATOMIC64_INIT(a) { (a)...
arch/arc/include/asm/atomic64-arcv2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_BARRIER_H #define __ASM_BARRIER_H #ifdef CONFIG_ISA_ARCV2 /* * ARCv2 based HS38 cores are in-order issue, but still weakly ordered * due to micro-arch buffering/queuing of load/store, cache h...
arch/arc/include/asm/barrier.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_BITOPS_H #define _ASM_BITOPS_H #ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif #ifndef __ASSEMBLER__ #include <linux/types.h> #include <l...
arch/arc/include/asm/bitops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_BUG_H #define _ASM_ARC_BUG_H #ifndef __ASSEMBLER__ #include <asm/ptrace.h> struct task_struct; void show_regs(struct pt_regs *regs); void show_stacktrace(struct task_str...
arch/arc/include/asm/bug.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ARC_ASM_CACHE_H #define __ARC_ASM_CACHE_H /* In case $$ not config, setup a dummy number for rest of kernel */ #ifndef CONFIG_ARC_CACHE_LINE_SHIFT #define L1_CACHE_SHIFT 6 #else ...
arch/arc/include/asm/cache.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: May 2011: for Non-aliasing VIPT D-cache following can be NOPs * -flush_cache_dup_mm (fork) * -likewise for flush_cache_mm (exit/execve) * -likewise for flush_cache_{range...
arch/arc/include/asm/cacheflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_ARC_CACHETYPE_H #define __ASM_ARC_CACHETYPE_H #define cpu_dcache_is_aliasing() false #define cpu_icache_is_aliasing() true #endif
arch/arc/include/asm/cachetype.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Joern Rennecke <joern.rennecke@embecosm.com>: Jan 2012 * -Insn Scheduling improvements to csum core routines. * = csum_fold( ) largely derived from ARM version. * = ip_fast_c...
arch/arc/include/asm/checksum.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_CMPXCHG_H #define __ASM_ARC_CMPXCHG_H #include <linux/build_bug.h> #include <linux/types.h> #include <linux/cmpxchg-emu.h> #include <asm/barrier.h> #include <asm/smp.h> ...
arch/arc/include/asm/cmpxchg.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: May 16th, 2008 * - Current macro is now implemented as "global register" r25 */ #ifndef _ASM_ARC_CURRENT_H #define _ASM_ARC_CURRENT_H #ifndef __ASSEMBLER__ #ifdef CONFIG_ARC_...
arch/arc/include/asm/current.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Delay routines using pre computed loops_per_jiffy value. * * vineetg: Feb 2012 * -Rewrote in "C" to avoid dealing with availability of H/w MPY * -Also reduced the num of MPY operation...
arch/arc/include/asm/delay.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * several functions that help interpret ARC instructions * used for unaligned accesses, kprobes and kgdb * * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ARC_DISASM_H__ #define __ARC_DISASM_H__ enum { op_Bcc = 0, op_BLcc =...
arch/arc/include/asm/disasm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef ASM_ARC_DMA_H #define ASM_ARC_DMA_H #define MAX_DMA_ADDRESS 0xC0000000 #endif
arch/arc/include/asm/dma.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com) * * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> */ #ifndef __ASM_ARC_DSP_IMPL_H #define __ASM_ARC_DSP_IMPL_H #include <asm/dsp.h> #define DSP_CTRL_DISABLED_ALL 0 #ifdef __ASSEMBLER__ /* clobbers r5 ...
arch/arc/include/asm/dsp-impl.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com) * * Author: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> */ #ifndef __ASM_ARC_DSP_H #define __ASM_ARC_DSP_H #ifndef __ASSEMBLER__ /* * DSP-related saved registers - need to be saved only when you are * schedu...
arch/arc/include/asm/dsp.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2016-17 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_DWARF_H #define _ASM_ARC_DWARF_H #ifdef __ASSEMBLER__ #ifdef ARC_DW2_UNWIND_AS_CFI #define CFI_STARTPROC .cfi_startproc #define CFI_ENDPROC .cfi_endproc #define CFI_DEF_CFA .cfi_def_cfa ...
arch/arc/include/asm/dwarf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_ELF_H #define __ASM_ARC_ELF_H #include <linux/types.h> #include <linux/elf-em.h> #include <uapi/asm/elf.h> #define EM_ARC_INUSE (IS_ENABLED(CONFIG_ISA_ARCOMPACT) ? \ ...
arch/arc/include/asm/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_ARC_ENTRY_ARCV2_H #define __ASM_ARC_ENTRY_ARCV2_H #include <asm/asm-offsets.h> #include <asm/dsp-impl.h> #include <asm/irqflags-arcv2.h> #include <asm/thread_info.h> /* For THREAD_SIZE */ /* * Interrupt/Exception stack layout (pt_regs) for ARCv2 * (End of stru...
arch/arc/include/asm/entry-arcv2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: March 2009 (Supporting 2 levels of Interrupts) * Stack switching code can no longer reliably rely on the fact that * ...
arch/arc/include/asm/entry-compact.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_ENTRY_H #define __ASM_ARC_ENTRY_H #include <asm/unistd.h> /* For NR_syscalls definition */ #include <asm/arcreg...
arch/arc/include/asm/entry.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_EXEC_H #define __ASM_ARC_EXEC_H /* Align to 16b */ #define arch_align_stack(p) ((unsigned long)(p) & ~0xf) #endif
arch/arc/include/asm/exec.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com) * */ #ifndef _ASM_ARC_FPU_H #define _ASM_ARC_FPU_H #ifdef CONFIG_ARC_FPU_SAVE_RESTORE #include <asm/ptrace.h> #ifdef CONFIG_ISA_ARCOMPACT /* These DPFP regs need to be saved/restored across ctx-sw */ struct arc...
arch/arc/include/asm/fpu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Vineetg: August 2010: From Android kernel work */ #ifndef _ASM_FUTEX_H #define _ASM_FUTEX_H #include <linux/futex.h> #include <linux/preempt.h> #include <linux/uaccess.h> #include <asm/e...
arch/arc/include/asm/futex.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_HIGHMEM_H #define _ASM_HIGHMEM_H #ifdef CONFIG_HIGHMEM #include <uapi/asm/page.h> #include <asm/kmap_size.h> #define FIXMAP_SIZE PGDIR_SIZE #define PKMAP_SIZE PGDIR_SIZE /* start after vmalloc ...
arch/arc/include/asm/highmem.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_HUGEPAGE_H #define _ASM_ARC_HUGEPAGE_H #include <linux/types.h> #include <asm-generic/pgtable-nopmd.h> /* * Hugetlb definitions. */ #define HPAGE_SHIFT PMD_SHIFT #define HPAGE_SIZE (_AC...
arch/arc/include/asm/hugepage.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_IO_H #define _ASM_ARC_IO_H #include <linux/types.h> #include <asm/byteorder.h> #include <asm/page.h> #include <linux/unaligned.h> #ifdef CONFIG_ISA_ARCV2 #include <asm/bar...
arch/arc/include/asm/io.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_IRQ_H #define __ASM_ARC_IRQ_H /* * ARCv2 can support 240 interrupts in the core interrupts controllers and * 128 interrupts in IDU. Thus 512 virtual IRQs must be enough ...
arch/arc/include/asm/irq.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_IRQFLAGS_ARCV2_H #define __ASM_IRQFLAGS_ARCV2_H #include <asm/arcregs.h> /* status32 Bits */ #define STATUS_AD_BIT 19 /* Disable Align chk: core supports non-aligned */ #define STATUS_IE_BIT ...
arch/arc/include/asm/irqflags-arcv2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_IRQFLAGS_ARCOMPACT_H #define __ASM_IRQFLAGS_ARCOMPACT_H /* vineetg: March 2010 : local_irq_save( ) optimisation * ...
arch/arc/include/asm/irqflags-compact.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_IRQFLAGS_H #define __ASM_ARC_IRQFLAGS_H #ifdef CONFIG_ISA_ARCOMPACT #include <asm/irqflags-compact.h> #else #inc...
arch/arc/include/asm/irqflags.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ARC_JUMP_LABEL_H #define _ASM_ARC_JUMP_LABEL_H #ifndef __ASSEMBLER__ #include <linux/stringify.h> #include <linux/types.h> #define JUMP_LABEL_NOP_SIZE 4 /* * NOTE about '.balign 4': * * To make atomic update of patched instruction available we need to guarantee...
arch/arc/include/asm/jump_label.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_KDEBUG_H #define _ASM_ARC_KDEBUG_H enum die_val { DIE_UNUSED, DIE_TRAP, DIE_IERR, DIE_OOPS }; #endif
arch/arc/include/asm/kdebug.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * kgdb support for ARC * * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ARC_KGDB_H__ #define __ARC_KGDB_H__ #ifdef CONFIG_KGDB #include <asm/ptrace.h> /* to ensure compatibility with Linux 2.6.35, we don't implement the get/set * register API ...
arch/arc/include/asm/kgdb.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ARC_KPROBES_H #define _ARC_KPROBES_H #include <asm-generic/kprobes.h> #ifdef CONFIG_KPROBES typedef u16 kprobe_opcode_t; #define UNIMP_S_INSTRUCTION 0x79e0 #define TRAP_S_2_INST...
arch/arc/include/asm/kprobes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_LINKAGE_H #define __ASM_LINKAGE_H #include <asm/dwarf.h> #define ASM_NL ` /* use '`' to mark new line in macro */ #define __ALIGN .align 4 #define __ALIGN_STR __stringify(...
arch/arc/include/asm/linkage.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) * * based on METAG mach/arch.h (which in turn was based on ARM) */ #ifndef _ASM_ARC_MACH_DESC_H_ #define _ASM_ARC_MACH_DESC_H_ /** * struct machine_desc - Board specific callbacks, called from ARC common code *...
arch/arc/include/asm/mach_desc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012, 2019-20 Synopsys, Inc. (www.synopsys.com) * * MMUv3 (arc700) / MMUv4 (archs) are software page walked and software managed. * This file contains the TLB access registers and commands */ #ifndef _ASM_ARC_MMU_ARCV2_H #define ...
arch/arc/include/asm/mmu-arcv2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_MMU_H #define _ASM_ARC_MMU_H #ifndef __ASSEMBLER__ #include <linux/threads.h> /* NR_CPUS */ typedef struct { unsigned long asid[NR_CPUS]; /* 8 bit MMU PID + Generation c...
arch/arc/include/asm/mmu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: May 2011 * -Refactored get_new_mmu_context( ) to only handle live-mm. * retiring-mm handled in other hooks * * Vineetg: March 25th, 2008: Bug #92690 * -Major rewrite of Co...
arch/arc/include/asm/mmu_context.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Amit Bhor, Sameer Dhavale: Codito Technologies 2004 */ #ifndef _ASM_ARC_MODULE_H #define _ASM_ARC_MODULE_H #include <asm-generic/module.h> struct mod_arch_specific { #ifdef CONFIG_ARC_D...
arch/arc/include/asm/module.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_PAGE_H #define __ASM_ARC_PAGE_H #include <uapi/asm/page.h> #ifdef CONFIG_ARC_HAS_PAE40 #define MAX_POSSIBLE_PHYSMEM_BITS 40 #define PAGE_MASK_PHYS (0xff00000000ull | PA...
arch/arc/include/asm/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2015-2016 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_PCI_H #define _ASM_ARC_PCI_H #ifdef __KERNEL__ #include <linux/ioport.h> #define PCIBIOS_MIN_IO 0x100 #define PCIBIOS_MIN_MEM 0x100000 #define pcibios_assign_all_busses() 1 #endif /* __K...
arch/arc/include/asm/pci.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Linux performance counter support for ARC * * Copyright (C) 2014-2015 Synopsys, Inc. (www.synopsys.com) * Copyright (C) 2011-2013 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_PERF_EVENT_H #define __ASM_PERF_EVENT_H /* Max number of counters that PCT block ma...
arch/arc/include/asm/perf_event.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: June 2011 * -"/proc/meminfo | grep PageTables" kept on increasing * Recently added pgtable dtor was not getting called. * * vineetg: May 2011 * -Variable pg-sz means that ...
arch/arc/include/asm/pgalloc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ /* * page table flags for software walked/managed MMUv3 (ARC700) and MMUv4 (HS) * There correspond to the corresponding bits in the TLB */ #ifndef _ASM_ARC_PGTABLE_BITS_ARCV2_H #define _...
arch/arc/include/asm/pgtable-bits-arcv2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2020 Synopsys, Inc. (www.synopsys.com) */ /* * Helpers for implemenintg paging levels */ #ifndef _ASM_ARC_PGTABLE_LEVELS_H #define _ASM_ARC_PGTABLE_LEVELS_H #if CONFIG_PGTABLE_LEVELS == 2 /* * 2 level paging setup for software walked MMUv3 (ARC700)...
arch/arc/include/asm/pgtable-levels.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_PGTABLE_H #define _ASM_ARC_PGTABLE_H #include <linux/bits.h> #include <asm/pgtable-levels.h> #include <asm/pgtable-bits-arcv2.h> #include <asm/page.h> #include <asm/mmu.h>...
arch/arc/include/asm/pgtable.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * vineetg: March 2009 * -Implemented task_pt_regs( ) * * Amit Bhor, Sameer Dhavale, Ashwin Chaugule: Codito Technologies 2004 */ #ifndef __ASM_ARC_PROCESSOR_H #define __ASM_ARC_PROCESSO...
arch/arc/include/asm/processor.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) * * Amit Bhor, Sameer Dhavale: Codito Technologies 2004 */ #ifndef __ASM_ARC_PTRACE_H #define __ASM_ARC_PTRACE_H #include <uapi/asm/ptrace.h> #include <linux/compiler.h> #ifndef __ASSEMBLER_...
arch/arc/include/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_SECTIONS_H #define _ASM_ARC_SECTIONS_H #include <asm-generic/sections.h> extern char __arc_dccm_base[]; #endif
arch/arc/include/asm/sections.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_SERIAL_H #define _ASM_ARC_SERIAL_H /* * early 8250 (now earlycon) requires BASE_BAUD to be defined in this header. * However to still determine it dynamically (for multi-platform images) * we...
arch/arc/include/asm/serial.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_SETUP_H #define __ASM_ARC_SETUP_H #include <linux/types.h> #include <uapi/asm/setup.h> #define COMMAND_LINE_SIZE 256 /* * Data structure to map a ID to string * Used a...
arch/arc/include/asm/setup.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ARC_ASM_SHMPARAM_H #define __ARC_ASM_SHMPARAM_H /* Handle up to 2 cache bins */ #define SHMLBA (2 * PAGE_SIZE) /* Enforce SHMLBA in shmat */ #define __ARCH_FORCE_SHMLBA #endif
arch/arc/include/asm/shmparam.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_ARC_SMP_H #define __ASM_ARC_SMP_H #ifdef CONFIG_SMP #include <linux/types.h> #include <linux/init.h> #include <linux/threads.h> #define raw_smp_processor_id() (current_threa...
arch/arc/include/asm/smp.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_SPINLOCK_H #define __ASM_SPINLOCK_H #include <asm/spinlock_types.h> #include <asm/processor.h> #include <asm/barrier.h> #define arch_spin_is_locked(x) ((x)->slock != __ARCH_S...
arch/arc/include/asm/spinlock.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) */ #ifndef __ASM_SPINLOCK_TYPES_H #define __ASM_SPINLOCK_TYPES_H typedef struct { volatile unsigned int slock; } arch_spinlock_t; #define __ARCH_SPIN_LOCK_UNLOCKED__ 0 #define __ARCH_SPIN_LO...
arch/arc/include/asm/spinlock_types.h
null
null
null
null
null