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
/* * Microwatt FPGA-based SoC platform setup code. * * Copyright 2020 Paul Mackerras (paulus@ozlabs.org), IBM Corp. */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/stddef.h> #include <linux/init.h> #include <linux/of.h> #include <linux/of_platform.h> #include <asm/machdep.h> #include <asm/ti...
arch/powerpc/platforms/microwatt/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * SMP support functions for Microwatt * Copyright 2025 Paul Mackerras <paulus@ozlabs.org> */ #include <linux/kernel.h> #include <linux/smp.h> #include <linux/io.h> #include <asm/early_ioremap.h> #include <asm/ppc-opcode.h> #include <asm/reg.h> #include <asm/smp.h> #i...
arch/powerpc/platforms/microwatt/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2006-2007 PA Semi, Inc * * Common functions for DMA access on PA Semi PWRficient */ #include <linux/kernel.h> #include <linux/export.h> #include <linux/pci.h> #include <linux/slab.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_i...
arch/powerpc/platforms/pasemi/dma_lib.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2006-2007 PA Semi, Inc * * Author: Olof Johansson, PA Semi * * Maintained by: Olof Johansson <olof@lixom.net> * * Based on drivers/net/fs_enet/mii-bitbang.c. */ #include <linux/io.h> #include <linux/module.h> #include <linux/types.h> #include <linux/s...
arch/powerpc/platforms/pasemi/gpio_mdio.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2006-2007 PA Semi, Inc * * Maintained by: Olof Johansson <olof@lixom.net> */ #undef DEBUG #include <linux/kernel.h> #include <linux/string.h> #include <linux/irq.h> #include <asm/machdep.h> #include <asm/reg.h> #include <asm/smp.h> #include "pasemi.h" ...
arch/powerpc/platforms/pasemi/idle.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2005-2008, PA Semi, Inc * * Maintained by: Olof Johansson <olof@lixom.net> */ #undef DEBUG #include <linux/memblock.h> #include <linux/types.h> #include <linux/spinlock.h> #include <linux/pci.h> #include <linux/of.h> #include <asm/iommu.h> #include <asm/...
arch/powerpc/platforms/pasemi/iommu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 PA Semi, Inc * * Parts based on arch/powerpc/sysdev/fsl_soc.c: * * 2006 (c) MontaVista Software, Inc. */ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/pci.h> #include <linux/of.h> #include <linux/of_irq.h> #include <linux/i...
arch/powerpc/platforms/pasemi/misc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2007, Olof Johansson, PA Semi * * Based on arch/powerpc/sysdev/mpic_u3msi.c: * * Copyright 2006, Segher Boessenkool, IBM Corporation. * Copyright 2006-2007, Michael Ellerman, IBM Corporation. */ #include <linux/irq.h> #include <linux/irqdomain.h> #include ...
arch/powerpc/platforms/pasemi/msi.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PASEMI_PASEMI_H #define _PASEMI_PASEMI_H extern time64_t pas_get_boot_time(void); extern void pas_pci_init(void); struct pci_dev; extern void pas_pci_dma_dev_setup(struct pci_dev *dev); void __iomem *__init pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset); extern...
arch/powerpc/platforms/pasemi/pasemi.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2006 PA Semi, Inc * * Authors: Kip Walker, PA Semi * Olof Johansson, PA Semi * * Maintained by: Olof Johansson <olof@lixom.net> * * Based on arch/powerpc/platforms/maple/pci.c */ #include <linux/kernel.h> #include <linux/of_address.h> #include <...
arch/powerpc/platforms/pasemi/pci.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2006-2007 PA Semi, Inc * * Maintained by: Olof Johansson <olof@lixom.net> */ #include <asm/processor.h> #include <asm/page.h> #include <asm/ppc_asm.h> #include <asm/cputable.h> #include <asm/cache.h> #include <asm/thread_info.h> #include <asm/asm-offse...
arch/powerpc/platforms/pasemi/powersave.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2006-2007 PA Semi, Inc * * Authors: Kip Walker, PA Semi * Olof Johansson, PA Semi * * Maintained by: Olof Johansson <olof@lixom.net> * * Based on arch/powerpc/platforms/maple/setup.c */ #include <linux/errno.h> #include <linux/kernel.h> #include ...
arch/powerpc/platforms/pasemi/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2006 PA Semi, Inc * * Maintained by: Olof Johansson <olof@lixom.net> */ #include <linux/time.h> #include <asm/time.h> #include "pasemi.h" time64_t __init pas_get_boot_time(void) { /* Let's just return a fake date right now */ return mktime64(2006, 1,...
arch/powerpc/platforms/pasemi/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Miscellaneous procedures for dealing with the PowerMac hardware. * Contains support for the backlight. * * Copyright (C) 2000 Benjamin Herrenschmidt * Copyright (C) 2006 Michael Hanselmann <linux-kernel@hansmi.ch> * */ #include <linux/kernel.h> #include <linux/b...
arch/powerpc/platforms/powermac/backlight.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Early boot support code for BootX bootloader * * Copyright (C) 2005 Ben. Herrenschmidt (benh@kernel.crashing.org) */ #include <linux/kernel.h> #include <linux/string.h> #include <linux/init.h> #include <linux/of_fdt.h> #include <generated/utsrelease.h> #include <...
arch/powerpc/platforms/powermac/bootx_init.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains low-level cache management functions * used for sleep and CPU speed changes on Apple machines. * (In fact the only thing that is Apple-specific is that we assume * that we can read from ROM at physical address 0xfff00000.) * * Copyright (C...
arch/powerpc/platforms/powermac/cache.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 1996-2001 Paul Mackerras (paulus@cs.anu.edu.au) * Ben. Herrenschmidt (benh@kernel.crashing.org) * * TODO: * * - Replace mdelay with some schedule loop if possible * - Shorten some obfuscated delays on some routines (li...
arch/powerpc/platforms/powermac/feature.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * arch/powerpc/platforms/powermac/low_i2c.c * * Copyright (C) 2003-2005 Ben. Herrenschmidt (benh@kernel.crashing.org) * * The linux i2c layer isn't completely suitable for our needs for various * reasons ranging from too late initialisation to semantics not perfect...
arch/powerpc/platforms/powermac/low_i2c.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2002 Benjamin Herrenschmidt (benh@kernel.crashing.org) * * Todo: - add support for the OF persistent properties */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/stddef.h> #include <linux/string.h> #include <linux/nvram.h> #inclu...
arch/powerpc/platforms/powermac/nvram.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Support for PCI bridges found on Power Macintoshes. * * Copyright (C) 2003-2005 Benjamin Herrenschmuidt (benh@kernel.crashing.org) * Copyright (C) 1997 Paul Mackerras (paulus@samba.org) */ #include <linux/kernel.h> #include <linux/pci.h> #include <linux/delay.h> #...
arch/powerpc/platforms/powermac/pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/types.h> #include <linux/init.h> #include <linux/delay.h> #include <linux/kernel.h> #include <linux/interrupt.h> #include <linux/spinlock.h> #include <linux/of_irq.h> #include <asm/pmac_feature.h> #include <asm/pmac_pfunc.h> #undef DEBUG #ifdef DEBUG #define DBG(fmt...
arch/powerpc/platforms/powermac/pfunc_base.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * * FIXME: Properly make this race free with refcounting etc... * * FIXME: LOCKING !!! */ #include <linux/delay.h> #include <linux/kernel.h> #include <linux/spinlock.h> #include <linux/slab.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/of.h> #in...
arch/powerpc/platforms/powermac/pfunc_core.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Support for the interrupt controllers found on Power Macintosh, * currently Apple's "Grand Central" interrupt controller in all * its incarnations. OpenPIC support used on newer machines is * in a separate file * * Copyright (C) 1997 Paul Mackerras (paulus@sa...
arch/powerpc/platforms/powermac/pic.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __PMAC_H__ #define __PMAC_H__ #include <linux/pci.h> #include <linux/irq.h> #include <asm/pmac_feature.h> /* * Declaration for the various functions exported by the * pmac_* files. Mostly for use by pmac_setup */ struct rtc_time; extern int pmac_newworld; void g5_...
arch/powerpc/platforms/powermac/pmac.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Powermac setup and early boot code plus other random bits. * * PowerPC version * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) * * Adapted for Power Macintosh by Paul Mackerras * Copyright (C) 1996 Paul Mackerras (paulus@samba.org) * * Derive...
arch/powerpc/platforms/powermac/setup.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains sleep low-level functions for PowerBook G3. * Copyright (C) 1999 Benjamin Herrenschmidt (benh@kernel.crashing.org) * and Paul Mackerras (paulus@samba.org). */ #include <asm/processor.h> #include <asm/page.h> #include <asm/ppc_asm.h> #inc...
arch/powerpc/platforms/powermac/sleep.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * SMP support for power macintosh. * * We support both the old "powersurge" SMP architecture * and the current Core99 (G4 PowerMac) machines. * * Note that we don't support the very first rev. of * Apple/DayStar 2 CPUs board, the one with the funky * watchdog. Hop...
arch/powerpc/platforms/powermac/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Support for periodic interrupts (100 per second) and for getting * the current time from the RTC on Power Macintoshes. * * We use the decrementer register for our periodic interrupts. * * Paul Mackerras August 1996. * Copyright (C) 1996 Paul Mackerras. * Copyright (C) 20...
arch/powerpc/platforms/powermac/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/string.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/bitops.h> #include <linux/ptrace.h> #include <linux/adb.h> #include <linux/pmu.h> #include <linux/cuda.h> #include <linux/of.h> #include <asm/machdep.h> #include <asm/io.h> #include <asm/page...
arch/powerpc/platforms/powermac/udbg_adb.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * udbg for zilog scc ports as found on Apple PowerMacs * * Copyright (C) 2001-2005 PPC 64 Team, IBM Corp */ #include <linux/types.h> #include <linux/of.h> #include <asm/udbg.h> #include <asm/processor.h> #include <asm/io.h> #include <asm/pmac_feature.h> extern u8 rea...
arch/powerpc/platforms/powermac/udbg_scc.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2016-17 IBM Corp. */ #include <asm/ppc-opcode.h> #include <asm/reg.h> /* * Copy/paste instructions: * * copy RA,RB * Copy contents of address (RA) + effective_address(RB) * to internal copy-buffer. * * paste RA,RB * Paste contents of internal ...
arch/powerpc/platforms/powernv/copy-paste.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV Platform dependent EEH operations * * Copyright Benjamin Herrenschmidt & Gavin Shan, IBM Corporation 2013. */ #include <linux/atomic.h> #include <linux/debugfs.h> #include <linux/delay.h> #include <linux/export.h> #include <linux/init.h> #include <linux/int...
arch/powerpc/platforms/powernv/eeh-powernv.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV cpuidle code * * Copyright 2015 IBM Corp. */ #include <linux/types.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/of.h> #include <linux/device.h> #include <linux/cpu.h> #include <asm/firmware.h> #include <asm/interrupt.h> #include <asm/ma...
arch/powerpc/platforms/powernv/idle.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) IBM Corporation, 2014, 2017 * Anton Blanchard, Rashmica Gupta. */ #define pr_fmt(fmt) "memtrace: " fmt #include <linux/bitops.h> #include <linux/string.h> #include <linux/memblock.h> #include <linux/init.h> #include <linux/moduleparam.h> #include <lin...
arch/powerpc/platforms/powernv/memtrace.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ // Copyright 2017 IBM Corp. #include <asm/pnv-ocxl.h> #include <asm/opal.h> #include <misc/ocxl-config.h> #include "pci.h" #define PNV_OCXL_TL_P9_RECV_CAP 0x000000000000000Full #define PNV_OCXL_ACTAG_MAX 64 /* PASIDs are 20-bit, but on P9, NPU can only handle 15 bits */ #define P...
arch/powerpc/platforms/powernv/ocxl.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL asynchronous completion interfaces * * Copyright 2013-2017 IBM Corp. */ #undef DEBUG #include <linux/kernel.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/sched.h> #include <linux/semaphore.h> #include <linux/spinlock.h> #include <...
arch/powerpc/platforms/powernv/opal-async.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/percpu.h> #include <linux/jump_label.h> #include <asm/interrupt.h> #include <asm/opal-api.h> #include <asm/trace.h> #include <asm/asm-prototypes.h> #ifdef CONFIG_TRACEPOINTS /* * Since the tracing code might execute OPAL calls we need to guard against * recursion. ...
arch/powerpc/platforms/powernv/opal-call.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Interface for exporting the OPAL ELF core. * Heavily inspired from fs/proc/vmcore.c * * Copyright 2019, Hari Bathini, IBM Corporation. */ #define pr_fmt(fmt) "opal core: " fmt #include <linux/memblock.h> #include <linux/uaccess.h> #include <linux/proc_fs.h> #include ...
arch/powerpc/platforms/powernv/opal-core.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL Dump Interface * * Copyright 2013,2014 IBM Corp. */ #include <linux/kobject.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/vmalloc.h> #include <linux/pagemap.h> #include <linux/delay.h> #include <linux/interrupt.h> #include <asm/opal...
arch/powerpc/platforms/powernv/opal-dump.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Error log support on PowerNV. * * Copyright 2013,2014 IBM Corp. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/interrupt.h> #include <linux/of.h> #include <linux/slab.h> #include <linux/sysfs.h> #include <linux/fs.h> #include <linux/vmalloc.h> ...
arch/powerpc/platforms/powernv/opal-elog.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Firmware-Assisted Dump support on POWER platform (OPAL). * * Copyright 2019, Hari Bathini, IBM Corporation. */ #define pr_fmt(fmt) "opal fadump: " fmt #include <linux/string.h> #include <linux/seq_file.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <l...
arch/powerpc/platforms/powernv/opal-fadump.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Firmware-Assisted Dump support on POWER platform (OPAL). * * Copyright 2019, Hari Bathini, IBM Corporation. */ #ifndef _POWERNV_OPAL_FADUMP_H #define _POWERNV_OPAL_FADUMP_H #include <asm/reg.h> /* * With kernel & initrd loaded at 512MB (with 256MB size), enfo...
arch/powerpc/platforms/powernv/opal-fadump.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL Firmware Update Interface * * Copyright 2013 IBM Corp. */ #define DEBUG #include <linux/kernel.h> #include <linux/reboot.h> #include <linux/init.h> #include <linux/kobject.h> #include <linux/sysfs.h> #include <linux/slab.h> #include <linux/mm.h> #incl...
arch/powerpc/platforms/powernv/opal-flash.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * OPAL hypervisor Maintenance interrupt handling support in PowerNV. * * Copyright 2014 IBM Corporation * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> */ #undef DEBUG #include <linux/kernel.h> #include <linux/init.h> #include <linux/of.h> #include <linux/m...
arch/powerpc/platforms/powernv/opal-hmi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * OPAL IMC interface detection driver * Supported on POWERNV platform * * Copyright (C) 2017 Madhavan Srinivasan, IBM Corporation. * (C) 2017 Anju T Sudhakar, IBM Corporation. * (C) 2017 Hemant K Shaw, IBM Corporation. */ #include <linux/kernel.h> #include <linux...
arch/powerpc/platforms/powernv/opal-imc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * This file implements an irqchip for OPAL events. Whenever there is * an interrupt that is handled by OPAL we get passed a list of events * that Linux needs to do something about. These basically look like * interrupts to Linux so we implement an irqchip to handle th...
arch/powerpc/platforms/powernv/opal-irqchip.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * kmsg dumper that ensures the OPAL console fully flushes panic messages * * Author: Russell Currey <ruscur@russell.cc> * * Copyright 2015 IBM Corporation. */ #include <linux/kmsg_dump.h> #include <asm/opal.h> #include <asm/opal-api.h> /* * Console output is con...
arch/powerpc/platforms/powernv/opal-kmsg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV LPC bus handling. * * Copyright 2013 IBM Corp. */ #include <linux/kernel.h> #include <linux/of.h> #include <linux/bug.h> #include <linux/io.h> #include <linux/slab.h> #include <linux/debugfs.h> #include <asm/machdep.h> #include <asm/firmware.h> #include <a...
arch/powerpc/platforms/powernv/opal-lpc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * OPAL asynchronus Memory error handling support in PowerNV. * * Copyright 2013 IBM Corporation * Author: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> */ #undef DEBUG #include <linux/kernel.h> #include <linux/init.h> #include <linux/of.h> #include <linux/mm.h> #in...
arch/powerpc/platforms/powernv/opal-memory-errors.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL in-memory console interface * * Copyright 2014 IBM Corp. */ #include <asm/io.h> #include <asm/opal.h> #include <linux/debugfs.h> #include <linux/of.h> #include <linux/types.h> #include <asm/barrier.h> #include "powernv.h" /* OPAL in-memory console. D...
arch/powerpc/platforms/powernv/opal-msglog.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV nvram code. * * Copyright 2011 IBM Corp. */ #define DEBUG #include <linux/delay.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/of.h> #include <asm/opal.h> #include <asm/nvram.h> #include <asm/machdep.h> static unsigned int nvram_siz...
arch/powerpc/platforms/powernv/opal-nvram.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL power control for graceful shutdown handling * * Copyright 2015 IBM Corp. */ #define pr_fmt(fmt) "opal-power: " fmt #include <linux/kernel.h> #include <linux/reboot.h> #include <linux/notifier.h> #include <linux/of.h> #include <asm/opal.h> #include <...
arch/powerpc/platforms/powernv/opal-power.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL Powercap interface * * Copyright 2017 IBM Corp. */ #define pr_fmt(fmt) "opal-powercap: " fmt #include <linux/of.h> #include <linux/kobject.h> #include <linux/slab.h> #include <asm/opal.h> static DEFINE_MUTEX(powercap_mutex); static struct kobje...
arch/powerpc/platforms/powernv/opal-powercap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * OPAL Runtime Diagnostics interface driver * Supported on POWERNV platform * * Copyright IBM Corporation 2015 */ #define pr_fmt(fmt) "opal-prd: " fmt #include <linux/kernel.h> #include <linux/module.h> #include <linux/platform_device.h> #include <linux/miscdevice.h> #...
arch/powerpc/platforms/powernv/opal-prd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL Power-Shift-Ratio interface * * Copyright 2017 IBM Corp. */ #define pr_fmt(fmt) "opal-psr: " fmt #include <linux/of.h> #include <linux/kobject.h> #include <linux/slab.h> #include <asm/opal.h> static DEFINE_MUTEX(psr_mutex); static struct kobjec...
arch/powerpc/platforms/powernv/opal-psr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV Real Time Clock. * * Copyright 2011 IBM Corp. */ #include <linux/kernel.h> #include <linux/time.h> #include <linux/bcd.h> #include <linux/rtc.h> #include <linux/delay.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/platform_device.h...
arch/powerpc/platforms/powernv/opal-rtc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * PowerNV code for secure variables * * Copyright (C) 2019 IBM Corporation * Author: Claudio Carvalho * Nayna Jain * * APIs to access secure variables managed by OPAL. */ #define pr_fmt(fmt) "secvar: "fmt #include <linux/types.h> #include <linux/of.h> #include <l...
arch/powerpc/platforms/powernv/opal-secvar.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL Sensor-groups interface * * Copyright 2017 IBM Corp. */ #define pr_fmt(fmt) "opal-sensor-groups: " fmt #include <linux/of.h> #include <linux/kobject.h> #include <linux/slab.h> #include <asm/opal.h> static DEFINE_MUTEX(sg_mutex); static struct k...
arch/powerpc/platforms/powernv/opal-sensor-groups.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV sensor code * * Copyright (C) 2013 IBM */ #include <linux/delay.h> #include <linux/of.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <asm/opal.h> #include <asm/machdep.h> /* * This will return sensor information to driver ba...
arch/powerpc/platforms/powernv/opal-sensor.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV system parameter code * * Copyright (C) 2013 IBM */ #include <linux/kobject.h> #include <linux/mutex.h> #include <linux/slab.h> #include <linux/of.h> #include <linux/gfp.h> #include <linux/stat.h> #include <asm/opal.h> #define MAX_PARAM_DATA_LEN 64 static...
arch/powerpc/platforms/powernv/opal-sysparam.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/percpu.h> #include <linux/jump_label.h> #include <asm/trace.h> #ifdef CONFIG_JUMP_LABEL struct static_key opal_tracepoint_key = STATIC_KEY_INIT; int opal_tracepoint_regfunc(void) { static_key_slow_inc(&opal_tracepoint_key); return 0; } void opal_tracepoint_unregf...
arch/powerpc/platforms/powernv/opal-tracepoints.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * PowerNV OPAL API wrappers * * Copyright 2011 IBM Corp. */ #include <linux/jump_label.h> #include <asm/ppc_asm.h> #include <asm/hvcall.h> #include <asm/asm-offsets.h> #include <asm/opal.h> #include <asm/asm-compat.h> #include <asm/feature-fixups.h> .section ".t...
arch/powerpc/platforms/powernv/opal-wrappers.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV SCOM bus debugfs interface * * Copyright 2010 Benjamin Herrenschmidt, IBM Corp * <benh@kernel.crashing.org> * and David Gibson, IBM Corporation. * Copyright 2013 IBM Corp. */ #include <linux/kernel.h> #include <linux/of.h> #incl...
arch/powerpc/platforms/powernv/opal-xscom.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV OPAL high level interfaces * * Copyright 2011 IBM Corp. */ #define pr_fmt(fmt) "opal: " fmt #include <linux/printk.h> #include <linux/types.h> #include <linux/of.h> #include <linux/of_fdt.h> #include <linux/of_platform.h> #include <linux/of_address.h> #inc...
arch/powerpc/platforms/powernv/opal.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * TCE helpers for IODA PCI/PCIe on PowerNV platforms * * Copyright 2018 IBM Corp. * * as published by the Free Software Foundation; either version */ #include <linux/kernel.h> #include <linux/iommu.h> #include <asm/iommu.h> #include <asm/tce.h> #include "pci.h" unsigned ...
arch/powerpc/platforms/powernv/pci-ioda-tce.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Support PCI/PCIe on PowerNV platforms * * Copyright 2011 Benjamin Herrenschmidt, IBM Corp. */ #undef DEBUG #include <linux/kernel.h> #include <linux/pci.h> #include <linux/crash_dump.h> #include <linux/delay.h> #include <linux/string.h> #include <linux/init.h> #in...
arch/powerpc/platforms/powernv/pci-ioda.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later #include <linux/kernel.h> #include <linux/ioport.h> #include <linux/bitmap.h> #include <linux/pci.h> #include <asm/opal.h> #include "pci.h" /* * The majority of the complexity in supporting SR-IOV on PowerNV comes from * the need to put the MMIO space for each VF into ...
arch/powerpc/platforms/powernv/pci-sriov.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Support PCI/PCIe on PowerNV platforms * * Copyright 2011 Benjamin Herrenschmidt, IBM Corp. */ #include <linux/kernel.h> #include <linux/pci.h> #include <linux/delay.h> #include <linux/string.h> #include <linux/init.h> #include <linux/irq.h> #include <linux/io.h> #i...
arch/powerpc/platforms/powernv/pci.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __POWERNV_PCI_H #define __POWERNV_PCI_H #include <linux/compiler.h> /* for __printf */ #include <linux/iommu.h> #include <asm/iommu.h> #include <asm/msi_bitmap.h> struct pci_dn; enum pnv_phb_type { PNV_PHB_IODA2, PNV_PHB_NPU_OCAPI, }; /* Precise PHB model for error ...
arch/powerpc/platforms/powernv/pci.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _POWERNV_H #define _POWERNV_H /* * There's various hacks scattered throughout the generic powerpc arch code * that needs to call into powernv platform stuff. The prototypes for those * functions are in asm/powernv.h */ #include <asm/powernv.h> #ifdef CONFIG_SMP exter...
arch/powerpc/platforms/powernv/powernv.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2013, Michael Ellerman, IBM Corporation. */ #define pr_fmt(fmt) "powernv-rng: " fmt #include <linux/kernel.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_platform.h> #include <linux/slab.h> #include <linux/smp.h> #include <asm/ar...
arch/powerpc/platforms/powernv/rng.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerNV setup code. * * Copyright 2011 IBM Corp. */ #undef DEBUG #include <linux/cpu.h> #include <linux/errno.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/tty.h> #include <linux/reboot.h> #include <linux/init.h> #include <linux/console.h> ...
arch/powerpc/platforms/powernv/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * SMP support for PowerNV machines. * * Copyright 2011 IBM Corp. */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/sched.h> #include <linux/sched/hotplug.h> #include <linux/smp.h> #include <linux/interrupt.h> #include <linux/delay.h> #include <li...
arch/powerpc/platforms/powernv/smp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2013, Michael (Ellerman|Neuling), IBM Corporation. */ #include <asm/asm-offsets.h> #include <asm/ppc_asm.h> #include <asm/reg.h> #include "subcore.h" _GLOBAL(split_core_secondary_loop) /* * r3 = u8 *state, used throughout the routine * r4 = temp ...
arch/powerpc/platforms/powernv/subcore-asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2013, Michael (Ellerman|Neuling), IBM Corporation. */ #define pr_fmt(fmt) "powernv: " fmt #include <linux/kernel.h> #include <linux/cpu.h> #include <linux/cpumask.h> #include <linux/device.h> #include <linux/gfp.h> #include <linux/smp.h> #include <linux/st...
arch/powerpc/platforms/powernv/subcore.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2013, Michael Ellerman, IBM Corporation. */ /* These are ordered and tested with <= */ #define SYNC_STEP_INITIAL 0 #define SYNC_STEP_UNSPLIT 1 /* Set by secondary when it sees unsplit */ #define SYNC_STEP_REAL_MODE 2 /* Set by secondary when in real mode...
arch/powerpc/platforms/powernv/subcore.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Ultravisor high level interfaces * * Copyright 2019, IBM Corporation. * */ #include <linux/init.h> #include <linux/printk.h> #include <linux/of_fdt.h> #include <linux/of.h> #include <asm/ultravisor.h> #include <asm/firmware.h> #include <asm/machdep.h> #include "powernv.h"...
arch/powerpc/platforms/powernv/ultravisor.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2016-17 IBM Corp. */ #define pr_fmt(fmt) "vas: " fmt #include <linux/types.h> #include <linux/slab.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <asm/vas.h> #include "vas.h" static struct dentry *vas_debugfs; static char *cop_to_str(...
arch/powerpc/platforms/powernv/vas-debug.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * VAS Fault handling. * Copyright 2019, IBM Corporation */ #define pr_fmt(fmt) "vas: " fmt #include <linux/kernel.h> #include <linux/types.h> #include <linux/slab.h> #include <linux/uaccess.h> #include <linux/kthread.h> #include <linux/sched/signal.h> #include <linux/mmu_con...
arch/powerpc/platforms/powernv/vas-fault.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #undef TRACE_SYSTEM #define TRACE_SYSTEM vas #if !defined(_VAS_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) #define _VAS_TRACE_H #include <linux/tracepoint.h> #include <linux/sched.h> #include <asm/vas.h> TRACE_EVENT( vas_rx_win_open, TP_PROTO(struct task_struct *tsk, ...
arch/powerpc/platforms/powernv/vas-trace.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2016-17 IBM Corp. */ #define pr_fmt(fmt) "vas: " fmt #include <linux/types.h> #include <linux/mutex.h> #include <linux/slab.h> #include <linux/io.h> #include <linux/log2.h> #include <linux/rcupdate.h> #include <linux/cred.h> #include <linux/sched/mm.h> #in...
arch/powerpc/platforms/powernv/vas-window.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2016-17 IBM Corp. */ #define pr_fmt(fmt) "vas: " fmt #include <linux/module.h> #include <linux/kernel.h> #include <linux/export.h> #include <linux/types.h> #include <linux/slab.h> #include <linux/platform_device.h> #include <linux/of_platform.h> #include <...
arch/powerpc/platforms/powernv/vas.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2016-17 IBM Corp. */ #ifndef _VAS_H #define _VAS_H #include <linux/atomic.h> #include <linux/idr.h> #include <asm/vas.h> #include <linux/io.h> #include <linux/dcache.h> #include <linux/mutex.h> #include <linux/stringify.h> /* * Overview of Virtual Acce...
arch/powerpc/platforms/powernv/vas.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 device registration routines. * * Copyright (C) 2007 Sony Computer Entertainment Inc. * Copyright 2007 Sony Corp. */ #include <linux/delay.h> #include <linux/freezer.h> #include <linux/kernel.h> #include <linux/kthread.h> #include <linux/init.h> #include <linux...
arch/powerpc/platforms/ps3/device-init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 hvcall exports for modules. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #define LV1_CALL(name, in, out, num) \ extern s64 _lv1_##name(LV1_##in##_IN_##out##_OUT_ARG_DECL); \ EXPORT_SYMBOL(_l...
arch/powerpc/platforms/ps3/exports.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * udbg debug output routine via GELIC UDP broadcasts * * Copyright (C) 2007 Sony Computer Entertainment Inc. * Copyright 2006, 2007 Sony Corporation * Copyright (C) 2010 Hector Martin <hector@marcansoft.com> * Copyright (C) 2011 Andre Heider <a.heider@gmail.com> */...
arch/powerpc/platforms/ps3/gelic_udbg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 pagetable management routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006, 2007 Sony Corporation */ #include <linux/kernel.h> #include <linux/memblock.h> #include <asm/machdep.h> #include <asm/udbg.h> #include <asm/lv1call.h> #inc...
arch/powerpc/platforms/ps3/htab.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * PS3 hvcall interface. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. * Copyright 2003, 2004 (c) MontaVista Software, Inc. */ #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/ptrace.h> #define lv1call .long...
arch/powerpc/platforms/ps3/hvcall.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 interrupt routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/export.h> #include <linux/irq.h> #include <linux/irqdomain.h> #include <asm/machdep.h> #include <asm/udbg.h> #i...
arch/powerpc/platforms/ps3/interrupt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 address space management. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/dma-mapping.h> #include <linux/kernel.h> #include <linux/export.h> #include <linux/memblock.h> #include <linux/slab.h> #include <as...
arch/powerpc/platforms/ps3/mm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 flash memory os area. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/io.h> #include <linux/workqueue.h> #include <linux/fs.h> #include <linux/syscalls.h> #include <linux/export.h>...
arch/powerpc/platforms/ps3/os-area.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * PS3 platform declarations. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #if !defined(_PS3_PLATFORM_H) #define _PS3_PLATFORM_H #include <linux/rtc.h> #include <scsi/scsi.h> #include <asm/ps3.h> /* htab */ void __init ...
arch/powerpc/platforms/ps3/platform.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 repository routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <asm/lv1call.h> #include "platform.h" enum ps3_vendor_id { PS3_VENDOR_ID_NONE = 0, PS3_VENDOR_ID_SONY = 0x8000000000000000UL, }; enum ps3_l...
arch/powerpc/platforms/ps3/repository.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 platform setup routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/delay.h> #include <linux/fs.h> #include <linux/root_dev.h> #include <linux/console.h> #include <linux/expor...
arch/powerpc/platforms/ps3/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 SMP routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/smp.h> #include <asm/machdep.h> #include <asm/udbg.h> #include "platform.h" #if defined(DEBUG) #define DBG udbg_pri...
arch/powerpc/platforms/ps3/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 Platform spu routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/slab.h> #include <linux/mmzone.h> #include <linux/export.h> #include <linux/io.h> #in...
arch/powerpc/platforms/ps3/spu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 system bus driver. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/export.h> #include <linux/dma-map-ops.h> #include <linux/err.h> #include <linux/slab.h> ...
arch/powerpc/platforms/ps3/system-bus.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * PS3 time and rtc routines. * * Copyright (C) 2006 Sony Computer Entertainment Inc. * Copyright 2006 Sony Corp. */ #include <linux/kernel.h> #include <linux/platform_device.h> #include <linux/rtc.h> #include <asm/firmware.h> #include <asm/lv1call.h> #include <asm/p...
arch/powerpc/platforms/ps3/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Confidential Computing Platform Capability checks * * Copyright (C) 2021 Advanced Micro Devices, Inc. * * Author: Tom Lendacky <thomas.lendacky@amd.com> */ #include <linux/export.h> #include <linux/cc_platform.h> #include <asm/machdep.h> #include <asm/svm.h> bool c...
arch/powerpc/platforms/pseries/cc_platform.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Collaborative memory management interface. * * Copyright (C) 2008 IBM Corporation * Author(s): Brian King (brking@linux.vnet.ibm.com), */ #include <linux/ctype.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/fs.h> #include <linux/gfp.h> #inclu...
arch/powerpc/platforms/pseries/cmm.c
null
null
null
null
null