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 WITH Linux-syscall-note */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program; if not, write t...
arch/hexagon/include/uapi/asm/setup.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program; if not, write t...
arch/hexagon/include/uapi/asm/sigcontext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along with this program; if not, write t...
arch/hexagon/include/uapi/asm/swab.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Syscall support for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * * along ...
arch/hexagon/include/uapi/asm/unistd.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #ifndef HEXAGON_ASM_USER_H #define HEXAGON_ASM_USER_H /* * Layout for registers passed in elf core dumps to userspace. * * Basically a rearranged subset of "pt_regs". * * Interested parties: libc, gdb... */ struct user_regs_struct { unsigned long ...
arch/hexagon/include/uapi/asm/user.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 1996 David S. Miller * Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Ralf Baechle * Copyright (C) 1999, 2000 Silicon Graphics, Inc. * Kevin Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com * Copyright (C) 2000 MIPS Technologies, ...
arch/hexagon/kernel/asm-offsets.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * DMA implementation for Hexagon * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. */ #include <linux/dma-map-ops.h> #include <linux/memblock.h> #include <asm/page.h> void arch_sync_dma_for_device(phys_addr_t paddr, size_t size, enum dma_data_dir...
arch/hexagon/kernel/dma.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Early kernel startup code for Hexagon * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> #include <linux/init.h> #include <asm/asm-offsets.h> #include <asm/mem-layout.h> #include <asm/vm_mmu.h> #include <asm/page.h>...
arch/hexagon/kernel/head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Export of symbols defined in assembly files and/or libgcc. * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/dma-mapping.h> #include <asm/hexagon_vm.h> #include <asm/io.h> #include <linux/uaccess.h> /* Additional functions */ E...
arch/hexagon/kernel/hexagon_ksyms.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * First-level interrupt controller model for Hexagon. * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/interrupt.h> #include <asm/irq.h> #include <asm/hexagon_vm.h> static void mask_irq(struct irq_data *data) { __vmintop_locdis...
arch/hexagon/kernel/irq_cpu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * arch/hexagon/kernel/kgdb.c - Hexagon KGDB Support * * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. */ #include <linux/irq.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/kdebug.h> #include <linux/kgdb.h> /* All re...
arch/hexagon/kernel/kgdb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Kernel module loader for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <asm/module.h> #include <linux/elf.h> #include <linux/module.h> #include <linux/moduleloader.h> #include <linux/vmalloc.h> #if 0 #define DEBUGP printk ...
arch/hexagon/kernel/module.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Process creation support for Hexagon * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. */ #include <linux/cpu.h> #include <linux/sched.h> #include <linux/sched/debug.h> #include <linux/sched/task.h> #include <linux/sched/task_stack.h> #include <li...
arch/hexagon/kernel/process.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Ptrace support for Hexagon * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/mm.h> #include <linux/smp.h> #include <linux/errno.h> #include <...
arch/hexagon/kernel/ptrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/reboot.h> #include <linux/smp.h> #include <asm/hexagon_vm.h> void machine_power_off(void) { smp_send_stop(); __vmstop(); } void machine_halt(void) { } void machine_restart(char *c...
arch/hexagon/kernel/reset.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Arch related setup for Hexagon * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #include <linux/init.h> #include <linux/delay.h> #include <linux/memblock.h> #include <linux/mmzone.h> #include <linux/mm.h> #include <linux/seq_file.h> #include <...
arch/hexagon/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Signal support for Hexagon processor * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> #include <linux/syscalls.h> #include <linux/sched/task_stack.h> #include <asm/registers.h> #include <asm/thread_info.h> #include ...
arch/hexagon/kernel/signal.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * SMP support for Hexagon * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. */ #include <linux/err.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/module.h> #include <linux/p...
arch/hexagon/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Stacktrace support for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/stacktrace.h> #include <linux/thread_info.h> #include <linux/module.h> struct stackfr...
arch/hexagon/kernel/stacktrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * System call table for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/syscalls.h> #include <linux/signal.h> #include <linux/unistd.h> #include <asm/syscall.h> #define __SYSCALL(nr, call) [nr] = (call), #define __SYSC...
arch/hexagon/kernel/syscalltab.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Time related functions for Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/init.h> #include <linux/clockchips.h> #include <linux/clocksource.h> #include <linux/interrupt.h> #include <linux/err.h> #include ...
arch/hexagon/kernel/time.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * Trampoline sequences to be copied onto user stack. * This consumes a little more space than hand-assembling * immediate constants for use in C, but is more portable * to future tweaks to t...
arch/hexagon/kernel/trampoline.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Kernel traps/events for Hexagon processor * * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. */ #include <linux/init.h> #include <linux/sched/signal.h> #include <linux/sched/debug.h> #include <linux/sched/task_stack.h> #include <linux/module.h> #in...
arch/hexagon/kernel/traps.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * vDSO implementation for Hexagon * * Copyright (c) 2011, The Linux Foundation. All rights reserved. */ #include <linux/err.h> #include <linux/mm.h> #include <linux/vmalloc.h> #include <linux/binfmts.h> #include <asm/elf.h> #include <asm/vdso.h> static struct page *vds...
arch/hexagon/kernel/vdso.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Event entry/exit for Hexagon * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #include <asm/asm-offsets.h> /* assembly-safer versions of C defines */ #include <asm/mem-layout.h> /* sigh, except for page_offset */ #include <asm/hexagon...
arch/hexagon/kernel/vm_entry.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Mostly IRQ support for Hexagon * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. */ #include <linux/kernel.h> #include <linux/sched/debug.h> #include <asm/registers.h> #include <linux/irq.h> #include <linux/hardirq.h> /* * show_regs - print pt_r...
arch/hexagon/kernel/vm_events.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Initial page table for Linux kernel under Hexagon VM, * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * These tables are pre-computed and linked into kernel. */ #include <asm/vm_mmu.h> /* #include <asm/iomap.h> */ /* * Start with...
arch/hexagon/kernel/vm_init_segtable.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Hexagon VM instruction support * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> #include <asm/hexagon_vm.h> /* * C wrappers for virtual machine "instructions". These * could be, and perhaps some day will be, h...
arch/hexagon/kernel/vm_ops.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Context switch support for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <asm/asm-offsets.h> .text /* * The register used as a fast-path thread information pointer * is determined as a kernel configuration option. I...
arch/hexagon/kernel/vm_switch.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Event jump tables * * Copyright (c) 2010-2012,2013, The Linux Foundation. All rights reserved. */ #include <asm/hexagon_vm.h> .text /* This is registered early on to allow angel */ .global _K_provisional_vec _K_provisional_vec: jump 1f; jump 1f; jump 1f; jum...
arch/hexagon/kernel/vm_vectors.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Linker script for Hexagon kernel * * Copyright (c) 2010-2014, The Linux Foundation. All rights reserved. */ #include <asm-generic/vmlinux.lds.h> #include <asm/asm-offsets.h> /* Most of the kernel defines are here */ #include <asm/mem-layout.h> /* except for page_...
arch/hexagon/kernel/vmlinux.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Checksum functions for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* This was derived from arch/alpha/lib/checksum.c */ #include <linux/module.h> #include <linux/string.h> #include <asm/byteorder.h> #include <net/checksum.h>...
arch/hexagon/lib/checksum.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2021, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> SYM_FUNC_START(__hexagon_divsi3) { p0 = cmp.gt(r0,#-1) p1 = cmp.gt(r1,#-1) r3:2 = vabsw(r1:0) } { ...
arch/hexagon/lib/divsi3.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * Description * * library function for memcpy where length bytes are copied from * ptr_in to ptr_out. ptr_out is returned unchanged. * Allows any combination of alignment on input and...
arch/hexagon/lib/memcpy.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2021, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> SYM_FUNC_START(__hexagon_memcpy_likely_aligned_min32bytes_mult8bytes) { p0 = bitsclr(r1,#7) p0 = bitsclr(r0,#7) if (p0...
arch/hexagon/lib/memcpy_likely_aligned.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2011, The Linux Foundation. All rights reserved. */ /* HEXAGON assembly optimized memset */ /* Replaces the standard library function memset */ .macro HEXAGON_OPT_FUNC_BEGIN name .text .p2align 4 .globl \name .type \name, @function \name:...
arch/hexagon/lib/memset.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2021, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> SYM_FUNC_START(__hexagon_modsi3) { p2 = cmp.ge(r0,#0) r2 = abs(r0) r1 = abs(r1) } { r3...
arch/hexagon/lib/modsi3.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2021, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> SYM_FUNC_START(__hexagon_udivsi3) { r2 = cl0(r0) r3 = cl0(r1) r5:4 = combine(#1,#0) p0 = cmp.gtu(r1,r0...
arch/hexagon/lib/udivsi3.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2021, The Linux Foundation. All rights reserved. */ #include <linux/linkage.h> SYM_FUNC_START(__hexagon_umodsi3) { r2 = cl0(r0) r3 = cl0(r1) p0 = cmp.gtu(r1,r0) } { ...
arch/hexagon/lib/umodsi3.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Cache management functions for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #include <linux/mm.h> #include <asm/cacheflush.h> #include <asm/hexagon_vm.h> #define spanlines(start, end) \ (((end - (start & ~(LINESIZE - 1))) >> LINE...
arch/hexagon/mm/cache.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * User memory copy functions for kernel * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * The right way to do this involves valignb * The easy way to do this is only speed up src/dest similar alignment. */ /* * Copy to/from user are ...
arch/hexagon/mm/copy_from_user.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * User memory copying routines for the Hexagon Kernel * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* The right way to do this involves valignb * The easy way to do this is only speed up src/dest similar alignment. */ /* * Copy to/fro...
arch/hexagon/mm/copy_to_user.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* Numerology: * WXYZ * W: width in bytes * X: Load=0, Store=1 * Y: Location 0=preamble,8=loop,9=epilog * Z: Location=0,handler=9 */ .text .global FUNCNAME .type FUNCNAME, @function .p2al...
arch/hexagon/mm/copy_user_template.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Memory subsystem initialization for Hexagon * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #include <linux/init.h> #include <linux/mm.h> #include <linux/memblock.h> #include <asm/atomic.h> #include <linux/highmem.h> #include <asm/tlb.h> #inc...
arch/hexagon/mm/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * Support for user memory access from kernel. This will * probably be inlined for performance at some point, but * for ease of debug, and to a lesser degree for code size, * we implement here ...
arch/hexagon/mm/uaccess.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Memory fault handling for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * Page fault handling for the Hexagon Virtual Machine. * Can also be called by a native port emulating the HVM * execptions. */ #include <asm/traps.h> #...
arch/hexagon/mm/vm_fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Hexagon Virtual Machine TLB functions * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ /* * The Hexagon Virtual Machine conceals the real workings of * the TLB, but there are one or two functions that need to * be instantiated for it, diffe...
arch/hexagon/mm/vm_tlb.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * LoongArch specific ACPICA environments and implementation * * Author: Jianmin Lv <lvjianmin@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_ACENV_H #define _ASM_LOON...
arch/loongarch/include/asm/acenv.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Jianmin Lv <lvjianmin@loongson.cn> * Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_ACPI_H #define _ASM_LOONGARCH_ACPI_H #include <asm/smp.h> #include <asm/suspend.h> #ifd...
arch/loongarch/include/asm/acpi.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from MIPS: * Copyright (C) 1996, 99 Ralf Baechle * Copyright (C) 2000, 2002 Maciej W. Rozycki * Copyright (C) 1990, 1999 by Silicon Graphics, Inc. */ #ifndef _ASM_ADDRSPACE_H #define _ASM_ADDR...
arch/loongarch/include/asm/addrspace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALTERNATIVE_ASM_H #define _ASM_ALTERNATIVE_ASM_H #ifdef __ASSEMBLER__ #include <asm/asm.h> /* * Issue one struct alt_instr descriptor entry (need to put it into * the section .altinstructions, see below). This entry contains * enough information for the alternat...
arch/loongarch/include/asm/alternative-asm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_ALTERNATIVE_H #define _ASM_ALTERNATIVE_H #ifndef __ASSEMBLER__ #include <linux/types.h> #include <linux/stddef.h> #include <linux/stringify.h> #include <asm/asm.h> struct alt_instr { s32 instr_offset; /* offset to original instruction */ s32 replace_offset; /* of...
arch/loongarch/include/asm/alternative.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_ASM_EXTABLE_H #define __ASM_ASM_EXTABLE_H #define EX_TYPE_NONE 0 #define EX_TYPE_FIXUP 1 #define EX_TYPE_UACCESS_ERR_ZERO 2 #define EX_TYPE_BPF 3 #ifdef __ASSEMBLER__ #define __ASM_EXTABLE_RAW(insn, fixup, type, data) \ .pushsection __ex_table, "a"; \...
arch/loongarch/include/asm/asm-extable.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #include <generated/asm-offsets.h>
arch/loongarch/include/asm/asm-offsets.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/uaccess.h> #include <asm/fpu.h> #include <asm/lbt.h> #include <asm/mmu_context.h> #include <asm/page.h> #include <asm/ftrace.h> #include <asm-generic/asm-prototypes.h> #ifdef CONFIG_ARCH_SUPPORTS_INT128 __int128_t __ashlti3(__int128_t a, int b); __int128_t __ashrt...
arch/loongarch/include/asm/asm-prototypes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Some useful macros for LoongArch assembler code * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from MIPS: * Copyright (C) 1995, 1996, 1997, 1999, 2001 by Ralf Baechle * Copyright (C) 1999 by Silicon Graphics, Inc. * Copyright (C) 2001 ...
arch/loongarch/include/asm/asm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_ASMMACRO_H #define _ASM_ASMMACRO_H #include <linux/sizes.h> #include <asm/asm-offsets.h> #include <asm/regdef.h> #include <asm/fpregdef.h> #include <asm/loongarch.h> #ifdef CONFIG_64BIT #defin...
arch/loongarch/include/asm/asmmacro.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Atomic operations (AMO). * * Copyright (C) 2020-2025 Loongson Technology Corporation Limited */ #ifndef _ASM_ATOMIC_AMO_H #define _ASM_ATOMIC_AMO_H #include <linux/types.h> #include <asm/barrier.h> #include <asm/cmpxchg.h> #define ATOMIC_OP(op, I, asm_op) \ static ...
arch/loongarch/include/asm/atomic-amo.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Atomic operations (LLSC). * * Copyright (C) 2024-2025 Loongson Technology Corporation Limited */ #ifndef _ASM_ATOMIC_LLSC_H #define _ASM_ATOMIC_LLSC_H #include <linux/types.h> #include <asm/barrier.h> #include <asm/cmpxchg.h> #define ATOMIC_OP(op, I, asm_op) \ stat...
arch/loongarch/include/asm/atomic-llsc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Atomic operations. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_ATOMIC_H #define _ASM_ATOMIC_H #include <linux/types.h> #include <asm/barrier.h> #include <asm/cmpxchg.h> #ifdef CONFIG_CPU_HAS_AMO #include <asm/atomic-amo.h> #else #...
arch/loongarch/include/asm/atomic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_BARRIER_H #define __ASM_BARRIER_H /* * Hint encoding: * * Bit4: ordering or completion (0: completion, 1: ordering) * Bit3: barrier for previous read (0: true, 1: false) * Bit2: barrier f...
arch/loongarch/include/asm/barrier.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BITOPS_H #define _ASM_BITOPS_H #include <linux/compiler.h> #ifndef _LINUX_BITOPS_H #error only <linux/bitops.h> can be included directly #endif #include <asm/barrier.h> #ifdef CONFIG_32BIT_R...
arch/loongarch/include/asm/bitops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __LOONGARCH_ASM_BITREV_H__ #define __LOONGARCH_ASM_BITREV_H__ #include <linux/swab.h> static __always_inline __attribute_const__ u32 __arch_bitrev32(u32 x) { u32 ret; asm("bitrev.w %0, %1" : "=r...
arch/loongarch/include/asm/bitrev.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BOOTINFO_H #define _ASM_BOOTINFO_H #include <linux/types.h> #include <asm/setup.h> const char *get_system_type(void); extern void init_environ(void); extern void memblock_init(void); extern v...
arch/loongarch/include/asm/bootinfo.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_BRANCH_H #define _ASM_BRANCH_H #include <asm/ptrace.h> static inline unsigned long exception_era(struct pt_regs *regs) { return regs->csr_era; } static inline void compute_return_era(struct ...
arch/loongarch/include/asm/branch.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_BUG_H #define __ASM_BUG_H #include <asm/break.h> #include <linux/stringify.h> #include <linux/objtool.h> #ifndef CONFIG_DEBUG_BUGVERBOSE #define _BUGVERBOSE_LOCATION(file, line) #else #define __BUGVERBOSE_LOCATION(file, line) \ .pushsection .rodata.str, "aMS", ...
arch/loongarch/include/asm/bug.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_CACHE_H #define _ASM_CACHE_H #define L1_CACHE_SHIFT CONFIG_L1_CACHE_SHIFT #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) #define ARCH_DMA_MINALIGN (16) #define __read_mostly __section(".data....
arch/loongarch/include/asm/cache.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_CACHEFLUSH_H #define _ASM_CACHEFLUSH_H #include <linux/mm.h> #include <asm/cpu-info.h> #include <asm/cacheops.h> static inline bool cache_present(struct cache_desc *cdesc) { return cdesc->fla...
arch/loongarch/include/asm/cacheflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Cache operations for the cache instruction. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CACHEOPS_H #define __ASM_CACHEOPS_H /* * Most cache ops are split into a 3 bit field identifying the cache, and a 2 * bit field identifying ...
arch/loongarch/include/asm/cacheops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2016 ARM Ltd. * Copyright (C) 2023 Loongson Technology Corporation Limited */ #ifndef __ASM_CHECKSUM_H #define __ASM_CHECKSUM_H #include <linux/bitops.h> #include <linux/in6.h> #ifdef CONFIG_64BIT #define _HAVE_ARCH_IPV6_CSUM __sum16 csum_ipv6_magic(c...
arch/loongarch/include/asm/checksum.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CLOCKSOURCE_H #define __ASM_CLOCKSOURCE_H #include <asm/vdso/clocksource.h> #endif /* __ASM_CLOCKSOURCE_H */
arch/loongarch/include/asm/clocksource.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CMPXCHG_H #define __ASM_CMPXCHG_H #include <linux/bits.h> #include <linux/build_bug.h> #include <asm/barrier.h> #include <asm/cpu-features.h> #define __xchg_amo_asm(amswap_db, m, val) \ ({ ...
arch/loongarch/include/asm/cmpxchg.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited * * Derived from MIPS: * Copyright (C) 2003, 2004 Ralf Baechle * Copyright (C) 2004 Maciej W. Rozycki */ #ifndef __ASM_CPU_FEATURES_H #define __ASM_CPU_FEATURES_H #include <asm/cpu.h> #include <asm/cpu-in...
arch/loongarch/include/asm/cpu-features.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CPU_INFO_H #define __ASM_CPU_INFO_H #include <linux/cache.h> #include <linux/types.h> #include <asm/loongarch.h> /* cache_desc->flags */ enum { CACHE_PRESENT = (1 << 0), CACHE_PRIVATE = (1...
arch/loongarch/include/asm/cpu-info.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * cpu.h: Values of the PRID register used to match up * various LoongArch CPU types. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_CPU_H #define _ASM_CPU_H /* * As described in LoongArch specs from Loongson Technology, the PRID reg...
arch/loongarch/include/asm/cpu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * CPU feature definitions for module loading, used by * module_cpu_feature_match(), see uapi/asm/hwcap.h for LoongArch CPU features. * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_CPUFEATURE_H #define __ASM_CPUFEATURE_H #include <uap...
arch/loongarch/include/asm/cpufeature.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _LOONGARCH_CRASH_RESERVE_H #define _LOONGARCH_CRASH_RESERVE_H #define CRASH_ALIGN SZ_2M #define CRASH_ADDR_LOW_MAX SZ_4G #define CRASH_ADDR_HIGH_MAX memblock_end_of_DRAM() extern phys_addr_t memblock_end_of_DRAM(void); #endif
arch/loongarch/include/asm/crash_reserve.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_DELAY_H #define _ASM_DELAY_H #include <linux/param.h> extern void __delay(unsigned long cycles); extern void __ndelay(unsigned long ns); extern void __udelay(unsigned long us); #define ndelay...
arch/loongarch/include/asm/delay.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_DMA_H #define __ASM_DMA_H #define MAX_DMA_ADDRESS PAGE_OFFSET #define MAX_DMA32_PFN (1UL << (32 - PAGE_SHIFT)) #endif
arch/loongarch/include/asm/dma.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_DMI_H #define _ASM_DMI_H #include <linux/io.h> #include <linux/memblock.h> #define dmi_early_remap(x, l) dmi_remap(x, l) #define dmi_early_unmap(x, l) dmi_unmap(x) #define dmi_alloc(l) memblo...
arch/loongarch/include/asm/dmi.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_EFI_H #define _ASM_LOONGARCH_EFI_H #include <linux/efi.h> void __init efi_init(void); void __init efi_runtime_init(void); void __init *efi_fdt_pointer(void); void efifb_setup_from_dm...
arch/loongarch/include/asm/efi.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_ELF_H #define _ASM_ELF_H #include <linux/auxvec.h> #include <linux/fs.h> #include <uapi/linux/elf.h> #include <asm/current.h> #include <asm/vdso.h> /* The ABI of a file. */ #define EF_LOONGAR...
arch/loongarch/include/asm/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef ARCH_LOONGARCH_ENTRY_COMMON_H #define ARCH_LOONGARCH_ENTRY_COMMON_H #include <asm/stacktrace.h> /* For on_thread_stack() */ #endif
arch/loongarch/include/asm/entry-common.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_EXCEPTION_H #define __ASM_EXCEPTION_H #include <asm/ptrace.h> #include <linux/kprobes.h> extern void *exception_table[]; void show_registers(struct pt_regs *regs); asmlinkage void cache_parity_error(void); asmlinkage void noinstr do_ade(struct pt_regs *regs...
arch/loongarch/include/asm/exception.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_EXEC_H #define _ASM_EXEC_H extern unsigned long arch_align_stack(unsigned long sp); #endif /* _ASM_EXEC_H */
arch/loongarch/include/asm/exec.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_LOONGARCH_EXTABLE_H #define _ASM_LOONGARCH_EXTABLE_H /* * The exception table consists of pairs of relative offsets: the first * is the relative offset to an instruction that is allowed to fault, * and the second is the relative offset at which the program should ...
arch/loongarch/include/asm/extable.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * fixmap.h: compile-time virtual memory allocation * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FIXMAP_H #define _ASM_FIXMAP_H #define NR_FIX_BTMAPS 64 enum fixed_addresses { FIX_HOLE, FIX_EARLYCON_MEM_BASE, __end_of_fixed_addres...
arch/loongarch/include/asm/fixmap.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Definitions for the FPU register names * * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FPREGDEF_H #define _ASM_FPREGDEF_H #define fa0 $f0 /* argument registers, fa0/fa1 reused as fv0/fv1 for return value */ #define fa1 $f1 #define fa2 ...
arch/loongarch/include/asm/fpregdef.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_LOONGARCH_FPROBE_H #define _ASM_LOONGARCH_FPROBE_H /* * Explicitly undef ARCH_DEFINE_ENCODE_FPROBE_HEADER, because loongarch does not * have enough number of fixed MSBs of the address of kernel objects for * encoding the size of data in fprobe_header. Use 2-entrie...
arch/loongarch/include/asm/fprobe.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Huacai Chen <chenhuacai@loongson.cn> * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FPU_H #define _ASM_FPU_H #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/ptrace.h> #include <linux/thread_info.h> #i...
arch/loongarch/include/asm/fpu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2022 Loongson Technology Corporation Limited */ #ifndef _ASM_LOONGARCH_FTRACE_H #define _ASM_LOONGARCH_FTRACE_H #define FTRACE_PLT_IDX 0 #define FTRACE_REGS_PLT_IDX 1 #define NR_FTRACE_PLTS 2 #ifdef CONFIG_FUNCTION_TRACER #define MCOUNT_INSN_SIZE 4 /* s...
arch/loongarch/include/asm/ftrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_FUTEX_H #define _ASM_FUTEX_H #include <linux/futex.h> #include <linux/uaccess.h> #include <asm/asm-extable.h> #include <asm/barrier.h> #include <asm/errno.h> #define __futex_atomic_op(insn, re...
arch/loongarch/include/asm/futex.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __ASM_GPR_NUM_H #define __ASM_GPR_NUM_H #ifdef __ASSEMBLER__ .equ .L__gpr_num_zero, 0 .irp num,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 .equ .L__gpr_num_$r\num, \num .endr /* ABI names of registers */ .equ .L__gpr_nu...
arch/loongarch/include/asm/gpr-num.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_HARDIRQ_H #define _ASM_HARDIRQ_H #include <linux/cache.h> #include <linux/threads.h> #include <linux/irq.h> extern void ack_bad_irq(unsigned int irq); #define ack_bad_irq ack_bad_irq #define ...
arch/loongarch/include/asm/hardirq.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_HUGETLB_H #define __ASM_HUGETLB_H #include <asm/page.h> uint64_t pmd_to_entrylo(unsigned long pmd_val); #define __HAVE_ARCH_HUGE_PTE_CLEAR static inline void huge_pte_clear(struct mm_struct...
arch/loongarch/include/asm/hugetlb.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2022-2023 Loongson Technology Corporation Limited */ #ifndef __ASM_HW_BREAKPOINT_H #define __ASM_HW_BREAKPOINT_H #include <asm/loongarch.h> #ifdef __KERNEL__ /* Breakpoint */ #define LOONGARCH_BREAKPOINT_EXECUTE (0 << 0) /* Watchpoints */ #define LOONGARC...
arch/loongarch/include/asm/hw_breakpoint.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef __ASM_HW_IRQ_H #define __ASM_HW_IRQ_H #include <linux/atomic.h> extern atomic_t irq_err_count; #define ARCH_IRQ_INIT_FLAGS IRQ_NOPROBE /* * interrupt-retrigger: NOP for now. This may not be appr...
arch/loongarch/include/asm/hw_irq.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_IDLE_H #define __ASM_IDLE_H #include <linux/linkage.h> extern asmlinkage void __arch_cpu_idle(void); #endif /* __ASM_IDLE_H */
arch/loongarch/include/asm/idle.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * LoongArch binary image header for EFI(PE/COFF) format. * * Author: Youling Tang <tangyouling@kylinos.cn> * Copyright (C) 2025 KylinSoft Corporation. */ #ifndef __ASM_IMAGE_H #define __ASM_IMAGE_H #ifndef __ASSEMBLER__ /** * struct loongarch_image_header * * @dos_si...
arch/loongarch/include/asm/image.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2020-2022 Loongson Technology Corporation Limited */ #ifndef _ASM_INST_H #define _ASM_INST_H #include <linux/bitops.h> #include <linux/types.h> #include <asm/asm.h> #include <asm/ptrace.h> #define INSN_NOP 0x03400000 #define INSN_BREAK 0x002a0000 #define I...
arch/loongarch/include/asm/inst.h
null
null
null
null
null