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 */ /* * * Copyright IBM Corp. 2007 * Copyright 2011 Freescale Semiconductor, Inc. * * Authors: Hollis Blanchard <hollisb@us.ibm.com> */ #include <asm/ppc_asm.h> #include <asm/kvm_asm.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/asm-offsets.h> /* The host s...
arch/powerpc/kvm/booke_interrupts.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright (C) 2010-2011 Freescale Semiconductor, Inc. * * Author: Varun Sethi <varun.sethi@freescale.com> * Author: Scott Wood <scotwood@freescale.com> * Author: Mihai Caraman <mihai.caraman@freescale.com> * * This file is derived from arch/powerpc/kvm/booke_in...
arch/powerpc/kvm/bookehv_interrupts.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, <yu.liu@freescale.com> * * Description: * This file is derived from arch/powerpc/kvm/44x.c, * by Hollis Blanchard <hollisb@us.ibm.com>. */ #include <linux/kvm_host.h> #in...
arch/powerpc/kvm/e500.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu <yu.liu@freescale.com> * Scott Wood <scottwood@freescale.com> * Ashish Kalra <ashish.kalra@freescale.com> * Varun Sethi <varun.sethi@freescale.com>...
arch/powerpc/kvm/e500.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, <yu.liu@freescale.com> * * Description: * This file is derived from arch/powerpc/kvm/44x_emulate.c, * by Hollis Blanchard <hollisb@us.ibm.com>. */ #include <asm/kvm_ppc.h...
arch/powerpc/kvm/e500_emulate.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2013 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, yu.liu@freescale.com * Scott Wood, scottwood@freescale.com * Ashish Kalra, ashish.kalra@freescale.com * Varun Sethi, varun.sethi@freescale.com * ...
arch/powerpc/kvm/e500_mmu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2008-2013 Freescale Semiconductor, Inc. All rights reserved. * * Author: Yu Liu, yu.liu@freescale.com * Scott Wood, scottwood@freescale.com * Ashish Kalra, ashish.kalra@freescale.com * Varun Sethi, varun.sethi@freescale.com * ...
arch/powerpc/kvm/e500_mmu_host.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2008-2013 Freescale Semiconductor, Inc. All rights reserved. */ #ifndef KVM_E500_MMU_HOST_H #define KVM_E500_MMU_HOST_H void inval_gtlbe_on_host(struct kvmppc_vcpu_e500 *vcpu_e500, int tlbsel, int esel); int e500_mmu_host_init(struct kvmppc_vcpu_e5...
arch/powerpc/kvm/e500_mmu_host.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2010,2012 Freescale Semiconductor, Inc. All rights reserved. * * Author: Varun Sethi, <varun.sethi@freescale.com> * * Description: * This file is derived from arch/powerpc/kvm/e500.c, * by Yu Liu <yu.liu@freescale.com>. */ #include <linux/kvm_host.h> ...
arch/powerpc/kvm/e500mc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright IBM Corp. 2007 * Copyright 2011 Freescale Semiconductor, Inc. * * Authors: Hollis Blanchard <hollisb@us.ibm.com> */ #include <linux/jiffies.h> #include <linux/hrtimer.h> #include <linux/types.h> #include <linux/string.h> #include <linux/kvm_host.h> #inclu...
arch/powerpc/kvm/emulate.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright IBM Corp. 2007 * Copyright 2011 Freescale Semiconductor, Inc. * * Authors: Hollis Blanchard <hollisb@us.ibm.com> */ #include <linux/jiffies.h> #include <linux/hrtimer.h> #include <linux/types.h> #include <linux/string.h> #include <linux/kvm_host.h> #inclu...
arch/powerpc/kvm/emulate_loadstore.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * FPU helper code to use FPU operations from inside the kernel * * Copyright (C) 2010 Alexander Graf (agraf@suse.de) */ #include <linux/pgtable.h> #include <linux/linkage.h> #include <asm/reg.h> #include <asm/page.h> #include <asm/mmu.h> #include <asm/cputabl...
arch/powerpc/kvm/fpu.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include "asm/hvcall.h" #include <linux/log2.h> #include <asm/pgalloc.h> #include <asm/guest-state-buffer.h> static const u16 kvmppc_gse_iden_len[__KVMPPC_GSE_TYPE_MAX] = { [KVMPPC_GSE_BE32] = sizeof(__be32), [KVMPPC_GSE_BE64] = sizeof(__be64), [KVMPPC_GSE_VEC128] = sizeof(vecto...
arch/powerpc/kvm/guest-state-buffer.c
null
null
null
null
null
source
linux
/* * OpenPIC emulation * * Copyright (c) 2004 Jocelyn Mayer * 2011 Alexander Graf * * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sub...
arch/powerpc/kvm/mpic.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright IBM Corp. 2007 * * Authors: Hollis Blanchard <hollisb@us.ibm.com> * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> */ #include <linux/errno.h> #include <linux/err.h> #include <linux/kvm_host.h> #include <linux/vmalloc.h> #include <linux/hrtimer...
arch/powerpc/kvm/powerpc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/init.h> #include <linux/log2.h> #include <kunit/test.h> #include <asm/guest-state-buffer.h> #include <asm/kvm_ppc.h> static void test_creating_buffer(struct kunit *test) { struct kvmppc_gs_buff *gsb; size_t size = 0x100; gsb = kvmppc_gsb_new(size, 0, 0...
arch/powerpc/kvm/test-guest-state-buffer.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * Copyright IBM Corp. 2008 * * Authors: Hollis Blanchard <hollisb@us.ibm.com> * Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> */ #include <linux/kvm_host.h> #include <linux/fs.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/uacce...
arch/powerpc/kvm/timing.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * Copyright IBM Corp. 2008 * * Authors: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> */ #ifndef __POWERPC_KVM_EXITTIMING_H__ #define __POWERPC_KVM_EXITTIMING_H__ #include <linux/kvm_host.h> #ifdef CONFIG_KVM_EXIT_TIMING void kvmppc_init_timing_stats(struct kv...
arch/powerpc/kvm/timing.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * * Derived from book3s_hv_rmhandlers.S, which is: * * Copyright 2011 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #include <linux/export.h> #include <asm/reg.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/tm.h> #include <asm/cputable.h> ...
arch/powerpc/kvm/tm.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_H #include <linux/tracepoint.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm /* * Tracepoint for guest mode entry. */ TRACE_EVENT(kvm_ppc_instr, TP_PROTO(unsigned int inst, unsigned long _pc, u...
arch/powerpc/kvm/trace.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_BOOK3S_H) #define _TRACE_KVM_BOOK3S_H /* * Common defines used by the trace macros in trace_pr.h and trace_hv.h */ #define kvm_trace_symbol_exit \ {0x100, "SYSTEM_RESET"}, \ {0x200, "MACHINE_CHECK"}, \ {0x300, "DATA_STORAGE"}, \ {0x380, "DATA_SEGMEN...
arch/powerpc/kvm/trace_book3s.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_BOOKE_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_BOOKE_H #include <linux/tracepoint.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_booke #define kvm_trace_symbol_exit \ {0, "CRITICAL"}, \ {1, "MACHINE_CHECK"}, \ {2, "DATA_STORAGE"}, \ ...
arch/powerpc/kvm/trace_booke.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_HV_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_HV_H #include <linux/tracepoint.h> #include "trace_book3s.h" #include <asm/hvcall.h> #include <asm/kvm_asm.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_hv #define kvm_trace_symbol_hcall \ {...
arch/powerpc/kvm/trace_hv.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_PR_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_PR_H #include <linux/tracepoint.h> #include "trace_book3s.h" #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm_pr TRACE_EVENT(kvm_book3s_reenter, TP_PROTO(int r, struct kvm_vcpu *vcpu), TP_ARGS(r...
arch/powerpc/kvm/trace_pr.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains assembly-language implementations * of IP-style 1's complement checksum routines. * * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Severely hacked about by Paul Mackerras (paulus@cs.anu.edu.au). */ #include <linux/export.h...
arch/powerpc/lib/checksum_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains assembly-language implementations * of IP-style 1's complement checksum routines. * * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Severely hacked about by Paul Mackerras (paulus@cs.anu.edu.au). */ #include <linux/export.h...
arch/powerpc/lib/checksum_64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * * Copyright (C) IBM Corporation, 2010 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <linux/export.h> #include <linux/compiler.h> #include <linux/types.h> #include <asm/checksum.h> #include <linux/uaccess.h> __wsum csum_and_copy_from_user(const void __...
arch/powerpc/lib/checksum_wrappers.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2008 Michael Ellerman, IBM Corporation. */ #include <linux/kprobes.h> #include <linux/mmu_context.h> #include <linux/random.h> #include <linux/vmalloc.h> #include <linux/init.h> #include <linux/cpuhotplug.h> #include <linux/uaccess.h> #include <linux/jump_...
arch/powerpc/lib/code-patching.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Memory copy functions for 32-bit PowerPC. * * Copyright (C) 1996-2005 Paul Mackerras. */ #include <linux/export.h> #include <asm/processor.h> #include <asm/cache.h> #include <asm/errno.h> #include <asm/ppc_asm.h> #include <asm/code-patching-asm.h> #include <asm/k...
arch/powerpc/lib/copy_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) IBM Corporation, 2011 * Derived from copyuser_power7.s by Anton Blanchard <anton@au.ibm.com> * Author - Balbir Singh <bsingharora@gmail.com> */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/errno.h> .macro err1 100: EX_TABLE(100b,.Ldo_e...
arch/powerpc/lib/copy_mc_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2008 Mark Nelson, IBM Corp. */ #include <linux/export.h> #include <asm/page.h> #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/feature-fixups.h> _GLOBAL_TOC(copy_page) BEGIN_FTR_SECTION lis r5,PAGE_SIZE...
arch/powerpc/lib/copypage_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2012 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <asm/page.h> #include <asm/ppc_asm.h> _GLOBAL(copypage_power7) /* * We prefetch both the source and destination using enhanced touch * instructions. We use a s...
arch/powerpc/lib/copypage_power7.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2002 Paul Mackerras, IBM Corp. */ #include <linux/export.h> #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/asm-compat.h> #include <asm/feature-fixups.h> #ifndef SELFTEST_CASE /* 0 == most CPUs, 1 == POWER6, 2 == Cell */ #define SEL...
arch/powerpc/lib/copyuser_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2011 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <asm/ppc_asm.h> #ifndef SELFTEST_CASE /* 0 == don't use VMX, 1 == use VMX */ #define SELFTEST_CASE 0 #endif #ifdef __BIG_ENDIAN__ #define LVS(VRT,RA,RB) lvsl VRT,...
arch/powerpc/lib/copyuser_power7.S
null
null
null
null
null
source
linux
/* * Special support for eabi and SVR4 * * Copyright (C) 1995, 1996, 1998, 2000, 2001 Free Software Foundation, Inc. * Copyright 2008 Freescale Semiconductor, Inc. * Written By Michael Meissner * * Based on gcc/config/rs6000/crtsavres.asm from gcc * 64 bit additions from reading the PPC elf64abi document....
arch/powerpc/lib/crtsavres.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Divide a 64-bit unsigned number by a 32-bit unsigned number. * This routine assumes that the top 32 bits of the dividend are * non-zero to start with. * On entry, r3 points to the dividend, which get overwritten with * the 64-bit quotient, and r4 contains the di...
arch/powerpc/lib/div64.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <linux/error-injection.h> #include <linux/kprobes.h> #include <linux/uaccess.h> void override_function_with_return(struct pt_regs *regs) { /* * Emulate 'blr'. 'regs' represents the state on entry of a predefined * function in the kernel/module, captured on a kprobe. ...
arch/powerpc/lib/error-inject.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2008 Michael Ellerman, IBM Corporation. */ #include <asm/feature-fixups.h> #include <asm/ppc_asm.h> #include <asm/synch.h> #include <asm/asm-compat.h> #include <asm/ppc-opcode.h> .text #define globl(x) \ .globl x; \ x: globl(ftr_fixup_test1) or 1,...
arch/powerpc/lib/feature-fixups-test.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001 Ben. Herrenschmidt (benh@kernel.crashing.org) * * Modifications for ppc64: * Copyright (C) 2003 Dave Engebretsen <engebret@us.ibm.com> * * Copyright 2008 Michael Ellerman, IBM Corporation. */ #include <linux/types.h> #include <linux/ju...
arch/powerpc/lib/feature-fixups.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2010 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <linux/export.h> #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/feature-fixups.h> /* Note: This code relies on -mminimal-toc */ _GLOBAL(__arch_h...
arch/powerpc/lib/hweight_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Floating-point, VMX/Altivec and VSX loads and stores * for use in instruction emulation. * * Copyright 2010 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/ppc-opcode.h> #include <asm/reg.h> #i...
arch/powerpc/lib/ldstfp.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Spin and read/write lock operations. * * Copyright (C) 2001-2004 Paul Mackerras <paulus@au.ibm.com>, IBM * Copyright (C) 2001 Anton Blanchard <anton@au.ibm.com>, IBM * Copyright (C) 2002 Dave Engebretsen <engebret@us.ibm.com>, IBM * Rework to support virtual pro...
arch/powerpc/lib/locks.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * String handling functions for PowerPC. * * Copyright (C) 1996 Paul Mackerras. */ #include <linux/export.h> #include <asm/processor.h> #include <asm/errno.h> #include <asm/ppc_asm.h> #include <asm/kasan.h> #ifndef CONFIG_KASAN _GLOBAL(__memset16) rlwimi r4,r4,16...
arch/powerpc/lib/mem_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * memcmp for PowerPC32 * * Copyright (C) 1996 Paul Mackerras. * */ #include <linux/export.h> #include <asm/ppc_asm.h> .text _GLOBAL(memcmp) srawi. r7, r5, 2 /* Divide len by 4 */ mr r6, r3 beq- 3f mtctr r7 li r7, 0 1: lwzx r3, r6, r7 lwzx r0, r4, r7 addi r7, r...
arch/powerpc/lib/memcmp_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Author: Anton Blanchard <anton@au.ibm.com> * Copyright 2015 IBM Corporation. */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/ppc-opcode.h> #define off8 r6 #define off16 r7 #define off24 r8 #define rA r9 #define rB r10 #define rC r11 #define r...
arch/powerpc/lib/memcmp_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2002 Paul Mackerras, IBM Corp. */ #include <linux/export.h> #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/asm-compat.h> #include <asm/feature-fixups.h> #include <asm/kasan.h> #ifndef SELFTEST_CASE /* For big-endian, 0 == most CPUs...
arch/powerpc/lib/memcpy_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2012 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <asm/ppc_asm.h> #ifndef SELFTEST_CASE /* 0 == don't use VMX, 1 == use VMX */ #define SELFTEST_CASE 0 #endif #ifdef __BIG_ENDIAN__ #define LVS(VRT,RA,RB) lvsl VRT,...
arch/powerpc/lib/memcpy_power7.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright(c) 2017 IBM Corporation. All rights reserved. */ #include <linux/string.h> #include <linux/export.h> #include <linux/uaccess.h> #include <linux/libnvdimm.h> #include <asm/cacheflush.h> static inline void __clean_pmem_range(unsigned long start, unsigned long s...
arch/powerpc/lib/pmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/bug.h> #include <linux/compiler.h> #include <linux/export.h> #include <linux/percpu.h> #include <linux/processor.h> #include <linux/smp.h> #include <linux/topology.h> #include <linux/sched/clock.h> #include <asm/qspinlock.h> #include <asm/paravirt.h> #include...
arch/powerpc/lib/qspinlock.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Quadword loads and stores * for use in instruction emulation. * * Copyright 2017 Paul Mackerras, IBM Corp. <paulus@au1.ibm.com> */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/ppc-opcode.h> #include <asm/reg.h> #include <asm/asm-offsets.h> ...
arch/powerpc/lib/quad.S
null
null
null
null
null
source
linux
#include <asm/interrupt.h> #include <asm/kprobes.h> struct soft_mask_table_entry { unsigned long start; unsigned long end; }; struct restart_table_entry { unsigned long start; unsigned long end; unsigned long fixup; }; extern struct soft_mask_table_entry __start___soft_mask_table[]; extern struct soft_mask_tabl...
arch/powerpc/lib/restart_table.c
null
null
null
null
null
source
linux
/* * A Remote Heap. Remote means that we don't touch the memory that the * heap points to. Normal heap implementations use the memory they manage * to place their list. We cannot do that because the memory we manage may * have special properties, for example it is uncachable or of different * endianess. * * Aut...
arch/powerpc/lib/rheap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Single-step support. * * Copyright (C) 2004 Paul Mackerras <paulus@au.ibm.com>, IBM */ #include <linux/kernel.h> #include <linux/kprobes.h> #include <linux/ptrace.h> #include <linux/prefetch.h> #include <asm/sstep.h> #include <asm/processor.h> #include <linux/uacces...
arch/powerpc/lib/sstep.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * String handling functions for PowerPC. * * Copyright (C) 1996 Paul Mackerras. */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/cache.h> .text /* This clears out any unused part of the destination buffer, just as the libc version does. -...
arch/powerpc/lib/string.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * String handling functions for PowerPC32 * * Copyright (C) 1996 Paul Mackerras. * */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/cache.h> .text CACHELINE_BYTES = L1_CACHE_BYTES LG_CACHELINE_BYTES = L1_CACHE_SHIFT CACHELINE_MASK = (L1_CACHE_BYTES-...
arch/powerpc/lib/string_32.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * * Copyright (C) IBM Corporation, 2012 * * Author: Anton Blanchard <anton@au.ibm.com> */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/linkage.h> #include <asm/asm-offsets.h> /** * __arch_clear_user: - Zero a block of memory in user space, w...
arch/powerpc/lib/string_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * strlen() for PPC32 * * Copyright (C) 2018 Christophe Leroy CS Systemes d'Information. * * Inspired from glibc implementation */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/cache.h> .text /* * Algorithm: * * 1) Given a word 'x', we can test to ...
arch/powerpc/lib/strlen_32.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2008 Michael Ellerman, IBM Corporation. */ #include <linux/vmalloc.h> #include <linux/init.h> #include <asm/text-patching.h> static int __init instr_is_branch_to_addr(const u32 *instr, unsigned long addr) { if (instr_is_branch_iform(ppc_inst_read(instr)...
arch/powerpc/lib/test-code-patching.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Simple sanity tests for instruction emulation infrastructure. * * Copyright IBM Corp. 2016 */ #define pr_fmt(fmt) "emulate_step_test: " fmt #include <linux/ptrace.h> #include <asm/cpu_has_feature.h> #include <asm/sstep.h> #include <asm/ppc-opcode.h> #include <asm/...
arch/powerpc/lib/test_emulate_step.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Non-emulated single-stepping support (currently limited to basic integer * computations) used to validate the instruction emulation infrastructure. * * Copyright (C) 2019 IBM Corporation */ #include <asm/asm-offsets.h> #include <asm/ppc_asm.h> #include <asm/code-patchin...
arch/powerpc/lib/test_emulate_step_exec_instr.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * * Copyright (C) IBM Corporation, 2011 * * Authors: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> * Anton Blanchard <anton@au.ibm.com> */ #include <linux/uaccess.h> #include <linux/hardirq.h> #include <asm/switch_to.h> int enter_vmx_usercopy(void) { i...
arch/powerpc/lib/vmx-helper.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * * Copyright (C) IBM Corporation, 2012 * * Author: Anton Blanchard <anton@au.ibm.com> */ /* * Sparse (as at v0.5.0) gets very, very confused by this file. * Make it a bit simpler for it. */ #if !defined(__CHECKER__) #include <altivec.h> #else #define vec_xor(a, ...
arch/powerpc/lib/xor_vmx.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Simple interface to link xor_vmx.c and xor_vmx_glue.c * * Separating these file ensures that no altivec instructions are run * outside of the enable/disable altivec block. */ void __xor_altivec_2(unsigned long bytes, unsigned long * __restrict p1, const unsigned ...
arch/powerpc/lib/xor_vmx.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Altivec XOR operations * * Copyright 2017 IBM Corp. */ #include <linux/preempt.h> #include <linux/export.h> #include <linux/sched.h> #include <asm/switch_to.h> #include <asm/xor_altivec.h> #include "xor_vmx.h" void xor_altivec_2(unsigned long bytes, unsigned long ...
arch/powerpc/lib/xor_vmx_glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int fabs(u32 *frD, u32 *frB) { frD[0] = frB[0] & 0x7fffffff; frD[1] = frB[1]; #ifdef DEBUG printk("%s: D %p, B %p: ", __func__, frD, frB); dump_double(frD); printk("\n"); #endif return 0; }
arch/powerpc/math-emu/fabs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fadd(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R); FP_DECL_EX; #ifdef DEBUG ...
arch/powerpc/math-emu/fadd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fadds(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R)...
arch/powerpc/math-emu/fadds.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fcmpo(u32 *ccr, int crfD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_EX; int code[4] = { (1 ...
arch/powerpc/math-emu/fcmpo.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fcmpu(u32 *ccr, int crfD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_EX; int code[4] = { (1 ...
arch/powerpc/math-emu/fcmpu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fctiw(u32 *frD, void *frB) { FP_DECL_D(B); FP_DECL_EX; unsigned int r; FP_UNPACK_DP(B, frB); FP_TO_INT_D(r,...
arch/powerpc/math-emu/fctiw.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fctiwz(u32 *frD, void *frB) { FP_DECL_D(B); FP_DECL_EX; u32 fpscr; unsigned int r; fpscr = __FPU_FPSCR; __...
arch/powerpc/math-emu/fctiwz.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fdiv(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R); FP_DECL_EX; #ifdef DEBUG ...
arch/powerpc/math-emu/fdiv.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fdivs(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R)...
arch/powerpc/math-emu/fdivs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fmadd(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(C); ...
arch/powerpc/math-emu/fmadd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fmadds(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); ...
arch/powerpc/math-emu/fmadds.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int fmr(u32 *frD, u32 *frB) { frD[0] = frB[0]; frD[1] = frB[1]; #ifdef DEBUG printk("%s: D %p, B %p: ", __func__, frD, frB); dump_double(frD); printk("\n"); #endif return 0; }
arch/powerpc/math-emu/fmr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fmsub(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(C); ...
arch/powerpc/math-emu/fmsub.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fmsubs(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); ...
arch/powerpc/math-emu/fmsubs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fmul(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R); FP_DECL_EX; #ifdef DEBUG ...
arch/powerpc/math-emu/fmul.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fmuls(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R)...
arch/powerpc/math-emu/fmuls.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int fnabs(u32 *frD, u32 *frB) { frD[0] = frB[0] | 0x80000000; frD[1] = frB[1]; #ifdef DEBUG printk("%s: D %p, B %p: ", __func__, frD, frB); dump_double(frD); printk("\n"); #endif return 0; }
arch/powerpc/math-emu/fnabs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int fneg(u32 *frD, u32 *frB) { frD[0] = frB[0] ^ 0x80000000; frD[1] = frB[1]; #ifdef DEBUG printk("%s: D %p, B %p: ", __func__, frD, frB); dump_double(frD); printk("\n"); #endif return 0; }
arch/powerpc/math-emu/fneg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fnmadd(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(C); ...
arch/powerpc/math-emu/fnmadd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fnmadds(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); ...
arch/powerpc/math-emu/fnmadds.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fnmsub(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(C); ...
arch/powerpc/math-emu/fnmsub.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fnmsubs(void *frD, void *frA, void *frB, void *frC) { FP_DECL_D(R); FP_DECL_D(A); ...
arch/powerpc/math-emu/fnmsubs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int fre(void *frD, void *frB) { #ifdef DEBUG printk("%s: %p %p\n", __func__, frD, frB); #endif return -ENOSYS; }
arch/powerpc/math-emu/fre.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int fres(void *frD, void *frB) { #ifdef DEBUG printk("%s: %p %p\n", __func__, frD, frB); #endif return -ENOSYS; }
arch/powerpc/math-emu/fres.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int frsp(void *frD, void *frB) { FP_DECL_D(B); FP_DECL_EX; #ifdef DEBUG printk("%s: ...
arch/powerpc/math-emu/frsp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int frsqrte(void *frD, void *frB) { #ifdef DEBUG printk("%s: %p %p\n", __func__, frD, frB); #endif return 0; }
arch/powerpc/math-emu/frsqrte.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> int frsqrtes(void *frD, void *frB) { #ifdef DEBUG printk("%s: %p %p\n", __func__, frD, frB); #endif return 0; }
arch/powerpc/math-emu/frsqrtes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fsel(u32 *frD, void *frA, u32 *frB, u32 *frC) { FP_DECL_D(A); FP_DECL_EX; #ifdef DEBUG printk("%s: %p %p %p %...
arch/powerpc/math-emu/fsel.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fsqrt(void *frD, void *frB) { FP_DECL_D(B); FP_DECL_D(R); FP_DECL_EX; #ifdef DEBUG printk("%s: %p %p %p %p\n...
arch/powerpc/math-emu/fsqrt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fsqrts(void *frD, void *frB) { FP_DECL_D(B); FP_DECL_D(R); FP_DECL_EX; #ifdef DE...
arch/powerpc/math-emu/fsqrts.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> int fsub(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R); FP_DECL_EX; #ifdef DEBUG ...
arch/powerpc/math-emu/fsub.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int fsubs(void *frD, void *frA, void *frB) { FP_DECL_D(A); FP_DECL_D(B); FP_DECL_D(R)...
arch/powerpc/math-emu/fsubs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/double.h> int lfd(void *frD, void *ea) { if (copy_from_user(frD, ea, sizeof(double))) return -EFAULT; #ifdef DEBUG printk("%s: D %p, ea %p: ", __func__, ...
arch/powerpc/math-emu/lfd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/errno.h> #include <linux/uaccess.h> #include <asm/sfp-machine.h> #include <math-emu/soft-fp.h> #include <math-emu/double.h> #include <math-emu/single.h> int lfs(void *frD, void *ea) { FP_DECL_D(R); FP_DECL_S(A); FP_DECL_EX; float f; #if...
arch/powerpc/math-emu/lfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 1999 Eddie C. Dost (ecd@atecom.com) */ #include <linux/types.h> #include <linux/sched.h> #include <linux/uaccess.h> #include <asm/reg.h> #include <asm/switch_to.h> #include <asm/sfp-machine.h> #include <math-emu/double.h> #define FLOATFUNC(x) extern int x(v...
arch/powerpc/math-emu/math.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * arch/powerpc/math-emu/math_efp.c * * Copyright (C) 2006-2008, 2010 Freescale Semiconductor, Inc. * * Author: Ebony Zhu, <ebony.zhu@freescale.com> * Yu Liu, <yu.liu@freescale.com> * * Derived from arch/alpha/math-emu/math.c * arch/powerpc/ma...
arch/powerpc/math-emu/math_efp.c
null
null
null
null
null