Home
last modified time | relevance | path

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

12

/lib/
Diomap_copy.c36 const u32 *src = from; in __iowrite32_copy() local
37 const u32 *end = src + count; in __iowrite32_copy()
39 while (src < end) in __iowrite32_copy()
40 __raw_writel(*src++, dst++); in __iowrite32_copy()
57 const u32 __iomem *src = from; in __ioread32_copy() local
58 const u32 __iomem *end = src + count; in __ioread32_copy()
60 while (src < end) in __ioread32_copy()
61 *dst++ = __raw_readl(src++); in __ioread32_copy()
81 const u64 *src = from; in __iowrite64_copy() local
82 const u64 *end = src + count; in __iowrite64_copy()
[all …]
Dstring_helpers.c132 static bool unescape_space(char **src, char **dst) in unescape_space() argument
134 char *p = *dst, *q = *src; in unescape_space()
156 *src += 1; in unescape_space()
160 static bool unescape_octal(char **src, char **dst) in unescape_octal() argument
162 char *p = *dst, *q = *src; in unescape_octal()
169 while (num < 32 && isodigit(*q) && (q - *src < 3)) { in unescape_octal()
175 *src = q; in unescape_octal()
179 static bool unescape_hex(char **src, char **dst) in unescape_hex() argument
181 char *p = *dst, *q = *src; in unescape_hex()
199 *src = q; in unescape_hex()
[all …]
Dstrncpy_from_user.c14 #define IS_UNALIGNED(src, dst) 0 argument
16 #define IS_UNALIGNED(src, dst) \ argument
17 (((long) dst | (long) src) & (sizeof(long) - 1))
26 static inline long do_strncpy_from_user(char *dst, const char __user *src, in do_strncpy_from_user() argument
39 if (IS_UNALIGNED(src, dst)) in do_strncpy_from_user()
46 unsafe_get_user(c, (unsigned long __user *)(src+res), byte_at_a_time); in do_strncpy_from_user()
62 unsafe_get_user(c,src+res, efault); in do_strncpy_from_user()
103 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument
111 src_addr = (unsigned long)src; in strncpy_from_user()
119 retval = do_strncpy_from_user(dst, src, count, max); in strncpy_from_user()
Diomap.c173 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument
176 __raw_writeb(*src, addr); in mmio_outsb()
177 src++; in mmio_outsb()
180 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument
183 __raw_writew(*src, addr); in mmio_outsw()
184 src++; in mmio_outsw()
187 static inline void mmio_outsl(void __iomem *addr, const u32 *src, int count) in mmio_outsl() argument
190 __raw_writel(*src, addr); in mmio_outsl()
191 src++; in mmio_outsl()
212 void iowrite8_rep(void __iomem *addr, const void *src, unsigned long count) in iowrite8_rep() argument
[all …]
Dstring.c88 char *strcpy(char *dest, const char *src) in strcpy() argument
92 while ((*dest++ = *src++) != '\0') in strcpy()
113 char *strncpy(char *dest, const char *src, size_t count) in strncpy() argument
118 if ((*tmp = *src) != 0) in strncpy()
119 src++; in strncpy()
140 size_t strlcpy(char *dest, const char *src, size_t size) in strlcpy() argument
142 size_t ret = strlen(src); in strlcpy()
146 memcpy(dest, src, len); in strlcpy()
178 ssize_t strscpy(char *dest, const char *src, size_t count) in strscpy() argument
192 if ((long)src & (sizeof(long) - 1)) { in strscpy()
[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.c28 static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max) in do_strnlen_user() argument
45 align = (sizeof(unsigned long) - 1) & (unsigned long)src; in do_strnlen_user()
46 src -= align; in do_strnlen_user()
49 unsafe_get_user(c, (unsigned long __user *)src, efault); in do_strnlen_user()
64 unsafe_get_user(c, (unsigned long __user *)(src+res), efault); in do_strnlen_user()
Dbitmap.c64 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument
68 dst[k] = ~src[k]; in __bitmap_complement()
71 dst[k] = ~src[k]; in __bitmap_complement()
86 void __bitmap_shift_right(unsigned long *dst, const unsigned long *src, in __bitmap_shift_right() argument
102 upper = src[off + k + 1]; in __bitmap_shift_right()
107 lower = src[off + k]; in __bitmap_shift_right()
131 void __bitmap_shift_left(unsigned long *dst, const unsigned long *src, in __bitmap_shift_left() argument
145 lower = src[k - 1] >> (BITS_PER_LONG - rem); in __bitmap_shift_left()
148 upper = src[k] << rem; in __bitmap_shift_left()
747 void bitmap_remap(unsigned long *dst, const unsigned long *src, in bitmap_remap() argument
[all …]
Dnlattr.c289 char *src = nla_data(nla); in nla_strlcpy() local
291 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strlcpy()
298 memcpy(dst, src, len); in nla_strlcpy()
315 char *src = nla_data(nla), *dst; in nla_strdup() local
317 if (srclen > 0 && src[srclen - 1] == '\0') in nla_strdup()
322 memcpy(dst, src, srclen); in nla_strdup()
340 int nla_memcpy(void *dest, const struct nlattr *src, int count) in nla_memcpy() argument
342 int minlen = min_t(int, count, nla_len(src)); in nla_memcpy()
344 memcpy(dest, nla_data(src), minlen); in nla_memcpy()
Dchecksum.c156 csum_partial_copy_from_user(const void __user *src, void *dst, int len, in csum_partial_copy_from_user() argument
161 missing = __copy_from_user(dst, src, len); in csum_partial_copy_from_user()
176 csum_partial_copy(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy() argument
178 memcpy(dst, src, len); in csum_partial_copy()
Dhexdump.c48 int hex2bin(u8 *dst, const char *src, size_t count) in hex2bin() argument
51 int hi = hex_to_bin(*src++); in hex2bin()
52 int lo = hex_to_bin(*src++); in hex2bin()
69 char *bin2hex(char *dst, const void *src, size_t count) in bin2hex() argument
71 const unsigned char *_src = src; in bin2hex()
Dparser.c307 size_t match_strlcpy(char *dest, const substring_t *src, size_t size) in match_strlcpy() argument
309 size_t ret = src->to - src->from; in match_strlcpy()
313 memcpy(dest, src->from, len); in match_strlcpy()
Dbch.c136 const uint8_t *src) in load_ecc8() argument
141 for (i = 0; i < nwords; i++, src += 4) in load_ecc8()
142 dst[i] = (src[0] << 24)|(src[1] << 16)|(src[2] << 8)|src[3]; in load_ecc8()
144 memcpy(pad, src, BCH_ECC_BYTES(bch)-4*nwords); in load_ecc8()
152 const uint32_t *src) in store_ecc8() argument
158 *dst++ = (src[i] >> 24); in store_ecc8()
159 *dst++ = (src[i] >> 16) & 0xff; in store_ecc8()
160 *dst++ = (src[i] >> 8) & 0xff; in store_ecc8()
161 *dst++ = (src[i] >> 0) & 0xff; in store_ecc8()
163 pad[0] = (src[nwords] >> 24); in store_ecc8()
[all …]
Ddecompress_unxz.c204 void *memmove(void *dest, const void *src, size_t size) in memmove() argument
207 const uint8_t *s = src; in memmove()
253 long (*flush)(void *src, unsigned long size), in unxz() argument
/lib/raid6/
DMakefile16 cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \
57 $(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE
62 $(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE
67 $(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE
72 $(obj)/int8.c: $(src)/int.uc $(src)/unroll.awk FORCE
77 $(obj)/int16.c: $(src)/int.uc $(src)/unroll.awk FORCE
82 $(obj)/int32.c: $(src)/int.uc $(src)/unroll.awk FORCE
88 $(obj)/altivec1.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
94 $(obj)/altivec2.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
100 $(obj)/altivec4.c: $(src)/altivec.uc $(src)/unroll.awk FORCE
[all …]
/lib/lzo/
Dlzodefs.h16 #define COPY4(dst, src) \ argument
17 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst))
19 #define COPY8(dst, src) \ argument
20 put_unaligned(get_unaligned((const u64 *)(src)), (u64 *)(dst))
22 #define COPY8(dst, src) \ argument
23 COPY4(dst, src); COPY4((dst) + 4, (src) + 4)
/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()
579 size_t HUF_compress4X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const… in HUF_compress4X_usingCTable() argument
582 const BYTE *ip = (const BYTE *)src; in HUF_compress4X_usingCTable()
631 …Table_internal(BYTE *const ostart, BYTE *op, BYTE *const oend, const void *src, size_t srcSize, un… in HUF_compressCTable_internal() argument
635 …HUF_compress1X_usingCTable(op, oend - op, src, srcSize, CTable) : HUF_compress4X_usingCTable(op, o… in HUF_compressCTable_internal()
651 static size_t HUF_compress_internal(void *dst, size_t dstSize, const void *src, size_t srcSize, uns… in HUF_compress_internal() argument
688 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()
Dfse_compress.c324 size_t FSE_count_simple(unsigned *count, unsigned *maxSymbolValuePtr, const void *src, size_t srcSi… in FSE_count_simple() argument
326 const BYTE *ip = (const BYTE *)src; in FSE_count_simple()
724 static size_t FSE_compress_usingCTable_generic(void *dst, size_t dstSize, const void *src, size_t s… in FSE_compress_usingCTable_generic() argument
726 const BYTE *const istart = (const BYTE *)src; in FSE_compress_usingCTable_generic()
785 size_t FSE_compress_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const F… in FSE_compress_usingCTable() argument
790 return FSE_compress_usingCTable_generic(dst, dstSize, src, srcSize, ct, 1); in FSE_compress_usingCTable()
792 return FSE_compress_usingCTable_generic(dst, dstSize, src, srcSize, ct, 0); in FSE_compress_usingCTable()
/lib/lz4/
Dlz4defs.h135 static FORCE_INLINE void LZ4_copy8(void *dst, const void *src) in LZ4_copy8() argument
138 U64 a = get_unaligned((const U64 *)src); in LZ4_copy8()
142 U32 a = get_unaligned((const U32 *)src); in LZ4_copy8()
143 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 …]
Dlz4hc_compress.c583 const char *src, in LZ4_compress_HC_extStateHC() argument
598 LZ4HC_init(ctx, (const BYTE *)src); in LZ4_compress_HC_extStateHC()
601 return LZ4HC_compress_generic(ctx, src, dst, in LZ4_compress_HC_extStateHC()
604 return LZ4HC_compress_generic(ctx, src, dst, in LZ4_compress_HC_extStateHC()
608 int LZ4_compress_HC(const char *src, char *dst, int srcSize, in LZ4_compress_HC() argument
611 return LZ4_compress_HC_extStateHC(wrkmem, src, dst, in LZ4_compress_HC()

12