/lib/ |
D | string_helpers.c | 133 static bool unescape_space(char **src, char **dst) in unescape_space() argument 135 char *p = *dst, *q = *src; in unescape_space() 156 *dst += 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() 175 *dst += 1; 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() 199 *dst += 1; in unescape_hex() 204 static bool unescape_special(char **src, char **dst) in unescape_special() argument [all …]
|
D | strncpy_from_user.c | 15 #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() 42 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user() 57 dst[res] = c; in do_strncpy_from_user() 97 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument 117 kasan_check_write(dst, count); in strncpy_from_user() 118 check_object_size(dst, count, false); in strncpy_from_user() [all …]
|
D | bitmap.c | 82 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 126 dst[k] = lower | upper; in __bitmap_shift_right() 129 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right() 146 void __bitmap_shift_left(unsigned long *dst, const unsigned long *src, in __bitmap_shift_left() argument 164 dst[k + off] = lower | upper; in __bitmap_shift_left() 167 memset(dst, 0, off*sizeof(unsigned long)); in __bitmap_shift_left() 171 int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, in __bitmap_and() argument 179 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and() [all …]
|
D | iomap_copy.c | 23 u32 __iomem *dst = to; in __iowrite32_copy() local 28 __raw_writel(*src++, dst++); in __iowrite32_copy() 44 u32 *dst = to; in __ioread32_copy() local 49 *dst++ = __raw_readl(src++); in __ioread32_copy() 68 u64 __iomem *dst = to; in __iowrite64_copy() local 73 __raw_writeq(*src++, dst++); in __iowrite64_copy()
|
D | iomap.c | 278 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 282 *dst = data; in mmio_insb() 283 dst++; in mmio_insb() 286 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 290 *dst = data; in mmio_insw() 291 dst++; in mmio_insw() 294 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 298 *dst = data; in mmio_insl() 299 dst++; in mmio_insl() 328 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) in ioread8_rep() argument [all …]
|
D | checksum.c | 152 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() 159 memset(dst + len - missing, 0, missing); in csum_partial_copy_from_user() 164 return csum_partial(dst, len, sum); 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() 175 return csum_partial(dst, len, sum); in csum_partial_copy()
|
D | hexdump.c | 44 int hex2bin(u8 *dst, const char *src, size_t count) in hex2bin() argument 53 *dst++ = (hi << 4) | lo; in hex2bin() 65 char *bin2hex(char *dst, const void *src, size_t count) in bin2hex() argument 70 dst = hex_byte_pack(dst, *_src++); in bin2hex() 71 return dst; in bin2hex()
|
D | test_ubsan.c | 63 volatile char *dst, *src; in test_ubsan_load_invalid_value() local 67 dst = (char *)&val; in test_ubsan_load_invalid_value() 69 *dst = *src; in test_ubsan_load_invalid_value()
|
D | nlattr.c | 516 size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize) in nla_strlcpy() argument 527 memset(dst, 0, dstsize); in nla_strlcpy() 528 memcpy(dst, src, len); in nla_strlcpy() 545 char *src = nla_data(nla), *dst; in nla_strdup() local 550 dst = kmalloc(srclen + 1, flags); in nla_strdup() 551 if (dst != NULL) { in nla_strdup() 552 memcpy(dst, src, srclen); in nla_strdup() 553 dst[srclen] = '\0'; in nla_strdup() 555 return dst; in nla_strdup()
|
D | xxhash.c | 79 void xxh32_copy_state(struct xxh32_state *dst, const struct xxh32_state *src) in xxh32_copy_state() argument 81 memcpy(dst, src, sizeof(*dst)); in xxh32_copy_state() 85 void xxh64_copy_state(struct xxh64_state *dst, const struct xxh64_state *src) in xxh64_copy_state() argument 87 memcpy(dst, src, sizeof(*dst)); in xxh64_copy_state()
|
D | textsearch.c | 204 static unsigned int get_linear_data(unsigned int consumed, const u8 **dst, in get_linear_data() argument 211 *dst = st->data + consumed; in get_linear_data()
|
D | bch.c | 141 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8() argument 148 dst[i] = (src[0] << 24)|(src[1] << 16)|(src[2] << 8)|src[3]; in load_ecc8() 151 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8() 157 static void store_ecc8(struct bch_control *bch, uint8_t *dst, 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() 173 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords); in store_ecc8() 381 static void gf_poly_copy(struct gf_poly *dst, struct gf_poly *src) in gf_poly_copy() argument [all …]
|
/lib/zstd/ |
D | huf.h | 57 size_t HUF_compress4X_wksp(void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned max… 104 size_t HUF_decompress4X_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, si… 105 size_t HUF_decompress4X_hufOnly_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc,… 107 size_t HUF_decompress4X2_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, s… 109 size_t HUF_decompress4X4_DCtx_wksp(HUF_DTable *dctx, void *dst, size_t dstSize, const void *cSrc, s… 130 size_t HUF_writeCTable_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, unsigned maxSymbo… 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… 183 size_t HUF_decompress4X_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize… 184 size_t HUF_decompress4X2_usingDTable(void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSiz… [all …]
|
D | huf_decompress.c | 199 static size_t HUF_decompress1X2_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress1X2_usingDTable_internal() argument 201 BYTE *op = (BYTE *)dst; in HUF_decompress1X2_usingDTable_internal() 224 size_t HUF_decompress1X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress1X2_usingDTable() argument 229 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress1X2_usingDTable() 232 size_t HUF_decompress1X2_DCtx_wksp(HUF_DTable *DCtx, void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress1X2_DCtx_wksp() argument 244 return HUF_decompress1X2_usingDTable_internal(dst, dstSize, ip, cSrcSize, DCtx); in HUF_decompress1X2_DCtx_wksp() 247 static size_t HUF_decompress4X2_usingDTable_internal(void *dst, size_t dstSize, const void *cSrc, s… in HUF_decompress4X2_usingDTable_internal() argument 255 BYTE *const ostart = (BYTE *)dst; in HUF_decompress4X2_usingDTable_internal() 355 size_t HUF_decompress4X2_usingDTable(void *dst, size_t dstSize, const void *cSrc, size_t cSrcSize, … in HUF_decompress4X2_usingDTable() argument 360 return HUF_decompress4X2_usingDTable_internal(dst, dstSize, cSrc, cSrcSize, DTable); in HUF_decompress4X2_usingDTable() [all …]
|
D | huf_compress.c | 82 size_t HUF_compressWeights_wksp(void *dst, size_t dstSize, const void *weightTable, size_t wtSize, … in HUF_compressWeights_wksp() argument 84 BYTE *const ostart = (BYTE *)dst; in HUF_compressWeights_wksp() 152 size_t HUF_writeCTable_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, U32 maxSymbolValu… in HUF_writeCTable_wksp() argument 154 BYTE *op = (BYTE *)dst; in HUF_writeCTable_wksp() 538 size_t HUF_compress1X_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const… in HUF_compress1X_usingCTable() argument 541 BYTE *const ostart = (BYTE *)dst; 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 586 BYTE *const ostart = (BYTE *)dst; in HUF_compress4X_usingCTable() 653 static size_t HUF_compress_internal(void *dst, size_t dstSize, const void *src, size_t srcSize, uns… in HUF_compress_internal() argument 656 BYTE *const ostart = (BYTE *)dst; in HUF_compress_internal() [all …]
|
D | fse_decompress.c | 214 FORCE_INLINE size_t FSE_decompress_usingDTable_generic(void *dst, size_t maxDstSize, const void *cS… in FSE_decompress_usingDTable_generic() argument 217 BYTE *const ostart = (BYTE *)dst; in FSE_decompress_usingDTable_generic() 282 size_t FSE_decompress_usingDTable(void *dst, size_t originalSize, const void *cSrc, size_t cSrcSize… in FSE_decompress_usingDTable() argument 290 return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize, dt, 1); in FSE_decompress_usingDTable() 291 return FSE_decompress_usingDTable_generic(dst, originalSize, cSrc, cSrcSize, dt, 0); in FSE_decompress_usingDTable() 294 size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsign… in FSE_decompress_wksp() argument 331 …return FSE_decompress_usingDTable(dst, dstCapacity, ip, cSrcSize, dt); /* always return, even if i… in FSE_decompress_wksp()
|
D | decompress.c | 52 static void ZSTD_copy4(void *dst, const void *src) { memcpy(dst, src, 4); } in ZSTD_copy4() argument 412 static size_t ZSTD_copyRawBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize) in ZSTD_copyRawBlock() argument 416 memcpy(dst, src, srcSize); in ZSTD_copyRawBlock() 420 static size_t ZSTD_setRleBlock(void *dst, size_t dstCapacity, const void *src, size_t srcSize, size… in ZSTD_setRleBlock() argument 426 memset(dst, *(const BYTE *)src, regenSize); in ZSTD_setRleBlock() 1093 static size_t ZSTD_decompressSequences(ZSTD_DCtx *dctx, void *dst, size_t maxDstSize, const void *s… in ZSTD_decompressSequences() argument 1097 BYTE *const ostart = (BYTE * const)dst; in ZSTD_decompressSequences() 1348 static size_t ZSTD_decompressSequencesLong(ZSTD_DCtx *dctx, void *dst, size_t maxDstSize, const voi… in ZSTD_decompressSequencesLong() argument 1352 BYTE *const ostart = (BYTE * const)dst; in ZSTD_decompressSequencesLong() 1445 static size_t ZSTD_decompressBlock_internal(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const v… in ZSTD_decompressBlock_internal() argument [all …]
|
D | zstd_internal.h | 129 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 138 BYTE* op = (BYTE*)dst; in ZSTD_wildcopy() 146 return ZSTD_copy8(dst, src); in ZSTD_wildcopy()
|
D | compress.c | 434 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() 439 ZSTD_writeLE24(dst, (U32)(srcSize << 2) + (U32)bt_raw); in ZSTD_noCompressBlock() 443 static size_t ZSTD_noCompressLiterals(void *dst, size_t dstCapacity, const void *src, size_t srcSiz… in ZSTD_noCompressLiterals() argument 445 BYTE *const ostart = (BYTE * const)dst; in ZSTD_noCompressLiterals() 462 static size_t ZSTD_compressRleLiteralsBlock(void *dst, size_t dstCapacity, const void *src, size_t … in ZSTD_compressRleLiteralsBlock() argument 464 BYTE *const ostart = (BYTE * const)dst; in ZSTD_compressRleLiteralsBlock() 482 static size_t ZSTD_compressLiterals(ZSTD_CCtx *zc, void *dst, size_t dstCapacity, const void *src, … in ZSTD_compressLiterals() argument 486 BYTE *const ostart = (BYTE *)dst; in ZSTD_compressLiterals() 496 return ZSTD_noCompressLiterals(dst, dstCapacity, src, srcSize); in ZSTD_compressLiterals() [all …]
|
D | fse.h | 129 FSE_PUBLIC_API size_t FSE_compress_usingCTable(void *dst, size_t dstCapacity, const void *src, size… 197 FSE_PUBLIC_API size_t FSE_decompress_usingDTable(void *dst, size_t dstCapacity, const void *cSrc, s… 284 size_t FSE_decompress_wksp(void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, unsign…
|
/lib/lzo/ |
D | lzodefs.h | 22 #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/lz4/ |
D | lz4defs.h | 140 static FORCE_INLINE void LZ4_copy8(void *dst, const void *src) in LZ4_copy8() argument 145 put_unaligned(a, (U64 *)dst); in LZ4_copy8() 150 put_unaligned(a, (U32 *)dst); in LZ4_copy8() 151 put_unaligned(b, (U32 *)dst + 1); in LZ4_copy8()
|
D | lz4_compress.c | 525 char * const dst, in LZ4_compress_destSize_generic() argument 538 BYTE *op = (BYTE *) dst; in LZ4_compress_destSize_generic() 717 return (int) (((char *)op) - dst); in LZ4_compress_destSize_generic() 723 char *dst, 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() 757 char *dst, in LZ4_compress_destSize() argument 762 return LZ4_compress_destSize_extState(wrkmem, src, dst, srcSizePtr, in LZ4_compress_destSize()
|
D | lz4_decompress.c | 62 char * const dst, in LZ4_decompress_generic() argument 86 BYTE *op = (BYTE *) dst; in LZ4_decompress_generic() 438 return (int) (((char *)op) - dst); in LZ4_decompress_generic() 458 int LZ4_decompress_safe_partial(const char *src, char *dst, in LZ4_decompress_safe_partial() argument 462 return LZ4_decompress_generic(src, dst, compressedSize, dstCapacity, in LZ4_decompress_safe_partial() 464 noDict, (BYTE *)dst, NULL, 0); in LZ4_decompress_safe_partial()
|
/lib/crypto/ |
D | des.c | 781 void des_encrypt(const struct des_ctx *ctx, u8 *dst, const u8 *src) in des_encrypt() argument 797 put_unaligned_le32(R, dst); in des_encrypt() 798 put_unaligned_le32(L, dst + 4); in des_encrypt() 802 void des_decrypt(const struct des_ctx *ctx, u8 *dst, const u8 *src) in des_decrypt() argument 818 put_unaligned_le32(R, dst); in des_decrypt() 819 put_unaligned_le32(L, dst + 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 868 put_unaligned_le32(R, dst); in des3_ede_encrypt() 869 put_unaligned_le32(L, dst + 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 …]
|