/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | string.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 /* From glibc-2.14, sysdeps/i386/memset.c */ 36 len -= (-dstp) % sizeof(op_t); in memset() 45 "rep\n" in memset() 46 "stosb" /* %0, %2, %3 */ : in memset() 48 "0" (dstp), "1" ((-dstp) % sizeof(op_t)), "a" (x) : in memset() 53 "rep\n" in memset() 54 "stosl" /* %0, %2, %3 */ : in memset() 63 "rep\n" in memset() 64 "stosb" /* %0, %2, %3 */ : in memset() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/arch/s390/lib/ |
H A D | xor.c | 1 // SPDX-License-Identifier: GPL-2.0 18 " larl 1,2f\n" in xor_xc_2() 19 " aghi %0,-1\n" in xor_xc_2() 20 " jm 3f\n" in xor_xc_2() 21 " srlg 0,%0,8\n" in xor_xc_2() 22 " ltgr 0,0\n" in xor_xc_2() 23 " jz 1f\n" in xor_xc_2() 24 "0: xc 0(256,%1),0(%2)\n" in xor_xc_2() 25 " la %1,256(%1)\n" in xor_xc_2() 26 " la %2,256(%2)\n" in xor_xc_2() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/host/include/loongarch64/host/ |
H A D | bufferiszero.c.inc | 2 * SPDX-License-Identifier: GPL-2.0-or-later 16 const void *e = QEMU_ALIGN_PTR_DOWN(buf + len - 1, 16) - (7 * 16); 20 asm("vld $vr0,%2,0\n\t" /* first: buf + 0 */ 21 "vld $vr1,%4,-16\n\t" /* last: buf + len - 16 */ 22 "vld $vr2,%3,0\n\t" /* e[0] */ 23 "vld $vr3,%3,16\n\t" /* e[1] */ 24 "vld $vr4,%3,32\n\t" /* e[2] */ 25 "vld $vr5,%3,48\n\t" /* e[3] */ 26 "vld $vr6,%3,64\n\t" /* e[4] */ 27 "vld $vr7,%3,80\n\t" /* e[5] */ [all …]
|
/openbmc/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 …]
|
/openbmc/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 | xchg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 23 " andnot %4,7,%3\n" in ____xchg() 24 " insbl %1,%4,%1\n" in ____xchg() 25 "1: ldq_l %2,0(%3)\n" in ____xchg() 26 " extbl %2,%4,%0\n" in ____xchg() 27 " mskbl %2,%4,%2\n" in ____xchg() 28 " or %1,%2,%2\n" in ____xchg() 29 " stq_c %2,0(%3)\n" in ____xchg() 30 " beq %2,2f\n" in ____xchg() 31 ".subsection 2\n" in ____xchg() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | traps.c | 1 // SPDX-License-Identifier: GPL-2.0 32 /* Work-around for some SRMs which mishandle opDEC faults. */ 41 " br $16, 1f\n" in opDEC_check() 44 " ldq $16, 8($sp)\n" in opDEC_check() 45 " addq $16, 4, $16\n" in opDEC_check() 46 " stq $16, 8($sp)\n" in opDEC_check() 47 " call_pal %[rti]\n" in opDEC_check() 49 "1: lda $17, 3\n" in opDEC_check() 50 " call_pal %[wrent]\n" in opDEC_check() 51 /* With that in place, the fault from the round-to-minf fp in opDEC_check() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/u-boot/drivers/ddr/fsl/ |
H A D | interactive.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2010-2016 Freescale Semiconductor, Inc. 4 * Copyright 2017-2018 NXP Semiconductor 49 printf("%s = 0x%08X\n", in print_option_table() 52 printf("%s = %u\n", in print_option_table() 58 printf("%s = %llu\n", in print_option_table() 62 printf("Unrecognized size!\n"); in print_option_table() 93 printf("Unrecognized size!\n"); in handle_option_table() 112 printf("trying to write past end of data\n"); in fsl_ddr_generic_edit() 127 printf("unexpected element size %u\n", element_size); in fsl_ddr_generic_edit() [all …]
|
/openbmc/linux/arch/parisc/kernel/ |
H A D | unaligned.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 39 /* skip LDB - never unaligned (index) */ 47 /* skip LDB - never unaligned (short) */ 55 /* skip STB - never unaligned */ 59 /* skip STBY - never unaligned */ 60 /* skip STDBY - never unaligned */ 99 #define IM(i,n) (((i)>>1&((1<<(n-1))-1))|((i)&1?((0-1L)<<(n-1)):0)) argument 104 #define ERR_NOTHANDLED -1 110 unsigned long saddr = regs->ior; in emulate_ldh() 114 DPRINTF("load " RFMT ":" RFMT " to r%d for 2 bytes\n", in emulate_ldh() [all …]
|
/openbmc/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 …]
|
/openbmc/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> 32 #define m_VCLK_INV (1 << 3) 33 #define v_VCLK_NOT_INV (0 << 3) 34 #define v_VCLK_INV (1 << 3) 48 #define v_VIDEO_INPUT_FORMAT(n) (n << 1) argument 58 #define m_VIDEO_OUTPUT_COLOR (3 << 6) 59 #define m_VIDEO_INPUT_BITS (3 << 4) 61 #define v_VIDEO_OUTPUT_COLOR(n) (((n) & 0x3) << 6) argument [all …]
|
/openbmc/linux/arch/nios2/mm/ |
H A D | uaccess.c | 13 asm(".global raw_copy_from_user\n" 14 " .type raw_copy_from_user, @function\n" 15 "raw_copy_from_user:\n" 16 " movi r2,7\n" 17 " mov r3,r4\n" 18 " bge r2,r6,1f\n" 19 " xor r2,r4,r5\n" 20 " andi r2,r2,3\n" 21 " movi r7,3\n" 22 " beq r2,zero,4f\n" [all …]
|