/linux/arch/arc/include/asm/ |
H A D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 6 * -__clear_user( ) called multiple times during elf load was byte loop 10 * -Hand crafted constant propagation for "constant" copy sizes 11 * -stock kernel shrunk by 33K at -O3 14 * -Added option to (UN)inline copy_(to|from)_user to reduce code sz 15 * -kernel shrunk by 200K even at -O3 (gcc 4.2.1) 16 * -Enabled when doing -Os 41 * Returns 0 on success, -EFAULT if not. 42 * @ret already contains 0 - given that errors will be less likely [all …]
|
H A D | futex.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 22 "1: llock %1, [%2] \n" \ 23 insn "\n" \ 24 "2: scond %0, [%2] \n" \ 25 " bnz 1b \n" \ 26 " mov %0, 0 \n" \ 27 "3: \n" \ 28 " .section .fixup,\"ax\" \n" \ 29 " .align 4 \n" \ [all …]
|
/linux/arch/csky/lib/ |
H A D | usercopy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 8 unsigned long n) in raw_copy_from_user() argument 13 "0: cmpnei %1, 0 \n" in raw_copy_from_user() 14 " bf 7f \n" in raw_copy_from_user() 15 " mov %3, %1 \n" in raw_copy_from_user() 16 " or %3, %2 \n" in raw_copy_from_user() 17 " andi %3, 3 \n" in raw_copy_from_user() 18 " cmpnei %3, 0 \n" in raw_copy_from_user() 19 " bf 1f \n" in raw_copy_from_user() [all …]
|
/linux/arch/sparc/math-emu/ |
H A D | sfp-util_32.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 __asm__ ("addcc %r4,%5,%1\n\t" \ 9 "addx %r2,%3,%0\n" \ 18 __asm__ ("subcc %r4,%5,%1\n\t" \ 19 "subx %r2,%3,%0\n" \ 29 __asm__ ("! Inlined umul_ppmm\n\t" \ 30 "wr %%g0,%2,%%y ! SPARC has 0-3 delay insn after a wr\n\t" \ 31 "sra %3,31,%%g2 ! Don't move this insn\n\t" \ 32 "and %2,%%g2,%%g2 ! Don't move this insn\n\t" \ 33 "andcc %%g0,0,%%g1 ! Don't move this insn\n\t" \ [all …]
|
/linux/arch/csky/include/asm/ |
H A D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 "1: stb %1, (%2,0) \n" \ 16 " br 3f \n" \ 17 "2: mov %0, %3 \n" \ 18 " br 3f \n" \ 19 ".section __ex_table, \"a\" \n" \ 20 ".align 2 \n" \ 21 ".long 1b,2b \n" \ 22 ".previous \n" \ 23 "3: \n" \ [all …]
|
/linux/arch/x86/lib/ |
H A D | usercopy_32.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * The non inlined parts of asm-i386/uaccess.h are here. 20 static inline int __movsl_is_ok(unsigned long a1, unsigned long a2, unsigned long n) in __movsl_is_ok() argument 23 if (n >= 64 && ((a1 ^ a2) & movsl_mask.mask)) in __movsl_is_ok() 28 #define movsl_is_ok(a1, a2, n) \ argument 29 __movsl_is_ok((unsigned long)(a1), (unsigned long)(a2), (n)) 40 ASM_STAC "\n" \ 41 "0: rep; stosl\n" \ 42 " movl %2,%0\n" \ 43 "1: rep; stosb\n" \ [all …]
|
/linux/arch/x86/include/asm/ |
H A D | xor_32.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Optimized RAID-5 checksumming functions for MMX. 10 * High-speed RAID5 checksumming functions utilizing MMX instructions. 14 #define LD(x, y) " movq 8*("#x")(%1), %%mm"#y" ;\n" 15 #define ST(x, y) " movq %%mm"#y", 8*("#x")(%1) ;\n" 16 #define XO1(x, y) " pxor 8*("#x")(%2), %%mm"#y" ;\n" 17 #define XO2(x, y) " pxor 8*("#x")(%3), %%mm"#y" ;\n" 18 #define XO3(x, y) " pxor 8*("#x")(%4), %%mm"#y" ;\n" 19 #define XO4(x, y) " pxor 8*("#x")(%5), %%mm"#y" ;\n" 37 LD(i + 3, 3) \ in xor_pII_mmx_2() [all …]
|
H A D | xor.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Optimized RAID-5 checksumming functions for SSE. 16 * High-speed RAID5 checksumming functions utilizing SSE instructions. 21 * x86-64 changes / gcc fixes from Andi Kleen. 25 * no advantages to be gotten from x86-64 here anyways. 39 #define PF0(x) " prefetchnta "PF_OFFS(x)"(%[p1]) ;\n" 40 #define LD(x, y) " movaps "OFFS(x)"(%[p1]), %%xmm"#y" ;\n" 41 #define ST(x, y) " movaps %%xmm"#y", "OFFS(x)"(%[p1]) ;\n" 42 #define PF1(x) " prefetchnta "PF_OFFS(x)"(%[p2]) ;\n" 43 #define PF2(x) " prefetchnta "PF_OFFS(x)"(%[p3]) ;\n" [all …]
|
/linux/arch/m68k/lib/ |
H A D | checksum.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 * Andreas Schwab, <schwab@issan.informatik.uni-dortmund.de> 19 * length-counter instead of the length counter 22 * data-registers to hold input values and one tries to 43 * is aligned on either a 2-byte or 4-byte boundary. in csum_partial() 45 __asm__("movel %2,%3\n\t" in csum_partial() 46 "btst #1,%3\n\t" /* Check alignment */ in csum_partial() 47 "jeq 2f\n\t" in csum_partial() 48 "subql #2,%1\n\t" /* buff%4==2: treat first word */ in csum_partial() 49 "jgt 1f\n\t" in csum_partial() [all …]
|
/linux/arch/mips/include/asm/ |
H A D | unaligned-emul.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 __asm__ __volatile__ (".set\tnoat\n" \ 11 "1:\t"type##_lb("%0", "0(%2)")"\n" \ 12 "2:\t"type##_lbu("$1", "1(%2)")"\n\t"\ 13 "sll\t%0, 0x8\n\t" \ 14 "or\t%0, $1\n\t" \ 15 "li\t%1, 0\n" \ 16 "3:\t.set\tat\n\t" \ 17 ".insn\n\t" \ 18 ".section\t.fixup,\"ax\"\n\t" \ [all …]
|
H A D | futex.h | 6 * Copyright (c) 2006 Ralf Baechle (ralf@linux-mips.org) 15 #include <asm/asm-eva.h> 23 #include <asm-generic/futex.h> 29 " .set push \n" \ 30 " .set noat \n" \ 31 " .set push \n" \ 32 " .set arch=r4000 \n" \ 33 "1: ll %1, %4 # __futex_atomic_op \n" \ 34 " .set pop \n" \ 35 " " insn " \n" \ [all …]
|
/linux/arch/alpha/include/asm/ |
H A D | xor.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/asm-alpha/xor.h 5 * Optimized RAID-5 checksumming functions for alpha EV5 and EV6 46 asm(" \n\ 47 .text \n\ 48 .align 3 \n\ 49 .ent xor_alpha_2 \n\ 50 xor_alpha_2: \n\ 51 .prologue 0 \n\ 52 srl $16, 6, $16 \n\ [all …]
|
H A D | cmpxchg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 " andnot %4,7,%3\n" in ____xchg_u8() 18 " insbl %1,%4,%1\n" in ____xchg_u8() 19 "1: ldq_l %2,0(%3)\n" in ____xchg_u8() 20 " extbl %2,%4,%0\n" in ____xchg_u8() 21 " mskbl %2,%4,%2\n" in ____xchg_u8() 22 " or %1,%2,%2\n" in ____xchg_u8() 23 " stq_c %2,0(%3)\n" in ____xchg_u8() 24 " beq %2,2f\n" in ____xchg_u8() 25 ".subsection 2\n" in ____xchg_u8() [all …]
|
/linux/arch/sh/include/asm/ |
H A D | uaccess_32.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (C) 2003 - 2008 Paul Mundt 42 "1:\n\t" \ 43 "mov." insn " %2, %1\n\t" \ 44 "2:\n" \ 45 ".section .fixup,\"ax\"\n" \ 46 "3:\n\t" \ 47 "mov #0, %1\n\t" \ 48 "mov.l 4f, %0\n\t" \ 49 "jmp @%0\n\t" \ [all …]
|
H A D | string_32.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 __asm__ __volatile__("1:\n\t" in strcpy() 17 "mov.b @%1+, %2\n\t" in strcpy() 18 "mov.b %2, @%0\n\t" in strcpy() 19 "cmp/eq #0, %2\n\t" in strcpy() 20 "bf/s 1b\n\t" in strcpy() 21 " add #1, %0\n\t" in strcpy() 36 "mov.b @%1+, %3\n" in strcmp() 37 "1:\n\t" in strcmp() 38 "mov.b @%0+, %2\n\t" in strcmp() [all …]
|
/linux/arch/alpha/kernel/ |
H A D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0 36 printk("pc = [<%016lx>] ra = [<%016lx>] ps = %04lx %s\n", in dik_show_regs() 37 regs->pc, regs->r26, regs->ps, print_tainted()); in dik_show_regs() 38 printk("pc is at %pSR\n", (void *)regs->pc); in dik_show_regs() 39 printk("ra is at %pSR\n", (void *)regs->r26); in dik_show_regs() 40 printk("v0 = %016lx t0 = %016lx t1 = %016lx\n", in dik_show_regs() 41 regs->r0, regs->r1, regs->r2); in dik_show_regs() 42 printk("t2 = %016lx t3 = %016lx t4 = %016lx\n", in dik_show_regs() 43 regs->r3, regs->r4, regs->r5); in dik_show_regs() 44 printk("t5 = %016lx t6 = %016lx t7 = %016lx\n", in dik_show_regs() [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | uaccess.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm-generic/access_ok.h> 32 asm volatile ("\n" \ 33 "1: "inst"."#bwl" %2,%1\n" \ 34 "2:\n" \ 35 " .section .fixup,\"ax\"\n" \ 36 " .even\n" \ 37 "10: moveq.l %3,%0\n" \ 38 " jra 2b\n" \ 39 " .previous\n" \ [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | dbstats.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: dbstats - Generation and display of ACPI table statistics 47 #define CMD_STAT_MISC 3 57 * PARAMETERS: list - Memory list/cache to be displayed 71 acpi_os_printf("\n%s\n", list->list_name); in acpi_db_list_info() 75 if (list->max_depth > 0) { in acpi_db_list_info() 78 "%8.2X %8.2X %8.2X %8.2X\n", list->current_depth, in acpi_db_list_info() 79 list->max_depth, list->max_depth - list->current_depth, in acpi_db_list_info() 80 (list->current_depth * list->object_size)); in acpi_db_list_info() 83 if (list->max_depth > 0) { in acpi_db_list_info() [all …]
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | inno_hdmi.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Zheng Yang <zhengyang@rock-chips.com> 5 * Yakir Yang <ykk@rock-chips.com> 27 #define m_VCLK_INV (1 << 3) 28 #define v_VCLK_NOT_INV (0 << 3) 29 #define v_VCLK_INV (1 << 3) 43 #define v_VIDEO_INPUT_FORMAT(n) (n << 1) argument 53 #define m_VIDEO_OUTPUT_COLOR (3 << 6) 54 #define m_VIDEO_INPUT_BITS (3 << 4) 56 #define v_VIDEO_OUTPUT_COLOR(n) (((n) & 0x3) << 6) argument [all …]
|
/linux/arch/parisc/kernel/ |
H A D | unaligned.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 40 /* skip LDB - never unaligned (index) */ 48 /* skip LDB - never unaligned (short) */ 56 /* skip STB - never unaligned */ 60 /* skip STBY - never unaligned */ 61 /* skip STDBY - never unaligned */ 100 #define IM(i,n) (((i)>>1&((1<<(n-1))-1))|((i)&1?((0-1L)<<(n-1)):0)) argument 105 #define ERR_NOTHANDLED -1 112 unsigned long saddr = regs->ior; in emulate_ldh() 116 DPRINTF("load " RFMT ":" RFMT " to r%d for 2 bytes\n", in emulate_ldh() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_dedup_split.c | 1 // SPDX-License-Identifier: GPL-2.0 16 btf__set_pointer_size(btf1, 8); /* enforce 64-bit arch */ in test_split_simple() 20 btf__add_struct(btf1, "s1", 4); /* [3] struct s1 { */ in test_split_simple() 28 "[3] STRUCT 's1' size=4 vlen=1\n" in test_split_simple() 32 struct s1 {\n\ in test_split_simple() 33 int f1;\n\ in test_split_simple() 34 };\n\n", "c_dump"); in test_split_simple() 44 ASSERT_NEQ(str_off, -ENOENT, "str_int_missing"); in test_split_simple() 50 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_split_simple() 70 "[3] STRUCT 's1' size=4 vlen=1\n" in test_split_simple() [all …]
|
/linux/tools/arch/arm64/include/asm/ |
H A D | sysreg.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 14 #include <linux/kasan-tags.h> 16 #include <asm/gpr-num.h> 22 * [20-19] : Op0 23 * [18-16] : Op1 24 * [15-12] : CRn 25 * [11- 142 SYS_DBGBVRn_EL1(n) global() argument 143 SYS_DBGBCRn_EL1(n) global() argument 144 SYS_DBGWVRn_EL1(n) global() argument 145 SYS_DBGWCRn_EL1(n) global() argument 253 SYS_ICC_AP0Rn_EL1(n) global() argument 258 SYS_ICC_AP1Rn_EL1(n) global() argument 329 SYS_AMEVCNTR0_EL0(n) global() argument 330 SYS_AMEVTYPER0_EL0(n) global() argument 331 SYS_AMEVCNTR1_EL0(n) global() argument 332 SYS_AMEVTYPER1_EL0(n) global() argument 359 __PMEV_op2(n) global() argument 360 __CNTR_CRm(n) global() argument 361 SYS_PMEVCNTRn_EL0(n) global() argument 362 __TYPER_CRm(n) global() argument 363 SYS_PMEVTYPERn_EL0(n) global() argument [all...] |
/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_regs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * R-Car Display Unit Registers Definitions 5 * Copyright (C) 2013-2015 Renesas Electronics Corporation 18 /* ----------------------------------------------------------------------------- 31 #define DSYSR_TVM_MASK (3 << 6) 34 #define DSYSR_SCM_INT_VIDEO (3 << 4) 35 #define DSYSR_SCM_MASK (3 << 4) 42 #define DSMR_DIPM_DE (3 << 25) 43 #define DSMR_DIPM_MASK (3 << 25) 52 #define DSMR_CDEM_HIGH (3 << 13) [all …]
|
/linux/arch/nios2/lib/ |
H A D | memset.c | 25 while (count--) in memset() 31 /* fill8 %3, %5 (c & 0xff) */ in memset() 32 " slli %4, %5, 8\n" in memset() 33 " or %4, %4, %5\n" in memset() 34 " slli %3, %4, 16\n" in memset() 35 " or %3, %3, %4\n" in memset() 36 /* Word-align %0 (s) if necessary */ in memset() 37 " andi %4, %0, 0x01\n" in memset() 38 " beq %4, zero, 1f\n" in memset() 39 " addi %1, %1, -1\n" in memset() [all …]
|
/linux/drivers/scsi/ |
H A D | 3w-xxxx.c | 2 3w-xxxx.c -- 3ware Storage Controller device driver for Linux. 5 Modifications By: Joel Jacobson <linux@3ware.com> 7 Brad Strand <linux@3ware.com> 9 Copyright (C) 1999-2010 3ware Inc. 12 Non-Copyright (C) 2000 Andre Hedrick <andre@suse.com> 28 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 47 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 55 ------- 56 0.1.000 - Initial release. 57 0.4.000 - Added support for Asynchronous Event Notification through [all …]
|