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-only #include <linux/jump_label.h> #include <linux/kernel.h> #include <linux/memory.h> #include <linux/mutex.h> #include <linux/uaccess.h> #include <asm/cacheflush.h> #define NOP32_HI 0xc400 #define NOP32_LO 0x4820 #define BSR_LINK 0xe000 void arch_jump_label_transform(struct jump...
arch/csky/kernel/jump_label.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/moduleloader.h> #include <linux/elf.h> #include <linux/mm.h> #include <linux/vmalloc.h> #include <linux/slab.h> #include <linux/fs.h> #include <linux/string.h> #include <linux/kernel.h> #include <linux/spinlo...
arch/csky/kernel/module.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2019 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/perf_event.h> #include <linux/uaccess.h> /* Kernel callchain */ struct stackframe { unsigned long fp; unsigned long lr; }; static int unwind_frame_kernel(struct stackframe *frame) { unsigned long low = (...
arch/csky/kernel/perf_callchain.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/errno.h> #include <linux/interrupt.h> #include <linux/module.h> #include <linux/of.h> #include <linux/perf_event.h> #include <linux/platform_device.h> #define CSKY_PMU_MAX_EVENTS 32 #define DEFAULT_COUNT_WID...
arch/csky/kernel/perf_event.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2019 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/errno.h> #include <linux/kernel.h> #include <linux/perf_event.h> #include <linux/bug.h> #include <asm/perf_regs.h> #include <asm/ptrace.h> u64 perf_reg_value(struct pt_regs *regs, int idx) { if (WARN_ON_ONC...
arch/csky/kernel/perf_regs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/reboot.h> void (*pm_power_off)(void); EXPORT_SYMBOL(pm_power_off); void machine_power_off(void) { local_irq_disable(); do_kernel_power_off(); asm volatile ("bkpt"); } void machine_halt(void) { local_ir...
arch/csky/kernel/power.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/module.h> #include <linux/sched.h> #include <linux/sched/task_stack.h> #include <linux/sched/debug.h> #include <linux/delay.h> #include <linux/kallsyms.h> #include <linux/uaccess.h> #include <linux/ptrace.h> ...
arch/csky/kernel/process.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/audit.h> #include <linux/elf.h> #include <linux/errno.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/ptrace.h> #include <linux/regset.h> #include <linux/sched.h> #include <linux/sched/task...
arch/csky/kernel/ptrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/console.h> #include <linux/memblock.h> #include <linux/initrd.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <linux/start_kernel.h> #include <linux/dma-map-ops.h> #include <asm/sections.h> #inclu...
arch/csky/kernel/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/signal.h> #include <linux/uaccess.h> #include <linux/syscalls.h> #include <linux/resume_user_mode.h> #include <asm/traps.h> #include <asm/ucontext.h> #include <asm/vdso.h> #include <abi/regdef.h> #ifdef CONFIG_CPU_HAS_FPU #include <abi/fpu.h> static int restore_fp...
arch/csky/kernel/signal.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/sched.h> #include <linux/kernel_stat.h> #include <linux/notifier.h> #include <linux/cpu.h> #include <linux/percpu.h> #include <linux/delay.h> #include <linux/err.h> #inc...
arch/csky/kernel/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/sched/debug.h> #include <linux/sched/task_stack.h> #include <linux/stacktrace.h> #include <linux/ftrace.h> #include <linux/ptrace.h> #ifdef CONFIG_FRAME_POINTER struct stackframe { unsigned long fp; unsigned long ra; }; void notrace walk_stackframe(struct task_s...
arch/csky/kernel/stacktrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/syscalls.h> SYSCALL_DEFINE1(set_thread_area, unsigned long, addr) { struct thread_info *ti = task_thread_info(current); struct pt_regs *reg = current_pt_regs(); reg->tls = addr; ti->tp_value = addr; r...
arch/csky/kernel/syscall.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/syscalls.h> #include <asm/syscalls.h> #undef __SYSCALL #define __SYSCALL(nr, call)[nr] = (call), #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) #define sys_fadvise64_64 sys_csky_fad...
arch/csky/kernel/syscall_table.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/clocksource.h> #include <linux/of_clk.h> void __init time_init(void) { of_clk_init(NULL); timer_probe(); }
arch/csky/kernel/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/cpu.h> #include <linux/sched.h> #include <linux/signal.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/user.h> #include <linux/string.h> #include <linux/linkage.h>...
arch/csky/kernel/traps.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/binfmts.h> #include <linux/elf.h> #include <linux/err.h> #include <linux/mm.h> #include <linux/slab.h> #include <asm/page.h> extern char vdso_start[], vdso_end[]; static unsigned int vdso_pages; static str...
arch/csky/kernel/vdso.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm/vmlinux.lds.h> #include <asm/page.h> #include <asm/memory.h> OUTPUT_ARCH(csky) ENTRY(_start) #ifndef __cskyBE__ jiffies = jiffies_64; #else jiffies = jiffies_64 + 4; #endif #define VBR_BASE \ . = ALIGN(1024); \ vec_base = .; \ . += 512; SECTIONS { . = PAGE_O...
arch/csky/kernel/vmlinux.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <linux/kernel.h> #include <linux/kprobes.h> #include <linux/module.h> #include <linux/kallsyms.h> #include <asm/sections.h> #include "decode-insn.h" #include "simulate-insn.h" /* Return: * INSN_REJECTED If instruction is one not allowed to kprobe, * INSN_GOOD_N...
arch/csky/kernel/probes/decode-insn.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #ifndef __CSKY_KERNEL_KPROBES_DECODE_INSN_H #define __CSKY_KERNEL_KPROBES_DECODE_INSN_H #include <asm/sections.h> #include <asm/kprobes.h> enum probe_insn { INSN_REJECTED, INSN_GOOD_NO_SLOT, INSN_GOOD, }; #define is_insn32(insn) ((insn & 0xc000) == 0xc000) enum probe_insn...
arch/csky/kernel/probes/decode-insn.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kprobes.h> /* Ftrace callback handler for kprobes -- called under preepmt disabled */ void kprobe_ftrace_handler(unsigned long ip, unsigned long parent_ip, struct ftrace_ops *ops, struct ftrace_regs *fregs) { int bit; bool lr_saver = false; struct kprobe *p...
arch/csky/kernel/probes/ftrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #define pr_fmt(fmt) "kprobes: " fmt #include <linux/kprobes.h> #include <linux/extable.h> #include <linux/slab.h> #include <linux/stop_machine.h> #include <asm/ptrace.h> #include <linux/uaccess.h> #include <asm/sections.h> #include <asm/cacheflush.h> #include "decode-insn.h" DEF...
arch/csky/kernel/probes/kprobes.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #include <linux/linkage.h> #include <abi/entry.h> ENTRY(__kretprobe_trampoline) SAVE_REGS_FTRACE mov a0, sp /* pt_regs */ jbsr trampoline_probe_handler /* use the result as the return-address */ mov lr, a0 RESTORE_REGS_FTRACE rts ENDPROC(__kretprobe_trampoline)
arch/csky/kernel/probes/kprobes_trampoline.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/kprobes.h> #include "decode-insn.h" #include "simulate-insn.h" static inline bool csky_insn_reg_get_val(struct pt_regs *regs, unsigned long index, unsigned long *ptr) { if (index < 14) *ptr = *(&re...
arch/csky/kernel/probes/simulate-insn.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #ifndef __CSKY_KERNEL_PROBES_SIMULATE_INSN_H #define __CSKY_KERNEL_PROBES_SIMULATE_INSN_H #define __CSKY_INSN_FUNCS(name, mask, val) \ static __always_inline bool csky_insn_is_##name(probe_opcode_t code) \ { \ BUILD_BUG_ON(~(mask) & (val)); \ return (code & (ma...
arch/csky/kernel/probes/simulate-insn.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2014-2016 Pratyush Anand <panand@redhat.com> */ #include <linux/highmem.h> #include <linux/ptrace.h> #include <linux/uprobes.h> #include <asm/cacheflush.h> #include "decode-insn.h" #define UPROBE_TRAP_NR UINT_MAX bool is_swbp_insn(uprobe_opcode_t *insn) {...
arch/csky/kernel/probes/uprobes.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This supplies .note.* sections to go into the PT_NOTE inside the vDSO text. * Here we can supply some information useful to userland. */ #include <linux/elfnote.h> #include <linux/version.h> ELFNOTE_START(Linux, 0, "a") .long LINUX_VERSION_CODE ELFNOTE_END
arch/csky/kernel/vdso/note.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/linkage.h> #include <asm/unistd.h> #include <abi/vdso.h> .text ENTRY(__vdso_rt_sigreturn) .cfi_startproc .cfi_signal_frame SET_SYSCALL_ID trap 0 .cfi_endproc ENDPROC(__vdso_rt_sigreturn)
arch/csky/kernel/vdso/rt_sigreturn.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <linux/init.h> #include <linux/linkage.h> #include <asm/page.h> __PAGE_ALIGNED_DATA .globl vdso_start, vdso_end .balign PAGE_SIZE vdso_start: .incbin "arch/csky/kernel/vdso/vdso.so" .balign PAGE_SIZE vdso_end: .previous
arch/csky/kernel/vdso/vdso.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #include <asm/page.h> OUTPUT_ARCH(csky) SECTIONS { PROVIDE(_vdso_data = . + PAGE_SIZE); . = SIZEOF_HEADERS; .hash : { *(.hash) } :text .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version : { *(.gnu.version) } .gnu.versi...
arch/csky/kernel/vdso/vdso.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> #include <linux/delay.h> void __aligned(8) __delay(unsigned long loops) { asm volatile ( "mov r0, r0\n" "1:declt %0\n" "bf 1b" : "=r"(loops...
arch/csky/lib/delay.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/error-injection.h> #include <linux/kprobes.h> void override_function_with_return(struct pt_regs *regs) { instruction_pointer_set(regs, regs->lr); } NOKPROBE_SYMBOL(override_function_with_return);
arch/csky/lib/error-inject.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * String functions optimized for hardware which doesn't * handle unaligned memory accesses efficiently. * * Copyright (C) 2021 Matteo Croce */ #include <linux/types.h> #include <linux/module.h> /* Minimum size for a word copy to be convenient */ #define BYTES_LONG size...
arch/csky/lib/string.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/uaccess.h> #include <linux/types.h> unsigned long raw_copy_from_user(void *to, const void *from, unsigned long n) { int tmp, nsave; __asm__ __volatile__( "0: cmpnei %1, 0 \n" " b...
arch/csky/lib/usercopy.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Generic ASID allocator. * * Based on arch/arm/mm/context.c * * Copyright (C) 2002-2003 Deep Blue Solutions Ltd, all rights reserved. * Copyright (C) 2012 ARM Ltd. */ #include <linux/slab.h> #include <linux/mm_types.h> #include <asm/asid.h> #define reserved_asid(info, c...
arch/csky/mm/asid.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/spinlock.h> #include <asm/cache.h> #include <abi/reg_ops.h> /* for L1-cache */ #define INS_CACHE (1 << 0) #define DATA_CACHE (1 << 1) #define CACHE_INV (1 << 4) #define CACHE_CLR (1 << 5) #define CACHE_O...
arch/csky/mm/cachev1.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/spinlock.h> #include <linux/smp.h> #include <linux/mm.h> #include <asm/cache.h> #include <asm/barrier.h> /* for L1-cache */ #define INS_CACHE (1 << 0) #define DATA_CACHE (1 << 1) #define CACHE_INV (1 << 4...
arch/csky/mm/cachev2.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/bitops.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/mm.h> #include <asm/asid.h> #include <asm/mmu_context.h> #include <asm/smp.h> #include <asm/tlbflush.h> static DEFINE_PER_CPU(atomi...
arch/csky/mm/context.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/cache.h> #include <linux/dma-map-ops.h> #include <linux/genalloc.h> #include <linux/highmem.h> #include <linux/io.h> #include <linux/mm.h> #include <linux/scatterlist.h> #include <linux/types.h> #include <asm...
arch/csky/mm/dma-mapping.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/extable.h> #include <linux/kprobes.h> #include <linux/mmu_context.h> #include <linux/perf_event.h> int fixup_exception(struct pt_regs *regs) { const struct exception_table_entry *fixup; fixup = search_exc...
arch/csky/mm/fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/module.h> #include <linux/highmem.h> #include <linux/smp.h> #include <linux/memblock.h> #include <asm/fixmap.h> #include <asm/tlbflush.h> #include <asm/cacheflush.h> unsigned long highstart_pfn, highend_pfn;...
arch/csky/mm/highmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/bug.h> #include <linux/module.h> #include <linux/init.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> #include <linux/types.h...
arch/csky/mm/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/export.h> #include <linux/mm.h> #include <linux/io.h> pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn, unsigned long size, pgprot_t vma_prot) { if (!pfn_valid(pfn)) { return pg...
arch/csky/mm/ioremap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/syscalls.h> #include <asm/page.h> #include <asm/cacheflush.h> #include <asm/cachectl.h> SYSCALL_DEFINE3(cacheflush, void __user *, addr, unsigned long, bytes, int, cache) { switch (cache) { case BCAC...
arch/csky/mm/syscache.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/highmem.h> #include <linux/genalloc.h> #include <asm/tlbflush.h> #include <asm/fixmap.h> #if (CONFIG_ITCM_RAM_BASE == 0xffffffff) #error "You should define ITCM_RAM_BASE" #endif #ifdef CONFIG_HAVE_DTCM #if (CONFIG_DTCM_RAM_BASE == 0xffffffff) #error "You should def...
arch/csky/mm/tcm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. #include <linux/init.h> #include <linux/mm.h> #include <linux/module.h> #include <linux/sched.h> #include <asm/mmu_context.h> #include <asm/setup.h> /* * One C-SKY MMU TLB entry contain two PFN/page entry, ie: * 1VPN -> ...
arch/csky/mm/tlb.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Atomic operations for the Hexagon architecture * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #ifndef _ASM_ATOMIC_H #define _ASM_ATOMIC_H #include <linux/types.h> #include <asm/cmpxchg.h> #include <asm/barrier.h> /* Normal writes in ou...
arch/hexagon/include/asm/atomic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Bit operations for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_BITOPS_H #define _ASM_BITOPS_H #include <linux/compiler.h> #include <asm/byteorder.h> #include <asm/atomic.h> #include <asm/barrier.h...
arch/hexagon/include/asm/bitops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Cache definitions for the Hexagon architecture * * Copyright (c) 2010-2011,2014 The Linux Foundation. All rights reserved. */ #ifndef __ASM_CACHE_H #define __ASM_CACHE_H /* Bytes per L1 cache line */ #define L1_CACHE_SHIFT (5) #define L1_CACHE_BYTES (1 << L1_CACH...
arch/hexagon/include/asm/cache.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Cache flush operations for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_CACHEFLUSH_H #define _ASM_CACHEFLUSH_H #include <linux/mm_types.h> /* Cache flushing: * * - flush_cache_all() flushes ent...
arch/hexagon/include/asm/cacheflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_CHECKSUM_H #define _ASM_CHECKSUM_H #define do_csum do_csum unsigned int do_csum(const void *voidptr, int len); /* * computes the checksum of the TCP/UDP pseudo-header * returns a 1...
arch/hexagon/include/asm/checksum.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * xchg/cmpxchg operations for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_CMPXCHG_H #define _ASM_CMPXCHG_H /* * __arch_xchg - atomically exchange a register and a memory location * @x: value to sw...
arch/hexagon/include/asm/cmpxchg.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_DELAY_H #define _ASM_DELAY_H #include <asm/param.h> extern void __delay(unsigned long cycles); extern void __udelay(unsigned long usecs); #define udelay(usecs) __udelay((usecs)) #e...
arch/hexagon/include/asm/delay.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_DMA_H #define _ASM_DMA_H #include <asm/io.h> #define MAX_DMA_CHANNELS 1 #define MAX_DMA_ADDRESS (PAGE_OFFSET) extern size_t hexagon_coherent_pool_size; #endif
arch/hexagon/include/asm/dma.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * ELF definitions for the Hexagon architecture * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #ifndef __ASM_ELF_H #define __ASM_ELF_H #include <asm/ptrace.h> #include <asm/user.h> #include <linux/elf-em.h> struct elf32_hdr; /* * ELF hea...
arch/hexagon/include/asm/elf.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Process execution related definitions for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_EXEC_H #define _ASM_EXEC_H /* Should probably shoot for an 8-byte aligned stack pointer */ #define STACK_MAS...
arch/hexagon/include/asm/exec.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Fixmap support for Hexagon - enough to support highmem features * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_FIXMAP_H #define _ASM_FIXMAP_H /* * A lot of the fixmap info is already in mem-layout.h */ #include <asm/mem-la...
arch/hexagon/include/asm/fixmap.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_HEXAGON_FUTEX_H #define _ASM_HEXAGON_FUTEX_H #ifdef __KERNEL__ #include <linux/futex.h> #include <linux/uaccess.h> #include <asm/errno.h> /* XXX TODO-- need to add sync barriers! */ #define __futex_atomic_op(insn, ret, oldval, uaddr, oparg) \ __asm__ __volatile( ...
arch/hexagon/include/asm/futex.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Declarations for to Hexagon Virtal Machine. * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #ifndef ASM_HEXAGON_VM_H #define ASM_HEXAGON_VM_H /* * In principle, a Linux kernel for the VM could * selectively define the virtual instructio...
arch/hexagon/include/asm/hexagon_vm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_HEXAGON_INTRINSICS_H #define _ASM_HEXAGON_INTRINSICS_H #define HEXAGON_P_vrmpyhacc_PP __builtin_HEXAGON_M2_vrmac_s0 #define HEXAGON_P_vrmpyh_PP __builtin_HEXAGON_M2_vrmpy_s0 #define H...
arch/hexagon/include/asm/intrinsics.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * IO definitions for the Hexagon architecture * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #ifndef _ASM_IO_H #define _ASM_IO_H #include <linux/types.h> #include <asm/page.h> #include <asm/cacheflush.h> extern int remap_area_pages(unsign...
arch/hexagon/include/asm/io.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_IRQ_H_ #define _ASM_IRQ_H_ /* Number of first-level interrupts associated with the CPU core. */ #define HEXAGON_CPUINTS 32 /* * Must define NR_IRQS before including <asm-generic/irq...
arch/hexagon/include/asm/irq.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * IRQ support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_IRQFLAGS_H #define _ASM_IRQFLAGS_H #include <asm/hexagon_vm.h> #include <linux/types.h> static inline unsigned long arch_local_save_fla...
arch/hexagon/include/asm/irqflags.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * arch/hexagon/include/asm/kgdb.h - Hexagon KGDB Support * * Copyright (c) 2011, The Linux Foundation. All rights reserved. */ #ifndef __HEXAGON_KGDB_H__ #define __HEXAGON_KGDB_H__ #define BREAK_INSTR_SIZE 4 #define CACHE_FLUSH_IS_SAFE 1 #define BUFMAX ((NUMR...
arch/hexagon/include/asm/kgdb.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef __ASM_LINKAGE_H #define __ASM_LINKAGE_H #define __ALIGN .align 4 #define __ALIGN_STR ".align 4" #endif
arch/hexagon/include/asm/linkage.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Memory layout definitions for the Hexagon architecture * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #ifndef _ASM_HEXAGON_MEM_LAYOUT_H #define _ASM_HEXAGON_MEM_LAYOUT_H #include <linux/const.h> /* * Have to do this for ginormous numbe...
arch/hexagon/include/asm/mem-layout.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_MMU_H #define _ASM_MMU_H #include <asm/vdso.h> /* * Architecture-specific state for a mm_struct. * For the Hexagon Virtual Machine, it can be a copy * of the pointer to the page t...
arch/hexagon/include/asm/mmu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * MM context support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_MMU_CONTEXT_H #define _ASM_MMU_CONTEXT_H #include <linux/mm_types.h> #include <asm/setup.h> #include <asm/page.h> #include <asm/...
arch/hexagon/include/asm/mmu_context.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Page management definitions for the Hexagon architecture * * Copyright (c) 2010-2013, The Linux Foundation. All rights reserved. */ #ifndef _ASM_PAGE_H #define _ASM_PAGE_H #include <linux/const.h> /* This is probably not the most graceful way to handle this. */ ...
arch/hexagon/include/asm/page.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_PERF_EVENT_H #define _ASM_PERF_EVENT_H #endif /* _ASM_PERF_EVENT_H */
arch/hexagon/include/asm/perf_event.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Page table support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_PGALLOC_H #define _ASM_PGALLOC_H #include <asm/mem-layout.h> #include <asm/atomic.h> #include <asm-generic/pgalloc.h> extern un...
arch/hexagon/include/asm/pgalloc.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Page table support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_PGTABLE_H #define _ASM_PGTABLE_H /* * Page table definitions for Qualcomm Hexagon processor. */ #include <asm/page.h> #include ...
arch/hexagon/include/asm/pgtable.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Process/processor support for the Hexagon architecture * * Copyright (c) 2010-2012, The Linux Foundation. All rights reserved. */ #ifndef _ASM_PROCESSOR_H #define _ASM_PROCESSOR_H #ifndef __ASSEMBLY__ #include <asm/mem-layout.h> #include <asm/registers.h> #include...
arch/hexagon/include/asm/processor.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Ptrace definitions for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_HEXAGON_PTRACE_H #define _ASM_HEXAGON_PTRACE_H #include <uapi/asm/ptrace.h> /* kprobe-based event tracer support */ extern int regs_q...
arch/hexagon/include/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. * * only version 2 as published by the Free Software Foundation. */ #ifndef _ASM_HEXAGON_SETUP_H #define _ASM_HEXAGON_SETUP_H #include <linux/init.h> #include <uapi/asm/setup.h> extern char extern...
arch/hexagon/include/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/asm/signal.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * SMP definitions for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef __ASM_SMP_H #define __ASM_SMP_H #include <linux/cpumask.h> #define raw_smp_processor_id() (current_thread_info()->cpu) enum ipi_message...
arch/hexagon/include/asm/smp.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Spinlock support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_SPINLOCK_H #define _ASM_SPINLOCK_H #include <asm/irqflags.h> #include <asm/barrier.h> #include <asm/processor.h> /* * This file i...
arch/hexagon/include/asm/spinlock.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Spinlock support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_SPINLOCK_TYPES_H #define _ASM_SPINLOCK_TYPES_H #ifndef __LINUX_SPINLOCK_TYPES_RAW_H # error "Please do not include this file direct...
arch/hexagon/include/asm/spinlock_types.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_STRING_H_ #define _ASM_STRING_H_ #ifdef __KERNEL__ #define __HAVE_ARCH_MEMCPY extern void *memcpy(void *__to, __const__ void *__from, size_t __n); /* ToDo: use dczeroa, accelerate ...
arch/hexagon/include/asm/string.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_SUSPEND_H #define _ASM_SUSPEND_H static inline int arch_prepare_suspend(void) { return 0; } #endif
arch/hexagon/include/asm/suspend.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Task switching definitions for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_SWITCH_TO_H #define _ASM_SWITCH_TO_H struct thread_struct; extern struct task_struct *__switch_to(struct task_struct *, ...
arch/hexagon/include/asm/switch_to.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Syscall support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_HEXAGON_SYSCALL_H #define _ASM_HEXAGON_SYSCALL_H #include <uapi/linux/audit.h> #include <linux/err.h> #include <asm/ptrace.h> typed...
arch/hexagon/include/asm/syscall.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm-generic/syscalls.h> asmlinkage long sys_hexagon_fadvise64_64(int fd, int advice, u32 a2, u32 a3, u32 a4, u32 a5);
arch/hexagon/include/asm/syscalls.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Thread support for the Hexagon architecture * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_THREAD_INFO_H #define _ASM_THREAD_INFO_H #ifdef __KERNEL__ #ifndef __ASSEMBLY__ #include <asm/processor.h> #include <asm/registers.h...
arch/hexagon/include/asm/thread_info.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef ASM_TIME_H #define ASM_TIME_H extern cycles_t pcycle_freq_mhz; extern cycles_t thread_freq_mhz; extern cycles_t sleep_clk_freq; void setup_percpu_clockdev(void); void...
arch/hexagon/include/asm/time.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_TIMEX_H #define _ASM_TIMEX_H #include <asm-generic/timex.h> #include <asm/hexagon_vm.h> /* Using TCX0 as our clock. CLOCK_TICK_RATE scheduled to be removed. */ #define CLOCK_TICK_RA...
arch/hexagon/include/asm/timex.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_TLB_H #define _ASM_TLB_H #include <linux/pagemap.h> #include <asm/tlbflush.h> #include <asm-generic/tlb.h> #endif
arch/hexagon/include/asm/tlb.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * TLB flush support for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_TLBFLUSH_H #define _ASM_TLBFLUSH_H #include <linux/mm.h> #include <asm/processor.h> /* * TLB flushing -- in "SMP", these routines get defined to ...
arch/hexagon/include/asm/tlbflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Trap support for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_HEXAGON_TRAPS_H #define _ASM_HEXAGON_TRAPS_H #include <asm/registers.h> extern int die(const char *str, struct pt_regs *regs, long err); extern int die...
arch/hexagon/include/asm/traps.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * User memory access support for Hexagon * * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_UACCESS_H #define _ASM_UACCESS_H /* * User space memory access functions */ #include <asm/sections.h> /* * When a kernel-mode page faul...
arch/hexagon/include/asm/uaccess.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ #define __ARCH_WANT_STAT64 #define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_FORK #define __ARCH_BROKEN_SYS_CLONE3 #include <uapi/asm/unistd.h>
arch/hexagon/include/asm/unistd.h
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. */ #ifndef __ASM_VDSO_H #define __ASM_VDSO_H #include <linux/types.h> struct hexagon_vdso { u32 rt_signal_trampoline[2]; }; #endif /* __ASM_VDSO_H */
arch/hexagon/include/asm/vdso.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_VERMAGIC_H #define _ASM_VERMAGIC_H #include <linux/stringify.h> #define MODULE_ARCH_VERMAGIC __stringify(PROCESSOR_MODEL_NAME) " " #endif /* _ASM_VERMAGIC_H */
arch/hexagon/include/asm/vermagic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. */ #ifndef _ASM_HEXAGON_VM_FAULT_H #define _ASM_HEXAGON_VM_FAULT_H extern void execute_protection_fault(struct pt_regs *); extern void write_protection_fault(struct pt_regs *); extern void read_prote...
arch/hexagon/include/asm/vm_fault.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Hexagon VM page table entry definitions * * Copyright (c) 2010-2011,2013 The Linux Foundation. All rights reserved. */ #ifndef _ASM_VM_MMU_H #define _ASM_VM_MMU_H /* * Shift, mask, and other constants for the Hexagon Virtual Machine * page tables. * * Virtual m...
arch/hexagon/include/asm/vm_mmu.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/byteorder.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/param.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Ptrace definitions for the Hexagon architecture * * 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 ...
arch/hexagon/include/uapi/asm/ptrace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * Register definitions for the Hexagon architecture */ #ifndef _ASM_REGISTERS_H #define _ASM_REGISTERS_H #ifndef __ASSEMBLY__ /* See kernel/entry.S for further documentation. */ /* * Entry code copies the event record out of guest registers int...
arch/hexagon/include/uapi/asm/registers.h
null
null
null
null
null