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 /* * Support for dynamic reconfiguration for PCI, Memory, and CPU * Hotplug and Dynamic Logical Partitioning on RPA platforms. * * Copyright (C) 2009 Nathan Fontenot * Copyright (C) 2009 IBM Corporation */ #define pr_fmt(fmt) "dlpar: " fmt #include <linux/kernel.h> #incl...
arch/powerpc/platforms/pseries/dlpar.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Virtual Processor Dispatch Trace Log * * (C) Copyright IBM Corporation 2009 * * Author: Jeremy Kerr <jk@ozlabs.org> */ #include <linux/slab.h> #include <linux/spinlock.h> #include <asm/smp.h> #include <linux/uaccess.h> #include <linux/debugfs.h> #include <asm/fir...
arch/powerpc/platforms/pseries/dtl.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * The file intends to implement the platform dependent EEH operations on pseries. * Actually, the pseries platform is built based on RTAS heavily. That means the * pseries platform dependent EEH operations will be built on RTAS calls. The functions * are derived from ...
arch/powerpc/platforms/pseries/eeh_pseries.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001 Dave Engebretsen IBM Corporation */ #include <linux/interrupt.h> #include <linux/of_irq.h> #include "pseries.h" void __init request_event_sources_irqs(struct device_node *np, irq_handler_t handler, const char *name) { int i, virq, rc; ...
arch/powerpc/platforms/pseries/event_sources.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * pSeries firmware setup code. * * Portions from arch/powerpc/platforms/pseries/setup.c: * Copyright (C) 1995 Linus Torvalds * Adapted from 'alpha' version by Gary Thomas * Modified by Cort Dougan (cort@cs.nmt.edu) * Modified by PPC64 Team, IBM Corp * ...
arch/powerpc/platforms/pseries/firmware.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * pseries CPU Hotplug infrastructure. * * Split out from arch/powerpc/platforms/pseries/setup.c * arch/powerpc/kernel/rtas.c, and arch/powerpc/platforms/pseries/smp.c * * Peter Bergner, IBM March 2001. * Copyright (C) 2001 IBM. * Dave Engebretsen, Peter Bergner, ...
arch/powerpc/platforms/pseries/hotplug-cpu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * pseries Memory Hotplug infrastructure. * * Copyright (C) 2008 Badari Pulavarty, IBM Corporation */ #define pr_fmt(fmt) "pseries-hotplug-mem: " fmt #include <linux/of.h> #include <linux/of_address.h> #include <linux/memblock.h> #include <linux/memory.h> #include <l...
arch/powerpc/platforms/pseries/hotplug-memory.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) IBM Corporation, 2024 */ #define pr_fmt(fmt) "htmdump: " fmt #include <linux/debugfs.h> #include <linux/module.h> #include <asm/io.h> #include <asm/machdep.h> #include <asm/plpar_wrappers.h> #include <asm/kvm_guest.h> static void *htm_buf; static void...
arch/powerpc/platforms/pseries/htmdump.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * This file contains the generic code to perform a call to the * pSeries LPAR hypervisor. */ #include <linux/jump_label.h> #include <asm/hvcall.h> #include <asm/processor.h> #include <asm/ppc_asm.h> #include <asm/asm-offsets.h> #include <asm/ptrace.h> #include <asm/...
arch/powerpc/platforms/pseries/hvCall.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2006 Mike Kravetz IBM Corporation * * Hypervisor Call Instrumentation */ #include <linux/kernel.h> #include <linux/percpu.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/cpumask.h> #include <asm/hvcall.h> #include <asm/firmwa...
arch/powerpc/platforms/pseries/hvCall_inst.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * hvconsole.c * Copyright (C) 2004 Hollis Blanchard, IBM Corporation * Copyright (C) 2004 IBM Corporation * * Additional Author(s): * Ryan S. Arnold <rsa@us.ibm.com> * * LPAR console support. */ #include <linux/kernel.h> #include <linux/export.h> #include <linu...
arch/powerpc/platforms/pseries/hvconsole.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * hvcserver.c * Copyright (C) 2004 Ryan S Arnold, IBM Corporation * * PPC64 virtual I/O console server support. */ #include <linux/kernel.h> #include <linux/list.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/string.h> #include <asm/hvcall.h> ...
arch/powerpc/platforms/pseries/hvcserver.c
null
null
null
null
null
source
linux
/* * IBM PowerPC IBM eBus Infrastructure Support. * * Copyright (c) 2005 IBM Corporation * Joachim Fenkes <fenkes@de.ibm.com> * Heiko J Schick <schickhj@de.ibm.com> * * All rights reserved. * * This source code is distributed under a dual license of GPL v2.0 and OpenIB * BSD. * * OpenIB BSD License * * ...
arch/powerpc/platforms/pseries/ibmebus.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2010 2011 Mark Nelson and Tseng-Hui (Frank) Lin, IBM Corporation */ #include <linux/errno.h> #include <linux/slab.h> #include <linux/export.h> #include <linux/irq.h> #include <linux/interrupt.h> #include <linux/of.h> #include <linux/list.h> #include <linux/...
arch/powerpc/platforms/pseries/io_event_irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001 Mike Corrigan & Dave Engebretsen, IBM Corporation * * Rewrite, cleanup: * * Copyright (C) 2004 Olof Johansson <olof@lixom.net>, IBM Corporation * Copyright (C) 2006 Olof Johansson <olof@lixom.net> * * Dynamic DMA mapping support, pSeries-speci...
arch/powerpc/platforms/pseries/iommu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2006 Michael Ellerman, IBM Corporation */ #include <linux/kernel.h> #include <linux/interrupt.h> #include <asm/setup.h> #include <asm/page.h> #include <asm/firmware.h> #include <asm/kexec.h> #include <asm/xics.h> #include <asm/xive.h> #include <asm/smp.h>...
arch/powerpc/platforms/pseries/kexec.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * pSeries_lpar.c * Copyright (C) 2001 Todd Inglett, IBM Corporation * * pSeries LPAR support. */ /* Enables debugging of low-level hash table routines - careful! */ #undef DEBUG #define pr_fmt(fmt) "lpar: " fmt #include <linux/kernel.h> #include <linux/dma-mapping....
arch/powerpc/platforms/pseries/lpar.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PowerPC64 LPAR Configuration Information Driver * * Dave Engebretsen engebret@us.ibm.com * Copyright (c) 2003 Dave Engebretsen * Will Schmidt willschm@us.ibm.com * SPLPAR updates, Copyright (c) 2003 Will Schmidt IBM Corporation. * seq_file updates, Copyr...
arch/powerpc/platforms/pseries/lparcfg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Support for Partition Mobility/Migration * * Copyright (C) 2010 Nathan Fontenot * Copyright (C) 2010 IBM Corporation */ #define pr_fmt(fmt) "mobility: " fmt #include <linux/cpu.h> #include <linux/kernel.h> #include <linux/kobject.h> #include <linux/nmi.h> #include <...
arch/powerpc/platforms/pseries/mobility.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2006 Jake Moilanen <moilanen@austin.ibm.com>, IBM Corp. * Copyright 2006-2007 Michael Ellerman, IBM Corp. */ #include <linux/crash_dump.h> #include <linux/device.h> #include <linux/irq.h> #include <linux/irqchip/irq-msi-lib.h> #include <linux/irqdomain.h> #inc...
arch/powerpc/platforms/pseries/msi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * c 2001 PPC 64 Team, IBM Corp * * /dev/nvram driver for PPC64 */ #include <linux/types.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/spinlock.h> #include <linux/slab.h> #include <linux/ctype.h> #include <linux/uaccess.h> #include <linux/of.h>...
arch/powerpc/platforms/pseries/nvram.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/string.h> #include <linux/err.h> #include <linux/slab.h> #include <linux/of.h> #include <asm/prom.h> #include "of_helpers.h" /** * pseries_of_derive_parent - basically like dirname(1) * @path: the full_name of a node to be added to the tree * * Returns the node...
arch/powerpc/platforms/pseries/of_helpers.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PSERIES_OF_HELPERS_H #define _PSERIES_OF_HELPERS_H #include <linux/of.h> struct device_node *pseries_of_derive_parent(const char *path); #endif /* _PSERIES_OF_HELPERS_H */
arch/powerpc/platforms/pseries/of_helpers.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-hvpipe: " fmt #include <linux/module.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/delay.h> #include <linux/anon_inodes.h> #include <linux/miscdevice.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/poll.h> #inc...
arch/powerpc/platforms/pseries/papr-hvpipe.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _PAPR_HVPIPE_H #define _PAPR_HVPIPE_H #define HVPIPE_HMC_ID_MASK 0x02000000 /*02-HMC,00-reserved and HMC ID */ #define HVPIPE_MAX_WRITE_BUFFER_SIZE 4048 /* * hvpipe specific RTAS return values */ #define RTAS_HVPIPE_CLOSED -4 #define HVPIPE_HDR_LEN sizeof(struct ...
arch/powerpc/platforms/pseries/papr-hvpipe.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-indices: " fmt #include <linux/build_bug.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/lockdep.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/signal.h> #include <linux/slab.h> #inc...
arch/powerpc/platforms/pseries/papr-indices.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-phy-attest: " fmt #include <linux/build_bug.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/lockdep.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/signal.h> #include <linux/slab.h> #...
arch/powerpc/platforms/pseries/papr-phy-attest.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-platform-dump: " fmt #include <linux/anon_inodes.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <asm/machdep.h> #include <asm/rtas-work-area.h> #include <asm/rt...
arch/powerpc/platforms/pseries/papr-platform-dump.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-common: " fmt #include <linux/types.h> #include <linux/kernel.h> #include <linux/signal.h> #include <linux/slab.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/anon_inodes.h> #include <linux/sched/signal.h> #include "papr-rtas-common....
arch/powerpc/platforms/pseries/papr-rtas-common.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _ASM_POWERPC_PAPR_RTAS_COMMON_H #define _ASM_POWERPC_PAPR_RTAS_COMMON_H #include <linux/types.h> /* * Return codes for sequence based RTAS calls. * Not listed under PAPR+ v2.13 7.2.8: "Return Codes". * But defined in the specific section of each RTAS call. */ #d...
arch/powerpc/platforms/pseries/papr-rtas-common.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-sysparm: " fmt #include <linux/anon_inodes.h> #include <linux/bug.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/printk.h> #include <linux/slab.h> #inclu...
arch/powerpc/platforms/pseries/papr-sysparm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "papr-vpd: " fmt #include <linux/build_bug.h> #include <linux/file.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/lockdep.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/signal.h> #include <linux/slab.h> #include...
arch/powerpc/platforms/pseries/papr-vpd.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Platform energy and frequency attributes driver * * This driver creates a sys file at /sys/firmware/papr/ which encapsulates a * directory structure containing files in keyword - value pairs that specify * energy and frequency configuration of the system. * * The...
arch/powerpc/platforms/pseries/papr_platform_attributes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "papr-scm: " fmt #include <linux/of.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/ioport.h> #include <linux/seq_file.h> #include <linux/slab.h> #include <linux/ndctl.h> #include <linux/sched.h> #include <linux/libnvdimm.h> #include <linu...
arch/powerpc/platforms/pseries/papr_scm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001 Dave Engebretsen, IBM Corporation * Copyright (C) 2003 Anton Blanchard <anton@au.ibm.com>, IBM * * pSeries specific routines for PCI. */ #include <linux/init.h> #include <linux/ioport.h> #include <linux/kernel.h> #include <linux/pci.h> #include ...
arch/powerpc/platforms/pseries/pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * PCI Dynamic LPAR, PCI Hot Plug and PCI EEH recovery code * for RPA-compliant PPC64 platform. * Copyright (C) 2003 Linda Xie <lxie@us.ibm.com> * Copyright (C) 2005 International Business Machines * * Updates, 2005, John Rose <johnrose@austin.ibm.com> * Updates, 20...
arch/powerpc/platforms/pseries/pci_dlpar.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only // Secure variable implementation using the PowerVM LPAR Platform KeyStore (PLPKS) // // Copyright 2022, 2023 IBM Corporation // Authors: Russell Currey // Andrew Donnellan // Nayna Jain #define pr_fmt(fmt) "secvar: "fmt #include <linux/printk.h> #include <l...
arch/powerpc/platforms/pseries/plpks-secvar.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2025 IBM Corporation, Srish Srinivasan <ssrish@linux.ibm.com> * * This code exposes PLPKS config to user via sysfs */ #define pr_fmt(fmt) "plpks-sysfs: "fmt #include <linux/init.h> #include <linux/printk.h> #include <linux/types.h> #include <asm/machdep....
arch/powerpc/platforms/pseries/plpks-sysfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * POWER LPAR Platform KeyStore(PLPKS) * Copyright (C) 2022 IBM Corporation * Author: Nayna Jain <nayna@linux.ibm.com> * * Provides access to variables stored in Power LPAR Platform KeyStore(PLPKS). */ #define pr_fmt(fmt) "plpks: " fmt #define PLPKS_WRAPKEY_COMPONENT "...
arch/powerpc/platforms/pseries/plpks.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * POWER Platform specific code for non-volatile SED key access * Copyright (C) 2022 IBM Corporation * * Define operations for SED Opal to read/write keys * from POWER LPAR Platform KeyStore(PLPKS). * * Self Encrypting Drives(SED) key storage using PLPKS */ #include <...
arch/powerpc/platforms/pseries/plpks_sed_ops.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Handles hot and cold plug of persistent memory regions on pseries. */ #define pr_fmt(fmt) "pseries-pmem: " fmt #include <linux/kernel.h> #include <linux/interrupt.h> #include <linux/delay.h> #include <linux/sched.h> /* for idle_task_exit */ #include <linux/sched/hotplug...
arch/powerpc/platforms/pseries/pmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Interface for power-management for ppc64 compliant platform * * Manish Ahuja <mahuja@us.ibm.com> * * Feb 2007 * * Copyright (C) 2007 IBM Corporation. */ #include <linux/kobject.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/init.h> #inclu...
arch/powerpc/platforms/pseries/power.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2006 IBM Corporation. */ #ifndef _PSERIES_PSERIES_H #define _PSERIES_PSERIES_H #include <linux/interrupt.h> #include <asm/rtas.h> struct device_node; void __init request_event_sources_irqs(struct device_node *np, irq_handler_t handler, cons...
arch/powerpc/platforms/pseries/pseries.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * POWER platform energy management driver * Copyright (C) 2010 IBM Corporation * * This pseries platform device driver provides access to * platform energy management capabilities. */ #include <linux/module.h> #include <linux/types.h> #include <linux/errno.h> #include ...
arch/powerpc/platforms/pseries/pseries_energy.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001 Dave Engebretsen IBM Corporation */ #include <linux/sched.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/of.h> #include <linux/fs.h> #include <linux/reboot.h> #include <linux/irq_work.h> #include <asm/machdep.h> #include <a...
arch/powerpc/platforms/pseries/ras.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * pSeries_reconfig.c - support for dynamic reconfiguration (including PCI * Hotplug and Dynamic Logical Partitioning on RPA platforms). * * Copyright (C) 2005 Nathan Lynch * Copyright (C) 2005 IBM Corporation */ #include <linux/kernel.h> #include <linux/notifier.h> #in...
arch/powerpc/platforms/pseries/reconfig.c
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) "pseries-rng: " fmt #include <linux/kernel.h> #include <linux/of.h> #include <asm/archrandom.h> #include <asm/machdep.h> #include <asm/plpar_wrappers.h> #include "pseries.h" static int pseri...
arch/powerpc/platforms/pseries/rng.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Firmware-Assisted Dump support on POWERVM platform. * * Copyright 2011, Mahesh Salgaonkar, IBM Corporation. * Copyright 2019, Hari Bathini, IBM Corporation. */ #define pr_fmt(fmt) "rtas fadump: " fmt #include <linux/string.h> #include <linux/memblock.h> #include ...
arch/powerpc/platforms/pseries/rtas-fadump.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Firmware-Assisted Dump support on POWERVM platform. * * Copyright 2011, Mahesh Salgaonkar, IBM Corporation. * Copyright 2019, Hari Bathini, IBM Corporation. */ #ifndef _PSERIES_RTAS_FADUMP_H #define _PSERIES_RTAS_FADUMP_H /* * On some Power systems where RMO ...
arch/powerpc/platforms/pseries/rtas-fadump.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only #define pr_fmt(fmt) "rtas-work-area: " fmt #include <linux/genalloc.h> #include <linux/log2.h> #include <linux/kernel.h> #include <linux/memblock.h> #include <linux/mempool.h> #include <linux/minmax.h> #include <linux/mutex.h> #include <linux/numa.h> #include <linux/sizes.h> #...
arch/powerpc/platforms/pseries/rtas-work-area.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * 64-bit pSeries and RS/6000 setup code. * * Copyright (C) 1995 Linus Torvalds * Adapted from 'alpha' version by Gary Thomas * Modified by Cort Dougan (cort@cs.nmt.edu) * Modified by PPC64 Team, IBM Corp */ /* * bootup setup stuff.. */ #include <linux/cpu...
arch/powerpc/platforms/pseries/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * SMP support for pSeries machines. * * Dave Engebretsen, Peter Bergner, and * Mike Corrigan {engebret|bergner|mikec}@us.ibm.com * * Plus various changes from other IBM teams... */ #include <linux/kernel.h> #include <linux/sched.h> #include <linux/smp.h> #include...
arch/powerpc/platforms/pseries/smp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2010 Brian King IBM Corporation */ #include <linux/cpu.h> #include <linux/delay.h> #include <linux/suspend.h> #include <linux/stat.h> #include <asm/firmware.h> #include <asm/hvcall.h> #include <asm/machdep.h> #include <asm/mmu.h> #include <asm/rtas.h>...
arch/powerpc/platforms/pseries/suspend.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * Secure VM platform * * Copyright 2018 IBM Corporation * Author: Anshuman Khandual <khandual@linux.vnet.ibm.com> */ #include <linux/mm.h> #include <linux/memblock.h> #include <linux/mem_encrypt.h> #include <linux/cc_platform.h> #include <asm/machdep.h> #include <asm/svm.h>...
arch/powerpc/platforms/pseries/svm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2022-23 IBM Corp. */ #define pr_fmt(fmt) "vas: " fmt #include <linux/module.h> #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/kobject.h> #include <linux/slab.h> #include <linux/mm.h> #include "vas.h" #ifdef CONFIG_SYSFS static st...
arch/powerpc/platforms/pseries/vas-sysfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright 2020-21 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/delay.h> #include <linux/slab.h> #include <linux/interrupt.h> #include <linux/irqdom...
arch/powerpc/platforms/pseries/vas.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright 2020-21 IBM Corp. */ #ifndef _VAS_H #define _VAS_H #include <asm/vas.h> #include <linux/mutex.h> #include <linux/stringify.h> /* * VAS window modify flags */ #define VAS_MOD_WIN_CLOSE PPC_BIT(0) #define VAS_MOD_WIN_JOBS_KILL PPC_BIT(1) #define VAS_MOD...
arch/powerpc/platforms/pseries/vas.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * IBM PowerPC Virtual I/O Infrastructure Support. * * Copyright (c) 2003,2008 IBM Corp. * Dave Engebretsen engebret@us.ibm.com * Santiago Leon santil@us.ibm.com * Hollis Blanchard <hollisb@us.ibm.com> * Stephen Rothwell * Robert Jennings <rc...
arch/powerpc/platforms/pseries/vio.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <asm/byteorder.h> #include <asm/vphn.h> /* * The associativity domain numbers are returned from the hypervisor as a * stream of mixed 16-bit and 32-bit fields. The stream is terminated by the * special value of "all ones" (aka. 0xffff) and its size may not exceed 48 * b...
arch/powerpc/platforms/pseries/vphn.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ .section .rodata, "a" .align 8 kexec_purgatory: .globl kexec_purgatory .incbin "arch/powerpc/purgatory/purgatory.ro" .Lkexec_purgatory_end: .align 8 kexec_purgatory_size: .globl kexec_purgatory_size .quad .Lkexec_purgatory_end - kexec_purgatory
arch/powerpc/purgatory/kexec-purgatory.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * kexec trampoline * * Based on code taken from kexec-tools and kexec-lite. * * Copyright (C) 2004 - 2005, Milton D Miller II, IBM Corporation * Copyright (C) 2006, Mohan Kumar M, IBM Corporation * Copyright (C) 2013, Anton Blanchard, IBM Corporation */ #include <...
arch/powerpc/purgatory/trampoline_64.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Enter and leave sleep state on chips with 6xx-style HID0 * power management bits, which don't leave sleep state via reset. * * Author: Scott Wood <scottwood@freescale.com> * * Copyright (c) 2006-2007 Freescale Semiconductor, Inc. */ #include <asm/ppc_asm.h> #incl...
arch/powerpc/sysdev/6xx-suspend.S
null
null
null
null
null
source
linux
/* * General Purpose functions for the global management of the * 8260 Communication Processor Module. * Copyright (c) 1999-2001 Dan Malek <dan@embeddedalley.com> * Copyright (c) 2000 MontaVista Software, Inc (source@mvista.com) * 2.3.99 Updates * * 2006 (c) MontaVista Software, Inc. * Vitaly Bordug <vbordug@ru...
arch/powerpc/sysdev/cpm2.c
null
null
null
null
null
source
linux
/* * Platform information definitions. * * Copied from arch/ppc/syslib/cpm2_pic.c with minor subsequent updates * to make in work in arch/powerpc/. Original (c) belongs to Dan Malek. * * Author: Vitaly Bordug <vbordug@ru.mvista.com> * * 1999-2001 (c) Dan Malek <dan@embeddedalley.com> * 2006 (c) MontaVista Sof...
arch/powerpc/sysdev/cpm2_pic.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _PPC_KERNEL_CPM2_H #define _PPC_KERNEL_CPM2_H extern unsigned int cpm2_get_irq(void); extern void cpm2_pic_init(struct device_node *); #endif /* _PPC_KERNEL_CPM2_H */
arch/powerpc/sysdev/cpm2_pic.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Common CPM code * * Author: Scott Wood <scottwood@freescale.com> * * Copyright 2007-2008,2010 Freescale Semiconductor, Inc. * * Some parts derived from commproc.c/cpm2_common.c, which is: * Copyright (c) 1997 Dan error_act (dmalek@jlc.net) * Copyright (c) 1999-2001...
arch/powerpc/sysdev/cpm_common.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Common CPM GPIO wrapper for the CPM GPIO ports * * Author: Christophe Leroy <christophe.leroy@c-s.fr> * * Copyright 2017 CS Systemes d'Information. * */ #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> #include <asm/cpm.h> #ifdef CONFIG...
arch/powerpc/sysdev/cpm_gpio.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2004 Olof Johansson <olof@lixom.net>, IBM Corporation */ #ifndef _POWERPC_SYSDEV_DART_H #define _POWERPC_SYSDEV_DART_H /* Offset from base to control register */ #define DART_CNTL 0 /* Offset from base to exception register */ #define DART_EXCP_U3...
arch/powerpc/sysdev/dart.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * arch/powerpc/sysdev/dart_iommu.c * * Copyright (C) 2004 Olof Johansson <olof@lixom.net>, IBM Corporation * Copyright (C) 2005 Benjamin Herrenschmidt <benh@kernel.crashing.org>, * IBM Corporation * * Based on pSeries_iommu.c: * Copyright (C) 20...
arch/powerpc/sysdev/dart_iommu.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * "Indirect" DCR access * * Copyright (c) 2004 Eugene Surovegin <ebs@ebshome.net> */ #include <linux/export.h> #include <asm/ppc_asm.h> #include <asm/processor.h> #include <asm/bug.h> #define DCR_ACCESS_PROLOG(table) \ cmplwi cr0,r3,1024; \ rlwinm r3,r3,4,18,...
arch/powerpc/sysdev/dcr-low.S
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> */ #undef DEBUG #include <linux/kernel.h> #include <linux/export.h> #include <linux/of_address.h> #include <asm/dcr.h> unsigned int dcr_resource_start(const struct...
arch/powerpc/sysdev/dcr.c
null
null
null
null
null
source
linux
/* * Driver for ePAPR Embedded Hypervisor PIC * * Copyright 2008-2011 Freescale Semiconductor, Inc. * * Author: Ashish Kalra <ashish.kalra@freescale.com> * * kind, whether express or implied. */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/init.h> #include <linux/irq.h> #include <linux...
arch/powerpc/sysdev/ehv_pic.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Freescale General-purpose Timers Module * * Copyright (c) Freescale Semiconductor, Inc. 2006. * Shlomi Gridish <gridish@freescale.com> * Jerry Huang <Chang-Ming.Huang@freescale.com> * Copyright (c) MontaVista Software, Inc. 2008. * ...
arch/powerpc/sysdev/fsl_gtm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Freescale LBC and UPM routines. * * Copyright © 2007-2008 MontaVista Software, Inc. * Copyright © 2010 Freescale Semiconductor * * Author: Anton Vorontsov <avorontsov@ru.mvista.com> * Author: Jack Lan <Jack.Lan@freescale.com> * Author: Roy Zang <tie-fei.zang@fr...
arch/powerpc/sysdev/fsl_lbc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2012 Freescale Semiconductor, Inc. * * Author: Varun Sethi <varun.sethi@freescale.com> */ #include <linux/irq.h> #include <linux/smp.h> #include <linux/interrupt.h> #include <linux/irqdomain.h> #include <asm/io.h> #include <asm/irq.h> #include <asm/mpic....
arch/powerpc/sysdev/fsl_mpic_err.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * MPIC timer wakeup driver * * Copyright 2013 Freescale Semiconductor, Inc. */ #include <linux/kernel.h> #include <linux/slab.h> #include <linux/errno.h> #include <linux/module.h> #include <linux/interrupt.h> #include <linux/device.h> #include <asm/mpic_timer.h> #in...
arch/powerpc/sysdev/fsl_mpic_timer_wakeup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007-2011 Freescale Semiconductor, Inc. * * Author: Tony Li <tony.li@freescale.com> * Jason Jin <Jason.jin@freescale.com> * * The hwirq alloc and free code reuse from sysdev/mpic_msi.c */ #include <linux/irq.h> #include <linux/msi.h> #include <linux/...
arch/powerpc/sysdev/fsl_msi.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2007-2008 Freescale Semiconductor, Inc. All rights reserved. * * Author: Tony Li <tony.li@freescale.com> * Jason Jin <Jason.jin@freescale.com> */ #ifndef _POWERPC_SYSDEV_FSL_MSI_H #define _POWERPC_SYSDEV_FSL_MSI_H #include <linux/of.h> #include <as...
arch/powerpc/sysdev/fsl_msi.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * MPC83xx/85xx/86xx PCI/PCIE support routing. * * Copyright 2007-2012 Freescale Semiconductor, Inc. * Copyright 2008-2009 MontaVista Software, Inc. * * Initial author: Xianghua Xiao <x.xiao@freescale.com> * Recode: ZHANG WEI <wei.zhang@freescale.com> * Rewrite the...
arch/powerpc/sysdev/fsl_pci.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * MPC85xx/86xx PCI Express structure define * * Copyright 2007,2011 Freescale Semiconductor, Inc */ #ifdef __KERNEL__ #ifndef __POWERPC_FSL_PCI_H #define __POWERPC_FSL_PCI_H struct platform_device; /* FSL PCI controller BRR1 register */ #define PCI_FSL_BRR1 ...
arch/powerpc/sysdev/fsl_pci.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Suspend/resume support * * Copyright 2009 MontaVista Software, Inc. * * Author: Anton Vorontsov <avorontsov@ru.mvista.com> */ #include <linux/init.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/export.h> #include <linux/suspend.h> #include ...
arch/powerpc/sysdev/fsl_pmc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * RCPM(Run Control/Power Management) support * * Copyright 2012-2015 Freescale Semiconductor Inc. * * Author: Chenhui Zhao <chenhui.zhao@freescale.com> */ #define pr_fmt(fmt) "%s: " fmt, __func__ #include <linux/types.h> #include <linux/errno.h> #include <linux/of...
arch/powerpc/sysdev/fsl_rcpm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Freescale MPC85xx/MPC86xx RapidIO support * * Copyright 2009 Sysgo AG * Thomas Moll <thomas.moll@sysgo.com> * - fixed maintenance access routines, check for aligned access * * Copyright 2009 Integrated Device Technology, Inc. * Alex Bounine <alexandre.bounine@id...
arch/powerpc/sysdev/fsl_rio.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Freescale MPC85xx/MPC86xx RapidIO support * * Copyright 2009 Sysgo AG * Thomas Moll <thomas.moll@sysgo.com> * - fixed maintenance access routines, check for aligned access * * Copyright 2009 Integrated Device Technology, Inc. * Alex Bounine <alexandre.bounine...
arch/powerpc/sysdev/fsl_rio.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Freescale MPC85xx/MPC86xx RapidIO RMU support * * Copyright 2009 Sysgo AG * Thomas Moll <thomas.moll@sysgo.com> * - fixed maintenance access routines, check for aligned access * * Copyright 2009 Integrated Device Technology, Inc. * Alex Bounine <alexandre.bounin...
arch/powerpc/sysdev/fsl_rmu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * FSL SoC setup code * * Maintained by Kumar Gala (see MAINTAINERS for contact information) * * 2006 (c) MontaVista Software, Inc. * Vitaly Bordug <vbordug@ru.mvista.com> */ #include <linux/stddef.h> #include <linux/kernel.h> #include <linux/init.h> #include <linu...
arch/powerpc/sysdev/fsl_soc.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __PPC_FSL_SOC_H #define __PPC_FSL_SOC_H #ifdef __KERNEL__ #include <asm/mmu.h> struct spi_device; extern phys_addr_t get_immrbase(void); #if defined(CONFIG_CPM) || defined(CONFIG_QUICC_ENGINE) extern u32 get_brgfreq(void); extern u32 get_baudrate(void); #else static inl...
arch/powerpc/sysdev/fsl_soc.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Functions for setting up and using a MPC106 northbridge * Extracted from arch/powerpc/platforms/powermac/pci.c. * * Copyright (C) 2003 Benjamin Herrenschmuidt (benh@kernel.crashing.org) * Copyright (C) 1997 Paul Mackerras (paulus@samba.org) */ #include <linux/kern...
arch/powerpc/sysdev/grackle.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * i8259 interrupt controller driver. */ #undef DEBUG #include <linux/ioport.h> #include <linux/interrupt.h> #include <linux/irqdomain.h> #include <linux/kernel.h> #include <linux/delay.h> #include <asm/io.h> #include <asm/i8259.h> static volatile void __iomem *pci_int...
arch/powerpc/sysdev/i8259.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Support for indirect PCI bridges. * * Copyright (C) 1998 Gabriel Paubert. */ #include <linux/kernel.h> #include <linux/pci.h> #include <linux/delay.h> #include <linux/string.h> #include <linux/init.h> #include <asm/io.h> #include <asm/pci-bridge.h> #include <asm/m...
arch/powerpc/sysdev/indirect_pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * arch/powerpc/sysdev/ipic.c * * IPIC routines implementations. * * Copyright 2005 Freescale Semiconductor, Inc. */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/errno.h> #include <linux/reboot.h> #include <linux/slab.h> #include <linux/stddef.h>...
arch/powerpc/sysdev/ipic.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * IPIC private definitions and structure. * * Maintainer: Kumar Gala <galak@kernel.crashing.org> * * Copyright 2005 Freescale Semiconductor, Inc */ #ifndef __IPIC_H__ #define __IPIC_H__ #include <asm/ipic.h> #define NR_IPIC_INTS 128 /* External IRQS */ #define...
arch/powerpc/sysdev/ipic.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * memory mapped NVRAM * * (C) Copyright IBM Corp. 2005 * * Authors : Utz Bacher <utz.bacher@de.ibm.com> */ #include <linux/fs.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/of_address.h> #include <linux/spinlock.h> #include <linux/types.h> #i...
arch/powerpc/sysdev/mmio_nvram.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kernel.h> #include <linux/export.h> #include <linux/property.h> #include <asm/mpc5xxx.h> /** * mpc5xxx_fwnode_get_bus_frequency - Find the bus frequency for a firmware node * @fwnode: firmware node * * Returns bus frequency (IPS on MPC512x, IPB on MPC52xx), * ...
arch/powerpc/sysdev/mpc5xxx_clocks.c
null
null
null
null
null
source
linux
/* * arch/powerpc/kernel/mpic.c * * Driver for interrupt controllers following the OpenPIC standard, the * common implementation being IBM's MPIC. This driver also can deal * with various broken implementations of this HW. * * Copyright (C) 2004 Benjamin Herrenschmidt, IBM Corp. * Copyright 2010-2012 Free...
arch/powerpc/sysdev/mpic.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef _POWERPC_SYSDEV_MPIC_H #define _POWERPC_SYSDEV_MPIC_H /* * Copyright 2006-2007, Michael Ellerman, IBM Corporation. */ #ifdef CONFIG_PCI_MSI extern void mpic_msi_reserve_hwirq(struct mpic *mpic, irq_hw_number_t hwirq); int __init mpic_msi_init_allocator(struct mpic...
arch/powerpc/sysdev/mpic.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2011-2012, Meador Inge, Mentor Graphics Corporation. * * Some ideas based on un-pushed work done by Vivek Mahajan, Jason Jin, and * Mingkai Hu from Freescale Semiconductor, Inc. */ #include <linux/list.h> #include <linux/of.h> #include <linux/of_address.h> #...
arch/powerpc/sysdev/mpic_msgr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2006-2007, Michael Ellerman, IBM Corporation. */ #include <linux/irq.h> #include <linux/irqdomain.h> #include <linux/of_irq.h> #include <linux/bitmap.h> #include <linux/msi.h> #include <asm/mpic.h> #include <asm/hw_irq.h> #include <asm/ppc-pci.h> #include <asm/...
arch/powerpc/sysdev/mpic_msi.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * MPIC timer driver * * Copyright 2013 Freescale Semiconductor, Inc. * Author: Dongsheng Wang <Dongsheng.Wang@freescale.com> * Li Yang <leoli@freescale.com> */ #include <linux/kernel.h> #include <linux/init.h> #include <linux/module.h> #include <linux/errno.h> #...
arch/powerpc/sysdev/mpic_timer.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2006, Segher Boessenkool, IBM Corporation. * Copyright 2006-2007, Michael Ellerman, IBM Corporation. */ #include <linux/irq.h> #include <linux/irqdomain.h> #include <linux/msi.h> #include <asm/mpic.h> #include <asm/hw_irq.h> #include <asm/ppc-pci.h> #include <...
arch/powerpc/sysdev/mpic_u3msi.c
null
null
null
null
null