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-or-later /* * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com */ #include <linux/pci.h> #include <pci.h> #include <loongson.h> static struct resource loongson_pci_mem_resource = { .name = "pci memory space", .start ...
arch/mips/loongson2ef/common/pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <linux/err.h> #include <linux/smp.h> #include <linux/platform_device.h> static struct platform_device loongson2_cpufreq_device = { .name = "loongson2_cpufreq", .id = -1, }; st...
arch/mips/loongson2ef/common/platform.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * loongson-specific suspend support * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin <wuzhangjin@gmail.com> */ #include <linux/suspend.h> #include <linux/interrupt.h> #include <linux/pm.h> #include <asm/i8259.h> #include <asm/mipsregs.h> #include <loongso...
arch/mips/loongson2ef/common/pm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com * Copyright (C) 2009 Lemote, Inc. * Author: Zhangjin Wu, wuzhangjin@gmail.com */ #include <linux/init.h> #include <linux/pm.h> #include <asm/idle.h> #i...
arch/mips/loongson2ef/common/reset.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Lemote Fuloong platform support * * Copyright(c) 2010 Arnaud Patard <apatard@mandriva.com> */ #include <linux/init.h> #include <linux/kernel.h> #include <linux/platform_device.h> #include <linux/mc146818rtc.h> static struct resource loongson_rtc_resources[] = { ...
arch/mips/loongson2ef/common/rtc.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2007 Ralf Baechle (ralf@linux-mips.org) * * Copyright (C) 2009 Lemote, Inc. * Author: Yan hua (yanhua@lemote.com) * Auth...
arch/mips/loongson2ef/common/serial.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com */ #include <linux/export.h> #include <linux/init.h> #include <asm/wbflush.h> #include <asm/bootinfo.h> #include <loongson.h> static void wbflush_loongson(...
arch/mips/loongson2ef/common/setup.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <asm/mc146818-time.h> #include <asm/time.h> #include <asm/hpet....
arch/mips/loongson2ef/common/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <linux/export.h> #include <asm/bootinfo.h> #include <asm/setup.h> #include <loongson.h> /* raw */ unsigned long loongson_uart_base; /* ioremapped */ unsigned long _loongson_uart...
arch/mips/loongson2ef/common/uart_base.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * the ACC Virtual Support Module of AMD CS5536 * * Copyright (C) 2007 Lemote, Inc. * Author : jlliu, liujl@lemote.com * * Copyright (C) 2009 Lemote, Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <cs5536/cs5536.h> #include <cs5536/cs5536_pci.h> voi...
arch/mips/loongson2ef/common/cs5536/cs5536_acc.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * the EHCI Virtual Support Module of AMD CS5536 * * Copyright (C) 2007 Lemote, Inc. * Author : jlliu, liujl@lemote.com * * Copyright (C) 2009 Lemote, Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <cs5536/cs5536.h> #include <cs5536/cs5536_pci.h> vo...
arch/mips/loongson2ef/common/cs5536/cs5536_ehci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * the IDE Virtual Support Module of AMD CS5536 * * Copyright (C) 2007 Lemote, Inc. * Author : jlliu, liujl@lemote.com * * Copyright (C) 2009 Lemote, Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <cs5536/cs5536.h> #include <cs5536/cs5536_pci.h> voi...
arch/mips/loongson2ef/common/cs5536/cs5536_ide.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * the ISA Virtual Support Module of AMD CS5536 * * Copyright (C) 2007 Lemote, Inc. * Author : jlliu, liujl@lemote.com * * Copyright (C) 2009 Lemote, Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <linux/pci.h> #include <cs5536/cs5536.h> #include <cs...
arch/mips/loongson2ef/common/cs5536/cs5536_isa.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * CS5536 General timer functions * * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology * Author: Yanhua, yanh@lemote.com * * Copyright (C) 2009 Lemote Inc. * Author: Wu zhangjin, wuzhangjin@gmail.com * * Reference: AMD Geode(TM) CS5536 Companion ...
arch/mips/loongson2ef/common/cs5536/cs5536_mfgpt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * the OHCI Virtual Support Module of AMD CS5536 * * Copyright (C) 2007 Lemote, Inc. * Author : jlliu, liujl@lemote.com * * Copyright (C) 2009 Lemote, Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <cs5536/cs5536.h> #include <cs5536/cs5536_pci.h> vo...
arch/mips/loongson2ef/common/cs5536/cs5536_ohci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * read/write operation to the PCI config space of CS5536 * * Copyright (C) 2007 Lemote, Inc. * Author : jlliu, liujl@lemote.com * * Copyright (C) 2009 Lemote, Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com * * the Virtual Support Module(VSM) for virtulizing the...
arch/mips/loongson2ef/common/cs5536/cs5536_pci.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/dma-direct.h> dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { return paddr | 0x80000000; } phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) { return dma_addr & 0x7fffffff; }
arch/mips/loongson2ef/fuloong-2e/dma.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com */ #include <linux/interrupt.h> #include <asm/irq_cpu.h> #include <asm/i8259.h> #include <loongson.h> static void i8259_irqdispatch(void) { int irq; irq...
arch/mips/loongson2ef/fuloong-2e/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* Board-specific reboot/shutdown routines * Copyright (c) 2009 Philippe Vachon <philippe@cowpig.ca> * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <loongson.h> void mach_prepare_reboot(void) { LOONGSON_GENCFG &= ~(1 << 2);...
arch/mips/loongson2ef/fuloong-2e/reset.c
null
null
null
null
null
source
linux
/* * Copyright (C) 2006 - 2008 Lemote Inc. & Institute of Computing Technology * Author: Yanhua, yanh@lemote.com * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/cpufreq.h...
arch/mips/loongson2ef/lemote-2f/clock.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/dma-direct.h> dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { return paddr | 0x80000000; } phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dma_addr) { if (dma_addr > 0x8fffffff) return dma_addr; return dma_addr & 0x0fffffff; }
arch/mips/loongson2ef/lemote-2f/dma.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Basic KB3310B Embedded Controller support for the YeeLoong 2F netbook * * Copyright (C) 2008 Lemote Inc. * Author: liujl <liujl@lemote.com>, 2008-04-20 */ #include <linux/io.h> #include <linux/export.h> #include <linux/spinlock.h> #include <linux/delay.h> #incl...
arch/mips/loongson2ef/lemote-2f/ec_kb3310b.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * KB3310B Embedded Controller * * Copyright (C) 2008 Lemote Inc. * Author: liujl <liujl@lemote.com>, 2008-03-14 */ #ifndef _EC_KB3310B_H #define _EC_KB3310B_H extern unsigned char ec_read(unsigned short addr); extern void ec_write(unsigned short addr, unsigned...
arch/mips/loongson2ef/lemote-2f/ec_kb3310b.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Lemote Inc. * Author: Fuxin Zhang, zhangfx@lemote.com */ #include <linux/export.h> #include <linux/init.h> #include <linux/interrupt.h> #include <asm/irq_cpu.h> #include <asm/i8259.h> #include <asm/mipsregs.h> #include <loongson.h> #include <mac...
arch/mips/loongson2ef/lemote-2f/irq.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <asm/bootinfo.h> #include <loongson.h> void __init mach_prom_init_machtype(void) { /* We share the same kernel image file among Lemote 2F family * of machines, and provide the...
arch/mips/loongson2ef/lemote-2f/machtype.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Lemote loongson2f family machines' specific suspend support * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin <wuzhangjin@gmail.com> */ #include <linux/suspend.h> #include <linux/interrupt.h> #include <linux/pm.h> #include <linux/i8042.h> #include <linux...
arch/mips/loongson2ef/lemote-2f/pm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* Board-specific reboot/shutdown routines * * Copyright (c) 2009 Philippe Vachon <philippe@cowpig.ca> * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <linux/io.h> #include <linux/delay.h> #include <linux/types.h> #include <...
arch/mips/loongson2ef/lemote-2f/reset.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/kobject.h> #include <linux/string.h> #include <boot_param.h> static ssize_t boardinfo_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { char board_manufacturer[64]; char *tmp_board_manufacturer = board_manufacturer; char bios_vendor[64]...
arch/mips/loongson64/boardinfo.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2014 Lemote Corporation. * written by Huacai Chen <chenhc@lemote.com> * * based on arch/mips/cavium-octeon/cpu.c * Cop...
arch/mips/loongson64/cop2-ex.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/smp.h> #include <linux/types.h> #include <asm/cpu.h> #include <asm/cpu-info.h> #include <asm/elf.h> #include <loongson_regs.h> #include <cpucfg-emul.h> static bool is_loongson(struct cpuinfo_mips *c) { switch (c->processor_id & PRID_COMP_MASK) { case PRID_COMP_LE...
arch/mips/loongson64/cpucfg-emul.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/dma-direct.h> #include <linux/init.h> #include <linux/swiotlb.h> #include <asm/bootinfo.h> #include <boot_param.h> dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) { /* We extract 2bit node id (bit 44~47, only bit 44~45 used now) from * Loongson-3's 4...
arch/mips/loongson64/dma.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Based on Ocelot Linux port, which is * Copyright 2001 MontaVista Software Inc. * Author: jsun@mvista.com or jsun@junsun.net * * Copyright 2003 ICT CAS * Author: Michael Guo <guoyi@ict.ac.cn> * * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology ...
arch/mips/loongson64/env.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/init.h> #include <linux/pci.h> #include <linux/percpu.h> #include <linux/delay.h> #include <linux/spinlock.h> #include <linux/interrupt.h> #include <asm/hpet.h> #include <asm/time.h> #define SMBUS_CFG_BASE (loongson_sysconf.ht_control_base + 0x0300a000) #define SMB...
arch/mips/loongson64/hpet.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <linux/irqchip.h> #include <linux/logic_pio.h> #include <linux/memblock.h> #include <linux/of.h> #include <linux/of_address.h> #include <asm/bootinfo.h> #include <asm/traps.h> #in...
arch/mips/loongson64/init.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2010 Loongson Inc. & Lemote Inc. & * Institute of Computing Technology * Author: Xiang Gao, gaoxiang@ict.ac.cn * Huacai Chen, chenhc@lemote.com * Xiaofu Meng, Shuangshuang Zhang */ #include <linux/init.h> #includ...
arch/mips/loongson64/numa.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * loongson-specific suspend support * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin <wuzhangjin@gmail.com> */ #include <linux/suspend.h> #include <linux/pm.h> #include <asm/mipsregs.h> #include <loongson.h> asmlinkage void loongson_lefi_sleep(unsigned l...
arch/mips/loongson64/pm.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com * Copyright (C) 2009 Lemote, Inc. * Author: Zhangjin Wu, wuzhangjin@gmail.com */ #include <linux/cpu.h> #include <linux/delay.h> #include <linux/init.h>...
arch/mips/loongson64/reset.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Lemote Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com */ #include <linux/init.h> #include <asm/bootinfo.h> #include <linux/libfdt.h> #include <linux/of_fdt.h> #include <asm/prom.h> #include <loongson.h> void ...
arch/mips/loongson64/setup.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2024, Jiaxun Yang <jiaxun.yang@flygoat.com> * Loongson EFI firmware sleeper routine */ #include <asm/asm.h> #include <asm/pm.h> #include <kernel-entry-init.h> LEAF(loongson_lefi_sleep) SUSPEND_SAVE move t9, a0 PTR_LA a0, wake move a1, sp ja...
arch/mips/loongson64/sleeper.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2010, 2011, 2012, Lemote, Inc. * Author: Chen Huacai, chenhc@lemote.com */ #include <irq.h> #include <linux/init.h> #include <linux/cpu.h> #include <linux/sched.h> #include <linux/sched/hotplug.h> #include <linux/sched/task_stack.h> #include <linux/smp...
arch/mips/loongson64/smp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __LOONGSON_SMP_H_ #define __LOONGSON_SMP_H_ /* for Loongson-3 smp support */ extern unsigned long long smp_group[4]; /* 4 groups(nodes) in maximum in numa case */ #define SMP_CORE_GROUP0_BASE (smp_group[0]) #define SMP_CORE_GROUP1_BASE (smp_group[1]) #define SMP_CORE_GRO...
arch/mips/loongson64/smp.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2007 Lemote, Inc. & Institute of Computing Technology * Author: Fuxin Zhang, zhangfx@lemote.com * * Copyright (C) 2009 Lemote Inc. * Author: Wu Zhangjin, wuzhangjin@gmail.com */ #include <asm/time.h> #include <asm/hpet.h> #include <loongson.h> #inc...
arch/mips/loongson64/time.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0+ #include <linux/pci.h> #include <loongson.h> static void pci_fixup_video(struct pci_dev *pdev) { struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; if (res->start) return; if (!loongson_sysconf.vgabios_addr) return; pci_disable_rom(pdev); if (res->parent) rele...
arch/mips/loongson64/vbios_quirk.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * cp1emu.c: a MIPS coprocessor 1 (FPU) instruction emulator * * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com * Copyright (C) 2000 MIPS Technologies, Inc. * * A ...
arch/mips/math-emu/cp1emu.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * double precision: CLASS.f * FPR[fd] = class(FPR[fs]) * * MIPS floating point support * Copyright (C) 2015 Imagination Technologies, Ltd. * Author: Markos Chandras <markos.chandras@imgtec.com> */ #include "ieee754dp.h" int ieee75...
arch/mips/math-emu/dp_2008class.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y) { int s; COMPXDP; CO...
arch/mips/math-emu/dp_add.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" int ieee754dp_cmp(union ieee754dp x, union ieee754dp y, int cmp, int sig) { s64 vx; s64 vy...
arch/mips/math-emu/dp_cmp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_div(union ieee754dp x, union ieee754dp y) { u64 rm; int re; u64...
arch/mips/math-emu/dp_div.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_fint(int x) { u64 xm; int xe; int xs; ieee754_clearcx(); if...
arch/mips/math-emu/dp_fint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_flong(s64 x) { u64 xm; int xe; int xs; ieee754_clearcx(); i...
arch/mips/math-emu/dp_flong.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * double precision: MIN{,A}.f * MIN : Scalar Floating-Point Minimum * MINA: Scalar Floating-Point argument with Minimum Absolute Value * * MIN.D : FPR[fd] = minNum(FPR[fs],FPR[ft]) * MINA.D: FPR[fd] = maxNumMag(FPR[fs],FPR[ft]) * *...
arch/mips/math-emu/dp_fmax.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * double precision: MIN{,A}.f * MIN : Scalar Floating-Point Minimum * MINA: Scalar Floating-Point argument with Minimum Absolute Value * * MIN.D : FPR[fd] = minNum(FPR[fs],FPR[ft]) * MINA.D: FPR[fd] = maxNumMag(FPR[fs],FPR[ft]) * *...
arch/mips/math-emu/dp_fmin.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" #include "ieee754dp.h" static inline union ieee754dp ieee754dp_nan_fsp(int xs, u64 xm) { re...
arch/mips/math-emu/dp_fsp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * double precision: MADDF.f (Fused Multiply Add) * MADDF.fmt: FPR[fd] = FPR[fd] + (FPR[fs] x FPR[ft]) * * MIPS floating point support * Copyright (C) 2015 Imagination Technologies, Ltd. * Author: Markos Chandras <markos.chandras@imgt...
arch/mips/math-emu/dp_maddf.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_mul(union ieee754dp x, union ieee754dp y) { int re; int rs; u64...
arch/mips/math-emu/dp_mul.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * Copyright (C) 2017 Imagination Technologies, Ltd. * Author: Aleksandar Markovic <aleksandar.markovic@imgtec.com> */ ...
arch/mips/math-emu/dp_rint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_neg(union ieee754dp x) { union ieee754dp y; if (ieee754_csr.abs...
arch/mips/math-emu/dp_simple.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision square root */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" static const unsigned int table[] = { 0, 1204, 3062, 5746, 9193, 13348, 18162, 23592, 29598, 361...
arch/mips/math-emu/dp_sqrt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) { int s; COMPXDP; CO...
arch/mips/math-emu/dp_sub.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" int ieee754dp_tint(union ieee754dp x) { u64 residue; int round; int sticky; int odd; C...
arch/mips/math-emu/dp_tint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754dp.h" s64 ieee754dp_tlong(union ieee754dp x) { u64 residue; int round; int sticky; int odd; ...
arch/mips/math-emu/dp_tlong.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/err.h> #include <linux/slab.h> #include <linux/mm_types.h> #include <linux/sched/task.h> #include <asm/branch.h> #include <asm/cacheflush.h> #include <asm/fpu_emulator.h> #include <asm/inst.h> #include <asm/mipsregs.h> #include <linux/uaccess.h> /** * struct emufra...
arch/mips/math-emu/dsemul.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* ieee754 floating point arithmetic * single and double precision * * BUGS * not much dp done * doesn't generate IEEE754_INEXACT */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include <linux/compiler.h> #include "ieee754.h" #inclu...
arch/mips/math-emu/ieee754.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * * Nov 7, 2000 * Modification to allow integration with Linux kernel * * Kevin D. Kissell, kevink@mips.com and Carsten Langgard, carstenl@mips.com * Copyright (C) 2000 MIPS Technologies,...
arch/mips/math-emu/ieee754.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * Some debug functions * * MIPS floating point support * * Copyright (C) 1994-2000 Algorithmics Ltd. * * Nov 7, 2000 * Modified to build and operate in Linux kernel environment. * * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com * Co...
arch/mips/math-emu/ieee754d.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * double precision: common utilities */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include <linux/compiler.h> #include "ieee754dp.h" int ieee754dp_class(union ieee754dp x) { COMPXDP; EXPLODEXDP;...
arch/mips/math-emu/ieee754dp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * IEEE754 floating point * double precision internal header file */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include <linux/compiler.h> #include "ieee754int.h" #define assert(expr) ((void)0) #define DP_EBIAS 1023 #define DP...
arch/mips/math-emu/ieee754dp.h
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * IEEE754 floating point * common internal header file */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #ifndef __IEEE754INT_H #define __IEEE754INT_H #include "ieee754.h" #define CLPAIR(x, y) ((x)*6+(y)) enum maddf_flags { MADDF_...
arch/mips/math-emu/ieee754int.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include <linux/compiler.h> #include "ieee754sp.h" int ieee754sp_class(union ieee754sp x) { COMPXSP; EXPLODEXSP; return xc; } st...
arch/mips/math-emu/ieee754sp.c
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-only */ /* * IEEE754 floating point * double precision internal header file */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include <linux/compiler.h> #include "ieee754int.h" #define assert(expr) ((void)0) #define SP_EBIAS 127 #define SP_...
arch/mips/math-emu/ieee754sp.h
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/cpumask.h> #include <linux/debugfs.h> #include <linux/fs.h> #include <linux/init.h> #include <linux/percpu.h> #include <linux/types.h> #include <asm/debug.h> #include <asm/fpu_emulator.h> #include <asm/local.h> DEFINE_PER_CPU(struct mips_fpu_emulator_stats, fpuemusta...
arch/mips/math-emu/me-debugfs.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * single precision: CLASS.f * FPR[fd] = class(FPR[fs]) * * MIPS floating point support * Copyright (C) 2015 Imagination Technologies, Ltd. * Author: Markos Chandras <markos.chandras@imgtec.com> */ #include "ieee754sp.h" int ieee75...
arch/mips/math-emu/sp_2008class.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y) { int s; COMPXSP; COMPYSP; EXPLODEXS...
arch/mips/math-emu/sp_add.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" int ieee754sp_cmp(union ieee754sp x, union ieee754sp y, int cmp, int sig) { int vx; int vy; COMPXSP; COMP...
arch/mips/math-emu/sp_cmp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_div(union ieee754sp x, union ieee754sp y) { unsigned int rm; int re; unsigned int...
arch/mips/math-emu/sp_div.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" #include "ieee754dp.h" static inline union ieee754sp ieee754sp_nan_fdp(int xs, u64 xm) { return buildsp(xs, S...
arch/mips/math-emu/sp_fdp.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_fint(int x) { unsigned int xm; int xe; int xs; ieee754_clearcx(); if (x == 0)...
arch/mips/math-emu/sp_fint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_flong(s64 x) { u64 xm; /* <--- need 64-bit mantissa temp */ int xe; int xs; ie...
arch/mips/math-emu/sp_flong.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * single precision: MAX{,A}.f * MAX : Scalar Floating-Point Maximum * MAXA: Scalar Floating-Point argument with Maximum Absolute Value * * MAX.S : FPR[fd] = maxNum(FPR[fs],FPR[ft]) * MAXA.S: FPR[fd] = maxNumMag(FPR[fs],FPR[ft]) * *...
arch/mips/math-emu/sp_fmax.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * single precision: MIN{,A}.f * MIN : Scalar Floating-Point Minimum * MINA: Scalar Floating-Point argument with Minimum Absolute Value * * MIN.S : FPR[fd] = minNum(FPR[fs],FPR[ft]) * MINA.S: FPR[fd] = maxNumMag(FPR[fs],FPR[ft]) * *...
arch/mips/math-emu/sp_fmin.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* * IEEE754 floating point arithmetic * single precision: MADDF.f (Fused Multiply Add) * MADDF.fmt: FPR[fd] = FPR[fd] + (FPR[fs] x FPR[ft]) * * MIPS floating point support * Copyright (C) 2015 Imagination Technologies, Ltd. * Author: Markos Chandras <markos.chandras@imgt...
arch/mips/math-emu/sp_maddf.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y) { int re; int rs; unsigned int rm; uns...
arch/mips/math-emu/sp_mul.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. * Copyright (C) 2017 Imagination Technologies, Ltd. * Author: Aleksandar Markovic <aleksandar.markovic@imgtec.com> */ #include "ieee754...
arch/mips/math-emu/sp_rint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_neg(union ieee754sp x) { union ieee754sp y; if (ieee754_csr.abs2008) { y = x; ...
arch/mips/math-emu/sp_simple.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision square root */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_sqrt(union ieee754sp x) { int ix, s, q, m, t, i; unsigned int r; COMP...
arch/mips/math-emu/sp_sqrt.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y) { int s; COMPXSP; COMPYSP; EXPLODEXS...
arch/mips/math-emu/sp_sub.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" int ieee754sp_tint(union ieee754sp x) { u32 residue; int round; int sticky; int odd; COMPXSP; ieee754_...
arch/mips/math-emu/sp_tint.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-only /* IEEE754 floating point arithmetic * single precision */ /* * MIPS floating point support * Copyright (C) 1994-2000 Algorithmics Ltd. */ #include "ieee754sp.h" s64 ieee754sp_tlong(union ieee754sp x) { u32 residue; int round; int sticky; int odd; COMPXDP; /* <-- n...
arch/mips/math-emu/sp_tlong.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2005-2007 Cavium Networks */ #include <linux/export.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/s...
arch/mips/mm/c-octeon.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * r2300.c: R2000 and R3000 specific mmu/cache code. * * Copyright (C) 1996 David S. Miller (davem@davemloft.net) * * with a lot of changes to make this thing work for R3000s * Tx39XX R4k style caches added. HK * Copyright (C) 1998, 1999, 2000 Harald Koerfgen * Copyright (C...
arch/mips/mm/c-r3k.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996 David S. Miller (davem@davemloft.net) * Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Ralf Baechle (ralf@gnu.org) ...
arch/mips/mm/c-r4k.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1994 - 2003, 06, 07 by Ralf Baechle (ralf@linux-mips.org) * Copyright (C) 2007 MIPS Technologies, Inc. */ #include <linux/...
arch/mips/mm/cache.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2001,2002,2003 Broadcom Corporation */ #include <linux/sched.h> #include <asm/mipsregs.h> #include <asm/sibyte/sb1250.h> #include <asm/sibyte/sb1250_regs.h> #if !defined(CONFIG_SIBYTE_BUS_WATCHER) || defined(CONFIG_SIBYTE_BW_TRACE) #include <asm/io.h> #...
arch/mips/mm/cerr-sb1.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1995 - 1999 Ralf Baechle * Copyright (C) 1999 Silicon Graphics, Inc. * * Cache error handler */ #include <asm/asm.h> #in...
arch/mips/mm/cex-gen.S
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2006 Cavium Networks * Cache error handler */ #include <asm/asm.h> #include <asm/regdef.h> #include <asm/mipsregs.h> #inc...
arch/mips/mm/cex-oct.S
null
null
null
null
null
source
linux
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) 2001,2002,2003 Broadcom Corporation */ #include <asm/asm.h> #include <asm/regdef.h> #include <asm/mipsregs.h> #include <asm/stackframe.h> #include <asm/cacheops.h> #include <asm/sibyte/board.h> #define C0_ERRCTL $26 /* CP0: Error info */ #...
arch/mips/mm/cex-sb1.S
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 #include <linux/atomic.h> #include <linux/mmu_context.h> #include <linux/percpu.h> #include <linux/spinlock.h> static DEFINE_RAW_SPINLOCK(cpu_mmid_lock); static atomic64_t mmid_version; static unsigned int num_mmids; static unsigned long *mmid_map; static DEFINE_PER_CPU(u64, reser...
arch/mips/mm/context.c
null
null
null
null
null
source
linux
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2000 Ani Joshi <ajoshi@unixbox.com> * Copyright (C) 2000, 2001, 06 Ralf Baechle <ralf@linux-mips.org> * swiped from i386, and cloned for MIPS by Geert, polished by Ralf. */ #include <linux/dma-direct.h> #include <linux/dma-map-ops.h> #include <linux/highmem.h...
arch/mips/mm/dma-noncoherent.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1997, 99, 2001 - 2004 Ralf Baechle <ralf@linux-mips.org> */ #include <linux/extable.h> #include <linux/spinlock.h> #include...
arch/mips/mm/extable.c
null
null
null
null
null
source
linux
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1995 - 2000 by Ralf Baechle */ #include <linux/context_tracking.h> #include <linux/signal.h> #include <linux/sched.h> #incl...
arch/mips/mm/fault.c
null
null
null
null
null