/lib/xz/ |
H A D | xz_dec_bcj.c | 56 /* Amount of already filtered data in the beginning of buf */ 59 /* Total amount of data currently stored in buf */ 74 uint8_t buf[16]; member in struct:xz_dec_bcj::__anon19 88 static size_t bcj_x86(struct xz_dec_bcj *s, uint8_t *buf, size_t size) argument 108 if ((buf[i] & 0xFE) != 0xE8) 117 b = buf[i + 4 - mask_to_bit_num[prev_mask]]; 129 if (bcj_x86_test_msbyte(buf[i + 4])) { 130 src = get_unaligned_le32(buf + i + 1); 146 put_unaligned_le32(dest, buf + i + 1); 160 static size_t bcj_powerpc(struct xz_dec_bcj *s, uint8_t *buf, size_ argument 181 bcj_ia64(struct xz_dec_bcj *s, uint8_t *buf, size_t size) argument 265 bcj_arm(struct xz_dec_bcj *s, uint8_t *buf, size_t size) argument 288 bcj_armthumb(struct xz_dec_bcj *s, uint8_t *buf, size_t size) argument 316 bcj_sparc(struct xz_dec_bcj *s, uint8_t *buf, size_t size) argument 345 bcj_apply(struct xz_dec_bcj *s, uint8_t *buf, size_t *pos, size_t size) argument [all...] |
H A D | xz_stream.h | 16 # define xz_crc32(buf, size, crc) \ 17 (~crc32_le(~(uint32_t)(crc), buf, size))
|
H A D | xz_crc32.c | 49 XZ_EXTERN uint32_t xz_crc32(const uint8_t *buf, size_t size, uint32_t crc) argument 54 crc = xz_crc32_table[*buf++ ^ (crc & 0xFF)] ^ (crc >> 8);
|
H A D | xz_dec_stream.c | 121 * so we reserve space according to that. buf[] has to be aligned 128 uint8_t buf[1024]; member in struct:xz_dec::__anon26 154 * to copy into s->temp.buf. Return true once s->temp.pos has reached 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); 389 if (!memeq(s->temp.buf, HEADER_MAGIC, HEADER_MAGIC_SIZE)) 392 if (xz_crc32(s->temp.buf + HEADER_MAGIC_SIZE, 2, 0) 393 != get_le32(s->temp.buf + HEADER_MAGIC_SIZE + 2)) 396 if (s->temp.buf[HEADER_MAGIC_SIZE] != 0) 405 s->check_type = s->temp.buf[HEADER_MAGIC_SIZE + 1]; 424 if (!memeq(s->temp.buf [all...] |
H A D | xz_private.h | 41 # define memzero(buf, size) memset(buf, 0, size)
|
H A D | xz_dec_lzma2.c | 46 uint8_t *buf; member in struct:dictionary 48 /* Old position in buf (before decoding more data) */ 51 /* Position in buf */ 60 /* Write limit; we don't write to buf[limit] or later bytes. */ 107 * temp.buf or the caller-provided input buffer. 274 uint8_t buf[3 * LZMA_IN_REQUIRED]; member in struct:xz_dec_lzma2::__anon20 289 dict->buf = b->out + b->out_pos; 327 return dict->full > 0 ? dict->buf[offset] : 0; 335 dict->buf[dict->pos++] = byte; 362 dict->buf[dic [all...] |
H A D | xz_dec_test.c | 102 static ssize_t xz_dec_test_write(struct file *file, const char __user *buf, argument 125 if (copy_from_user(buffer_in, buf, buffers.in_size)) 128 buf += buffers.in_size;
|
/lib/ |
H A D | vsprintf.c | 133 char *put_dec_full9(char *buf, unsigned q) argument 157 *buf++ = (q - 10 * r) + '0'; /* 1 */ 159 *buf++ = (r - 10 * q) + '0'; /* 2 */ 161 *buf++ = (q - 10 * r) + '0'; /* 3 */ 163 *buf++ = (r - 10 * q) + '0'; /* 4 */ 165 *buf++ = (q - 10 * r) + '0'; /* 5 */ 168 *buf++ = (r - 10 * q) + '0'; /* 6 */ 170 *buf++ = (q - 10 * r) + '0'; /* 7 */ 172 *buf++ = (r - 10 * q) + '0'; /* 8 */ 173 *buf 183 put_dec_trunc8(char *buf, unsigned r) argument 232 put_dec(char *buf, unsigned long long n) argument 249 put_dec_full4(char *buf, unsigned q) argument 269 put_dec_helper4(char *buf, unsigned x) argument 283 put_dec(char *buf, unsigned long long n) argument 322 num_to_str(char *buf, int size, unsigned long long num) argument 382 number(char *buf, char *end, unsigned long long num, struct printf_spec spec) argument 507 string(char *buf, char *end, const char *s, struct printf_spec spec) argument 537 widen(char *buf, char *end, unsigned len, unsigned spaces) argument 556 dentry_name(char *buf, char *end, const struct dentry *d, struct printf_spec spec, const char *fmt) argument 613 symbol_string(char *buf, char *end, void *ptr, struct printf_spec spec, const char *fmt) argument 644 resource_string(char *buf, char *end, struct resource *res, struct printf_spec spec, const char *fmt) argument 752 hex_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt) argument 796 mac_address_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt) argument 983 ip6_addr_string(char *buf, char *end, const u8 *addr, struct printf_spec spec, const char *fmt) argument 997 ip4_addr_string(char *buf, char *end, const u8 *addr, struct printf_spec spec, const char *fmt) argument 1008 ip6_addr_string_sa(char *buf, char *end, const struct sockaddr_in6 *sa, struct printf_spec spec, const char *fmt) argument 1070 ip4_addr_string_sa(char *buf, char *end, const struct sockaddr_in *sa, struct printf_spec spec, const char *fmt) argument 1105 escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec, const char *fmt) argument 1161 uuid_string(char *buf, char *end, const u8 *addr, struct printf_spec spec, const char *fmt) argument 1208 netdev_feature_string(char *buf, char *end, const u8 *addr, struct printf_spec spec) argument 1220 address_val(char *buf, char *end, const void *addr, struct printf_spec spec, const char *fmt) argument 1327 pointer(const char *fmt, char *buf, char *end, void *ptr, struct printf_spec spec) argument 1723 vsnprintf(char *buf, size_t size, const char *fmt, va_list args) argument 1886 vscnprintf(char *buf, size_t size, const char *fmt, va_list args) argument 1914 snprintf(char *buf, size_t size, const char *fmt, ...) argument 1938 scnprintf(char *buf, size_t size, const char *fmt, ...) argument 1965 vsprintf(char *buf, const char *fmt, va_list args) argument 1983 sprintf(char *buf, const char *fmt, ...) argument 2146 bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf) argument 2334 vsscanf(const char *buf, const char *fmt, va_list args) argument 2563 sscanf(const char *buf, const char *fmt, ...) argument [all...] |
H A D | halfmd4.c | 25 __u32 half_md4_transform(__u32 buf[4], __u32 const in[8]) argument 27 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; 59 buf[0] += a; 60 buf[1] += b; 61 buf[2] += c; 62 buf[3] += d; 64 return buf[ [all...] |
H A D | hexdump.c | 79 * @buf: data blob to dump 80 * @len: number of bytes in the @buf 101 void hex_dump_to_buffer(const void *buf, size_t len, int rowsize, argument 105 const u8 *ptr = buf; 122 const u64 *ptr8 = buf; 134 const u32 *ptr4 = buf; 145 const u16 *ptr2 = buf; 192 * @buf: data blob to dump 193 * @len: number of bytes in the @buf 202 * print_hex_dump() iterates over the entire input @buf, breakin 214 print_hex_dump(const char *level, const char *prefix_str, int prefix_type, int rowsize, int groupsize, const void *buf, size_t len, bool ascii) argument 261 print_hex_dump_bytes(const char *prefix_str, int prefix_type, const void *buf, size_t len) argument [all...] |
H A D | parser.c | 131 char *buf; local 136 buf = kmalloc(len + 1, GFP_KERNEL); 137 if (!buf) 139 memcpy(buf, s->from, len); 140 buf[len] = '\0'; 143 val = simple_strtol(buf, &endp, base); 144 if (endp == buf) 150 kfree(buf);
|
H A D | test_firmware.c | 25 static ssize_t test_fw_misc_read(struct file *f, char __user *buf, argument 32 rc = simple_read_from_buffer(buf, size, offset, 52 const char *buf, size_t count) 60 memcpy(name, buf, count); 50 trigger_request_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
|
H A D | dynamic_debug.c | 88 /* format a string into buf[] which describes the _ddebug's flags */ 89 static char *ddebug_describe_flags(struct _ddebug *dp, char *buf, argument 92 char *p = buf; 99 if (p == buf) 103 return buf; 208 * Split the buffer `buf' into space-separated words. 213 static int ddebug_tokenize(char *buf, char *words[], int maxwords) argument 217 while (*buf) { 221 buf = skip_spaces(buf); 508 dynamic_emit_prefix(const struct _ddebug *desc, char *buf) argument 544 char buf[PREFIX_SIZE]; local 577 char buf[PREFIX_SIZE]; local 606 char buf[PREFIX_SIZE]; local [all...] |
H A D | kobject_uevent.c | 59 * @buf: buffer containing the action string, newline is ignored 65 int kobject_action_type(const char *buf, size_t count, argument 71 if (count && (buf[count-1] == '\n' || buf[count-1] == '\0')) 78 if (strncmp(kobject_actions[action], buf, count) != 0) 134 len = strlcpy(&env->buf[env->buflen], subsystem, 135 sizeof(env->buf) - env->buflen); 136 if (len >= (sizeof(env->buf) - env->buflen)) { 142 env->argv[1] = &env->buf[env->buflen]; 398 len = vsnprintf(&env->buf[en [all...] |
H A D | decompress_inflate.c | 36 STATIC int INIT gunzip(unsigned char *buf, long len, argument 59 if (buf) 60 zbuf = buf; 175 if (!buf)
|
H A D | bitmap.c | 377 * @buf: byte buffer into which string is placed 378 * @buflen: reserved size of @buf, in bytes 384 * characters which were written to *buf, excluding the trailing \0. 386 int bitmap_scnprintf(char *buf, unsigned int buflen, argument 405 len += scnprintf(buf+len, buflen-len, "%s%0*lx", sep, 416 * @buf: pointer to buffer containing string. 430 int __bitmap_parse(const char *buf, unsigned int buflen, argument 436 const char __user __force *ubuf = (const char __user __force *)buf; 452 c = *buf++; 528 * bscnl_emit(buf, bufle 535 bscnl_emit(char *buf, int buflen, int rbot, int rtop, int len) argument 562 bitmap_scnlistprintf(char *buf, unsigned int buflen, const unsigned long *maskp, int nmaskbits) argument 606 __bitmap_parselist(const char *buf, unsigned int buflen, int is_user, unsigned long *maskp, int nmaskbits) argument 731 bitmap_pos_to_ord(const unsigned long *buf, int pos, int bits) argument 767 bitmap_ord_to_pos(const unsigned long *buf, int ord, int bits) argument [all...] |
H A D | kfifo.c | 127 const void *buf, unsigned int len) 135 kfifo_copy_in(fifo, buf, len, fifo->in); 166 void *buf, unsigned int len) 174 kfifo_copy_out(fifo, buf, len, fifo->out); 180 void *buf, unsigned int len) 182 len = __kfifo_out_peek(fifo, buf, len); 308 static int setup_sgl_buf(struct scatterlist *sgl, void *buf, argument 323 page = virt_to_page(buf); 324 off = offset_in_page(buf); 331 buf 126 __kfifo_in(struct __kfifo *fifo, const void *buf, unsigned int len) argument 165 __kfifo_out_peek(struct __kfifo *fifo, void *buf, unsigned int len) argument 179 __kfifo_out(struct __kfifo *fifo, void *buf, unsigned int len) argument 451 __kfifo_in_r(struct __kfifo *fifo, const void *buf, unsigned int len, size_t recsize) argument 465 kfifo_out_copy_r(struct __kfifo *fifo, void *buf, unsigned int len, size_t recsize, unsigned int *n) argument 477 __kfifo_out_peek_r(struct __kfifo *fifo, void *buf, unsigned int len, size_t recsize) argument 489 __kfifo_out_r(struct __kfifo *fifo, void *buf, unsigned int len, size_t recsize) argument [all...] |
H A D | scatterlist.c | 121 * @buf: Virtual address for IO 125 void sg_init_one(struct scatterlist *sg, const void *buf, unsigned int buflen) argument 128 sg_set_buf(sg, buf, buflen); 612 * @buf: Where to copy from 622 void *buf, size_t buflen, off_t skip, 648 memcpy(buf + offset, miter.addr, len); 650 memcpy(miter.addr, buf + offset, len); 665 * @buf: Where to copy from 672 void *buf, size_t buflen) 674 return sg_copy_buffer(sgl, nents, buf, bufle 621 sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip, bool to_buffer) argument 671 sg_copy_from_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen) argument 688 sg_copy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen) argument 706 sg_pcopy_from_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip) argument 724 sg_pcopy_to_buffer(struct scatterlist *sgl, unsigned int nents, void *buf, size_t buflen, off_t skip) argument [all...] |
H A D | kstrtox.c | 328 char buf[1 + sizeof(type) * 8 + 1 + 1]; \ 330 count = min(count, sizeof(buf) - 1); \ 331 if (copy_from_user(buf, s, count)) \ 333 buf[count] = '\0'; \ 334 return g(buf, base, res); \
|
H A D | decompress_unlz4.c | 199 STATIC int INIT decompress(unsigned char *buf, long in_len, argument 207 return unlz4(buf, in_len - 4, fill, flush, output, posp, error);
|
H A D | test-string_helpers.c | 271 char *buf = out_real; local 304 q_real = string_escape_mem(in, p, &buf, q_real, flags, esc); 317 char out[64], *buf = out; local 320 ret = string_escape_str_any_np(in, &buf, strlen(in), NULL);
|
H A D | decompress_bunzip2.c | 620 static long INIT nofill(void *buf, unsigned long len) argument 678 STATIC int INIT bunzip2(unsigned char *buf, long len, argument 696 if (buf) 697 inbuf = buf; 737 if (!buf) 746 STATIC int INIT decompress(unsigned char *buf, long len, argument 753 return bunzip2(buf, len - 4, fill, flush, outbuf, pos, error);
|
H A D | sha1.c | 191 * @buf: vector to initialize 193 void sha_init(__u32 *buf) argument 195 buf[0] = 0x67452301; 196 buf[1] = 0xefcdab89; 197 buf[2] = 0x98badcfe; 198 buf[3] = 0x10325476; 199 buf[4] = 0xc3d2e1f0;
|
H A D | decompress_unxz.c | 192 static void memzero(void *buf, size_t size) argument 194 uint8_t *b = buf;
|
/lib/zlib_inflate/ |
H A D | infutil.c | 10 const void *buf, unsigned int len) 12 const u8 *zbuf = buf; 9 zlib_inflate_blob(void *gunzip_buf, unsigned int sz, const void *buf, unsigned int len) argument
|