/lib/ |
D | vsprintf.c | 130 char *put_dec_full9(char *buf, unsigned q) in put_dec_full9() argument 154 *buf++ = (q - 10 * r) + '0'; /* 1 */ in put_dec_full9() 156 *buf++ = (r - 10 * q) + '0'; /* 2 */ in put_dec_full9() 158 *buf++ = (q - 10 * r) + '0'; /* 3 */ in put_dec_full9() 160 *buf++ = (r - 10 * q) + '0'; /* 4 */ in put_dec_full9() 162 *buf++ = (q - 10 * r) + '0'; /* 5 */ in put_dec_full9() 165 *buf++ = (r - 10 * q) + '0'; /* 6 */ in put_dec_full9() 167 *buf++ = (q - 10 * r) + '0'; /* 7 */ in put_dec_full9() 169 *buf++ = (r - 10 * q) + '0'; /* 8 */ in put_dec_full9() 170 *buf++ = q + '0'; /* 9 */ in put_dec_full9() [all …]
|
D | halfmd4.c | 25 __u32 half_md4_transform(__u32 buf[4], __u32 const in[8]) in half_md4_transform() 27 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() 59 buf[0] += a; in half_md4_transform() 60 buf[1] += b; in half_md4_transform() 61 buf[2] += c; in half_md4_transform() 62 buf[3] += d; in half_md4_transform() 64 return buf[1]; /* "most hashed" word */ in half_md4_transform()
|
D | dynamic_debug.c | 87 static char *ddebug_describe_flags(struct _ddebug *dp, char *buf, in ddebug_describe_flags() argument 90 char *p = buf; in ddebug_describe_flags() 97 if (p == buf) in ddebug_describe_flags() 101 return buf; in ddebug_describe_flags() 208 static int ddebug_tokenize(char *buf, char *words[], int maxwords) in ddebug_tokenize() argument 212 while (*buf) { in ddebug_tokenize() 216 buf = skip_spaces(buf); in ddebug_tokenize() 217 if (!*buf) in ddebug_tokenize() 219 if (*buf == '#') in ddebug_tokenize() 223 if (*buf == '"' || *buf == '\'') { in ddebug_tokenize() [all …]
|
D | hexdump.c | 83 void hex_dump_to_buffer(const void *buf, size_t len, int rowsize, in hex_dump_to_buffer() argument 87 const u8 *ptr = buf; in hex_dump_to_buffer() 104 const u64 *ptr8 = buf; in hex_dump_to_buffer() 116 const u32 *ptr4 = buf; in hex_dump_to_buffer() 127 const u16 *ptr2 = buf; in hex_dump_to_buffer() 198 const void *buf, size_t len, bool ascii) in print_hex_dump() argument 200 const u8 *ptr = buf; in print_hex_dump() 244 const void *buf, size_t len) in print_hex_dump_bytes() argument 247 buf, len, true); in print_hex_dump_bytes()
|
D | parser.c | 130 char *buf; in match_number() local 135 buf = kmalloc(len + 1, GFP_KERNEL); in match_number() 136 if (!buf) in match_number() 138 memcpy(buf, s->from, len); in match_number() 139 buf[len] = '\0'; in match_number() 142 val = simple_strtol(buf, &endp, base); in match_number() 143 if (endp == buf) in match_number() 149 kfree(buf); in match_number()
|
D | kfifo.c | 127 const void *buf, unsigned int len) in __kfifo_in() argument 135 kfifo_copy_in(fifo, buf, len, fifo->in); in __kfifo_in() 166 void *buf, unsigned int len) in __kfifo_out_peek() argument 174 kfifo_copy_out(fifo, buf, len, fifo->out); in __kfifo_out_peek() 180 void *buf, unsigned int len) in __kfifo_out() argument 182 len = __kfifo_out_peek(fifo, buf, len); in __kfifo_out() 308 static int setup_sgl_buf(struct scatterlist *sgl, void *buf, in setup_sgl_buf() argument 323 page = virt_to_page(buf); in setup_sgl_buf() 324 off = offset_in_page(buf); in setup_sgl_buf() 331 buf += PAGE_SIZE; in setup_sgl_buf() [all …]
|
D | bitmap.c | 375 int bitmap_scnprintf(char *buf, unsigned int buflen, in bitmap_scnprintf() argument 394 len += scnprintf(buf+len, buflen-len, "%s%0*lx", sep, in bitmap_scnprintf() 419 int __bitmap_parse(const char *buf, unsigned int buflen, in __bitmap_parse() argument 425 const char __user __force *ubuf = (const char __user __force *)buf; in __bitmap_parse() 441 c = *buf++; in __bitmap_parse() 524 static inline int bscnl_emit(char *buf, int buflen, int rbot, int rtop, int len) in bscnl_emit() argument 527 len += scnprintf(buf + len, buflen - len, ","); in bscnl_emit() 529 len += scnprintf(buf + len, buflen - len, "%d", rbot); in bscnl_emit() 531 len += scnprintf(buf + len, buflen - len, "%d-%d", rbot, rtop); in bscnl_emit() 551 int bitmap_scnlistprintf(char *buf, unsigned int buflen, in bitmap_scnlistprintf() argument [all …]
|
D | decompress_inflate.c | 35 STATIC int INIT gunzip(unsigned char *buf, int len, in gunzip() argument 58 if (buf) in gunzip() 59 zbuf = buf; in gunzip() 174 if (!buf) in gunzip()
|
D | kobject_uevent.c | 63 int kobject_action_type(const char *buf, size_t count, in kobject_action_type() argument 69 if (count && (buf[count-1] == '\n' || buf[count-1] == '\0')) in kobject_action_type() 76 if (strncmp(kobject_actions[action], buf, count) != 0) in kobject_action_type() 356 len = vsnprintf(&env->buf[env->buflen], in add_uevent_var() 357 sizeof(env->buf) - env->buflen, in add_uevent_var() 361 if (len >= (sizeof(env->buf) - env->buflen)) { in add_uevent_var() 366 env->envp[env->envp_idx++] = &env->buf[env->buflen]; in add_uevent_var()
|
D | scatterlist.c | 125 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) in sg_init_one() argument 128 sg_set_buf(sg, buf, buflen); in sg_init_one() 562 void *buf, size_t buflen, int to_buffer) in sg_copy_buffer() argument 584 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer() 586 memcpy(miter.addr, buf + offset, len); in sg_copy_buffer() 608 void *buf, size_t buflen) in sg_copy_from_buffer() argument 610 return sg_copy_buffer(sgl, nents, buf, buflen, 0); in sg_copy_from_buffer() 625 void *buf, size_t buflen) in sg_copy_to_buffer() argument 627 return sg_copy_buffer(sgl, nents, buf, buflen, 1); in sg_copy_to_buffer()
|
D | random32.c | 90 void prandom_bytes_state(struct rnd_state *state, void *buf, int bytes) in prandom_bytes_state() argument 92 unsigned char *p = buf; in prandom_bytes_state() 120 void prandom_bytes(void *buf, int bytes) in prandom_bytes() argument 124 prandom_bytes_state(state, buf, bytes); in prandom_bytes()
|
D | kstrtox.c | 329 char buf[1 + sizeof(type) * 8 + 1 + 1]; \ 331 count = min(count, sizeof(buf) - 1); \ 332 if (copy_from_user(buf, s, count)) \ 334 buf[count] = '\0'; \ 335 return g(buf, base, res); \
|
D | sha1.c | 193 void sha_init(__u32 *buf) in sha_init() argument 195 buf[0] = 0x67452301; in sha_init() 196 buf[1] = 0xefcdab89; in sha_init() 197 buf[2] = 0x98badcfe; in sha_init() 198 buf[3] = 0x10325476; in sha_init() 199 buf[4] = 0xc3d2e1f0; in sha_init()
|
D | decompress_bunzip2.c | 620 static int INIT nofill(void *buf, unsigned int len) in nofill() argument 678 STATIC int INIT bunzip2(unsigned char *buf, int len, in bunzip2() argument 696 if (buf) in bunzip2() 697 inbuf = buf; in bunzip2() 737 if (!buf) in bunzip2() 746 STATIC int INIT decompress(unsigned char *buf, int len, in decompress() argument 753 return bunzip2(buf, len - 4, fill, flush, outbuf, pos, error); in decompress()
|
D | crc32.c | 56 crc32_body(u32 crc, unsigned char const *buf, size_t len, const u32 (*tab)[256]) argument 83 if (unlikely((long)buf & 3 && len)) { 85 DO_CRC(*buf++); 86 } while ((--len) && ((long)buf)&3); 97 b = (const u32 *)buf;
|
D | string_helpers.c | 26 char *buf, int len) in string_get_size() argument 65 snprintf(buf, len, "%lld%s %s", (unsigned long long)size, in string_get_size()
|
/lib/xz/ |
D | xz_dec_bcj.c | 74 uint8_t buf[16]; member 88 static size_t bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_x86() argument 108 if ((buf[i] & 0xFE) != 0xE8) in bcj_x86() 117 b = buf[i + 4 - mask_to_bit_num[prev_mask]]; in bcj_x86() 129 if (bcj_x86_test_msbyte(buf[i + 4])) { in bcj_x86() 130 src = get_unaligned_le32(buf + i + 1); in bcj_x86() 146 put_unaligned_le32(dest, buf + i + 1); in bcj_x86() 160 static size_t bcj_powerpc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) in bcj_powerpc() argument 166 instr = get_unaligned_be32(buf + i); in bcj_powerpc() 172 put_unaligned_be32(instr, buf + i); in bcj_powerpc() [all …]
|
D | xz_dec_stream.c | 128 uint8_t buf[1024]; member 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 389 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) in dec_stream_header() 392 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) in dec_stream_header() 393 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) in dec_stream_header() 396 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) in dec_stream_header() 405 s->check_type = s->temp.buf[HEADER_MAGIC_SIZE + 1]; in dec_stream_header() 424 if (!memeq(s->temp.buf + 10, FOOTER_MAGIC, FOOTER_MAGIC_SIZE)) in dec_stream_footer() 427 if (xz_crc32(s->temp.buf + 4, 6, 0) != get_le32(s->temp.buf)) in dec_stream_footer() 435 if ((s->index.size >> 2) != get_le32(s->temp.buf + 4)) in dec_stream_footer() [all …]
|
D | xz_stream.h | 16 # define xz_crc32(buf, size, crc) \ argument 17 (~crc32_le(~(uint32_t)(crc), buf, size))
|
D | xz_dec_lzma2.c | 46 uint8_t *buf; member 274 uint8_t buf[3 * LZMA_IN_REQUIRED]; member 289 dict->buf = b->out + b->out_pos; in dict_reset() 327 return dict->full > 0 ? dict->buf[offset] : 0; in dict_get() 335 dict->buf[dict->pos++] = byte; in dict_put() 362 dict->buf[dict->pos++] = dict->buf[back++]; in dict_repeat() 390 memcpy(dict->buf + dict->pos, b->in + b->in_pos, copy_size); in dict_uncompressed() 424 memcpy(b->out + b->out_pos, dict->buf + dict->start, in dict_flush() 859 memcpy(s->temp.buf + s->temp.size, b->in + b->in_pos, tmp); in lzma2_lzma() 862 memzero(s->temp.buf + s->temp.size + tmp, in lzma2_lzma() [all …]
|
D | xz_crc32.c | 49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc) in xz_crc32() argument 54 crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8); in xz_crc32()
|
D | xz_dec_test.c | 102 static ssize_t xz_dec_test_write(struct file *file, const char __user *buf, in xz_dec_test_write() argument 125 if (copy_from_user(buffer_in, buf, buffers.in_size)) in xz_dec_test_write() 128 buf += buffers.in_size; in xz_dec_test_write()
|
D | xz_private.h | 41 # define memzero(buf, size) memset(buf, 0, size) argument
|
/lib/zlib_inflate/ |
D | infutil.c | 10 const void *buf, unsigned int len) in zlib_inflate_blob() argument 12 const u8 *zbuf = buf; in zlib_inflate_blob()
|
/lib/zlib_deflate/ |
D | deftree.c | 152 static void copy_block (deflate_state *s, char *buf, unsigned len, 794 char *buf, /* input block */ in zlib_tr_stored_block() argument 803 copy_block(s, buf, (unsigned)stored_len, 1); /* with header */ in zlib_tr_stored_block() 858 char *buf, /* input block, or NULL if too old */ argument 900 Assert(buf != (char*)0, "lost buf"); 915 if (buf == (char*)0) error ("block vanished"); 917 copy_block(s, buf, (unsigned)stored_len, 0); /* without header */ 924 if (buf != (char*)0) { /* force stored block */ 926 if (stored_len+4 <= opt_lenb && buf != (char*)0) { 935 zlib_tr_stored_block(s, buf, stored_len, eof); [all …]
|