Home
last modified time | relevance | path

Searched refs:src (Results 1 – 25 of 42) sorted by relevance

12

/lib/
Diomap_copy.c24 const u32 *src = from; in __iowrite32_copy() local
25 const u32 *end = src + count; in __iowrite32_copy()
27 while (src < end) in __iowrite32_copy()
28 __raw_writel(*src++, dst++); in __iowrite32_copy()
45 const u32 __iomem *src = from; in __ioread32_copy() local
46 const u32 __iomem *end = src + count; in __ioread32_copy()
48 while (src < end) in __ioread32_copy()
49 *dst++ = __raw_readl(src++); in __ioread32_copy()
69 const u64 *src = from; in __iowrite64_copy() local
70 const u64 *end = src + count; in __iowrite64_copy()
[all …]
Dstring_helpers.c133 static bool unescape_space(char **src, char **dst) in unescape_space() argument
135 char *p = *dst, *q = *src; in unescape_space()
157 *src += 1; in unescape_space()
161 static bool unescape_octal(char **src, char **dst) in unescape_octal() argument
163 char *p = *dst, *q = *src; in unescape_octal()
170 while (num < 32 && isodigit(*q) && (q - *src < 3)) { in unescape_octal()
176 *src = q; in unescape_octal()
180 static bool unescape_hex(char **src, char **dst) in unescape_hex() argument
182 char *p = *dst, *q = *src; in unescape_hex()
200 *src = q; in unescape_hex()
[all …]
Dstrncpy_from_user.c15 #define IS_UNALIGNED(src, dst) 0 argument
17 #define IS_UNALIGNED(src, dst) \ argument
18 (((long) dst | (long) src) & (sizeof(long) - 1))
27 static inline long do_strncpy_from_user(char *dst, const char __user *src, in do_strncpy_from_user() argument
33 if (IS_UNALIGNED(src, dst)) in do_strncpy_from_user()
40 unsafe_get_user(c, (unsigned long __user *)(src+res), byte_at_a_time); in do_strncpy_from_user()
56 unsafe_get_user(c,src+res, efault); in do_strncpy_from_user()
97 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument
105 src_addr = (unsigned long)untagged_addr(src); in strncpy_from_user()
119 if (user_access_begin(src, max)) { in strncpy_from_user()
[all …]
Dstring.c89 char *strcpy(char *dest, const char *src) in strcpy() argument
93 while ((*dest++ = *src++) != '\0') in strcpy()
114 char *strncpy(char *dest, const char *src, size_t count) in strncpy() argument
119 if ((*tmp = *src) != 0) in strncpy()
120 src++; in strncpy()
141 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() argument
143 size_t ret = strlen(src); in strlcpy()
147 memcpy(dest, src, len); in strlcpy()
180 ssize_t strscpy(char *dest, const char *src, size_t count) in strscpy() argument
194 if ((long)src & (sizeof(long) - 1)) { in strscpy()
[all …]
Diomap.c305 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument
308 __raw_writeb(*src, addr); in mmio_outsb()
309 src++; in mmio_outsb()
312 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument
315 __raw_writew(*src, addr); in mmio_outsw()
316 src++; in mmio_outsw()
319 static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) in mmio_outsl() argument
322 __raw_writel(*src, addr); in mmio_outsl()
323 src++; in mmio_outsl()
344 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) in iowrite8_rep() argument
[all …]
Ducs2_string.c55 ucs2_utf8size(const ucs2_char_t *src) in ucs2_utf8size() argument
60 for (i = 0; src[i]; i++) { in ucs2_utf8size()
61 u16 c = src[i]; in ucs2_utf8size()
83 ucs2_as_utf8(u8 *dest, const ucs2_char_t *src, unsigned long maxlength) in ucs2_as_utf8() argument
87 unsigned long limit = ucs2_strnlen(src, maxlength); in ucs2_as_utf8()
90 u16 c = src[i]; in ucs2_as_utf8()
Dstrnlen_user.c23 static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max) in do_strnlen_user() argument
33 align = (sizeof(unsigned long) - 1) & (unsigned long)src; in do_strnlen_user()
34 src -= align; in do_strnlen_user()
37 unsafe_get_user(c, (unsigned long __user *)src, efault); in do_strnlen_user()
52 unsafe_get_user(c, (unsigned long __user *)(src+res), efault); in do_strnlen_user()
Dtest_strscpy.c29 static int __init tc(char *src, int count, int expected, in tc() argument
42 if (!src) { in tc()
60 written = strscpy_pad(buf, src, count); in tc()
67 if (strncmp(buf, src, count - 1) != 0) { in tc()
78 if (buf[i] != src[i]) { in tc()
79 pr_err("buf[i]==%c != src[i]==%c\n", buf[i], src[i]); in tc()
Dhexdump.c44 int hex2bin(u8 *dst, const char *src, size_t count) in hex2bin() argument
47 int hi = hex_to_bin(*src++); in hex2bin()
48 int lo = hex_to_bin(*src++); in hex2bin()
65 char *bin2hex(char *dst, const void *src, size_t count) in bin2hex() argument
67 const unsigned char *_src = src; in bin2hex()
Dtest_ubsan.c63 volatile char *dst, *src; in test_ubsan_load_invalid_value() local
68 src = &c; in test_ubsan_load_invalid_value()
69 *dst = *src; in test_ubsan_load_invalid_value()
Dchecksum.c152 csum_partial_copy_from_user(const void __user *src, void *dst, int len, in csum_partial_copy_from_user() argument
157 missing = __copy_from_user(dst, src, len); in csum_partial_copy_from_user()
172 csum_partial_copy(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy() argument
174 memcpy(dst, src, len); in csum_partial_copy()
Dbitmap.c82 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
86 dst[k] = ~src[k]; in __bitmap_complement()
101 void __bitmap_shift_right(unsigned long *dst, const unsigned long *src, in __bitmap_shift_right() argument
117 upper = src[off + k + 1]; in __bitmap_shift_right()
122 lower = src[off + k]; in __bitmap_shift_right()
146 void __bitmap_shift_left(unsigned long *dst, const unsigned long *src, in __bitmap_shift_left() argument
160 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
163 upper = src[k] << rem; in __bitmap_shift_left()
791 void bitmap_remap(unsigned long *dst, const unsigned long *src, in bitmap_remap() argument
797 if (dst == src) /* following doesn't handle inplace remaps */ in bitmap_remap()
[all …]
Dparser.c299 size_t match_strlcpy(char *dest, const substring_t *src, size_t size) in match_strlcpy() argument
301 size_t ret = src->to - src->from; in match_strlcpy()
305 memcpy(dest, src->from, len); in match_strlcpy()
Dnlattr.c519 char *src = nla_data(nla); in nla_strlcpy() local
521 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strlcpy()
528 memcpy(dst, src, len); in nla_strlcpy()
545 char *src = nla_data(nla), *dst; in nla_strdup() local
547 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strdup()
552 memcpy(dst, src, srclen); in nla_strdup()
570 int nla_memcpy(void *dest, const struct nlattr *src, int count) in nla_memcpy() argument
572 int minlen = min_t(int, count, nla_len(src)); in nla_memcpy()
574 memcpy(dest, nla_data(src), minlen); in nla_memcpy()
Dbch.c142 const uint8_t *src) in load_ecc8() argument
147 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
148 dst[i] = (src[0] << 24)|(src[1] << 16)|(src[2] << 8)|src[3]; in load_ecc8()
150 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
158 const uint32_t *src) in store_ecc8() argument
164 *dst++ = (src[i] >> 24); in store_ecc8()
165 *dst++ = (src[i] >> 16) & 0xff; in store_ecc8()
166 *dst++ = (src[i] >> 8) & 0xff; in store_ecc8()
167 *dst++ = (src[i] >> 0) & 0xff; in store_ecc8()
169 pad[0] = (src[nwords] >> 24); in store_ecc8()
[all …]
/lib/lzo/
Dlzodefs.h22 #define COPY4(dst, src) \ argument
23 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
25 #define COPY8(dst, src) \ argument
26 put_unaligned(get_unaligned((const u64 *)(src)), (u64 *)(dst))
28 #define COPY8(dst, src) \ argument
29 COPY4(dst, src); COPY4((dst) + 4, (src) + 4)
/lib/raid6/
DMakefile51 cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$* < $< > $@
54 $(obj)/int%.c: $(src)/int.uc $(src)/unroll.awk FORCE
62 $(obj)/altivec%.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
70 $(obj)/vpermxor%.c: $(src)/vpermxor.uc $(src)/unroll.awk FORCE
78 $(obj)/neon%.c: $(src)/neon.uc $(src)/unroll.awk FORCE
82 $(obj)/s390vx%.c: $(src)/s390vx.uc $(src)/unroll.awk FORCE
/lib/zstd/
Dhuf.h57 size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned max…
131 size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const…
144 size_t HUF_compress4X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned m…
159 …ize_t hwSize, U32 *rankStats, U32 *nbSymbolsPtr, U32 *tableLogPtr, const void *src, size_t srcSize,
164 size_t HUF_readCTable_wksp(HUF_CElt *CTable, unsigned maxSymbolValue, const void *src, size_t srcSi…
180 size_t HUF_readDTableX2_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, …
181 size_t HUF_readDTableX4_wksp(HUF_DTable *DTable, const void *src, size_t srcSize, void *workspace, …
189 size_t HUF_compress1X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned max…
191 size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const…
197 size_t HUF_compress1X_repeat(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned m…
Ddecompress.c52 static void ZSTD_copy4(void *dst, const void *src) { memcpy(dst, src, 4); } in ZSTD_copy4() argument
189 static size_t ZSTD_frameHeaderSize(const void *src, size_t srcSize) in ZSTD_frameHeaderSize() argument
194 BYTE const fhd = ((const BYTE *)src)[4]; in ZSTD_frameHeaderSize()
207 size_t ZSTD_getFrameParams(ZSTD_frameParams *fparamsPtr, const void *src, size_t srcSize) in ZSTD_getFrameParams() argument
209 const BYTE *ip = (const BYTE *)src; in ZSTD_getFrameParams()
213 if (ZSTD_readLE32(src) != ZSTD_MAGICNUMBER) { in ZSTD_getFrameParams()
214 if ((ZSTD_readLE32(src) & 0xFFFFFFF0U) == ZSTD_MAGIC_SKIPPABLE_START) { in ZSTD_getFrameParams()
218 fparamsPtr->frameContentSize = ZSTD_readLE32((const char *)src + 4); in ZSTD_getFrameParams()
227 size_t const fhsize = ZSTD_frameHeaderSize(src, srcSize); in ZSTD_getFrameParams()
297 unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize) in ZSTD_getFrameContentSize() argument
[all …]
Dhuf_compress.c203 size_t HUF_readCTable_wksp(HUF_CElt *CTable, U32 maxSymbolValue, const void *src, size_t srcSize, v… in HUF_readCTable_wksp() argument
223 …_wksp(huffWeight, HUF_SYMBOLVALUE_MAX + 1, rankVal, &nbSymbols, &tableLog, src, srcSize, workspace… in HUF_readCTable_wksp()
538 size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const… in HUF_compress1X_usingCTable() argument
540 const BYTE *ip = (const BYTE *)src; in HUF_compress1X_usingCTable()
581 size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const… in HUF_compress4X_usingCTable() argument
584 const BYTE *ip = (const BYTE *)src; in HUF_compress4X_usingCTable()
633 …Table_internal(BYTE *const ostart, BYTE *op, BYTE *const oend, const void *src, size_t srcSize, un… in HUF_compressCTable_internal() argument
637 …HUF_compress1X_usingCTable(op, oend - op, src, srcSize, CTable) : HUF_compress4X_usingCTable(op, o… in HUF_compressCTable_internal()
653 static size_t HUF_compress_internal(void *dst, size_t dstSize, const void *src, size_t srcSize, uns… in HUF_compress_internal() argument
690 return HUF_compressCTable_internal(ostart, op, oend, src, srcSize, singleStream, oldHufTable); in HUF_compress_internal()
[all …]
Dcompress.c434 size_t ZSTD_noCompressBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_noCompressBlock() argument
438 memcpy((BYTE *)dst + ZSTD_blockHeaderSize, src, srcSize); in ZSTD_noCompressBlock()
443 static size_t ZSTD_noCompressLiterals(void *dst, size_t dstCapacity, const void *src, size_t srcSiz… in ZSTD_noCompressLiterals() argument
458 memcpy(ostart + flSize, src, srcSize); in ZSTD_noCompressLiterals()
462 static size_t ZSTD_compressRleLiteralsBlock(void *dst, size_t dstCapacity, const void *src, size_t … in ZSTD_compressRleLiteralsBlock() argument
476 ostart[flSize] = *(const BYTE *)src; in ZSTD_compressRleLiteralsBlock()
482 static size_t ZSTD_compressLiterals(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, … in ZSTD_compressLiterals() argument
496 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals()
506 …cLitSize = singleStream ? HUF_compress1X_repeat(ostart + lhSize, dstCapacity - lhSize, src, srcSiz… in ZSTD_compressLiterals()
508 …: HUF_compress4X_repeat(ostart + lhSize, dstCapacity - lhSize, src, srcSize, 255, 11, zc->tmpCount… in ZSTD_compressLiterals()
[all …]
Dzstd_internal.h129 ZSTD_STATIC void ZSTD_copy8(void *dst, const void *src) { in ZSTD_copy8() argument
130 memcpy(dst, src, 8); in ZSTD_copy8()
135 ZSTD_STATIC void ZSTD_wildcopy(void *dst, const void *src, ptrdiff_t length) in ZSTD_wildcopy() argument
137 const BYTE* ip = (const BYTE*)src; in ZSTD_wildcopy()
146 return ZSTD_copy8(dst, src); in ZSTD_wildcopy()
/lib/lz4/
Dlz4defs.h140 static FORCE_INLINE void LZ4_copy8(void *dst, const void *src) in LZ4_copy8() argument
143 U64 a = get_unaligned((const U64 *)src); in LZ4_copy8()
147 U32 a = get_unaligned((const U32 *)src); in LZ4_copy8()
148 U32 b = get_unaligned((const U32 *)src + 1); in LZ4_copy8()
Dlz4_compress.c524 const char * const src, in LZ4_compress_destSize_generic() argument
530 const BYTE *ip = (const BYTE *) src; in LZ4_compress_destSize_generic()
531 const BYTE *base = (const BYTE *) src; in LZ4_compress_destSize_generic()
532 const BYTE *lowLimit = (const BYTE *) src; in LZ4_compress_destSize_generic()
716 *srcSizePtr = (int) (((const char *)ip) - src); in LZ4_compress_destSize_generic()
722 const char *src, in LZ4_compress_destSize_extState() argument
738 state, src, dst, *srcSizePtr, in LZ4_compress_destSize_extState()
744 src, dst, srcSizePtr, in LZ4_compress_destSize_extState()
749 src, dst, srcSizePtr, in LZ4_compress_destSize_extState()
756 const char *src, in LZ4_compress_destSize() argument
[all …]
/lib/crypto/
Ddes.c781 void des_encrypt(const struct des_ctx *ctx, u8 *dst, const u8 *src) in des_encrypt() argument
787 L = get_unaligned_le32(src); in des_encrypt()
788 R = get_unaligned_le32(src + 4); in des_encrypt()
802 void des_decrypt(const struct des_ctx *ctx, u8 *dst, const u8 *src) in des_decrypt() argument
808 L = get_unaligned_le32(src); in des_decrypt()
809 R = get_unaligned_le32(src + 4); in des_decrypt()
844 void des3_ede_encrypt(const struct des3_ede_ctx *dctx, u8 *dst, const u8 *src) in des3_ede_encrypt() argument
850 L = get_unaligned_le32(src); in des3_ede_encrypt()
851 R = get_unaligned_le32(src + 4); in des3_ede_encrypt()
873 void des3_ede_decrypt(const struct des3_ede_ctx *dctx, u8 *dst, const u8 *src) in des3_ede_decrypt() argument
[all …]

12