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 */ #ifndef _PPC_BOOT_PQ2_H_ #define _PPC_BOOT_PQ2_H_ #include "types.h" int pq2_get_clocks(u32 crystal, u32 *sysfreq, u32 *corefreq, u32 *timebase, u32 *brgfreq); void pq2_set_clocks(u32 sysfreq, u32 corefreq, u32 timebase, u32 brgfreq); int pq2_fixup_clocks(u32 ...
arch/powerpc/boot/pq2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * PS3 bootwrapper entry. * * Copyright (C) 2007 Sony Computer Entertainment Inc. * Copyright 2007 Sony Corp. */ #include "ppc_asm.h" .machine "ppc64" .text /* * __system_reset_overlay - The PS3 first stage entry. * * The bootwraper build script copies the ...
arch/powerpc/boot/ps3-head.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * PS3 bootwrapper hvcalls. * * Copyright (C) 2007 Sony Computer Entertainment Inc. * Copyright 2007 Sony Corp. */ #include "ppc_asm.h" .machine "ppc64" /* * The PS3 hypervisor uses a 64 bit "C" language calling convention. * The routines here marshal argument...
arch/powerpc/boot/ps3-hvcall.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 bootwrapper support. * * Copyright (C) 2007 Sony Computer Entertainment Inc. * Copyright 2007 Sony Corp. */ #include <stdarg.h> #include <stddef.h> #include "types.h" #include "elf.h" #include "string.h" #include "stdio.h" #include "page.h" #include "ops.h" ex...
arch/powerpc/boot/ps3.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include "ppc_asm.h" .text .globl _zimage_start _zimage_start: FIXUP_ENDIAN b _zimage_start_lib
arch/powerpc/boot/pseries-head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * RedBoot firmware support * * Author: Scott Wood <scottwood@freescale.com> * * Copyright (c) 2007 Freescale Semiconductor, Inc. * Copyright (c) 2008 Codehermit */ #include "ops.h" #include "stdio.h" #include "redboot.h" #include "fsl-soc.h" #include "io.h" static bd...
arch/powerpc/boot/redboot-83xx.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * RedBoot firmware support * * Author: Scott Wood <scottwood@freescale.com> * * Copyright (c) 2007 Freescale Semiconductor, Inc. */ #include "ops.h" #include "stdio.h" #include "redboot.h" #include "fsl-soc.h" #include "io.h" static bd_t bd; BSS_STACK(4096); #define ...
arch/powerpc/boot/redboot-8xx.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_REDBOOT_H #define _PPC_REDBOOT_H //========================================================================= // include/asm-ppc/redboot.h // Copyright (c) 2002, 2003 Gary Thomas (<gary@mlbassoc.com> // Copyright (c) 1997 Dan Malek (dmalek@jlc.net) // // Board sp...
arch/powerpc/boot/redboot.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _PPC_BOOT_REG_H #define _PPC_BOOT_REG_H /* * Copyright 2007 Davud Gibson, IBM Corporation. */ static inline u32 mfpvr(void) { u32 pvr; asm volatile ("mfpvr %0" : "=r"(pvr)); return pvr; } #define __stringify_1(x) #x #define __stringify(x) __stringify_1(x) ...
arch/powerpc/boot/reg.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* IBM RS/6000 "XCOFF" file definitions for BFD. Copyright (C) 1990, 1991 Free Software Foundation, Inc. Written by Mimi Phuong-Thao Vo of IBM and John Gilmore of Cygnus Support. */ /********************** FILE HEADER **********************/ struct external_filehdr { ...
arch/powerpc/boot/rs6000.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Generic serial console support * * Author: Mark A. Greer <mgreer@mvista.com> * * Code in serial_edit_cmdline() copied from <file:arch/ppc/boot/simple/misc.c> * and was written by Matt Porter <mporter@kernel.crashing.org>. * * 2001,2006 (c) MontaVista Software, Inc. */ #...
arch/powerpc/boot/serial.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Implement primitive realloc(3) functionality. * * Author: Mark A. Greer <mgreer@mvista.com> * * 2006 (c) MontaVista, Software, Inc. */ #include <stddef.h> #include "types.h" #include "page.h" #include "string.h" #include "ops.h" #define ENTRY_BEEN_USED 0x01 #define ENTRY...
arch/powerpc/boot/simple_alloc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * The simple platform -- for booting when firmware doesn't supply a device * tree or any platform configuration information. * All data is extracted from an embedded device tree * blob. * * Authors: Sc...
arch/powerpc/boot/simpleboot.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) IBM Corporation 2016. * * This file is only necessary because some of the pre-boot decompressors * expect stdbool.h to be available. */ #include "types.h"
arch/powerpc/boot/stdbool.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) IBM Corporation 2016. * * This file is only necessary because some of the pre-boot decompressors * expect stdint.h to be available. */ #include "types.h"
arch/powerpc/boot/stdint.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) Paul Mackerras 1997. */ #include <stdarg.h> #include <stddef.h> #include "string.h" #include "stdio.h" #include "ops.h" size_t strnlen(const char * s, size_t count) { const char *sc; for (sc = s; count-- && *sc != '\0'; ++sc) /* nothing */; return...
arch/powerpc/boot/stdio.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_BOOT_STDIO_H_ #define _PPC_BOOT_STDIO_H_ #include <stdarg.h> #define ENOMEM 12 /* Out of Memory */ #define EINVAL 22 /* Invalid argument */ #define ENOSPC 28 /* No space left on device */ extern int printf(const char *fmt, ...) __attribute__((format(printf, 1, 2...
arch/powerpc/boot/stdio.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * stdlib functions * * Author: Scott Wood <scottwood@freescale.com> * * Copyright (c) 2007 Freescale Semiconductor, Inc. */ #include "stdlib.h" /* Not currently supported: leading whitespace, sign, 0x prefix, zero base */ unsigned long long int strtoull(const char *pt...
arch/powerpc/boot/stdlib.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_BOOT_STDLIB_H_ #define _PPC_BOOT_STDLIB_H_ unsigned long long int strtoull(const char *ptr, char **end, int base); #endif
arch/powerpc/boot/stdlib.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) Paul Mackerras 1997. * * NOTE: this code runs in 32 bit mode and is packaged as ELF32. */ #include "ppc_asm.h" .text .globl strcpy strcpy: addi r5,r3,-1 addi r4,r4,-1 1: lbzu r0,1(r4) cmpwi 0,r0,0 stbu r0,1(r5) bne 1b blr .globl strncpy ...
arch/powerpc/boot/string.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_BOOT_STRING_H_ #define _PPC_BOOT_STRING_H_ #include <stddef.h> extern char *strcpy(char *dest, const char *src); extern char *strncpy(char *dest, const char *src, size_t n); extern char *strcat(char *dest, const char *src); extern char *strchr(const char *s, int c); ...
arch/powerpc/boot/string.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_BOOT_SWAB_H_ #define _PPC_BOOT_SWAB_H_ static inline u16 swab16(u16 x) { return ((x & (u16)0x00ffU) << 8) | ((x & (u16)0xff00U) >> 8); } static inline u32 swab32(u32 x) { return ((x & (u32)0x000000ffUL) << 24) | ((x & (u32)0x0000ff00UL) << 8) | ((x & (u32...
arch/powerpc/boot/swab.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright © 2013 Tony Breeds IBM Corporation * Copyright © 2013 Alistair Popple IBM Corporation * * Based on earlier code: * Copyright (C) Paul Mackerras 1997. * * Matt Porter <mporter@kernel.crashing.org> * Copyright 2002-2005 MontaVista Software Inc. * ...
arch/powerpc/boot/treeboot-akebono.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright IBM Corporation, 2007 * Josh Boyer <jwboyer@linux.vnet.ibm.com> * * Based on ebony wrapper: * Copyright 2007 David Gibson, IBM Corporation. */ #include "ops.h" #include "stdio.h" #include "44x.h" #include "stdlib.h" BSS_STACK(4096); #define PIBS_MAC0 0xfff...
arch/powerpc/boot/treeboot-bamboo.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright © 2011 Tony Breeds IBM Corporation * * Based on earlier code: * Copyright (C) Paul Mackerras 1997. * * Matt Porter <mporter@kernel.crashing.org> * Copyright 2002-2005 MontaVista Software Inc. * * Eugene Surovegin <eugene.surovegin@zultys.com> ...
arch/powerpc/boot/treeboot-currituck.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Old U-boot compatibility for Ebony * * Author: David Gibson <david@gibson.dropbear.id.au> * * Copyright 2007 David Gibson, IBM Corporatio. * Based on cuboot-83xx.c, which is: * Copyright (c) 2007 Freescale Semiconductor, Inc. */ #include "ops.h" #include "stdio.h...
arch/powerpc/boot/treeboot-ebony.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2010 Ben. Herrenschmidt, IBM Corporation. * * Based on earlier code: * Copyright (C) Paul Mackerras 1997. * * Matt Porter <mporter@kernel.crashing.org> * Copyright 2002-2005 MontaVista Software Inc. * * Eugene Surovegin <eugene.surovegin@zulty...
arch/powerpc/boot/treeboot-iss4xx.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _TYPES_H_ #define _TYPES_H_ #include <stdbool.h> #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) typedef unsigned char u8; typedef unsigned short u16; typedef unsigned int u32; typedef unsigned long long u64; typedef signed char s8; typedef short s16; typedef i...
arch/powerpc/boot/types.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * arch/powerpc/boot/ugecon.c * * USB Gecko bootwrapper console. * Copyright (C) 2008-2009 The GameCube Linux Team * Copyright (C) 2008,2009 Albert Herranz */ #include <stddef.h> #include "stdio.h" #include "types.h" #include "io.h" #include "ops.h" #define EXI_CL...
arch/powerpc/boot/ugecon.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * arch/powerpc/boot/ugecon.h * * USB Gecko early bootwrapper console. * Copyright (C) 2008-2009 The GameCube Linux Team * Copyright (C) 2008,2009 Albert Herranz */ #ifndef __UGECON_H #define __UGECON_H extern void *ug_probe(void); extern void ug_putc(char ch);...
arch/powerpc/boot/ugecon.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copied from <file:arch/powerpc/kernel/misc_32.S> * * This file contains miscellaneous low-level functions. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) * and Paul Mackerras. * * kexec bits...
arch/powerpc/boot/util.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * arch/powerpc/boot/wii-head.S * * Nintendo Wii bootwrapper entry. * Copyright (C) 2008-2009 The GameCube Linux Team * Copyright (C) 2008,2009 Albert Herranz */ #include "ppc_asm.h" /* * The entry code does no assumptions regarding: * - if the data and instru...
arch/powerpc/boot/wii-head.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * arch/powerpc/boot/wii.c * * Nintendo Wii bootwrapper support * Copyright (C) 2008-2009 The GameCube Linux Team * Copyright (C) 2008,2009 Albert Herranz */ #include <stddef.h> #include "stdio.h" #include "types.h" #include "io.h" #include "ops.h" #include "ugecon...
arch/powerpc/boot/wii.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __XZ_CONFIG_H__ #define __XZ_CONFIG_H__ /* * most of this is copied from lib/xz/xz_private.h, we can't use their defines * since the boot wrapper is not built in the same environment as the rest of * the kernel. */ #include "types.h" #include "swab.h" static inline ...
arch/powerpc/boot/xz_config.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ OUTPUT_ARCH(powerpc:common) ENTRY(_zimage_start_opd) EXTERN(_zimage_start_opd) SECTIONS { .text : { _start = .; *(.text) *(.fixup) _etext = .; } . = ALIGN(4096); .data : { *(.rodata*) *(.data*) *(__builtin_*) *(.sdata*) *(.go...
arch/powerpc/boot/zImage.coff.lds.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm-generic/vmlinux.lds.h> #ifdef CONFIG_PPC64_BOOT_WRAPPER OUTPUT_ARCH(powerpc:common64) #else OUTPUT_ARCH(powerpc:common) #endif ENTRY(_zimage_start) EXTERN(_zimage_start) SECTIONS { .text : { _start = .; *(.text) *(.fixup) _etext = .; } ....
arch/powerpc/boot/zImage.lds.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ OUTPUT_ARCH(powerpc:common) ENTRY(_zimage_start) EXTERN(_zimage_start) SECTIONS { _vmlinux_start = .; .kernel:vmlinux.bin : { *(.kernel:vmlinux.bin) } _vmlinux_end = .; . = ALIGN(8); _dtb_start = .; .kernel:dtb : { *(.kernel:dtb) } _dtb_end = .; . = ALIGN(4096)...
arch/powerpc/boot/zImage.ps3.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue code for accelerated AES-GCM stitched implementation for ppc64le. * * Copyright 2022- IBM Inc. All rights reserved */ #include <linux/unaligned.h> #include <asm/simd.h> #include <asm/switch_to.h> #include <crypto/gcm.h> #include <crypto/aes.h> #include <crypto...
arch/powerpc/crypto/aes-gcm-p10-glue.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ # # Accelerated AES-GCM stitched implementation for ppc64le. # # Copyright 2024- IBM Inc. # #=================================================================================== # Written by Danny Tsen <dtsen@us.ibm.com> # # GHASH is based on the Karatsuba multiplication m...
arch/powerpc/crypto/aes-gcm-p10.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Glue code for AES implementation for SPE instructions (PPC) * * Based on generic implementation. The assembler module takes care * about the SPE registers so it can run from interrupt context. * * Copyright (c) 2015 Markus Stockhausen <stockhausen@collogia.de> */...
arch/powerpc/crypto/aes-spe-glue.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * AES CBC routines supporting VMX instructions on the Power 8 * * Copyright (C) 2015 International Business Machines Inc. * * Author: Marcelo Henrique Cerri <mhcerri@br.ibm.com> */ #include <asm/simd.h> #include <asm/switch_to.h> #include <crypto/aes.h> #include <crypt...
arch/powerpc/crypto/aes_cbc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * AES CTR routines supporting VMX instructions on the Power 8 * * Copyright (C) 2015 International Business Machines Inc. * * Author: Marcelo Henrique Cerri <mhcerri@br.ibm.com> */ #include <asm/simd.h> #include <asm/switch_to.h> #include <crypto/aes.h> #include <crypt...
arch/powerpc/crypto/aes_ctr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * AES XTS routines supporting VMX In-core instructions on Power 8 * * Copyright (C) 2015 International Business Machines Inc. * * Author: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com> */ #include <asm/simd.h> #include <asm/switch_to.h> #include <crypto/aes.h> #incl...
arch/powerpc/crypto/aes_xts.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/types.h> #include <crypto/aes.h> extern struct shash_alg p8_ghash_alg; extern struct skcipher_alg p8_aes_cbc_alg; extern struct skcipher_alg p8_aes_ctr_alg; extern struct skcipher_alg p8_aes_xts_alg;
arch/powerpc/crypto/aesp8-ppc.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * GHASH routines supporting VMX instructions on the Power 8 * * Copyright (C) 2015, 2019 International Business Machines Inc. * * Author: Marcelo Henrique Cerri <mhcerri@br.ibm.com> * * Extended by Daniel Axtens <dja@axtens.net> to replace the fallback * mechanism. The new...
arch/powerpc/crypto/ghash.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Routines supporting VMX instructions on the Power 8 * * Copyright (C) 2015 International Business Machines Inc. * * Author: Marcelo Henrique Cerri <mhcerri@br.ibm.com> */ #include <linux/module.h> #include <linux/moduleparam.h> #include <linux/types.h> #include <linu...
arch/powerpc/crypto/vmx.c
null
null
null
null
null
source
linux
/* * MPC8xx Internal Memory Map * Copyright (c) 1997 Dan Malek (dmalek@jlc.net) * * The I/O on the MPC860 is comprised of blocks of special registers * and the dual port ram for the Communication Processor Module. * Within this space are functional units such as the SIU, memory * controller, system timers, and o...
arch/powerpc/include/asm/8xx_immap.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Common time accounting prototypes and such for all ppc machines. */ #ifndef __POWERPC_ACCOUNTING_H #define __POWERPC_ACCOUNTING_H /* Stuff for accurate time accounting */ struct cpu_accounting_data { /* Accumulated cputime values to flush on ticks*/ unsigned lo...
arch/powerpc/include/asm/accounting.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_ARCHRANDOM_H #define _ASM_POWERPC_ARCHRANDOM_H static inline size_t __must_check arch_get_random_longs(unsigned long *v, size_t max_longs) { return 0; } size_t __must_check arch_get_random_seed_longs(unsigned long *v, size_t max_longs); #ifdef CONFIG_PPC_P...
arch/powerpc/include/asm/archrandom.h
null
null
null
null
null
source
linux
#ifndef _ASM_POWERPC_ASM_COMPAT_H #define _ASM_POWERPC_ASM_COMPAT_H #include <asm/asm-const.h> #include <asm/types.h> #include <asm/ppc-opcode.h> #ifdef __powerpc64__ /* operations for longs and pointers */ #define PPC_LL stringify_in_c(ld) #define PPC_STL stringify_in_c(std) #define PPC_STLU stringify_in_c(stdu) ...
arch/powerpc/include/asm/asm-compat.h
null
null
null
null
null
source
linux
#ifndef _ASM_POWERPC_ASM_CONST_H #define _ASM_POWERPC_ASM_CONST_H #ifdef __ASSEMBLER__ # define stringify_in_c(...) __VA_ARGS__ # define ASM_CONST(x) x #else /* This version of stringify will deal with commas... */ # define __stringify_in_c(...) #__VA_ARGS__ # define stringify_in_c(...) __stringify_in_c(__VA_ARGS...
arch/powerpc/include/asm/asm-const.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_ASM_PROTOTYPES_H #define _ASM_POWERPC_ASM_PROTOTYPES_H /* * This file is for C prototypes of asm symbols that are EXPORTed. * It allows the modversions logic to see their prototype and * generate proper CRCs for them. * * Copyright 2016, Daniel A...
arch/powerpc/include/asm/asm-prototypes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_ASM_H #define _ASM_POWERPC_ASM_H #define _ASM_PTR " .long " #endif /* _ASM_POWERPC_ASM_H */
arch/powerpc/include/asm/asm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2008-2009 DENX Software Engineering. * * Author: Yuri Tikhonov <yur@emcraft.com> */ #ifndef _ASM_POWERPC_ASYNC_TX_H_ #define _ASM_POWERPC_ASYNC_TX_H_ #if defined(CONFIG_440SPe) || defined(CONFIG_440SP) extern struct dma_chan * ppc440spe_async_tx_fi...
arch/powerpc/include/asm/async_tx.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_ATOMIC_H_ #define _ASM_POWERPC_ATOMIC_H_ /* * PowerPC atomic operations */ #ifdef __KERNEL__ #include <linux/types.h> #include <asm/cmpxchg.h> #include <asm/barrier.h> #include <asm/asm-const.h> #include <asm/asm-compat.h> /* * Since *_return_relaxed and...
arch/powerpc/include/asm/atomic.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Routines for handling backlight control on PowerBooks * * For now, implementation resides in * arch/powerpc/platforms/powermac/backlight.c * */ #ifndef __ASM_POWERPC_BACKLIGHT_H #define __ASM_POWERPC_BACKLIGHT_H #ifdef __KERNEL__ #include <linux/mutex.h> struct backli...
arch/powerpc/include/asm/backlight.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu> */ #ifndef _ASM_POWERPC_BARRIER_H #define _ASM_POWERPC_BARRIER_H #include <asm/asm-const.h> #ifndef __ASSEMBLER__ #include <asm/ppc-opcode.h> #endif /* * Memory barrier. * The sync instruction guarantees that all memory ...
arch/powerpc/include/asm/barrier.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * PowerPC atomic bit operations. * * Merged version by David Gibson <david@gibson.dropbear.id.au>. * Based on ppc64 versions by: Dave Engebretsen, Todd Inglett, Don * Reed, Pat McCarthy, Peter Bergner, Anton Blanchard. They * originally took it from the ppc32 co...
arch/powerpc/include/asm/bitops.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * This file describes the structure passed from the BootX application * (for MacOS) when it is used to boot Linux. * * Written by Benjamin Herrenschmidt. */ #ifndef __ASM_BOOTX_H__ #define __ASM_BOOTX_H__ #include <uapi/asm/bootx.h> /* (*) The format of the colormap is ...
arch/powerpc/include/asm/bootx.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BPF_PERF_EVENT_H #define _ASM_POWERPC_BPF_PERF_EVENT_H #include <asm/ptrace.h> typedef struct user_pt_regs bpf_user_pt_regs_t; #endif /* _ASM_POWERPC_BPF_PERF_EVENT_H */
arch/powerpc/include/asm/bpf_perf_event.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Definitions for using the procedures in btext.c. * * Benjamin Herrenschmidt <benh@kernel.crashing.org> */ #ifndef __PPC_BTEXT_H #define __PPC_BTEXT_H #ifdef __KERNEL__ extern int btext_find_display(int allow_nonstdout); extern void btext_update_display(unsigned long phys...
arch/powerpc/include/asm/btext.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_BUG_H #define _ASM_POWERPC_BUG_H #ifdef __KERNEL__ #include <asm/asm-compat.h> #ifdef CONFIG_BUG #ifdef __ASSEMBLER__ #include <asm/asm-offsets.h> #ifdef CONFIG_DEBUG_BUGVERBOSE .macro EMIT_BUG_ENTRY addr,file,line,flags .section __bug_table,"aw" 5001: ....
arch/powerpc/include/asm/bug.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CACHE_H #define _ASM_POWERPC_CACHE_H #ifdef __KERNEL__ /* bytes per L1 cache line */ #if defined(CONFIG_PPC_8xx) #define L1_CACHE_SHIFT 4 #define MAX_COPY_PREFETCH 1 #define IFETCH_ALIGN_SHIFT 2 #elif defined(CONFIG_PPC_E500MC) #define L1_CACHE_SHIFT 6 #d...
arch/powerpc/include/asm/cache.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* */ #ifndef _ASM_POWERPC_CACHEFLUSH_H #define _ASM_POWERPC_CACHEFLUSH_H #include <linux/mm.h> #include <asm/cputable.h> #include <asm/cpu_has_feature.h> /* * This flag is used to indicate that the page pointed to by a pte is clean * and does not require cleaning be...
arch/powerpc/include/asm/cacheflush.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Cell Broadband Engine Performance Monitor * * (C) Copyright IBM Corporation 2006 * * Author: * David Erb (djerb@us.ibm.com) * Kevin Corry (kevcorry@us.ibm.com) */ #ifndef __ASM_CELL_PMU_H__ #define __ASM_CELL_PMU_H__ /* The Cell PMU has four hardware pe...
arch/powerpc/include/asm/cell-pmu.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * cbe_regs.h * * This file is intended to hold the various register definitions for CBE * on-chip system devices (memory controller, IO controller, etc...) * * (C) Copyright IBM Corporation 2001,2006 * * Authors: Maximino Aguilar (maguilar@us.ibm.com) * David ...
arch/powerpc/include/asm/cell-regs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_CHECKSUM_H #define _ASM_POWERPC_CHECKSUM_H #ifdef __KERNEL__ /* */ #include <linux/bitops.h> #include <linux/in6.h> /* * Computes the checksum of a memory block at src, length len, * and adds in "sum" (32-bit), while copying the block to dst. * ...
arch/powerpc/include/asm/checksum.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CLOCKSOURCE_H #define _ASM_POWERPC_CLOCKSOURCE_H #include <asm/vdso/clocksource.h> #endif /* _ASM_POWERPC_CLOCKSOURCE_H */
arch/powerpc/include/asm/clocksource.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CMPXCHG_H_ #define _ASM_POWERPC_CMPXCHG_H_ #ifdef __KERNEL__ #include <linux/compiler.h> #include <asm/synch.h> #include <linux/bug.h> #ifdef __BIG_ENDIAN #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) #else #define BITOFF_CAL(siz...
arch/powerpc/include/asm/cmpxchg.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright 2018, Michael Ellerman, IBM Corporation. */ #ifndef _ASM_POWERPC_CODE_PATCHING_ASM_H #define _ASM_POWERPC_CODE_PATCHING_ASM_H /* Define a "site" that can be patched */ .macro patch_site label name .pushsection ".rodata" .balign 4 .global \name \name: .4byte ...
arch/powerpc/include/asm/code-patching-asm.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_COMPAT_H #define _ASM_POWERPC_COMPAT_H #ifdef __KERNEL__ /* * Architecture specific compatibility types */ #include <linux/types.h> #include <linux/sched.h> #define compat_ipc_pid_t compat_ipc_pid_t typedef u16 compat_ipc_pid_t; #define compat_ipc64_perm ...
arch/powerpc/include/asm/compat.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CONTEXT_TRACKING_H #define _ASM_POWERPC_CONTEXT_TRACKING_H #ifdef CONFIG_CONTEXT_TRACKING_USER #define SCHEDULE_USER bl schedule_user #else #define SCHEDULE_USER bl schedule #endif #endif
arch/powerpc/include/asm/context_tracking.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2014 IBM Corp. */ #ifndef _ASM_POWERPC_COPRO_H #define _ASM_POWERPC_COPRO_H #include <linux/mm_types.h> struct copro_slb { u64 esid, vsid; }; int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, unsigned long dsisr, vm_fault_t *flt)...
arch/powerpc/include/asm/copro.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * MPC8xx Communication Processor Module. * Copyright (c) 1997 Dan Malek (dmalek@jlc.net) * * This file contains structures and information for the communication * processor channels. Some CPM control and status is available * through the MPC8xx internal memory map. See ...
arch/powerpc/include/asm/cpm1.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Communication Processor Module v2. * * This file contains structures and information for the communication * processor channels found in the dual port RAM or parameter RAM. * All CPM control and status is available through the CPM2 internal * memory map. See immap_cpm2...
arch/powerpc/include/asm/cpm2.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_POWERPC_CPU_HAS_FEATURE_H #define __ASM_POWERPC_CPU_HAS_FEATURE_H #ifndef __ASSEMBLER__ #include <linux/bug.h> #include <asm/cputable.h> static __always_inline bool early_cpu_has_feature(unsigned long feature) { return !!((CPU_FTRS_ALWAYS & feature) || (CPU_F...
arch/powerpc/include/asm/cpu_has_feature.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2020 IBM Corporation */ #ifndef _ASM_POWERPC_CPU_SETUP_H #define _ASM_POWERPC_CPU_SETUP_H void __setup_cpu_power7(unsigned long offset, struct cpu_spec *spec); void __setup_cpu_power8(unsigned long offset, struct cpu_spec *spec); void __setup_cpu_pow...
arch/powerpc/include/asm/cpu_setup.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * CPU feature definitions for module loading, used by * module_cpu_feature_match(), see asm/cputable.h for powerpc CPU features. * * Copyright 2016 Alastair D'Silva, IBM Corporation. */ #ifndef __ASM_POWERPC_CPUFEATURE_H #define __ASM_POWERPC_CPUFEATURE_H #inclu...
arch/powerpc/include/asm/cpufeature.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CPUIDLE_H #define _ASM_POWERPC_CPUIDLE_H #ifdef CONFIG_PPC_POWERNV /* Thread state used in powernv idle state management */ #define PNV_THREAD_RUNNING 0 #define PNV_THREAD_NAP 1 #define PNV_THREAD_SLEEP 2 #define P...
arch/powerpc/include/asm/cpuidle.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_POWERPC_CPUTABLE_H #define __ASM_POWERPC_CPUTABLE_H #include <linux/types.h> #include <uapi/asm/cputable.h> #include <asm/asm-const.h> #ifndef __ASSEMBLER__ /* This structure can grow, it's real size is used by head.S code * via the mkdefs mechanism. */ struct ...
arch/powerpc/include/asm/cputable.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CPUTHREADS_H #define _ASM_POWERPC_CPUTHREADS_H #ifndef __ASSEMBLER__ #include <linux/cpumask.h> #include <asm/cpu_has_feature.h> /* * Mapping of threads to cores * * Note: This implementation is limited to a power of 2 number of * threads per core and th...
arch/powerpc/include/asm/cputhreads.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Definitions for measuring cputime on powerpc machines. * * Copyright (C) 2006 Paul Mackerras, IBM Corp. * * If we have CONFIG_VIRT_CPU_ACCOUNTING_NATIVE, we measure cpu time in * the same units as the timebase. Otherwise we measure cpu time * in jiffies using...
arch/powerpc/include/asm/cputime.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_CRASH_RESERVE_H #define _ASM_POWERPC_CRASH_RESERVE_H /* crash kernel regions are Page size agliged */ #define CRASH_ALIGN PAGE_SIZE #ifdef CONFIG_ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION static inline bool arch_add_crash_res_to_iomem(void) { ret...
arch/powerpc/include/asm/crash_reserve.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ASM_POWERPC_CRASHDUMP_PPC64_H #define _ASM_POWERPC_CRASHDUMP_PPC64_H /* * Backup region - first 64KB of System RAM * * If ever the below macros are to be changed, please be judicious. * The implicit assumptions are: * - start, end & size are less than UINT3...
arch/powerpc/include/asm/crashdump-ppc64.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_CURRENT_H #define _ASM_POWERPC_CURRENT_H #ifdef __KERNEL__ /* */ struct task_struct; #ifdef __powerpc64__ #include <linux/stddef.h> #include <asm/paca.h> static inline struct task_struct *get_current(void) { struct task_struct *task; /* get_cu...
arch/powerpc/include/asm/current.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Definitions for using the Apple Descriptor-Based DMA controller * in Power Macintosh computers. * * Copyright (C) 1996 Paul Mackerras. */ #ifdef __KERNEL__ #ifndef _ASM_DBDMA_H_ #define _ASM_DBDMA_H_ /* * DBDMA control/status registers. All little-endian. */ struct d...
arch/powerpc/include/asm/dbdma.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2009 Freescale Semiconductor, Inc. * * provides masks and opcode images for use by code generation, emulation * and for instructions that older assemblers might not know about */ #ifndef _ASM_POWERPC_DBELL_H #define _ASM_POWERPC_DBELL_H #include <linu...
arch/powerpc/include/asm/dbell.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * (c) Copyright 2006 Benjamin Herrenschmidt, IBM Corp. * <benh@kernel.crashing.org> */ #ifndef _ASM_POWERPC_DCR_NATIVE_H #define _ASM_POWERPC_DCR_NATIVE_H #ifdef __KERNEL__ #ifndef __ASSEMBLER__ #include <linux/spinlock.h> #include <asm/cputable...
arch/powerpc/include/asm/dcr-native.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Common DCR / SDR / CPR register definitions used on various IBM/AMCC * 4xx processors * * Copyright 2007 Benjamin Herrenschmidt, IBM Corp * <benh@kernel.crashing.org> * * Mostly lifted from asm-ppc/ibm4xx.h by * * Copyright (c) 1999 Grant Eric...
arch/powerpc/include/asm/dcr-regs.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * (c) Copyright 2006 Benjamin Herrenschmidt, IBM Corp. * <benh@kernel.crashing.org> */ #ifndef _ASM_POWERPC_DCR_H #define _ASM_POWERPC_DCR_H #ifdef __KERNEL__ #ifndef __ASSEMBLER__ #ifdef CONFIG_PPC_DCR #include <asm/dcr-native.h> typedef dcr_h...
arch/powerpc/include/asm/dcr.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu> */ #ifndef _ASM_POWERPC_DEBUG_H #define _ASM_POWERPC_DEBUG_H #include <asm/hw_breakpoint.h> struct pt_regs; #if defined(CONFIG_DEBUGGER) || defined(CONFIG_KEXEC_CORE) extern int (*__debugger)(struct pt_regs *regs); extern...
arch/powerpc/include/asm/debug.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _ASM_POWERPC_DELAY_H #define _ASM_POWERPC_DELAY_H #ifdef __KERNEL__ #include <linux/processor.h> #include <asm/time.h> /* * Copyright 1996, Paul Mackerras. * Copyright (C) 2009 Freescale Semiconductor, Inc. All rights reserved. * * PPC64 Support added by Dav...
arch/powerpc/include/asm/delay.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Arch specific extensions to struct device */ #ifndef _ASM_POWERPC_DEVICE_H #define _ASM_POWERPC_DEVICE_H struct device_node; #ifdef CONFIG_PPC64 struct pci_dn; struct iommu_table; #endif /* * Arch extensions to struct device. * * When adding fields, consider macio...
arch/powerpc/include/asm/device.h
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> */ #ifndef __ASM_PPC_DISASSEMBLE_H__ #define __ASM_PPC_DISASSEMBLE_H__ #include <linux/types.h> static inline unsigned int get_op(u32 inst) { return inst >> 26; } static inline unsign...
arch/powerpc/include/asm/disassemble.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef ASM_POWERPC_DMA_DIRECT_H #define ASM_POWERPC_DMA_DIRECT_H 1 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { return paddr + dev->archdata.dma_offset; } static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) { return dad...
arch/powerpc/include/asm/dma-direct.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_POWERPC_DMA_H #define _ASM_POWERPC_DMA_H #ifdef __KERNEL__ /* * Defines for using and allocating dma channels. * Written by Hennus Bergman, 1992. * High DMA channel support & info by Hannu Savolainen * and John Boyd, Nov. 1992. * Changes for ppc sound by Christo...
arch/powerpc/include/asm/dma.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * drmem.h: Power specific logical memory block representation * * Copyright 2017 IBM Corporation */ #ifndef _ASM_POWERPC_LMB_H #define _ASM_POWERPC_LMB_H #include <linux/sched.h> struct drmem_lmb { u64 base_addr; u32 drc_index; u32 aa_index; u32 ...
arch/powerpc/include/asm/drmem.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __ASM_POWERPC_DT_CPU_FTRS_H #define __ASM_POWERPC_DT_CPU_FTRS_H /* * Copyright 2017, IBM Corporation * cpufeatures is the new way to discover CPU features with /cpus/features * devicetree. This supersedes PVR based discovery ("cputable"), and older * device tree f...
arch/powerpc/include/asm/dt_cpu_ftrs.h
null
null
null
null
null
source
linux
#ifndef _ASM_POWERPC_DTL_H #define _ASM_POWERPC_DTL_H #include <linux/rwsem.h> #include <asm/lppaca.h> /* * Layout of entries in the hypervisor's dispatch trace log buffer. */ struct dtl_entry { u8 dispatch_reason; u8 preempt_reason; __be16 processor_id; __be32 enqueue_to_dispatch_time; __be32 ready_to_enqueue...
arch/powerpc/include/asm/dtl.h
null
null
null
null
null
source
linux
/* * PPC EDAC common defs * * Author: Dave Jiang <djiang@mvista.com> * * 2007 (c) MontaVista Software, Inc. This file is licensed under * or implied. */ #ifndef ASM_EDAC_H #define ASM_EDAC_H /* * ECC atomic, DMA, SMP and interrupt safe scrub function. * Implements the per arch edac_atomic_scrub() that EDAC use...
arch/powerpc/include/asm/edac.h
null
null
null
null
null