/lib/ |
D | string_helpers.c | 128 static bool unescape_space(char **src, char **dst) in unescape_space() argument 130 char *p = *dst, *q = *src; in unescape_space() 151 *dst += 1; in unescape_space() 156 static bool unescape_octal(char **src, char **dst) in unescape_octal() argument 158 char *p = *dst, *q = *src; in unescape_octal() 170 *dst += 1; in unescape_octal() 175 static bool unescape_hex(char **src, char **dst) in unescape_hex() argument 177 char *p = *dst, *q = *src; in unescape_hex() 194 *dst += 1; in unescape_hex() 199 static bool unescape_special(char **src, char **dst) in unescape_special() argument [all …]
|
D | strncpy_from_user.c | 12 #define IS_UNALIGNED(src, dst) 0 argument 14 #define IS_UNALIGNED(src, dst) \ argument 15 (((long) dst | (long) src) & (sizeof(long) - 1)) 24 static inline long do_strncpy_from_user(char *dst, const char __user *src, in do_strncpy_from_user() argument 37 if (IS_UNALIGNED(src, dst)) in do_strncpy_from_user() 46 *(unsigned long *)(dst+res) = c; in do_strncpy_from_user() 61 dst[res] = c; in do_strncpy_from_user() 101 long strncpy_from_user(char *dst, const char __user *src, long count) in strncpy_from_user() argument 114 check_object_size(dst, count, false); in strncpy_from_user() 116 retval = 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 | 62 void __bitmap_complement(unsigned long *dst, const unsigned long *src, unsigned int bits) in __bitmap_complement() argument 66 dst[k] = ~src[k]; in __bitmap_complement() 69 dst[k] = ~src[k]; in __bitmap_complement() 84 void __bitmap_shift_right(unsigned long *dst, const unsigned long *src, in __bitmap_shift_right() argument 109 dst[k] = lower | upper; in __bitmap_shift_right() 112 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right() 129 void __bitmap_shift_left(unsigned long *dst, const unsigned long *src, in __bitmap_shift_left() argument 147 dst[k + off] = lower | upper; in __bitmap_shift_left() 150 memset(dst, 0, off*sizeof(unsigned long)); in __bitmap_shift_left() 154 int __bitmap_and(unsigned long *dst, const unsigned long *bitmap1, in __bitmap_and() argument [all …]
|
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 | 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 | hexdump.c | 47 int hex2bin(u8 *dst, const char *src, size_t count) in hex2bin() argument 56 *dst++ = (hi << 4) | lo; in hex2bin() 68 char *bin2hex(char *dst, const void *src, size_t count) in bin2hex() argument 73 dst = hex_byte_pack(dst, *_src++); in bin2hex() 74 return dst; in bin2hex()
|
D | flex_array.c | 203 void *dst; in flex_array_put() local 217 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; in flex_array_put() 218 memcpy(dst, src, fa->element_size); in flex_array_put() 234 void *dst; in flex_array_clear() local 248 dst = &part->elements[index_inside_part(fa, element_nr, part_nr)]; in flex_array_clear() 249 memset(dst, FLEX_ARRAY_FREE, fa->element_size); in flex_array_clear()
|
D | textsearch.c | 202 static unsigned int get_linear_data(unsigned int consumed, const u8 **dst, in get_linear_data() argument 209 *dst = st->data + consumed; in get_linear_data()
|
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 | nlattr.c | 247 size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize) in nla_strlcpy() argument 258 memset(dst, 0, dstsize); in nla_strlcpy() 259 memcpy(dst, src, len); in nla_strlcpy()
|
D | percpu_ida.c | 42 static inline void move_tags(unsigned *dst, unsigned *dst_nr, in move_tags() argument 47 memcpy(dst + *dst_nr, src + *src_nr, sizeof(unsigned) * nr); in move_tags()
|
D | kfifo.c | 142 static void kfifo_copy_out(struct __kfifo *fifo, void *dst, in kfifo_copy_out() argument 157 memcpy(dst, fifo->data + off, l); in kfifo_copy_out() 158 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()
|