Home
last modified time | relevance | path

Searched +full:src +full:- +full:n (Results 1 – 25 of 1344) sorted by relevance

12345678910>>...54

/linux/arch/x86/lib/
H A Dmemmove_32.S1 /* SPDX-License-Identifier: GPL-2.0 */
8 * void *memmove(void *dest_in, const void *src_in, size_t n)
9 * -mregparm=3 passes these in registers:
12 * n: %ecx
15 * n can remain in %ecx, but for `rep movsl`, we'll need dest in %edi and src
21 .set src, %esi define
22 .set n, %ecx define
31 * Save all callee-saved registers, because this function is going to clobber
42 movl src_in, src
46 cmpl $0x10, n
[all …]
H A Dcsum-partial_64.c1 // 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>
21 asm("addq %1,%0\n\t" in update_csum_40b()
22 "adcq %2,%0\n\t" in update_csum_40b()
23 "adcq %3,%0\n\t" in update_csum_40b()
24 "adcq %4,%0\n\t" in update_csum_40b()
25 "adcq %5,%0\n\t" in update_csum_40b()
42 * it's best to have buff aligned on a 64-bit boundary
[all …]
/linux/arch/m68k/math-emu/
H A Dfp_trig.c3 fp_trig.c: floating-point math routines for the Linux-m68k
6 Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel.
21 struct fp_ext *fp_fsin(struct fp_ext *dest, struct fp_ext *src) in fp_fsin() argument
23 uprint("fsin\n"); in fp_fsin()
25 fp_monadic_check(dest, src); in fp_fsin()
30 struct fp_ext *fp_fcos(struct fp_ext *dest, struct fp_ext *src) in fp_fcos() argument
32 uprint("fcos\n"); in fp_fcos()
34 fp_monadic_check(dest, src); in fp_fcos()
39 struct fp_ext *fp_ftan(struct fp_ext *dest, struct fp_ext *src) in fp_ftan() argument
41 uprint("ftan\n"); in fp_ftan()
[all …]
H A Dfp_log.c3 fp_log.c: floating-point math routines for the Linux-m68k
6 Copyright (c) 1998-1999 David Huggins-Daines / Roman Zippel.
26 struct fp_ext *fp_fsqrt(struct fp_ext *dest, struct fp_ext *src) in fp_fsqrt() argument
31 dprint(PINSTR, "fsqrt\n"); in fp_fsqrt()
33 fp_monadic_check(dest, src); in fp_fsqrt()
38 if (dest->sign) { in fp_fsqrt()
57 exp = dest->exp; in fp_fsqrt()
58 dest->exp = 0x3FFF; in fp_fsqrt()
60 dest->exp++; in fp_fsqrt()
65 * sqrt(x) = sqrt(a) + 1/(2*sqrt(a))*(x-a) + R in fp_fsqrt()
[all …]
H A Dfp_arith.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 fp_arith.c: floating-point math routines for the Linux-m68k
7 Copyright (c) 1998-1999 David Huggins-Daines.
10 Mosberger-Tang.
31 struct fp_ext *fp_fabs(struct fp_ext *dest, struct fp_ext *src) in fp_fabs() argument
33 dprint(PINSTR, "fabs\n"); in fp_fabs()
35 fp_monadic_check(dest, src); in fp_fabs()
37 dest->sign = 0; in fp_fabs()
42 struct fp_ext *fp_fneg(struct fp_ext *dest, struct fp_ext *src) in fp_fneg() argument
44 dprint(PINSTR, "fneg\n"); in fp_fneg()
[all …]
/linux/tools/perf/tests/
H A Dmem.c1 // SPDX-License-Identifier: GPL-2.0
3 #include "util/mem-events.h"
4 #include "util/mem-info.h"
17 int n; in check() local
21 n = perf_mem__snp_scnprintf(out, sizeof out, mi); in check()
22 n += perf_mem__lvl_scnprintf(out + n, sizeof out - in check()
29 union perf_mem_data_src src; test__mem() local
[all...]
/linux/drivers/gpu/drm/i915/
H A Di915_memcpy.c42 static void __memcpy_ntdqa(void *dst, const void *src, unsigned long len) in __memcpy_ntdqa() argument
47 asm("movntdqa (%0), %%xmm0\n" in __memcpy_ntdqa()
48 "movntdqa 16(%0), %%xmm1\n" in __memcpy_ntdqa()
49 "movntdqa 32(%0), %%xmm2\n" in __memcpy_ntdqa()
50 "movntdqa 48(%0), %%xmm3\n" in __memcpy_ntdqa()
51 "movaps %%xmm0, (%1)\n" in __memcpy_ntdqa()
52 "movaps %%xmm1, 16(%1)\n" in __memcpy_ntdqa()
53 "movaps %%xmm2, 32(%1)\n" in __memcpy_ntdqa()
54 "movaps %%xmm3, 48(%1)\n" in __memcpy_ntdqa()
55 :: "r" (src), "r" (dst) : "memory"); in __memcpy_ntdqa()
[all …]
/linux/arch/parisc/lib/
H A Dlusercopy.S1 /* 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>
31 * unsigned long lclear_user(void *to, unsigned long n)
38 comib,=,n 0,%r25,$lclu_done
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.
[all …]
/linux/drivers/comedi/drivers/ni_routing/tools/
H A Dconvert_c_to_py.c1 // SPDX-License-Identifier: GPL-2.0+
23 #define RVij(rv, src, dest) ((rv)->register_values[(dest)][(src)]) argument
28 * "family" : "<family-name>",
39 " \"%s\" : {\n" in family_write()
40 " # dest -> {src0:val0, src1:val1, ...}\n" in family_write()
41 , rv->family); in family_write()
45 unsigned int src = NI_NAMES_BASE; in family_write() local
47 for (; src < (NI_NAMES_BASE + NI_NUM_NAMES) && in family_write()
48 RVij(rv, B(src), B(dest)) == 0; ++src) in family_write()
51 if (src >= (NI_NAMES_BASE + NI_NUM_NAMES)) in family_write()
[all …]
/linux/arch/riscv/lib/
H A Driscv_v_helpers.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <asm/asm-prototypes.h>
18 int __asm_vector_usercopy(void *dst, void *src, size_t n);
19 int __asm_vector_usercopy_sum_enabled(void *dst, void *src, size_t n);
20 int fallback_scalar_usercopy(void *dst, void *src, size_t n);
21 int fallback_scalar_usercopy_sum_enabled(void *dst, void *src, size_t n);
22 asmlinkage int enter_vector_usercopy(void *dst, void *src, size_t n, in enter_vector_usercopy() argument
32 remain = enable_sum ? __asm_vector_usercopy(dst, src, n) : in enter_vector_usercopy()
33 __asm_vector_usercopy_sum_enabled(dst, src, n); in enter_vector_usercopy()
37 copied = n - remain; in enter_vector_usercopy()
[all …]
/linux/drivers/platform/x86/amd/pmf/
H A Dcnqf.c1 // SPDX-License-Identifier: GPL-2.0
8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
38 pr_debug("Dynamic Slider %s Defaults - BEGIN\n", idx ? "DC" : "AC"); in amd_pmf_cnqf_dump_defaults()
39 pr_debug("size: %u\n", data->size); in amd_pmf_cnqf_dump_defaults()
40 pr_debug("flags: 0x%x\n", data->flags); in amd_pmf_cnqf_dump_defaults()
43 pr_debug("t_perf_to_turbo: %u ms\n", data->t_perf_to_turbo); in amd_pmf_cnqf_dump_defaults()
44 pr_debug("t_balanced_to_perf: %u ms\n", data->t_balanced_to_perf); in amd_pmf_cnqf_dump_defaults()
45 pr_debug("t_quiet_to_balanced: %u ms\n", data->t_quiet_to_balanced); in amd_pmf_cnqf_dump_defaults()
46 pr_debug("t_balanced_to_quiet: %u ms\n", data->t_balanced_to_quiet); in amd_pmf_cnqf_dump_defaults()
47 pr_debug("t_perf_to_balanced: %u ms\n", data->t_perf_to_balanced); in amd_pmf_cnqf_dump_defaults()
[all …]
H A Dsps.c1 // SPDX-License-Identifier: GPL-2.0
8 * Author: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
64 pr_debug("Static Slider Data - BEGIN\n"); in amd_pmf_dump_sps_defaults()
68 pr_debug("--- Source:%s Mode:%s ---\n", amd_pmf_source_as_str(i), in amd_pmf_dump_sps_defaults()
70 pr_debug("SPL: %u mW\n", data->prop[i][j].spl); in amd_pmf_dump_sps_defaults()
71 pr_debug("SPPT: %u mW\n", data->prop[i][j].sppt); in amd_pmf_dump_sps_defaults()
72 pr_debug("SPPT_ApuOnly: %u mW\n", data->prop[i][j].sppt_apu_only); in amd_pmf_dump_sps_defaults()
73 pr_debug("FPPT: %u mW\n", data->prop[i][j].fppt); in amd_pmf_dump_sps_defaults()
74 pr_debug("STTMinLimit: %u mW\n", data->prop[i][j].stt_min); in amd_pmf_dump_sps_defaults()
75 pr_debug("STT_SkinTempLimit_APU: %u C\n", in amd_pmf_dump_sps_defaults()
[all …]
/linux/arch/powerpc/kvm/
H A Dmpic.c63 #define OPENPIC_CPU_REG_SIZE (0x100 + ((MAX_CPU - 1) * 0x1000))
116 struct kvm_vcpu *vcpu = current->thread.kvm_vcpu; in get_current_cpu()
117 return vcpu ? vcpu->arch.irq_cpu_id : -1; in get_current_cpu()
120 return -1; in get_current_cpu()
133 IRQ_TYPE_FSLINT, /* FSL internal interrupt -- level only */
154 bool level:1; /* level-triggered */
171 #define IVPR_VECTOR(opp, _ivprr_) ((_ivprr_) & (opp)->vector_mask)
184 /* Count of IRQ sources asserting on non-INT outputs */
221 struct irq_source src[MAX_IRQ]; member
248 if (!dst->vcpu) { in mpic_irq_raise()
[all …]
/linux/drivers/crypto/ccree/
H A Dcc_buffer_mgr.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2012-2019 ARM Limited (or its affiliates). */
8 #include <linux/dma-mapping.h>
46 * cc_copy_mac() - Copy MAC to temporary location
56 u32 skip = req->assoclen + req->cryptlen; in cc_copy_mac()
58 cc_copy_sg_portion(dev, areq_ctx->backup_mac, req->src, in cc_copy_mac()
59 (skip - areq_ctx->req_authsize), skip, dir); in cc_copy_mac()
63 * cc_get_sgl_nents() - Get scatterlist number of entries.
85 nbytes -= (sg_list->length > nbytes) ? in cc_get_sgl_nents()
86 nbytes : sg_list->length; in cc_get_sgl_nents()
[all …]
/linux/arch/openrisc/lib/
H A Dmemset.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Hand-optimized assembler version of memset for OpenRISC.
6 * Algorithm inspired by several other arch-specific memset routines
18 * r5 = n
22 /* Exit if n == 0 */
35 /* Extend char c to 32-bit word cccc in r13 */
41 1: l.addi r19, r3, 0 // Set r19 = src
44 l.or r17, r5, r0 // Set r17 = n
52 l.addi r19, r3, 0 // Set r19 = src
55 l.sb 0(r3), r13 // *src = c
[all …]
/linux/arch/s390/include/asm/
H A Dcpacf.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 #include <linux/kmsan-checks.h>
180 #define CPACF_KMA_LPC 0x100 /* Last-Plaintext/Ciphertext */
181 #define CPACF_KMA_LAAD 0x200 /* Last-AAD */
182 #define CPACF_KMA_HS 0x400 /* Hash-subkey Supplied */
230 " la %%r1,%[pb]\n" in __cpacf_query_rre()
231 " lghi %%r0,%[fc]\n" in __cpacf_query_rre()
243 " la %%r1,%[pb]\n" in __cpacf_query_rrf()
244 " lghi %%r0,%[fc]\n" in __cpacf_query_rrf()
335 * cpacf_query() - Query the function code mask for this CPACF opcode
[all …]
/linux/arch/microblaze/lib/
H A Dmemset.c2 * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2008-2009 PetaLogix
6 * Reasonably optimised generic C-code for memset on Microblaze
7 * This is generic C code to do efficient, alignment-aware memcpy.
34 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument
36 char *src = v_src; in memset() local
50 if (likely(n >= 4)) { in memset()
53 switch ((unsigned) src & 3) { in memset()
55 *src++ = c; in memset()
56 --n; in memset()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_blit.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
40 (const _type * dst, const _type * src, size_t size)\
45 if (*dst++ != *src++) \
61 const _type * dst, const _type * src, size_t size) \
64 if (*--dst != *--src) \
67 size -= sizeof(_type); \
94 /* We use size aligned copies. This computes (addr - align(addr)) */
95 #define SPILL(_var, _type) ((unsigned long) _var & (sizeof(_type) - 1))
110 if (spill && spill == SPILL(src, _type) && \
[all …]
/linux/arch/x86/include/asm/
H A Dstring_64.h1 /* SPDX-License-Identifier: GPL-2.0 */
22 void *memset(void *s, int c, size_t n);
23 void *__memset(void *s, int c, size_t n);
32 static inline void *memset16(uint16_t *s, uint16_t v, size_t n) in memset16() argument
37 : "+D" (s), "+c" (n) in memset16()
45 static inline void *memset32(uint32_t *s, uint32_t v, size_t n) in memset32() argument
50 : "+D" (s), "+c" (n) in memset32()
58 static inline void *memset64(uint64_t *s, uint64_t v, size_t n) in memset64() argument
63 : "+D" (s), "+c" (n) in memset64()
72 void *memmove(void *dest, const void *src, size_t count);
[all …]
H A Dchecksum_32.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * and adds in "sum" (32-bit)
12 * returns a 32-bit number suitable for feeding into itself
18 * it's best to have buff aligned on a 32-bit boundary
23 * the same as csum_partial, but copies from src while it
24 * checksums, and handles user-space pointer exceptions correctly, when needed.
26 * here even more important to align src and dst on a 32-bit (or even
27 * better 64-bit) boundary
30 asmlinkage __wsum csum_partial_copy_generic(const void *src, void *dst, int len);
39 static inline __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len) in csum_partial_copy_nocheck() argument
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_cache.c3 * Copyright (c) 2006-2007 Tungsten Graphics, Inc., Cedar Park, TX., USA
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
28 * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com>
34 #include <linux/iosys-map.h>
79 * drm_clflush_pages - Flush dcache lines of a set of pages.
114 WARN_ONCE(1, "Architecture has no drm_cache.c support\n"); in drm_clflush_pages()
120 * drm_clflush_sg - Flush dcache lines pointing to a scather-gather.
143 WARN_ONCE(1, "Architecture has no drm_cache.c support\n"); in drm_clflush_sg()
149 * drm_clflush_virt_range - Flush dcache lines of a region
164 addr = (void *)(((unsigned long)addr) & -size); in drm_clflush_virt_range()
[all …]
/linux/arch/sparc/include/asm/
H A Dio_32.h1 /* SPDX-License-Identifier: GPL-2.0 */
21 #include <asm-generic/io.h>
24 int c, __kernel_size_t n) in _memset_io() argument
28 while (n--) { in _memset_io()
34 static inline void _memcpy_fromio(void *dst, const volatile void __iomem *src, in _memcpy_fromio() argument
35 __kernel_size_t n) in _memcpy_fromio() argument
39 while (n--) { in _memcpy_fromio()
40 char tmp = readb(src); in _memcpy_fromio()
42 src++; in _memcpy_fromio()
46 static inline void _memcpy_toio(volatile void __iomem *dst, const void *src, in _memcpy_toio() argument
[all …]
/linux/drivers/char/hw_random/
H A Dxgene-rng.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * APM X-Gene SoC RNG Driver
50 #define MAJOR_HW_REV_RD(src) (((src) & 0x0f000000) >> 24) argument
51 #define MINOR_HW_REV_RD(src) (((src) & 0x00f00000) >> 20) argument
52 #define HW_PATCH_LEVEL_RD(src) (((src) & 0x000f0000) >> 16) argument
53 #define MAX_REFILL_CYCLES_SET(dst, src) \ argument
54 ((dst & ~0xffff0000) | (((u32)src << 16) & 0xffff0000))
55 #define MIN_REFILL_CYCLES_SET(dst, src) \ argument
56 ((dst & ~0x000000ff) | (((u32)src) & 0x000000ff))
57 #define ALARM_THRESHOLD_SET(dst, src) \ argument
[all …]
/linux/drivers/phy/
H A Dphy-xgene.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * AppliedMicro X-Gene Multi-purpose PHY driver
10 * The APM X-Gene PHY consists of two PLL clock macro's (CMU) and lanes.
19 * -----------------
20 * | Internal | |------|
21 * | Ref PLL CMU |----| | ------------- ---------
22 * ------------ ---- | MUX |-----|PHY PLL CMU|----| Serdes|
23 * | | | | ---------
24 * External Clock ------| | -------------
25 * |------|
[all …]
/linux/arch/mips/cavium-octeon/
H A Docteon-memcpy.S18 #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 …]

12345678910>>...54