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 */ /* * KVM guest fault handling. * * Copyright IBM Corp. 2025 * Author(s): Claudio Imbrenda <imbrenda@linux.ibm.com> */ #ifndef __KVM_S390_FAULTIN_H #define __KVM_S390_FAULTIN_H #include <linux/kvm_host.h> #include "dat.h" int kvm_s390_faultin_gfn(struct kvm_vcpu *vc...
arch/s390/kvm/faultin.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * guest access functions * * Copyright IBM Corp. 2014 * */ #include <linux/vmalloc.h> #include <linux/mm_types.h> #include <linux/err.h> #include <linux/pgtable.h> #include <linux/bitfield.h> #include <linux/kvm_host.h> #include <linux/kvm_types.h> #include <asm/diag.h> #inc...
arch/s390/kvm/gaccess.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * access guest memory * * Copyright IBM Corp. 2008, 2014 * * Author(s): Carsten Otte <cotte@de.ibm.com> */ #ifndef __KVM_S390_GACCESS_H #define __KVM_S390_GACCESS_H #include <linux/compiler.h> #include <linux/kvm_host.h> #include <linux/uaccess.h> #include <linux/ptr...
arch/s390/kvm/gaccess.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Guest memory management for KVM/s390 * * Copyright IBM Corp. 2008, 2020, 2024 * * Author(s): Claudio Imbrenda <imbrenda@linux.ibm.com> * Martin Schwidefsky <schwidefsky@de.ibm.com> * David Hildenbrand <david@redhat.com> * Jano...
arch/s390/kvm/gmap.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * KVM guest address space mapping code * * Copyright IBM Corp. 2007, 2016, 2025 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> * Claudio Imbrenda <imbrenda@linux.ibm.com> */ #ifndef ARCH_KVM_S390_GMAP_H #define ARCH_KVM_S390_GMAP_H #includ...
arch/s390/kvm/gmap.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * kvm guest debug support * * Copyright IBM Corp. 2014 * * Author(s): David Hildenbrand <dahi@linux.vnet.ibm.com> */ #include <linux/kvm_host.h> #include <linux/errno.h> #include "kvm-s390.h" #include "gaccess.h" /* * Extends the address range given by *start and *stop ...
arch/s390/kvm/guestdbg.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * in-kernel handling for sie intercepts * * Copyright IBM Corp. 2008, 2020 * * Author(s): Carsten Otte <cotte@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com> */ #include <linux/kvm_host.h> #include <linux/errno.h> #include <linux/pagemap.h> #...
arch/s390/kvm/intercept.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * handling kvm guest interrupts * * Copyright IBM Corp. 2008, 2020 * * Author(s): Carsten Otte <cotte@de.ibm.com> */ #define pr_fmt(fmt) "kvm-s390: " fmt #include <linux/cpufeature.h> #include <linux/interrupt.h> #include <linux/kvm_host.h> #include <linux/hrtimer.h> #i...
arch/s390/kvm/interrupt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * hosting IBM Z kernel virtual machines (s390x) * * Copyright IBM Corp. 2008, 2020 * * Author(s): Carsten Otte <cotte@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com> * Christian Ehrhardt <ehrhardt@de.ibm.com> * Jaso...
arch/s390/kvm/kvm-s390.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * definition for kvm on s390 * * Copyright IBM Corp. 2008, 2020 * * Author(s): Carsten Otte <cotte@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com> * Christian Ehrhardt <ehrhardt@de.ibm.com> */ #ifndef ARCH_S390_KVM_S390_H #de...
arch/s390/kvm/kvm-s390.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * s390 kvm PCI passthrough support * * Copyright IBM Corp. 2022 * * Author(s): Matthew Rosato <mjrosato@linux.ibm.com> */ #include <linux/kvm_host.h> #include <linux/pci.h> #include <asm/pci.h> #include <asm/pci_insn.h> #include <asm/pci_io.h> #include <asm/sclp.h> #incl...
arch/s390/kvm/pci.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * s390 kvm PCI passthrough support * * Copyright IBM Corp. 2022 * * Author(s): Matthew Rosato <mjrosato@linux.ibm.com> */ #ifndef __KVM_S390_PCI_H #define __KVM_S390_PCI_H #include <linux/kvm.h> #include <linux/kvm_host.h> #include <linux/mutex.h> #include <linux/pci...
arch/s390/kvm/pci.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * handling privileged instructions * * Copyright IBM Corp. 2008, 2020 * * Author(s): Carsten Otte <cotte@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com> */ #include <linux/kvm.h> #include <linux/gfp.h> #include <linux/errno.h> #include <linux/...
arch/s390/kvm/priv.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Hosting Protected Virtual Machines * * Copyright IBM Corp. 2019, 2020 * Author(s): Janosch Frank <frankja@linux.ibm.com> */ #include <linux/export.h> #include <linux/kvm.h> #include <linux/kvm_host.h> #include <linux/minmax.h> #include <linux/pagemap.h> #include <linux/...
arch/s390/kvm/pv.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * handling interprocessor communication * * Copyright IBM Corp. 2008, 2013 * * Author(s): Carsten Otte <cotte@de.ibm.com> * Christian Borntraeger <borntraeger@de.ibm.com> * Christian Ehrhardt <ehrhardt@de.ibm.com> */ #include <linux/kvm.h> #...
arch/s390/kvm/sigp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVMS390_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVMS390_H #include <linux/tracepoint.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm-s390 #define TRACE_INCLUDE_PATH . #undef TRACE_INCLUDE_FILE #define TRACE_INCLUDE_FILE trace-s390 /* * The TRA...
arch/s390/kvm/trace-s390.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #if !defined(_TRACE_KVM_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_KVM_H #include <linux/tracepoint.h> #include <asm/sie.h> #include <asm/debug.h> #include <asm/dis.h> #undef TRACE_SYSTEM #define TRACE_SYSTEM kvm #define TRACE_INCLUDE_PATH . #undef TRACE_INCLUDE_FILE ...
arch/s390/kvm/trace.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * kvm nested virtualization support for s390x * * Copyright IBM Corp. 2016, 2018 * * Author(s): David Hildenbrand <dahi@linux.vnet.ibm.com> */ #include <linux/vmalloc.h> #include <linux/kvm_host.h> #include <linux/bug.h> #include <linux/list.h> #include <linux/bitmap.h> #...
arch/s390/kvm/vsie.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/export.h> #include <asm/checksum.h> #include <asm/fpu.h> /* * Computes the checksum of a memory block at src, length len, * and adds in "sum" (32-bit). If copy is true copies to dst. * * Returns a 32-bit number suitable for feeding into itself * or csum_tcpudp_...
arch/s390/lib/csum-partial.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Precise Delay Loops for S390 * * Copyright IBM Corp. 1999, 2008 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, */ #include <linux/processor.h> #include <linux/export.h> #include <linux/delay.h> #include <asm/div64.h> #include <asm/timex.h> void __delay...
arch/s390/lib/delay.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <asm/ptrace.h> #include <linux/error-injection.h> #include <linux/kprobes.h> void override_function_with_return(struct pt_regs *regs) { /* * Emulate 'br 14'. 'regs' is captured by kprobes on entry to some * kernel function. */ regs->psw.addr = regs->gprs[14]; } NOK...
arch/s390/lib/error-inject.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm/nospec-insn.h> #include <linux/linkage.h> .macro GEN_ALL_BR_THUNK_EXTERN .irp r1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 GEN_BR_THUNK_EXTERN %r\r1 .endr .endm GEN_ALL_BR_THUNK_EXTERN
arch/s390/lib/expoline.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * MSB0 numbered special bitops handling. * * The bits are numbered: * |0..............63|64............127|128...........191|192...........255| * * The reason for this bit numbering is the fact that the hardware sets bits * in a bitmap starting at bit 0 (MSB) and we don't...
arch/s390/lib/find.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * String handling functions. * * Copyright IBM Corp. 2012 */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/nospec-insn.h> GEN_BR_THUNK %r14 /* * void *memmove(void *dest, const void *src, size_t n) */ SYM_FUNC_START(__memmove) ltgr %r4,%r4 lgr %...
arch/s390/lib/mem.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Common helper functions for kprobes and uprobes * * Copyright IBM Corp. 2014 */ #include <linux/errno.h> #include <asm/kprobes.h> #include <asm/dis.h> int probe_is_prohibited_opcode(u16 *insn) { if (!is_known_insn((unsigned char *)insn)) return -EINVAL; switch (i...
arch/s390/lib/probes.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Out of line spinlock code. * * Copyright IBM Corp. 2004, 2006 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #include <linux/types.h> #include <linux/export.h> #include <linux/spinlock.h> #include <linux/jiffies.h> #include <linux/sysctl.h> #include <...
arch/s390/lib/spinlock.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Optimized string functions * * S390 version * Copyright IBM Corp. 2004 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com) */ #define IN_ARCH_STRING_C 1 #ifndef __NO_FORTIFY # define __NO_FORTIFY #endif #include <linux/types.h> #include <linux/string.h> #i...
arch/s390/lib/string.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <linux/kernel.h> #include <linux/kprobes.h> #include <linux/random.h> #include <kunit/test.h> #include "test_kprobes.h" static struct kprobe kp; static void setup_kprobe(struct kunit *test, struct kprobe *kp, const char *symbol, int offset) { kp->offset = offset; k...
arch/s390/lib/test_kprobes.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #ifndef TEST_KPROBES_H #define TEST_KPROBES_H extern unsigned long kprobes_target_odd_offs; extern unsigned long kprobes_target_in_insn4_offs; extern unsigned long kprobes_target_in_insn6_lo_offs; extern unsigned long kprobes_target_in_insn6_hi_offs; #endif
arch/s390/lib/test_kprobes.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #include <linux/linkage.h> #include <asm/ftrace.h> #define KPROBES_TARGET_START(name) \ SYM_FUNC_START(name); \ FTRACE_GEN_NOP_ASM(name) #define KPROBES_TARGET_END(name) \ SYM_FUNC_END(name); \ SYM_DATA(name##_offs, .quad 1b - name) KPROBES_TARGET_START(kprobes_target_i...
arch/s390/lib/test_kprobes_asm.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <kunit/test.h> #include <linux/module.h> #include "test_modules.h" /* * Test that modules with many relocations are loaded properly. */ static void test_modules_many_vmlinux_relocs(struct kunit *test) { int result = 0; #define CALL_RETURN(i) result += test_modules_re...
arch/s390/lib/test_modules.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0+ */ #ifndef TEST_MODULES_H #define TEST_MODULES_H #define __REPEAT_10000_3(f, x) \ f(x ## 0); \ f(x ## 1); \ f(x ## 2); \ f(x ## 3); \ f(x ## 4); \ f(x ## 5); \ f(x ## 6); \ f(x ## 7); \ f(x ## 8); \ f(x ## 9) #define __REPEAT_10000_2(f, x) \ __REPEAT_10000_3(f, x ## 0); ...
arch/s390/lib/test_modules.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <linux/export.h> #include "test_modules.h" #define DEFINE_RETURN(i) \ int test_modules_return_ ## i(void) \ { \ return 1 ## i - 10000; \ } \ EXPORT_SYMBOL_GPL(test_modules_return_ ## i) REPEAT_10000(DEFINE_RETURN);
arch/s390/lib/test_modules_helpers.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Test module for unwind_for_each_frame */ #include <kunit/test.h> #include <asm/unwind.h> #include <linux/completion.h> #include <linux/kallsyms.h> #include <linux/kthread.h> #include <linux/ftrace.h> #include <linux/module.h> #include <linux/timer.h> #include <linux/slab...
arch/s390/lib/test_unwind.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/nospec-insn.h> .section .noinstr.text, "ax" GEN_BR_THUNK %r14 SYM_FUNC_START(__ashlti3) lmg %r0,%r1,0(%r3) cije %r4,0,1f lhi %r3,64 sr %r3,%r4 jnh 0f srlg %r3,%r1,0(%r3) sllg %r0,%r0,0(%r4) sllg %r1,%...
arch/s390/lib/tishift.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Standard user space access functions based on mvcp/mvcs and doing * interesting things in the secondary space mode. * * Copyright IBM Corp. 2006,2014 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com), * Gerald Schaefer (gerald.schaefer@de.ibm.com) */ #in...
arch/s390/lib/uaccess.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Optimized xor_block operation for RAID4/5 * * Copyright IBM Corp. 2016 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/types.h> #include <linux/export.h> #include <linux/raid/xor.h> #include <asm/xor.h> static void xor_xc_2(unsigned long bytes,...
arch/s390/lib/xor.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Collaborative memory management interface. * * Copyright IBM Corp 2003, 2010 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>, * */ #include <linux/errno.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/module.h> #include <linux/moduleparam....
arch/s390/mm/cmm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/cpufeature.h> #include <linux/set_memory.h> #include <linux/ptdump.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/sort.h> #include <linux/mm.h> #include <linux/kfence.h> #include <linux/kasan.h> #include <asm/kasan.h> #include <asm/abs_lowc...
arch/s390/mm/dump_pagetables.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/bitfield.h> #include <linux/extable.h> #include <linux/string.h> #include <linux/errno.h> #include <linux/panic.h> #include <asm/asm-extable.h> #include <asm/extable.h> #include <asm/fpu.h> const struct exception_table_entry *s390_search_extables(unsigned long addr)...
arch/s390/mm/extable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Author(s)......: Carsten Otte <cotte@de.ibm.com> * Rob M van der Heij <rvdheij@nl.ibm.com> * Steven Shultz <shultzss@us.ibm.com> * Bugreports.to..: <Linux390@de.ibm.com> * Copyright IBM Corp. 2002, 2004 */ #define pr_fmt(fmt) "extmem: " fmt #include <linux/ke...
arch/s390/mm/extmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999 * Author(s): Hartmut Penner (hp@de.ibm.com) * Ulrich Weigand (uweigand@de.ibm.com) * * Derived from "arch/i386/mm/fault.c" * Copyright (C) 1995 Linus Torvalds */ #include <linux/kernel_stat.h> #include <linux/mmu_con...
arch/s390/mm/fault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Helper functions for KVM guest address space mapping code * * Copyright IBM Corp. 2007, 2025 */ #include <linux/export.h> #include <linux/mm_types.h> #include <linux/mmap_lock.h> #include <linux/mm.h> #include <linux/hugetlb.h> #include <linux/swap.h> #include <linux/le...
arch/s390/mm/gmap_helpers.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * IBM System z Huge TLB Page Support for Kernel. * * Copyright IBM Corp. 2007,2020 * Author(s): Gerald Schaefer <gerald.schaefer@de.ibm.com> */ #define pr_fmt(fmt) "hugetlb: " fmt #include <linux/cpufeature.h> #include <linux/mm.h> #include <linux/hugetlb.h> #include...
arch/s390/mm/hugetlbpage.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * S390 version * Copyright IBM Corp. 1999 * Author(s): Hartmut Penner (hp@de.ibm.com) * * Derived from "arch/i386/mm/init.c" * Copyright (C) 1995 Linus Torvalds */ #include <linux/cpufeature.h> #include <linux/signal.h> #include <linux/sched.h> #include <linux/...
arch/s390/mm/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Access kernel memory without faulting -- s390 specific implementation. * * Copyright IBM Corp. 2009, 2015 * */ #include <linux/uaccess.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/errno.h> #include <linux/gfp.h> #include <linux/cpu.h> #include <lin...
arch/s390/mm/maccess.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * flexible mmap layout support * * Copyright 2003-2004 Red Hat Inc., Durham, North Carolina. * All Rights Reserved. * * Started by Ingo Molnar <mingo@elte.hu> */ #include <linux/elf-randomize.h> #include <linux/personality.h> #include <linux/mm.h> #include <linux/mman.h>...
arch/s390/mm/mmap.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2008 * * Guest page hinting for unused pages. * * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/mm.h> #include <asm/page-states.h> #include <asm/sections.h> #include <asm/page.h> int __bootdata_preserved(cmma_flag); EXPORT_...
arch/s390/mm/page-states.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2011 * Author(s): Jan Glauber <jang@linux.vnet.ibm.com> */ #include <linux/cpufeature.h> #include <linux/hugetlb.h> #include <linux/proc_fs.h> #include <linux/vmalloc.h> #include <linux/mm.h> #include <asm/cacheflush.h> #include <asm/facility.h> #include <...
arch/s390/mm/pageattr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 1999, 2023 */ #include <linux/cpuhotplug.h> #include <linux/sched/task.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/irq.h> #include <asm/asm-extable.h> #include <asm/asm-offsets.h> #include <asm/pfault.h> #include <asm/diag.h> #defi...
arch/s390/mm/pfault.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Page table allocation functions * * Copyright IBM Corp. 2016 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/sysctl.h> #include <linux/slab.h> #include <linux/mm.h> #include <asm/mmu_context.h> #include <asm/page-states.h> #include <asm/p...
arch/s390/mm/pgalloc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2007, 2011 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> */ #include <linux/cpufeature.h> #include <linux/export.h> #include <linux/sched.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/gfp.h> #include <linux/mm.h> #...
arch/s390/mm/pgtable.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/mmdebug.h> #include <linux/export.h> #include <linux/mm.h> #include <asm/page.h> unsigned long __phys_addr(unsigned long x, bool is_31bit) { VIRTUAL_BUG_ON(is_vmalloc_or_module_addr((void *)(x))); x = __pa_nodebug(x); if (is_31bit) VIRTUAL_BUG_ON(x >> 31); retu...
arch/s390/mm/physaddr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2006 */ #include <linux/memory_hotplug.h> #include <linux/bootmem_info.h> #include <linux/cpufeature.h> #include <linux/memblock.h> #include <linux/pfn.h> #include <linux/mm.h> #include <linux/init.h> #include <linux/list.h> #include <linux/hugetlb.h> #...
arch/s390/mm/vmem.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * BPF Jit compiler for s390. * * Minimum build requirements: * * - HAVE_MARCH_Z196_FEATURES: laal, laalg * - HAVE_MARCH_Z10_FEATURES: msfi, cgrj, clgrj * - HAVE_MARCH_Z9_109_FEATURES: alfi, llilf, clfi, oilf, nilf * - 64BIT * * Copyright IBM Corp. 2012,2015 * * Aut...
arch/s390/net/bpf_jit_comp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/export.h> #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/nospec-insn.h> #define R2_OFF 0 #define R5_OFF (R2_OFF + (5 - 2 + 1) * 8) #define R14_OFF (R5_OFF + 8) #define RETADDR_OFF (R14_OFF + 8) #define R15_OFF (RETADDR_OFF + 8) #define BACK...
arch/s390/net/bpf_timed_may_goto.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * IBM System z PNET ID Support * * Copyright IBM Corp. 2018 */ #include <linux/device.h> #include <linux/export.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/types.h> #include <asm/ccwgroup.h> #include <asm/ccwdev.h> #include <asm/pnet.h> #include <a...
arch/s390/net/pnet.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> * * The System z PCI code is a rewrite from a prototype by * the following people (Kudoz!): * Alexander Schmidt * Christoph Raisch * Hannes Hering * Hoang-Nam Nguyen * Jan-Ber...
arch/s390/pci/pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2020 * * Author(s): * Pierre Morel <pmorel@linux.ibm.com> * */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/slab.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/seq_file.h> #include <linux/irqdomain.h...
arch/s390/pci/pci_bus.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2020 * * Author(s): * Pierre Morel <pmorel@linux.ibm.com> * */ #ifndef __S390_PCI_BUS_H #define __S390_PCI_BUS_H #include <linux/pci.h> int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops); void zpci_bus_device_unregister(stru...
arch/s390/pci/pci_bus.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/miscdevice.h> #include <linux/slab.h> #include <linux/err.h> #include <linux/delay.h> #include <linux/pci.h> #in...
arch/s390/pci/pci_clp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012,2015 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/seq_file.h> #include <linux/debugfs.h> #include <linux/export.h> #include <linux/pci.h> #include <asm/de...
arch/s390/pci/pci_debug.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/pci.h> #include <asm/pci_debug.h> #include <asm/pci_dma.h> #include <asm/sclp.h> #include "pci_bus.h" #inclu...
arch/s390/pci/pci_event.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Exceptions for specific devices, * * Copyright IBM Corp. 2025 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> */ #include <linux/pci.h> static void zpci_ism_bar_no_mmap(struct pci_dev *pdev) { /* * ISM's BAR is special. Drivers written for ISM know * how...
arch/s390/pci/pci_fixup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * s390 specific pci instructions * * Copyright IBM Corp. 2013 */ #include <linux/export.h> #include <linux/errno.h> #include <linux/delay.h> #include <linux/jump_label.h> #include <asm/asm-extable.h> #include <asm/facility.h> #include <asm/pci_insn.h> #include <asm/pci_debug....
arch/s390/pci/pci_insn.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2020 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/pci.h> #include "pci_iov.h" static struct resource iov_res = { .name = "PCI IOV res", .start = 0, .en...
arch/s390/pci/pci_iov.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2020 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #ifndef __S390_PCI_IOV_H #define __S390_PCI_IOV_H #include <linux/pci.h> #ifdef CONFIG_PCI_IOV void zpci_iov_remove_virtfn(struct pci_dev *pdev, int vfn); void zpci_iov_map_res...
arch/s390/pci/pci_iov.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/irq.h> #include <linux/kernel_stat.h> #include <linux/pci.h> #include <linux/msi.h> #include <linux/irqchip/irq-msi-lib.h> #include <linux/smp.h> #include <asm/isc.h> #include <asm/airq.h> #include <asm/tpi....
arch/s390/pci/pci_irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * VFIO ZPCI devices support * * Copyright (C) IBM Corp. 2022. All rights reserved. * Author(s): Pierre Morel <pmorel@linux.ibm.com> */ #include <linux/kvm_host.h> #include <linux/export.h> struct zpci_kvm_hook zpci_kvm_hook; EXPORT_SYMBOL_GPL(zpci_kvm_hook);
arch/s390/pci/pci_kvm_hook.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Access to PCI I/O memory from user space programs. * * Copyright IBM Corp. 2014 * Author(s): Alexey Ishchuk <aishchuk@linux.vnet.ibm.com> */ #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/init.h> #include <linux/mm.h> #include <linux/errno.h> #include...
arch/s390/pci/pci_mmio.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2024 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/sprintf.h> #include <linux/pci.h> #include <asm/sclp.h> #include <asm/debug.h> #include <asm/pci_debug.h>...
arch/s390/pci/pci_report.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2024 * * Author(s): * Niklas Schnelle <schnelle@linux.ibm.com> * */ #ifndef __S390_PCI_REPORT_H #define __S390_PCI_REPORT_H struct zpci_dev; int zpci_report_status(struct zpci_dev *zdev, const char *operation, const char *status); #endif /* __S3...
arch/s390/pci/pci_report.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com> */ #define pr_fmt(fmt) "zpci: " fmt #include <linux/kernel.h> #include <linux/stat.h> #include <linux/pci.h> #include "../../../drivers/pci/pci.h" #include <asm/sclp.h> #define zpci_attr(...
arch/s390/pci/pci_sysfs.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Purgatory setup code * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/page.h> #include <asm/sigp.h> #include <asm/ptrace.h> /* The purgatory is the code running...
arch/s390/purgatory/head.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <linux/linkage.h> .section .rodata, "a" .balign 8 SYM_DATA_START(kexec_purgatory) .incbin "arch/s390/purgatory/purgatory.ro" SYM_DATA_END_LABEL(kexec_purgatory, SYM_L_LOCAL, kexec_purgatory_end) .balign 8 SYM_DATA(kexec_purgatory_size, .quad kexec_purgatory_end-kex...
arch/s390/purgatory/kexec-purgatory.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Purgatory code running between two kernels. * * Copyright IBM Corp. 2018 * * Author(s): Philipp Rudo <prudo@linux.vnet.ibm.com> */ #include <linux/kexec.h> #include <linux/string.h> #include <crypto/sha2.h> #include <asm/purgatory.h> int verify_sha256_digest(void) { str...
arch/s390/purgatory/purgatory.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #include <asm-generic/vmlinux.lds.h> OUTPUT_FORMAT("elf64-s390", "elf64-s390", "elf64-s390") OUTPUT_ARCH(s390:64-bit) ENTRY(purgatory_start) SECTIONS { . = 0; .head.text : { _head = . ; HEAD_TEXT _ehead = . ; } .text : { _text = .; /* Text */ *(.text) *(.text.*...
arch/s390/purgatory/purgatory.lds.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #define __HAVE_ARCH_MEMCMP /* arch function */ #include "../lib/string.c"
arch/s390/purgatory/string.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Simple program to generate defines out of facility lists that use the bit * numbering scheme from the Princples of Operations: most significant bit * has bit number 0. * * Copyright IBM Corp. 2015, 2018 * */ #include <strings.h> #include <string.h> #include <stdlib.h>...
arch/s390/tools/gen_facilities.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ /* * Generate opcode table initializers for the in-kernel disassembler. * * Copyright IBM Corp. 2017 * */ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdio.h> #define STRING_SIZE_MAX 20 struct insn_type { unsigned char byte; unsigned char mask...
arch/s390/tools/gen_opcode_table.c
null
null
null
null
null
source
linux
0000 illegal E 0002 brkpt E 0101 pr E 0102 upt E 0104 ptff E 0107 sckpf E 010a pfpo E 010b tam E 010c sam24 E 010d sam31 E 010e sam64 E 01ff trap2 E 04 spm RR_R0 05 balr RR_RR 06 bctr RR_RR 07 bcr RR_UR 0a svc RR_U0 0b bsm RR_RR 0c bassm RR_RR 0d basr RR_RR 0e mvcl RR_RR 0f clcl RR_RR 10 lpr RR_RR 11 lnr RR_RR 12 ltr R...
arch/s390/tools/opcodes.txt
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <elf.h> #include <byteswap.h> #define USE_BSD #include <endian.h> #define ELF_BITS 64 #define ELF_MACHINE EM_S3...
arch/s390/tools/relocs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ALPHAPROJECT AP-SH4A-3A Support. * * Copyright (C) 2010 ALPHAPROJECT Co.,Ltd. * Copyright (C) 2008 Yoshihiro Shimoda * Copyright (C) 2009 Paul Mundt */ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/mtd/physmap.h> #includ...
arch/sh/boards/board-apsh4a3a.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * ALPHAPROJECT AP-SH4AD-0A Support. * * Copyright (C) 2010 ALPHAPROJECT Co.,Ltd. * Copyright (C) 2010 Matt Fleming * Copyright (C) 2010 Paul Mundt */ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/io.h> #include <linux/regulator/fixed.h> #includ...
arch/sh/boards/board-apsh4ad0a.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/boards/renesas/edosk7705/setup.c * * Copyright (C) 2000 Kazumoto Kojima * * Hitachi SolutionEngine Support. * * Modified for edosk7705 development * board by S. Dunn, 2003. */ #include <linux/init.h> #include <linux/irq.h> #include <linux/platform_device.h> #in...
arch/sh/boards/board-edosk7705.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ /* * Renesas Europe EDOSK7760 Board Support * * Copyright (C) 2008 SPES Societa' Progettazione Elettronica e Software Ltd. * Author: Luca Santini <luca.santini@spesonline.com> */ #include <linux/init.h> #include <linux/types.h> #include <linux/platform_device.h> #include <linux...
arch/sh/boards/board-edosk7760.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Data Technology Inc. ESPT-GIGA board support * * Copyright (C) 2008, 2009 Renesas Solutions Corp. * Copyright (C) 2008, 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> */ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/interrupt.h> #include...
arch/sh/boards/board-espt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * linux/arch/sh/boards/magicpanel/setup.c * * Copyright (C) 2007 Markus Brunner, Mark Jonas * * Magic Panel Release 2 board setup */ #include <linux/init.h> #include <linux/irq.h> #include <linux/platform_device.h> #include <linux/delay.h> #include <linux/gpio.h> #include...
arch/sh/boards/board-magicpanelr2.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * June 2006 Steve Glendinning <steve.glendinning@shawell.net> * * Polaris-specific resource declaration * */ #include <linux/init.h> #include <linux/interrupt.h> #include <linux/irq.h> #include <linux/platform_device.h> #include <linux/regulator/fixed.h> #include <linux/regu...
arch/sh/boards/board-polaris.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2002 David McCullough <davidm@snapgear.com> * Copyright (C) 2003 Paul Mundt <lethal@linux-sh.org> * * Based on files with the following comments: * * Copyright (C) 2000 Kazumoto Kojima * * Modified for 7751 Solution Engine by * ...
arch/sh/boards/board-secureedge5410.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SH-2007 board support. * * Copyright (C) 2003, 2004 SUGIOKA Toshinobu * Copyright (C) 2010 Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> */ #include <linux/init.h> #include <linux/irq.h> #include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> #include <lin...
arch/sh/boards/board-sh2007.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Renesas R0P7757LC0012RL Support. * * Copyright (C) 2009 - 2010 Renesas Solutions Corp. */ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/gpio.h> #include <linux/irq.h> #include <linux/regulator/fixed.h> #include <linux/regulator/machine.h> #incl...
arch/sh/boards/board-sh7757lcr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Renesas Technology Corp. R0P7785LC0011RL Support. * * Copyright (C) 2008 Yoshihiro Shimoda * Copyright (C) 2009 Paul Mundt */ #include <linux/init.h> #include <linux/platform_device.h> #include <linux/sm501.h> #include <linux/sm501-regs.h> #include <linux/fb.h> #include <...
arch/sh/boards/board-sh7785lcr.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/boards/shmin/setup.c * * Copyright (C) 2006 Takashi YOSHII * * SHMIN Support. */ #include <linux/init.h> #include <linux/irq.h> #include <asm/machvec.h> #include <mach/shmin.h> #include <asm/clock.h> #include <asm/io.h> #define PFC_PHCR 0xa400010eUL #define INTC_I...
arch/sh/boards/board-shmin.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/boards/titan/setup.c - Setup for Titan * * Copyright (C) 2006 Jamie Lenehan */ #include <linux/init.h> #include <linux/irq.h> #include <mach/titan.h> #include <asm/io.h> static void __init init_titan_irq(void) { /* enable individual interrupt mode for externals *...
arch/sh/boards/board-titan.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Renesas Technology Corp. SH7786 Urquell Support. * * Copyright (C) 2008 Kuninori Morimoto <morimoto.kuninori@renesas.com> * Copyright (C) 2009, 2010 Paul Mundt * * Based on board-sh7785lcr.c * Copyright (C) 2008 Yoshihiro Shimoda */ #include <linux/init.h> #include <l...
arch/sh/boards/board-urquell.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * SH generic board support, using device tree * * Copyright (C) 2015-2016 Smart Energy Instruments, Inc. */ #include <linux/of.h> #include <linux/of_clk.h> #include <linux/of_fdt.h> #include <linux/clocksource.h> #include <linux/irqchip.h> #include <asm/clock.h> #include <as...
arch/sh/boards/of-generic.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 * * AP325RXA sdram self/auto-refresh setup code * * Copyright (C) 2009 Magnus Damm */ #include <linux/sys.h> #include <linux/errno.h> #include <linux/linkage.h> #include <asm/asm-offsets.h> #include <asm/suspend.h> #include <asm/romimage-macros.h> /* code to enter and leave s...
arch/sh/boards/mach-ap325rxa/sdram.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Renesas - AP-325RXA * (Compatible with Algo System ., LTD. - AP-320A) * * Copyright (C) 2008 Renesas Solutions Corp. * Author : Yusuke Goda <goda.yuske@renesas.com> */ #include <asm/clock.h> #include <asm/io.h> #include <asm/suspend.h> #include <cpu/sh7723.h> #include <...
arch/sh/boards/mach-ap325rxa/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * arch/sh/boards/dreamcast/irq.c * * Holly IRQ support for the Sega Dreamcast. * * Copyright (c) 2001, 2002 M. R. Brown <mrbrown@0xd6.org> * */ #include <linux/irq.h> #include <linux/io.h> #include <linux/export.h> #include <linux/err.h> #include <mach/sysasic.h> /* * Dre...
arch/sh/boards/mach-dreamcast/irq.c
null
null
null
null
null