/lib/ |
D | string_helpers.c | 72 static bool unescape_space(char **src, char **dst) in unescape_space() argument 74 char *p = *dst, *q = *src; in unescape_space() 95 *dst += 1; in unescape_space() 100 static bool unescape_octal(char **src, char **dst) in unescape_octal() argument 102 char *p = *dst, *q = *src; in unescape_octal() 114 *dst += 1; in unescape_octal() 119 static bool unescape_hex(char **src, char **dst) in unescape_hex() argument 121 char *p = *dst, *q = *src; in unescape_hex() 138 *dst += 1; in unescape_hex() 143 static bool unescape_special(char **src, char **dst) in unescape_special() argument [all …]
|
D | strncpy_from_user.c | 10 #define IS_UNALIGNED(src, dst) 0 argument 12 #define IS_UNALIGNED(src, dst) \ argument 13 (((long) dst | (long) src) & (sizeof(long) - 1)) 22 static inline long do_strncpy_from_user(char *dst, const char __user *src, long count, unsigned lon… in do_strncpy_from_user() argument 34 if (IS_UNALIGNED(src, dst)) in do_strncpy_from_user() 43 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user() 59 dst[res] = c; in do_strncpy_from_user() 98 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument 109 return do_strncpy_from_user(dst, src, count, max); in strncpy_from_user()
|
D | iomap.c | 145 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 149 *dst = data; in mmio_insb() 150 dst++; in mmio_insb() 153 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 157 *dst = data; in mmio_insw() 158 dst++; in mmio_insw() 161 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 165 *dst = data; in mmio_insl() 166 dst++; in mmio_insl() 195 void ioread8_rep(void __iomem *addr, void *dst, unsigned long count) in ioread8_rep() argument [all …]
|
D | bitmap.c | 89 void __bitmap_complement(unsigned long *dst, const unsigned long *src, int bits) in __bitmap_complement() argument 93 dst[k] = ~src[k]; in __bitmap_complement() 96 dst[k] = ~src[k] & BITMAP_LAST_WORD_MASK(bits); in __bitmap_complement() 111 void __bitmap_shift_right(unsigned long *dst, in __bitmap_shift_right() argument 134 dst[k] = upper << (BITS_PER_LONG - rem) | lower >> rem; in __bitmap_shift_right() 136 dst[k] &= mask; in __bitmap_shift_right() 139 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right() 156 void __bitmap_shift_left(unsigned long *dst, in __bitmap_shift_left() argument 175 dst[k + off] = lower >> (BITS_PER_LONG - rem) | upper << rem; in __bitmap_shift_left() 177 dst[k + off] &= (1UL << left) - 1; in __bitmap_shift_left() [all …]
|
D | iomap_copy.c | 35 u32 __iomem *dst = to; in __iowrite32_copy() local 40 __raw_writel(*src++, dst++); in __iowrite32_copy() 59 u64 __iomem *dst = to; in __iowrite64_copy() local 64 __raw_writeq(*src++, dst++); in __iowrite64_copy()
|
D | checksum.c | 156 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() 163 memset(dst + len - missing, 0, missing); in csum_partial_copy_from_user() 168 return csum_partial(dst, len, sum); 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() 179 return csum_partial(dst, len, sum); in csum_partial_copy()
|
D | flex_array.c | 198 void *dst; in flex_array_put() local 212 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; in flex_array_put() 213 memcpy(dst, src, fa->element_size); in flex_array_put() 229 void *dst; in flex_array_clear() local 243 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; in flex_array_clear() 244 memset(dst, FLEX_ARRAY_FREE, fa->element_size); in flex_array_clear()
|
D | textsearch.c | 200 static unsigned int get_linear_data(unsigned int consumed, const u8 **dst, in get_linear_data() argument 207 *dst = st->data + consumed; in get_linear_data()
|
D | hexdump.c | 44 int hex2bin(u8 *dst, const char *src, size_t count) in hex2bin() argument 53 *dst++ = (hi << 4) | lo; in hex2bin()
|
D | nlattr.c | 244 size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize) in nla_strlcpy() argument 255 memset(dst, 0, dstsize); in nla_strlcpy() 256 memcpy(dst, src, len); in nla_strlcpy()
|
D | bch.c | 135 static void load_ecc8(struct bch_control *bch, uint32_t *dst, in load_ecc8() argument 142 dst[i] = (src[0] << 24)|(src[1] << 16)|(src[2] << 8)|src[3]; in load_ecc8() 145 dst[nwords] = (pad[0] << 24)|(pad[1] << 16)|(pad[2] << 8)|pad[3]; in load_ecc8() 151 static void store_ecc8(struct bch_control *bch, uint8_t *dst, 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() 167 memcpy(dst, pad, BCH_ECC_BYTES(bch)-4*nwords); in store_ecc8() 371 static void gf_poly_copy(struct gf_poly *dst, struct gf_poly *src) in gf_poly_copy() argument [all …]
|
D | kfifo.c | 141 static void kfifo_copy_out(struct __kfifo *fifo, void *dst, in kfifo_copy_out() argument 156 memcpy(dst, fifo->data + off, l); in kfifo_copy_out() 157 memcpy(dst + l, fifo->data, len - l); in kfifo_copy_out()
|
/lib/lzo/ |
D | lzodefs.h | 15 #define COPY4(dst, src) \ argument 16 put_unaligned(get_unaligned((const u32 *)(src)), (u32 *)(dst)) 18 #define COPY8(dst, src) \ argument 19 put_unaligned(get_unaligned((const u64 *)(src)), (u64 *)(dst)) 21 #define COPY8(dst, src) \ argument 22 COPY4(dst, src); COPY4((dst) + 4, (src) + 4)
|
/lib/lz4/ |
D | lz4_compress.c | 419 unsigned char *dst, size_t *dst_len, void *wrkmem) in lz4_compress() argument 425 out_len = lz4_compress64kctx(wrkmem, src, dst, src_len, in lz4_compress() 428 out_len = lz4_compressctx(wrkmem, src, dst, src_len, in lz4_compress()
|
D | lz4hc_compress.c | 517 unsigned char *dst, size_t *dst_len, void *wrkmem) in lz4hc_compress() argument 525 (char *)dst, (int)src_len); in lz4hc_compress()
|