| /linux/lib/crypto/x86/ |
| H A D | chacha.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 14 u8 *dst, const u8 *src, 17 u8 *dst, const u8 *src, 23 u8 *dst, const u8 *src, 26 u8 *dst, const u8 *src, 29 u8 *dst, const u8 *src, 33 u8 *dst, const u8 *src, 36 u8 *dst, const u8 *src, 39 u8 *dst, const u8 *src, 52 static void chacha_dosimd(struct chacha_state *state, u8 *dst, const u8 *src, in chacha_dosimd() argument [all …]
|
| /linux/arch/mips/lib/ |
| H A D | csum_partial.S | 16 #include <asm/asm-offsets.h> 29 #define t0 $8 46 #define NBYTES 8 75 #define CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 76 LOAD _t0, (offset + UNIT(0))(src); \ 77 LOAD _t1, (offset + UNIT(1))(src); \ 78 LOAD _t2, (offset + UNIT(2))(src); \ 79 LOAD _t3, (offset + UNIT(3))(src); \ 86 #define CSUM_BIGCHUNK(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 87 CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3) [all …]
|
| /linux/arch/mips/cavium-octeon/ |
| H A D | octeon-memcpy.S | 18 #include <asm/asm-offsets.h> 22 #define src a1 macro 28 * memcpy copies len bytes from src to dst and sets v0 to dst. 30 * - src and dst don't overlap 31 * - src is readable 32 * - dst is writable 35 * __copy_user copies up to len bytes from src to dst and sets a2 (len) to 37 * __copy_user assumes that src and dst don't overlap, and that the call is 40 * - src is readable (no exceptions when reading src) 42 * - dst is writable (no exceptions when writing dst) [all …]
|
| /linux/drivers/comedi/drivers/ni_routing/ni_device_routes/ |
| H A D | pxi-6030e.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pxi-6030e.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pxi-6030e", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 63 .src = (int[]){ 70 .src = (int[]){ [all …]
|
| H A D | pci-6070e.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pci-6070e.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pci-6070e", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 63 .src = (int[]){ 70 .src = (int[]){ [all …]
|
| H A D | pci-6713.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pci-6713.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pci-6713", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 62 .dest = NI_PFI(8), 63 .src = (int[]){ [all …]
|
| H A D | pci-6723.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pci-6723.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pci-6723", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 62 .dest = NI_PFI(8), 63 .src = (int[]){ [all …]
|
| H A D | pxi-6733.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pxi-6733.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pxi-6733", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 62 .dest = NI_PFI(8), 63 .src = (int[]){ [all …]
|
| H A D | pci-6733.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pci-6733.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pci-6733", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 62 .dest = NI_PFI(8), 63 .src = (int[]){ [all …]
|
| H A D | pxi-6225.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * comedi/drivers/ni_routing/ni_device_routes/pxi-6225.c 6 * COMEDI - Linux Control and Measurement Device Interface 31 .device = "pxi-6225", 35 .src = (int[]){ 65 .src = (int[]){ 95 .src = (int[]){ 125 .src = (int[]){ 155 .src = (int[]){ 185 .src = (int[]){ [all …]
|
| /linux/arch/x86/crypto/ |
| H A D | aes-ctr-avx-x86_64.S | 1 /* SPDX-License-Identifier: Apache-2.0 OR BSD-2-Clause */ 7 // This file is dual-licensed, meaning that you can use it under your choice of 13 // http://www.apache.org/licenses/LICENSE-2.0 45 //------------------------------------------------------------------------------ 47 // This file contains x86_64 assembly implementations of AES-CTR and AES-XCTR 49 // - AES-NI && AVX 50 // - VAES && AVX2 51 // - VAES && AVX512BW && AVX512VL && BMI2 78 .macro _vmovdqu src, dst 80 vmovdqu \src, \dst [all …]
|
| /linux/arch/alpha/lib/ |
| H A D | csum_partial_copy.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * csum_partial_copy - do IP checksumming and copy 7 * Rick Gorton <rick.gorton@alpha-processor.com> 9 * Don't look at this too closely - you'll go mad. The things 84 csum_partial_cfu_aligned(const unsigned long __user *src, unsigned long *dst, in csum_partial_cfu_aligned() argument 92 if (__get_word(ldq, word, src)) in csum_partial_cfu_aligned() 95 src++; in csum_partial_cfu_aligned() 97 len -= 8; in csum_partial_cfu_aligned() 102 len += 8; in csum_partial_cfu_aligned() 106 if (__get_word(ldq, word, src)) in csum_partial_cfu_aligned() [all …]
|
| /linux/arch/sparc/lib/ |
| H A D | PeeCeeI.c | 1 // SPDX-License-Identifier: GPL-2.0 13 void outsb(unsigned long __addr, const void *src, unsigned long count) in outsb() argument 16 const u8 *p = src; in outsb() 18 while (count--) in outsb() 23 void outsw(unsigned long __addr, const void *src, unsigned long count) in outsw() argument 27 while (count--) { in outsw() 28 __raw_writew(*(u16 *)src, addr); in outsw() 29 src += sizeof(u16); in outsw() 34 void outsl(unsigned long __addr, const void *src, unsigned long count) in outsl() argument 42 switch (((unsigned long)src) & 0x3) { in outsl() [all …]
|
| /linux/drivers/video/fbdev/ |
| H A D | atafb_iplan2p4.c | 2 * linux/drivers/video/iplan2p4.c -- Low level frame buffer operations for 39 u8 *src, *dst; in atafb_iplan2p4_copyarea() local 47 /* odd->odd or even->even */ in atafb_iplan2p4_copyarea() 50 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea() 53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea() 54 src += BPL * 2; in atafb_iplan2p4_copyarea() 56 width -= 8; in atafb_iplan2p4_copyarea() 60 s = (u32 *)src; in atafb_iplan2p4_copyarea() 63 l = next_line - w * 4; in atafb_iplan2p4_copyarea() [all …]
|
| H A D | atafb_iplan2p2.c | 2 * linux/drivers/video/iplan2p2.c -- Low level frame buffer operations for 39 u8 *src, *dst; in atafb_iplan2p2_copyarea() local 47 /* odd->odd or even->even */ in atafb_iplan2p2_copyarea() 50 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea() 53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea() 54 src += BPL * 2; in atafb_iplan2p2_copyarea() 56 width -= 8; in atafb_iplan2p2_copyarea() 60 s = (u32 *)src; in atafb_iplan2p2_copyarea() 63 l = next_line - w * 4; in atafb_iplan2p2_copyarea() [all …]
|
| H A D | atafb_iplan2p8.c | 2 * linux/drivers/video/iplan2p8.c -- Low level frame buffer operations for 3 * interleaved bitplanes à la Atari (8 20 #define BPL 8 24 /* Copies a 8 plane column from 's', height 'h', to 'd'. */ 26 /* This expands a 8 bit color into two longs for two movepl (8 plane) 46 u8 *src, *dst; in atafb_iplan2p8_copyarea() local 54 /* odd->odd or even->even */ in atafb_iplan2p8_copyarea() 57 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 58 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea() 60 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p8_copyarea() [all …]
|
| /linux/arch/parisc/lib/ |
| H A D | lusercopy.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 5 * Copyright (C) 2000-2002 Hewlett-Packard (John Marvin) 6 * Copyright (C) 2000 Richard Hirst <rhirst with parisc-linux.org> 8 * Copyright (C) 2003 Randolph Chung <tausq with parisc-linux.org> 40 addib,<> -1,%r25,$lclu_loop 58 * - sr1 already contains space of source region 59 * - sr2 already contains space of destination region 62 * - number of bytes that could not be copied. 65 * This code is based on a C-implementation of a copy routine written by 69 * conditions. In the optimal case, we copy by loops that copy 32- or 16-bytes [all …]
|
| /linux/sound/firewire/motu/ |
| H A D | motu-protocol-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * motu-protocol-v2.c - a part of driver for MOTU FireWire series 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 29 #define V2_OPT_IN_IFACE_SHIFT 8 38 return -EIO; in get_clock_rate() 72 return -EINVAL; in snd_motu_protocol_v2_set_clock_rate() 89 enum snd_motu_clock_source *src) in get_clock_source() argument 93 *src = SND_MOTU_CLOCK_SOURCE_INTERNAL; in get_clock_source() 96 *src = SND_MOTU_CLOCK_SOURCE_ADAT_ON_OPT; in get_clock_source() 100 bool support_iec60958_on_opt = (motu->spec == &snd_motu_spec_828mk2 || in get_clock_source() [all …]
|
| /linux/arch/microblaze/lib/ |
| H A D | memcpy.c | 2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2008-2009 PetaLogix 6 * Reasonably optimised generic C-code for memcpy on Microblaze 7 * This is generic C code to do efficient, alignment-aware memcpy. 37 const char *src = v_src; in memcpy() local 56 *dst++ = *src++; in memcpy() 57 --c; in memcpy() 60 *dst++ = *src++; in memcpy() 61 --c; in memcpy() 64 *dst++ = *src++; in memcpy() [all …]
|
| H A D | memmove.c | 2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu> 3 * Copyright (C) 2008-2009 PetaLogix 6 * Reasonably optimised generic C-code for memcpy on Microblaze 7 * This is generic C code to do efficient, alignment-aware memmove. 36 const char *src = v_src; in memmove() local 55 /* Do a descending copy - this is a bit trickier! */ in memmove() 57 src += c; in memmove() 67 *--dst = *--src; in memmove() 68 --c; in memmove() 71 *--dst = *--src; in memmove() [all …]
|
| /linux/include/linux/ |
| H A D | uuid.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 25 {{ (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, \ 26 (b) & 0xff, ((b) >> 8) & 0xff, \ 27 (c) & 0xff, ((c) >> 8) & 0xff, \ 32 {{ ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((a) >> 8) & 0xff, (a) & 0xff, \ 33 ((b) >> 8) & 0xff, (b) & 0xff, \ 34 ((c) >> 8) & 0xff, (c) & 0xff, \ 38 * The length of a UUID string ("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee") 51 static inline void guid_copy(guid_t *dst, const guid_t *src) in guid_copy() argument 53 memcpy(dst, src, sizeof(guid_t)); in guid_copy() [all …]
|
| /linux/arch/hexagon/mm/ |
| H A D | copy_user_template.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 10 * Y: Location 0=preamble,8=loop,9=epilog 21 r3 = or(dst,src) 22 r4 = xor(dst,src) 28 src_dst_sav = combine(src,dst) 40 if (p3) memd(dst++#8) = d_dbuf 41 d_dbuf = memd(src++#8) 45 memd(dst++#8) = d_dbuf 46 bytes -= asl(loopcount,#3) [all …]
|
| /linux/sound/soc/meson/ |
| H A D | axg-toddr.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 15 #include <sound/soc-dai.h> 17 #include "axg-fifo.h" 24 #define CTRL0_TODDR_MSB_POS GENMASK(12, 8) 43 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_toddr_dai_prepare() 45 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_toddr_dai_prepare() 47 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_toddr_dai_prepare() 61 case 8: in axg_toddr_dai_hw_params() 62 type = 0; /* 8 samples of 8 bits */ in axg_toddr_dai_hw_params() 65 type = 2; /* 4 samples of 16 bits - right justified */ in axg_toddr_dai_hw_params() [all …]
|
| /linux/arch/x86/lib/ |
| H A D | csum-partial_64.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * arch/x86_64/lib/csum-partial.c 6 * in an architecture-specific manner due to speed. 12 #include <asm/word-at-a-time.h> 42 * it's best to have buff aligned on a 64-bit boundary 48 /* Do two 40-byte chunks in parallel to get better ILP */ in csum_partial() 55 len -= 80; in csum_partial() 69 len -= 40; in csum_partial() 76 asm("addq 0*8(%[src]),%[res]\n\t" in csum_partial() 77 "adcq 1*8(%[src]),%[res]\n\t" in csum_partial() [all …]
|
| /linux/arch/xtensa/boot/lib/ |
| H A D | zmem.c | 1 // SPDX-License-Identifier: GPL-2.0 7 void gunzip(void *dst, int dstlen, unsigned char *src, int *lenp); 18 size = (size + 7) & -8; in zalloc() 30 #define ORIG_NAME 8 34 #define DEFLATED 8 36 void gunzip (void *dst, int dstlen, unsigned char *src, int *lenp) in gunzip() argument 43 flags = src[3]; in gunzip() 44 if (src[2] != DEFLATED || (flags & RESERVED) != 0) { in gunzip() 49 i = 12 + src[10] + (src[11] << 8); in gunzip() 51 while (src[i++] != 0) in gunzip() [all …]
|