Home
last modified time | relevance | path

Searched refs:length (Results 1 – 19 of 19) sorted by relevance

/fs/jffs2/
A Dmini_inflate.c108 unsigned int length; in decompress_none() local
111 length = *(stream->data++); in decompress_none()
115 stream->decoded += length; in decompress_none()
117 stream->data += length; in decompress_none()
144 int symbol, length, dist, i; in decompress_huffman() local
172 stream->decoded += length; in decompress_huffman()
184 int code = 0, i, length; in fill_code_tables() local
242 length = pull_bits(stream, 3); in decompress_dynamic()
244 if (length) codes->count[length]++; in decompress_dynamic()
264 for (;length; length--, curr_code++) in decompress_dynamic()
[all …]
/fs/btrfs/crypto/
A Dhash.c22 int hash_sha256(const u8 *buf, size_t length, u8 *out) in hash_sha256() argument
27 sha256_update(&ctx, buf, length); in hash_sha256()
33 int hash_xxhash(const u8 *buf, size_t length, u8 *out) in hash_xxhash() argument
37 hash = xxh64(buf, length, 0); in hash_xxhash()
45 int hash_blake2(const u8 *buf, size_t length, u8 *out) in hash_blake2() argument
50 blake2b_update(&S, buf, length); in hash_blake2()
56 int hash_crc32c(const u8 *buf, size_t length, u8 *out) in hash_crc32c() argument
60 crc = crc32c_cal((u32)~0, (char *)buf, length, btrfs_crc32c_table); in hash_crc32c()
A Dhash.h9 int hash_crc32c(const u8 *buf, size_t length, u8 *out);
10 int hash_xxhash(const u8 *buf, size_t length, u8 *out);
11 int hash_sha256(const u8 *buf, size_t length, u8 *out);
12 int hash_blake2(const u8 *buf, size_t length, u8 *out);
/fs/btrfs/
A Dvolumes.h135 static inline u64 calc_stripe_length(u64 type, u64 length, int num_stripes) in calc_stripe_length() argument
140 stripe_size = length; in calc_stripe_length()
143 stripe_size = length * 2; in calc_stripe_length()
146 stripe_size = length; in calc_stripe_length()
149 stripe_size = length; in calc_stripe_length()
152 stripe_size = length; in calc_stripe_length()
164 u64 logical, u64 *length, u64 *type,
168 u64 logical, u64 *length,
A Dvolumes.c389 u64 length; in btrfs_check_chunk_valid() local
440 if (!length || !IS_ALIGNED(length, sectorsize)) { in btrfs_check_chunk_valid()
522 u64 length; in read_one_chunk() local
553 map->ce.size = length; in read_one_chunk()
958 u64 orig_len = *length; in __btrfs_map_block()
975 *length = (u64)-1; in __btrfs_map_block()
979 *length = ce->start - logical; in __btrfs_map_block()
1046 *length = ce->size - offset; in __btrfs_map_block()
1048 *length = min_t(u64, *length, orig_len); in __btrfs_map_block()
1115 *length = map->stripe_len; in __btrfs_map_block()
[all …]
A Dconv-funcs.h125 DEFINE_CONV(btrfs_chunk, length, owner, stripe_len, type, io_align, io_width,
135 DEFINE_CONV(btrfs_dev_extent, chunk_tree, chunk_objectid, chunk_offset, length)
A Dctree.h261 BTRFS_SETGET_FUNCS(chunk_length, struct btrfs_chunk, length, 64);
278 BTRFS_SETGET_STACK_FUNCS(stack_chunk_length, struct btrfs_chunk, length, 64);
453 BTRFS_SETGET_FUNCS(dev_extent_length, struct btrfs_dev_extent, length, 64);
456 length, 64);
/fs/erofs/
A Ddata.c132 erofs_off_t startoff, length; in erofs_map_dev() local
138 length = erofs_pos(dif->blocks); in erofs_map_dev()
141 map->m_pa < startoff + length) { in erofs_map_dev()
221 erofs_off_t skip, erofs_off_t length, bool trimmed) in z_erofs_read_one_data() argument
237 return erofs_pread(&packed_inode, buffer, length - skip, in z_erofs_read_one_data()
263 .decodedlength = length, in z_erofs_read_one_data()
277 erofs_off_t end, length, skip; in z_erofs_read_data() local
299 length = end - map.m_la; in z_erofs_read_data()
303 length = map.m_llen; in z_erofs_read_data()
316 memset(buffer + end - offset, 0, length - skip); in z_erofs_read_data()
[all …]
A Dinternal.h346 erofs_off_t skip, erofs_off_t length, bool trimmed);
/fs/exfat/
A Dutils.c119 size_t length) in exfat_calc_name_hash() argument
124 for (i = 0; i < length; i++) in exfat_calc_name_hash()
187 size_t length = strlen(option_name); in exfat_match_option() local
191 (p[length] == ',' || p[length] == '\0')) in exfat_match_option()
A Dlookup.c147 static bool is_last_comp(const char* comp, size_t length) in is_last_comp() argument
149 const char* p = comp + length; in is_last_comp()
154 static bool is_allowed(const char* comp, size_t length) in is_allowed() argument
158 for (i = 0; i < length; i++) in is_allowed()
A Dmount.c66 size_t length = strlen(option_name); in get_option() local
69 if ((p == options || p[-1] == ',') && p[length] == '=') in get_option()
70 return p + length + 1; in get_option()
A Dexfatfs.h141 uint8_t length; /* number of characters */ member
A Dnode.c506 if (label->length > EXFAT_ENAME_MAX) in readdir()
508 exfat_error("too long label (%hhu chars)", label->length); in readdir()
1233 entry.length = exfat_utf16_length(label_utf16); in exfat_set_label()
1235 if (entry.length == 0) in exfat_set_label()
A Dexfat.h212 size_t length);
/fs/squashfs/
A Dsqfs.c241 int length = 0, i; in sqfs_get_tokens_length() local
248 length += strlen(tokens[i]) + 1; in sqfs_get_tokens_length()
250 return length; in sqfs_get_tokens_length()
257 int i, length = 0, offset = 0; in sqfs_concat_tokens() local
259 length = sqfs_get_tokens_length(token_list, token_count); in sqfs_concat_tokens()
261 result = malloc(length + 1); in sqfs_concat_tokens()
265 result[length] = '\0'; in sqfs_concat_tokens()
/fs/btrfs/kernel-shared/
A Dbtrfs_tree.h451 __le64 length; member
574 __le64 length; member
/fs/zfs/
A Dzfs.c2087 uint64_t length; in zfs_read() local
2117 length = len; in zfs_read()
2119 while (length) { in zfs_read()
2138 movesize = min(length, data->file_end - (int)file->offset - red); in zfs_read()
2142 length -= movesize; in zfs_read()
/fs/fat/
A Dfat_write.c50 static int str2fat(char *dest, char *src, int length) in str2fat() argument
54 for (i = 0; i < length; ++src) { in str2fat()

Completed in 40 milliseconds