/Linux-v6.1/drivers/gpu/drm/tests/ |
D | drm_rect_test.c | 1 // SPDX-License-Identifier: GPL-2.0 14 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local 21 drm_rect_init(&src, 0, 0, 0, 0); in drm_test_rect_clip_scaled_div_by_zero() 24 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero() 27 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_div_by_zero() 29 drm_rect_init(&src, 0, 0, 0, 0); in drm_test_rect_clip_scaled_div_by_zero() 32 visible = drm_rect_clip_scaled(&src, &dst, &clip); in drm_test_rect_clip_scaled_div_by_zero() 35 KUNIT_EXPECT_FALSE_MSG(test, drm_rect_visible(&src), "Source should not be visible\n"); in drm_test_rect_clip_scaled_div_by_zero() 40 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local 44 drm_rect_init(&src, 0, 0, 1 << 16, 1 << 16); in drm_test_rect_clip_scaled_not_clipped() [all …]
|
/Linux-v6.1/arch/mips/cavium-octeon/ |
D | octeon-memcpy.S | 17 #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-v6.1/arch/arm64/lib/ |
D | copy_template.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 9 * http://bazaar.launchpad.net/~linaro-toolchain-dev/cortex-strings/trunk/ 10 * files/head:/src/aarch64/ 15 * Copy a buffer from src to dest (alignment handled by the hardware) 18 * x0 - dest 19 * x1 - src 20 * x2 - n 22 * x0 - dest 25 src .req x1 label 47 neg tmp2, src [all …]
|
/Linux-v6.1/arch/m68k/lib/ |
D | memmove.c | 10 void *memmove(void *dest, const void *src, size_t n) in memmove() argument 18 if (dest < src) { in memmove() 21 const char *csrc = src; in memmove() 24 src = csrc; in memmove() 25 n--; in memmove() 27 if (n > 2 && (long)dest & 2) { in memmove() 29 const short *ssrc = src; in memmove() 32 src = ssrc; in memmove() 33 n -= 2; in memmove() 35 temp = n >> 2; in memmove() [all …]
|
/Linux-v6.1/arch/mips/lib/ |
D | csum_partial.S | 15 #include <asm/asm-offsets.h> 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) 89 #define CSUM_BIGCHUNK(src, offset, sum, _t0, _t1, _t2, _t3) \ argument 90 CSUM_BIGCHUNK1(src, offset, sum, _t0, _t1, _t2, _t3); \ [all …]
|
D | memcpy.S | 23 * dma-coherent systems. 36 #include <asm/asm-offsets.h> 41 #define src a1 macro 47 * memcpy copies len bytes from src to dst and sets v0 to dst. 49 * - src and dst don't overlap 50 * - src is readable 51 * - dst is writable 54 * __copy_user copies up to len bytes from src to dst and sets a2 (len) to 56 * __copy_user assumes that src and dst don't overlap, and that the call is 59 * - src is readable (no exceptions when reading src) [all …]
|
/Linux-v6.1/arch/m68k/math-emu/ |
D | fp_log.c | 3 fp_trig.c: floating-point math routines for the Linux-m68k 6 Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel. 25 extern struct fp_ext *fp_fadd(struct fp_ext *dest, const struct fp_ext *src); 26 extern struct fp_ext *fp_fdiv(struct fp_ext *dest, const struct fp_ext *src); 29 fp_fsqrt(struct fp_ext *dest, struct fp_ext *src) in fp_fsqrt() argument 36 fp_monadic_check(dest, src); in fp_fsqrt() 41 if (dest->sign) { in fp_fsqrt() 49 * sqrt(m) * 2^(p) , if e = 2*p in fp_fsqrt() 50 * sqrt(m*2^e) = in fp_fsqrt() 51 * sqrt(2*m) * 2^(p) , if e = 2*p + 1 in fp_fsqrt() [all …]
|
/Linux-v6.1/arch/nios2/lib/ |
D | memmove.c | 15 unsigned long dst, src; in memmove() local 22 src = (unsigned long) s; in memmove() 24 if ((count < 8) || ((dst ^ src) & 3)) in memmove() 28 *(char *)dst++ = *(char *)src++; in memmove() 29 count--; in memmove() 31 if (dst & 2) { in memmove() 32 *(short *)dst = *(short *)src; in memmove() 33 src += 2; in memmove() 34 dst += 2; in memmove() 35 count -= 2; in memmove() [all …]
|
/Linux-v6.1/net/ceph/ |
D | armor.c | 1 // SPDX-License-Identifier: GPL-2.0 5 int ceph_armor(char *dst, const char *src, const char *end); 6 int ceph_unarmor(char *dst, const char *src, const char *end); 23 return c - 'A'; in decode_bits() 25 return c - 'a' + 26; in decode_bits() 27 return c - '0' + 52; in decode_bits() 33 return 0; /* just non-negative, please */ in decode_bits() 34 return -EINVAL; in decode_bits() 37 int ceph_armor(char *dst, const char *src, const char *end) in ceph_armor() argument 42 while (src < end) { in ceph_armor() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | veth.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 readonly STATS="$(mktemp -p /tmp ns-XXXXXX)" 7 readonly SRC=2 10 readonly NS_SRC=$BASE$SRC 23 readonly jobs="$(jobs -p)" 24 [ -n "${jobs}" ] && kill -1 ${jobs} 2>/dev/null 25 rm -f $STATS 28 ip netns del $ns 2>/dev/null 39 ip -n $ns link set dev lo up 42 ip link add name veth$SRC type veth peer name veth$DST [all …]
|
D | xfrm_policy.sh | 2 # SPDX-License-Identifier: GPL-2.0 8 # ns1 ---- ns3 ----- ns4 ---- ns2 21 # Kselftest framework requirement - SKIP code is 4. 33 local me=$2 39 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 41 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 46 local me=$2 53 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 54 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 61 # re-built. [all …]
|
/Linux-v6.1/drivers/comedi/drivers/ni_routing/ni_device_routes/ |
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 11 * the Free Software Foundation; either version 2 of the License, or 31 .device = "pxi-6030e", 35 .src = (int[]){ 42 .src = (int[]){ 48 .dest = NI_PFI(2), 49 .src = (int[]){ 56 .src = (int[]){ [all …]
|
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 11 * the Free Software Foundation; either version 2 of the License, or 31 .device = "pci-6070e", 35 .src = (int[]){ 42 .src = (int[]){ 48 .dest = NI_PFI(2), 49 .src = (int[]){ 56 .src = (int[]){ [all …]
|
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 11 * the Free Software Foundation; either version 2 of the License, or 31 .device = "pci-6733", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 63 .src = (int[]){ [all …]
|
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 11 * the Free Software Foundation; either version 2 of the License, or 31 .device = "pxi-6733", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 63 .src = (int[]){ [all …]
|
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 11 * the Free Software Foundation; either version 2 of the License, or 31 .device = "pci-6713", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 63 .src = (int[]){ [all …]
|
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 11 * the Free Software Foundation; either version 2 of the License, or 31 .device = "pci-6723", 35 .src = (int[]){ 42 .src = (int[]){ 49 .src = (int[]){ 56 .src = (int[]){ 63 .src = (int[]){ [all …]
|
/Linux-v6.1/arch/parisc/lib/ |
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 47 2: b $lclu_done 50 ASM_EXCEPTIONTABLE_ENTRY(1b,2b) 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. [all …]
|
D | io.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) Matthew Wilcox 2001 for Hewlett-Packard 16 * Assumes the device can cope with 32-bit transfers. If it can't, 19 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) in memcpy_toio() argument 21 if (((unsigned long)dst & 3) != ((unsigned long)src & 3)) in memcpy_toio() 24 writeb(*(char *)src, dst++); in memcpy_toio() 25 src++; in memcpy_toio() 26 count--; in memcpy_toio() 29 __raw_writel(*(u32 *)src, dst); in memcpy_toio() 30 src += 4; in memcpy_toio() [all …]
|
/Linux-v6.1/sound/pci/ctxfi/ |
D | ctatc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 #define MONO_SUM_SCALE 0x19a8 /* 2^(-0.5) in 14-bit floating format */ 101 .public_name = "IEC958 Non-audio"}, 115 [SRC] = { .create = (create_t)src_mgr_create, 140 if (!apcm->substream) in ct_map_audio_buffer() 143 runtime = apcm->substream->runtime; in ct_map_audio_buffer() 144 vm = atc->vm; in ct_map_audio_buffer() 146 apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes); in ct_map_audio_buffer() 148 if (!apcm->vm_block) in ct_map_audio_buffer() 149 return -ENOENT; in ct_map_audio_buffer() [all …]
|
/Linux-v6.1/arch/hexagon/mm/ |
D | copy_user_template.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 21 r3 = or(dst,src) 22 r4 = xor(dst,src) 28 src_dst_sav = combine(src,dst) 41 d_dbuf = memd(src++#8) 46 bytes -= asl(loopcount,#3) 63 loopcount = lsr(bytes,#2) 71 w_dbuf = memw(src++#4) 76 bytes -= asl(loopcount,#2) [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | test_sock_fields.c | 1 // SPDX-License-Identifier: GPL-2.0 58 return !a6[0] && !a6[1] && !a6[2] && a6[3] == bpf_htonl(1); in is_loopback6() 62 const struct bpf_sock *src) in skcpy() argument 64 dst->bound_dev_if = src->bound_dev_if; in skcpy() 65 dst->family = src->family; in skcpy() 66 dst->type = src->type; in skcpy() 67 dst->protocol = src->protocol; in skcpy() 68 dst->mark = src->mark; in skcpy() 69 dst->priority = src->priority; in skcpy() 70 dst->src_ip4 = src->src_ip4; in skcpy() [all …]
|
/Linux-v6.1/sound/soc/meson/ |
D | axg-frddr.c | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 16 #include <sound/soc-dai.h> 18 #include "axg-fifo.h" 40 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_frddr_dai_prepare() 42 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_frddr_dai_prepare() 44 regmap_update_bits(fifo->map, FIFO_CTRL1, in g12a_frddr_dai_prepare() 60 depth = min(period, fifo->depth); in axg_frddr_dai_hw_params() 61 val = (depth / AXG_FIFO_BURST) - 1; in axg_frddr_dai_hw_params() 62 regmap_update_bits(fifo->map, FIFO_CTRL1, CTRL1_FRDDR_DEPTH_MASK, in axg_frddr_dai_hw_params() 75 ret = clk_prepare_enable(fifo->pclk); in axg_frddr_dai_startup() [all …]
|
/Linux-v6.1/arch/alpha/lib/ |
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 26 __asm__ __volatile__("extql %1,%2,%0":"=r" (z):"r" (x),"r" (y)) 29 __asm__ __volatile__("extqh %1,%2,%0":"=r" (z):"r" (x),"r" (y)) 32 __asm__ __volatile__("mskql %1,%2,%0":"=r" (z):"r" (x),"r" (y)) 35 __asm__ __volatile__("mskqh %1,%2,%0":"=r" (z):"r" (x),"r" (y)) 38 __asm__ __volatile__("insql %1,%2,%0":"=r" (z):"r" (x),"r" (y)) 41 __asm__ __volatile__("insqh %1,%2,%0":"=r" (z):"r" (x),"r" (y)) [all …]
|
/Linux-v6.1/sound/soc/sh/rcar/ |
D | src.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Renesas R-Car SRC support 11 * amixer set "SRC Out Rate" on 13 * amixer set "SRC Out Rate" 96000 // convert rate to 96000Hz 14 * amixer set "SRC Out Rate" 22050 // convert rate to 22050Hz 27 #define SRC_NAME "src" 42 #define rsnd_src_get(priv, id) ((struct rsnd_src *)(priv->src) + id) 43 #define rsnd_src_nr(priv) ((priv)->src_nr) 44 #define rsnd_src_sync_is_enabled(mod) (rsnd_mod_to_src(mod)->sen.val) 52 ((pos) = (struct rsnd_src *)(priv)->src + i); \ [all …]
|