/arch/cris/arch-v32/lib/ |
D | memset.c | 72 register char *dst __asm__ ("r13") = pdst; in memset() 78 if ((unsigned long) dst & 1) in memset() 80 *dst = (char) lc; in memset() 82 dst++; in memset() 85 if ((unsigned long) dst & 2) in memset() 87 *(short *) dst = lc; in memset() 89 dst += 2; in memset() 150 : "=r" (dst), "=r" (n) in memset() 153 : "0" (dst), "1" (n), "r" (lc)); in memset() 159 *(long *) dst = lc; dst += 4; in memset() [all …]
|
D | string.c | 53 register unsigned char *dst __asm__ ("r13") = pdst; in memcpy() 60 if (((unsigned long) dst & 3) != 0 in memcpy() 65 if ((unsigned long) dst & 1) in memcpy() 68 *dst = *src; in memcpy() 70 dst++; in memcpy() 73 if ((unsigned long) dst & 2) in memcpy() 76 *(short *) dst = *(short *) src; in memcpy() 78 dst += 2; in memcpy() 128 : "=r" (dst), "=r" (src), "=r" (n) in memcpy() 131 : "0" (dst), "1" (src), "2" (n)); in memcpy() [all …]
|
D | usercopy.c | 40 register char *dst __asm__ ("r13") = pdst; in __copy_user() 49 if (((unsigned long) dst & 3) != 0 in __copy_user() 54 if ((unsigned long) dst & 1) in __copy_user() 56 __asm_copy_to_user_1 (dst, src, retn); in __copy_user() 60 if ((unsigned long) dst & 2) in __copy_user() 62 __asm_copy_to_user_2 (dst, src, retn); in __copy_user() 122 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) in __copy_user() 123 /* Inputs */ : "0" (dst), "1" (src), "2" (n), "3" (retn)); in __copy_user() 129 __asm_copy_to_user_16 (dst, src, retn); in __copy_user() 137 __asm_copy_to_user_4 (dst, src, retn); in __copy_user() [all …]
|
/arch/cris/arch-v10/lib/ |
D | memset.c | 72 register char *dst __asm__ ("r13") = pdst; in memset() 78 if ((unsigned long) dst & 1) in memset() 80 *dst = (char) lc; in memset() 82 dst++; in memset() 85 if ((unsigned long) dst & 2) in memset() 87 *(short *) dst = lc; in memset() 89 dst += 2; in memset() 150 : "=r" (dst), "=r" (n) in memset() 153 : "0" (dst), "1" (n), "r" (lc)); in memset() 159 *(long *) dst = lc; dst += 4; in memset() [all …]
|
D | string.c | 53 register unsigned char *dst __asm__ ("r13") = pdst; in memcpy() 60 if (((unsigned long) dst & 3) != 0 in memcpy() 65 if ((unsigned long) dst & 1) in memcpy() 68 *dst = *src; in memcpy() 70 dst++; in memcpy() 73 if ((unsigned long) dst & 2) in memcpy() 76 *(short *) dst = *(short *) src; in memcpy() 78 dst += 2; in memcpy() 128 : "=r" (dst), "=r" (src), "=r" (n) in memcpy() 131 : "0" (dst), "1" (src), "2" (n)); in memcpy() [all …]
|
D | usercopy.c | 44 register char *dst __asm__ ("r13") = pdst; in __copy_user() 53 if (((unsigned long) dst & 3) != 0 in __copy_user() 58 if ((unsigned long) dst & 1) in __copy_user() 60 __asm_copy_to_user_1 (dst, src, retn); in __copy_user() 64 if ((unsigned long) dst & 2) in __copy_user() 66 __asm_copy_to_user_2 (dst, src, retn); in __copy_user() 149 /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n), "=r" (retn) in __copy_user() 150 /* Inputs */ : "0" (dst), "1" (src), "2" (n), "3" (retn)); in __copy_user() 161 __asm_copy_to_user_16 (dst, src, retn); in __copy_user() 169 __asm_copy_to_user_4 (dst, src, retn); in __copy_user() [all …]
|
/arch/parisc/kernel/ |
D | binfmt_elf32.c | 15 #define ELF_CORE_COPY_REGS(dst, pt) \ argument 16 memset(dst, 0, sizeof(dst)); /* don't leak any "random" bits */ \ 18 for (i = 0; i < 32; i++) dst[i] = (elf_greg_t) pt->gr[i]; \ 19 for (i = 0; i < 8; i++) dst[32 + i] = (elf_greg_t) pt->sr[i]; \ 21 dst[40] = (elf_greg_t) pt->iaoq[0]; dst[41] = (elf_greg_t) pt->iaoq[1]; \ 22 dst[42] = (elf_greg_t) pt->iasq[0]; dst[43] = (elf_greg_t) pt->iasq[1]; \ 23 dst[44] = (elf_greg_t) pt->sar; dst[45] = (elf_greg_t) pt->iir; \ 24 dst[46] = (elf_greg_t) pt->isr; dst[47] = (elf_greg_t) pt->ior; \ 25 dst[48] = (elf_greg_t) mfctl(22); dst[49] = (elf_greg_t) mfctl(0); \ 26 dst[50] = (elf_greg_t) mfctl(24); dst[51] = (elf_greg_t) mfctl(25); \ [all …]
|
/arch/mips/include/asm/ |
D | ftrace.h | 22 #define safe_load(load, src, dst, error) \ argument 25 "1: " load " %[" STR(dst) "], 0(%[" STR(src) "])\n"\ 38 : [dst] "=&r" (dst), [error] "=r" (error)\ 44 #define safe_store(store, src, dst, error) \ argument 47 "1: " store " %[" STR(src) "], 0(%[" STR(dst) "])\n"\ 61 : [dst] "r" (dst), [src] "r" (src)\ 66 #define safe_load_code(dst, src, error) \ argument 67 safe_load(STR(lw), src, dst, error) 68 #define safe_store_code(src, dst, error) \ argument 69 safe_store(STR(sw), src, dst, error) [all …]
|
/arch/x86/include/asm/ |
D | serpent.h | 11 asmlinkage void __serpent_enc_blk_4way(struct serpent_ctx *ctx, u8 *dst, 13 asmlinkage void serpent_dec_blk_4way(struct serpent_ctx *ctx, u8 *dst, 16 static inline void serpent_enc_blk_xway(struct serpent_ctx *ctx, u8 *dst, in serpent_enc_blk_xway() argument 19 __serpent_enc_blk_4way(ctx, dst, src, false); in serpent_enc_blk_xway() 22 static inline void serpent_enc_blk_xway_xor(struct serpent_ctx *ctx, u8 *dst, in serpent_enc_blk_xway_xor() argument 25 __serpent_enc_blk_4way(ctx, dst, src, true); in serpent_enc_blk_xway_xor() 28 static inline void serpent_dec_blk_xway(struct serpent_ctx *ctx, u8 *dst, in serpent_dec_blk_xway() argument 31 serpent_dec_blk_4way(ctx, dst, src); in serpent_dec_blk_xway() 38 asmlinkage void __serpent_enc_blk_8way(struct serpent_ctx *ctx, u8 *dst, 40 asmlinkage void serpent_dec_blk_8way(struct serpent_ctx *ctx, u8 *dst, [all …]
|
D | uaccess_64.h | 63 int copy_to_user(void __user *dst, const void *src, unsigned size) in copy_to_user() argument 67 return _copy_to_user(dst, src, size); in copy_to_user() 71 int __copy_from_user(void *dst, const void __user *src, unsigned size) in __copy_from_user() argument 77 return copy_user_generic(dst, (__force void *)src, size); in __copy_from_user() 79 case 1:__get_user_asm(*(u8 *)dst, (u8 __user *)src, in __copy_from_user() 82 case 2:__get_user_asm(*(u16 *)dst, (u16 __user *)src, in __copy_from_user() 85 case 4:__get_user_asm(*(u32 *)dst, (u32 __user *)src, in __copy_from_user() 88 case 8:__get_user_asm(*(u64 *)dst, (u64 __user *)src, in __copy_from_user() 92 __get_user_asm(*(u64 *)dst, (u64 __user *)src, in __copy_from_user() 96 __get_user_asm(*(u16 *)(8 + (char *)dst), in __copy_from_user() [all …]
|
/arch/x86/crypto/ |
D | blowfish_glue.c | 37 asmlinkage void __blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src, 39 asmlinkage void blowfish_dec_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src); 42 asmlinkage void __blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst, 44 asmlinkage void blowfish_dec_blk_4way(struct bf_ctx *ctx, u8 *dst, 47 static inline void blowfish_enc_blk(struct bf_ctx *ctx, u8 *dst, const u8 *src) in blowfish_enc_blk() argument 49 __blowfish_enc_blk(ctx, dst, src, false); in blowfish_enc_blk() 52 static inline void blowfish_enc_blk_xor(struct bf_ctx *ctx, u8 *dst, in blowfish_enc_blk_xor() argument 55 __blowfish_enc_blk(ctx, dst, src, true); in blowfish_enc_blk_xor() 58 static inline void blowfish_enc_blk_4way(struct bf_ctx *ctx, u8 *dst, in blowfish_enc_blk_4way() argument 61 __blowfish_enc_blk_4way(ctx, dst, src, false); in blowfish_enc_blk_4way() [all …]
|
D | twofish_glue_3way.c | 40 asmlinkage void twofish_enc_blk(struct twofish_ctx *ctx, u8 *dst, 42 asmlinkage void twofish_dec_blk(struct twofish_ctx *ctx, u8 *dst, 46 asmlinkage void __twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, 48 asmlinkage void twofish_dec_blk_3way(struct twofish_ctx *ctx, u8 *dst, 51 static inline void twofish_enc_blk_3way(struct twofish_ctx *ctx, u8 *dst, in twofish_enc_blk_3way() argument 54 __twofish_enc_blk_3way(ctx, dst, src, false); in twofish_enc_blk_3way() 57 static inline void twofish_enc_blk_xor_3way(struct twofish_ctx *ctx, u8 *dst, in twofish_enc_blk_xor_3way() argument 60 __twofish_enc_blk_3way(ctx, dst, src, true); in twofish_enc_blk_xor_3way() 76 u8 *wdst = walk->dst.virt.addr; in ecb_crypt() 108 static int ecb_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, in ecb_encrypt() argument [all …]
|
/arch/parisc/include/asm/ |
D | elf.h | 277 #define ELF_CORE_COPY_REGS(dst, pt) \ argument 278 memset(dst, 0, sizeof(dst)); /* don't leak any "random" bits */ \ 279 memcpy(dst + 0, pt->gr, 32 * sizeof(elf_greg_t)); \ 280 memcpy(dst + 32, pt->sr, 8 * sizeof(elf_greg_t)); \ 281 memcpy(dst + 40, pt->iaoq, 2 * sizeof(elf_greg_t)); \ 282 memcpy(dst + 42, pt->iasq, 2 * sizeof(elf_greg_t)); \ 283 dst[44] = pt->sar; dst[45] = pt->iir; \ 284 dst[46] = pt->isr; dst[47] = pt->ior; \ 285 dst[48] = mfctl(22); dst[49] = mfctl(0); \ 286 dst[50] = mfctl(24); dst[51] = mfctl(25); \ [all …]
|
/arch/blackfin/mm/ |
D | maccess.c | 19 long probe_kernel_read(void *dst, const void *src, size_t size) in probe_kernel_read() argument 31 memcpy(dst, &mmr, sizeof(mmr)); in probe_kernel_read() 35 memcpy(dst, &mmr, sizeof(mmr)); in probe_kernel_read() 42 return __probe_kernel_read(dst, src, size); in probe_kernel_read() 45 if (dma_memcpy(dst, src, size)) in probe_kernel_read() 49 if (isram_memcpy(dst, src, size)) in probe_kernel_read() 58 long probe_kernel_write(void *dst, const void *src, size_t size) in probe_kernel_write() argument 60 unsigned long ldst = (unsigned long)dst; in probe_kernel_write() 71 bfin_write16(dst, mmr); in probe_kernel_write() 76 bfin_write32(dst, mmr); in probe_kernel_write() [all …]
|
/arch/mips/cavium-octeon/ |
D | octeon-memcpy.S | 20 #define dst a0 macro 174 move v0, dst /* return value */ 212 EXC( STORE t0, UNIT(0)(dst), s_exc_p16u) 213 EXC( STORE t1, UNIT(1)(dst), s_exc_p15u) 214 EXC( STORE t2, UNIT(2)(dst), s_exc_p14u) 215 EXC( STORE t3, UNIT(3)(dst), s_exc_p13u) 220 EXC( STORE t0, UNIT(4)(dst), s_exc_p12u) 221 EXC( STORE t1, UNIT(5)(dst), s_exc_p11u) 222 EXC( STORE t2, UNIT(6)(dst), s_exc_p10u) 224 EXC( STORE t3, UNIT(7)(dst), s_exc_p9u) [all …]
|
/arch/ia64/kernel/ |
D | ptrace.c | 1525 struct regset_getset *dst = arg; in do_gpregs_get() local 1545 if (dst->count > 0 && dst->pos < ELF_GR_OFFSET(1)) { in do_gpregs_get() 1546 dst->ret = user_regset_copyout_zero(&dst->pos, &dst->count, in do_gpregs_get() 1547 &dst->u.get.kbuf, in do_gpregs_get() 1548 &dst->u.get.ubuf, in do_gpregs_get() 1550 if (dst->ret || dst->count == 0) in do_gpregs_get() 1555 if (dst->count > 0 && dst->pos < ELF_GR_OFFSET(16)) { in do_gpregs_get() 1556 index = (dst->pos - ELF_GR_OFFSET(1)) / sizeof(elf_greg_t); in do_gpregs_get() 1557 min_copy = ELF_GR_OFFSET(16) > (dst->pos + dst->count) ? in do_gpregs_get() 1558 (dst->pos + dst->count) : ELF_GR_OFFSET(16); in do_gpregs_get() [all …]
|
/arch/microblaze/lib/ |
D | memmove.c | 38 char *dst = v_dst; in memmove() local 49 dst += c; in memmove() 53 *--dst = *--src; in memmove() 61 char *dst = v_dst; in memmove() local 80 dst += c; in memmove() 89 switch ((unsigned long)dst & 3) { in memmove() 91 *--dst = *--src; in memmove() 94 *--dst = *--src; in memmove() 97 *--dst = *--src; in memmove() 101 i_dst = (void *)dst; in memmove() [all …]
|
D | memcpy.c | 39 char *dst = v_dst; in memcpy() local 43 *dst++ = *src++; in memcpy() 51 char *dst = v_dst; in memcpy() local 67 switch ((unsigned long)dst & 3) { in memcpy() 69 *dst++ = *src++; in memcpy() 72 *dst++ = *src++; in memcpy() 75 *dst++ = *src++; in memcpy() 79 i_dst = (void *)dst; in memcpy() 171 dst = (void *)i_dst; in memcpy() 178 *dst++ = *src++; in memcpy() [all …]
|
/arch/xtensa/kernel/ |
D | io.c | 47 void insb(unsigned long addr, void *dst, unsigned long count) { in insb() argument 50 *(unsigned char *)dst = readb(addr); in insb() 51 dst += 1; in insb() 56 void insw(unsigned long addr, void *dst, unsigned long count) { in insw() argument 59 *(unsigned short *)dst = readw(addr); in insw() 60 dst += 2; in insw() 65 void insl(unsigned long addr, void *dst, unsigned long count) { in insl() argument 71 *(unsigned long *)dst = readl(addr); in insl() 72 dst += 4; in insl()
|
/arch/x86/lib/ |
D | csum-wrappers_64.c | 22 csum_partial_copy_from_user(const void __user *src, void *dst, in csum_partial_copy_from_user() argument 47 *(__u16 *)dst = val16; in csum_partial_copy_from_user() 51 dst += 2; in csum_partial_copy_from_user() 56 dst, len, isum, errp, NULL); in csum_partial_copy_from_user() 64 memset(dst, 0, len); in csum_partial_copy_from_user() 82 csum_partial_copy_to_user(const void *src, void __user *dst, in csum_partial_copy_to_user() argument 87 if (unlikely(!access_ok(VERIFY_WRITE, dst, len))) { in csum_partial_copy_to_user() 92 if (unlikely((unsigned long)dst & 6)) { in csum_partial_copy_to_user() 93 while (((unsigned long)dst & 6) && len >= 2) { in csum_partial_copy_to_user() 98 *errp = __put_user(val16, (__u16 __user *)dst); in csum_partial_copy_to_user() [all …]
|
/arch/mips/lib/ |
D | memcpy-inatomic.S | 35 #define dst a0 macro 207 PREF( 1, 0(dst) ) 209 and t1, dst, ADDRMASK 211 PREF( 1, 1*32(dst) ) 215 PREF( 1, 2*32(dst) ) 228 PREF( 1, 3*32(dst) ) 238 STORE t0, UNIT(0)(dst) 239 STORE t1, UNIT(1)(dst) 243 ADD dst, dst, 8*NBYTES 244 STORE t2, UNIT(-6)(dst) [all …]
|
D | memcpy.S | 35 #define dst a0 macro 193 move v0, dst /* return value */ 211 PREF( 1, 0(dst) ) 213 and t1, dst, ADDRMASK 215 PREF( 1, 1*32(dst) ) 219 PREF( 1, 2*32(dst) ) 232 PREF( 1, 3*32(dst) ) 243 EXC( STORE t0, UNIT(0)(dst), .Ls_exc_p8u) 244 EXC( STORE t1, UNIT(1)(dst), .Ls_exc_p7u) 248 ADD dst, dst, 8*NBYTES [all …]
|
/arch/mn10300/lib/ |
D | checksum.c | 54 __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy() argument 56 copy_from_user(dst, src, len); in csum_partial_copy() 57 return csum_partial(dst, len, sum); in csum_partial_copy() 61 __wsum csum_partial_copy_nocheck(const void *src, void *dst, in csum_partial_copy_nocheck() argument 65 memcpy(dst, src, len); in csum_partial_copy_nocheck() 70 __wsum csum_partial_copy_from_user(const void *src, void *dst, in csum_partial_copy_from_user() argument 76 missing = copy_from_user(dst, src, len); in csum_partial_copy_from_user() 78 memset(dst + len - missing, 0, missing); in csum_partial_copy_from_user() 82 return csum_partial(dst, len, sum); in csum_partial_copy_from_user() 86 __wsum csum_and_copy_to_user(const void *src, void *dst, in csum_and_copy_to_user() argument [all …]
|
/arch/hexagon/lib/ |
D | io.c | 34 short int *dst = (short int *) data; in __raw_readsw() local 40 *dst++ = *src; in __raw_readsw() 53 volatile short int *dst = (short int *)addr; in __raw_writesw() local 59 *dst = *src++; in __raw_writesw() 68 long *dst = (long *) data; in __raw_readsl() local 74 *dst++ = *src; in __raw_readsl() 82 volatile long *dst = (long *)addr; in __raw_writesl() local 88 *dst = *src++; in __raw_writesl()
|
/arch/alpha/lib/ |
D | csum_partial_copy.c | 102 csum_partial_cfu_aligned(const unsigned long __user *src, unsigned long *dst, in csum_partial_cfu_aligned() argument 117 *dst = word; in csum_partial_cfu_aligned() 118 dst++; in csum_partial_cfu_aligned() 125 tmp = *dst; in csum_partial_cfu_aligned() 130 *dst = word | tmp; in csum_partial_cfu_aligned() 143 unsigned long *dst, in csum_partial_cfu_dest_aligned() argument 167 *dst = word; in csum_partial_cfu_dest_aligned() 168 dst++; in csum_partial_cfu_dest_aligned() 177 tmp = *dst; in csum_partial_cfu_dest_aligned() 185 *dst = word | tmp; in csum_partial_cfu_dest_aligned() [all …]
|