Home
last modified time | relevance | path

Searched +full:loongson +full:- +full:1 +full:b (Results 1 – 25 of 78) sorted by relevance

1234

/linux-6.12.1/Documentation/devicetree/bindings/net/
Dloongson,ls1b-gmac.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/net/loongson,ls1b-gmac.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson-1B Gigabit Ethernet MAC Controller
10 - Keguang Zhang <keguang.zhang@gmail.com>
13 Loongson-1B Gigabit Ethernet MAC Controller is based on
17 - Dual 10/100/1000Mbps GMAC controllers
18 - Full-duplex operation (IEEE 802.3x flow control automatic transmission)
19 - Half-duplex operation (CSMA/CD Protocol and back-pressure support)
[all …]
/linux-6.12.1/Documentation/arch/loongarch/
Dintroduction.rst1 .. SPDX-License-Identifier: GPL-2.0
7 LoongArch is a new RISC ISA, which is a bit like MIPS or RISC-V. There are
8 currently 3 variants: a reduced 32-bit version (LA32R), a standard 32-bit
9 version (LA32S) and a 64-bit version (LA64). There are 4 privilege levels
22 ----
24 LoongArch has 32 GPRs ( ``$r0`` ~ ``$r31`` ); each one is 32-bit wide in LA32
25 and 64-bit wide in LA64. ``$r0`` is hard-wired to zero, and the other registers
26 are not architecturally special. (Except ``$r1``, which is hard-wired as the
30 the LoongArch ELF psABI spec, in :ref:`References <loongarch-references>`:
40 ``$r4``-``$r11`` ``$a0``-``$a7`` Argument registers No
[all …]
/linux-6.12.1/arch/mips/include/asm/mach-loongson64/
Dkernel-entry-init.h7 * Copyright (C) 2005 Ralf Baechle (ralf@linux-mips.org)
28 /* Loongson-3A R4+ */
31 beq t1, t2, 1f
33 /* Loongson-3A R2/R3 */
38 1:
59 /* Loongson-3A R4+ */
62 beq t1, t2, 1f
64 /* Loongson-3A R2/R3 */
69 1:
89 beq s0, (PRID_IMP_LOONGSON_64C | PRID_REV_LOONGSON3B_R1), 1f
[all …]
Dloongson.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
20 /* machine-specific boot configuration */
40 /* machine-specific reboot/halt operation */
49 /* loongson-specific command line, env and memory initialization */
77 #define LOONGSON_FLASH_TOP (LOONGSON_FLASH_BASE+LOONGSON_FLASH_SIZE-1)
81 #define LOONGSON_LIO0_TOP (LOONGSON_LIO0_BASE+LOONGSON_LIO0_SIZE-1)
84 #define LOONGSON_BOOT_SIZE 0x00100000 /* 1M */
85 #define LOONGSON_BOOT_TOP (LOONGSON_BOOT_BASE+LOONGSON_BOOT_SIZE-1)
88 #define LOONGSON_REG_TOP (LOONGSON_REG_BASE+LOONGSON_REG_SIZE-1)
89 /* Loongson-3 specific registers */
[all …]
/linux-6.12.1/Documentation/translations/zh_TW/arch/loongarch/
Dintroduction.rst1 .. SPDX-License-Identifier: GPL-2.0
3 .. include:: ../../disclaimer-zh_TW.rst
6 :Translator: Huacai Chen <chenhuacai@loongson.cn>
12 LoongArch是一種新的RISC ISA,在一定程度上類似於MIPS和RISC-V。LoongArch指令集
25 ----------
32 :ref:`參考文獻 <loongarch-references-zh_TW>`:
41 ``$r4``-``$r11`` ``$a0``-``$a7`` 參數寄存器 否
42 ``$r4``-``$r5`` ``$v0``-``$v1`` 返回值 否
43 ``$r12``-``$r20`` ``$t0``-``$t8`` 臨時寄存器 否
46 ``$r23``-``$r31`` ``$s0``-``$s8`` 靜態寄存器 是
[all …]
/linux-6.12.1/Documentation/translations/zh_CN/arch/loongarch/
Dintroduction.rst1 .. SPDX-License-Identifier: GPL-2.0
3 .. include:: ../../disclaimer-zh_CN.rst
6 :Translator: Huacai Chen <chenhuacai@loongson.cn>
12 LoongArch是一种新的RISC ISA,在一定程度上类似于MIPS和RISC-V。LoongArch指令集
25 ----------
32 :ref:`参考文献 <loongarch-references-zh_CN>`:
41 ``$r4``-``$r11`` ``$a0``-``$a7`` 参数寄存器 否
42 ``$r4``-``$r5`` ``$v0``-``$v1`` 返回值 否
43 ``$r12``-``$r20`` ``$t0``-``$t8`` 临时寄存器 否
46 ``$r23``-``$r31`` ``$s0``-``$s8`` 静态寄存器 是
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/mips/loongson/
Ddevices.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/mips/loongson/devices.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Loongson based Platforms
10 - Jiaxun Yang <jiaxun.yang@flygoat.com>
12 Devices with a Loongson CPU shall have the following properties.
20 - description: Classic Loongson64 Quad Core + LS7A
22 - const: loongson,loongson64c-4core-ls7a
24 - description: Classic Loongson64 Quad Core + RS780E
[all …]
/linux-6.12.1/arch/loongarch/kernel/
Dlbt.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Author: Qi Hu <huqi@loongson.cn>
4 * Huacai Chen <chenhuacai@loongson.cn>
6 * Copyright (C) 2020-2023 Loongson Technology Corporation Limited
10 #include <asm/asm-extable.h>
11 #include <asm/asm-offsets.h>
82 EX st.d t1, a0, (1 * SCR_REG_WIDTH)
101 EX ld.d t1, a0, (1 * SCR_REG_WIDTH)
130 la.pcrel a0, 1f
133 1:
[all …]
Drelocate_kernel.S1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2022 Loongson Technology Corporation Limited
40 beqz s2, 1f
43 b process_entry
45 1:
48 beqz s2, 1f
51 b process_entry
53 1:
56 beqz s2, 1f
57 b done
[all …]
Dgenex.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
6 * Copyright (C) 1994 - 2000, 2001, 2003 Ralf Baechle
25 bnez t0, 1f
31 1: jr ra
43 bne t0, t1, 1f
45 1: move a0, sp
54 b cache_parity_error
84 SYM_DATA(unwind_hint_\exception, .word 668b - 666b)
/linux-6.12.1/arch/loongarch/power/
Dhibernate_asm.S1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Author: Huacai Chen <chenhuacai@loongson.cn>
6 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <asm/asm-offsets.h>
30 b swsusp_save
41 1:
46 bne t1, t3, 1b
48 bnez t0, 0b
/linux-6.12.1/drivers/net/ethernet/stmicro/stmmac/
Ddwmac-loongson1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson-1 DWMAC glue layer
5 * Copyright (C) 2011-2023 Keguang Zhang <keguang.zhang@gmail.com>
21 /* Loongson-1 SYSCON Registers */
25 /* Loongson-1B SYSCON Register Bits */
34 #define GMAC1_USE_PWM23 BIT(1)
37 /* Loongson-1C SYSCON Register Bits */
52 struct plat_stmmacenet_data *plat = dwmac->plat_dat; in ls1b_dwmac_syscon_init()
53 struct regmap *regmap = dwmac->regmap; in ls1b_dwmac_syscon_init()
59 dev_err(&pdev->dev, "Could not get IO_MEM resources\n"); in ls1b_dwmac_syscon_init()
[all …]
/linux-6.12.1/drivers/gpio/
Dgpio-loongson.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loongson-2F/3A/3B GPIO Support
6 * Copyright (c) 2008-2010 Arnaud Patard <apatard@mandriva.com>
20 #include <loongson.h>
97 struct device *dev = &pdev->dev; in loongson_gpio_probe()
101 return -ENOMEM; in loongson_gpio_probe()
103 gc->label = "loongson-gpio-chip"; in loongson_gpio_probe()
104 gc->base = 0; in loongson_gpio_probe()
105 gc->ngpio = LOONGSON_N_GPIO; in loongson_gpio_probe()
106 gc->get = loongson_gpio_get_value; in loongson_gpio_probe()
[all …]
/linux-6.12.1/arch/loongarch/boot/dts/
Dloongson-2k2000.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/loongson,ls2k-clk.h>
12 #address-cells = <2>;
13 #size-cells = <2>;
16 #address-cells = <1>;
17 #size-cells = <0>;
19 cpu0: cpu@1 {
[all …]
Dloongson-2k1000.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/loongson,ls2k-clk.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <2>;
14 #size-cells = <2>;
17 #address-cells = <1>;
18 #size-cells = <0>;
[all …]
/linux-6.12.1/arch/mips/boot/dts/loongson/
Dloongson64-2k1000.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 /dts-v1/;
5 #include <dt-bindings/interrupt-controller/irq.h>
8 compatible = "loongson,loongson2k1000";
10 #address-cells = <2>;
11 #size-cells = <2>;
14 #address-cells = <1>;
15 #size-cells = <0>;
19 compatible = "loongson,gs264";
21 #clock-cells = <1>;
[all …]
Dloongson64c-package.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 #include <dt-bindings/interrupt-controller/irq.h>
6 #address-cells = <2>;
7 #size-cells = <2>;
9 cpuintc: interrupt-controller {
10 #address-cells = <0>;
11 #interrupt-cells = <1>;
12 interrupt-controller;
13 compatible = "mti,cpu-interrupt-controller";
16 package0: bus@1fe00000 {
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/mfd/
Dsyscon.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
12 represent as any specific type of device. The typical use-case is
13 for some other node's driver, or platform-specific code, to acquire
20 - Lee Jones <lee@kernel.org>
30 - al,alpine-sysfabric-servic
31 - allwinner,sun8i-a83t-system-controller
32 - allwinner,sun8i-h3-system-controller
33 - allwinner,sun8i-v3s-system-controller
[all …]
/linux-6.12.1/arch/mips/
DKconfig1 # SPDX-License-Identifier: GPL-2.0
33 select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
143 bool "Generic board-agnostic MIPS kernel"
285 Build a generic DT-based kernel image that boots on select
286 BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
378 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
379 DECstation porting pages on <http://decstation.unix-ag.org/>.
418 Olivetti M700-10 workstations.
455 bool "Loongson 32-bit family of machines"
458 This enables support for the Loongson-1 family of machines.
[all …]
/linux-6.12.1/arch/loongarch/include/asm/
Dbitrev.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
14 asm("bitrev.4b %0, %1" : "=r"(ret) : "r"(__swab32(x))); in __arch_bitrev32()
22 asm("bitrev.4b %0, %1" : "=r"(ret) : "r"(__swab16(x))); in __arch_bitrev16()
30 asm("bitrev.4b %0, %1" : "=r"(ret) : "r"(x)); in __arch_bitrev8()
Dfutex.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <asm/asm-extable.h>
17 "1: ll.w %1, %4 # __futex_atomic_op\n" \
20 " beqz $t0, 1b \n" \
22 _ASM_EXTABLE_UACCESS_ERR(1b, 3b, %0) \
23 _ASM_EXTABLE_UACCESS_ERR(2b, 3b, %0) \
42 __futex_atomic_op("add.w $t0, %1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
45 __futex_atomic_op("or $t0, %1, %z5", ret, oldval, uaddr, oparg); in arch_futex_atomic_op_inuser()
48 __futex_atomic_op("and $t0, %1, %z5", ret, oldval, uaddr, ~oparg); in arch_futex_atomic_op_inuser()
[all …]
Djump_label.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2023 Loongson Technology Corporation Limited
19 ".long 1b - ., %l[l_yes] - . \n\t" \
20 ".quad %0 - . \n\t" \
26 "1: nop \n\t" in arch_static_branch()
39 "1: b %l[l_yes] \n\t" in arch_static_branch_jump()
Dloongson.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Author: Huacai Chen <chenhuacai@loongson.cn>
4 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
21 #define LOONGSON_LIO_SIZE 0x00100000 /* 1M */
22 #define LOONGSON_LIO_TOP (LOONGSON_LIO_BASE+LOONGSON_LIO_SIZE-1)
26 #define LOONGSON_BOOT_TOP (LOONGSON_BOOT_BASE+LOONGSON_BOOT_SIZE-1)
29 #define LOONGSON_REG_SIZE 0x00100000 /* 1M */
30 #define LOONGSON_REG_TOP (LOONGSON_REG_BASE+LOONGSON_REG_SIZE-1)
32 /* GPIO Regs - r/w */
47 " ld.b $zero, %[hw], 0 \n" in xconf_writel()
[all …]
/linux-6.12.1/arch/loongarch/lib/
Dunaligned.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
10 #include <asm/asm-extable.h>
15 li.w a0, -EFAULT
30 addi.d t0, a2, -1
35 1: ld.b t3, a0, 0
36 b 3f
41 addi.d t1, t1, -8
42 addi.d a0, a0, -1
43 addi.d a2, a2, -1
[all …]
/linux-6.12.1/arch/loongarch/crypto/
Dcrc32-loongarch.c1 // SPDX-License-Identifier: GPL-2.0
3 * crc32.c - CRC32 and CRC32C using LoongArch crc* instructions
5 * Module based on mips/crypto/crc32-mips.c
9 * Copyright (C) 2020-2023 Loongson Technology Corporation Limited
15 #include <asm/cpu-features.h>
21 #type ".w." #size ".w" " %0, %1, %0\n\t"\
39 len -= sizeof(u64); in crc32_loongarch_hw()
59 CRC32(crc, value, b); in crc32_loongarch_hw()
74 len -= sizeof(u64); in crc32c_loongarch_hw()
94 CRC32C(crc, value, b); in crc32c_loongarch_hw()
[all …]

1234