Home | History | Annotate | Download | only in squashfs

Lines Matching defs:bytes

164 	int bytes, avail_bytes, b = 0, k;
170 bytes = msblk->devblksize - offset;
181 for (b = 1; bytes < c_byte; b++) {
184 bytes += msblk->devblksize;
192 bytes = msblk->devblksize - offset;
200 for (b = 1; bytes < c_byte; b++) {
203 bytes += msblk->devblksize;
211 for (bytes = 0, k = 0; k < b; k++) {
212 avail_bytes = (c_byte - bytes) > (msblk->devblksize - offset) ?
214 c_byte - bytes;
218 memcpy(c_buffer + bytes, bh[k]->b_data + offset, avail_bytes);
219 bytes += avail_bytes;
241 bytes = 0;
243 bytes = msblk->stream.total_out;
252 return bytes;
270 int n, i, bytes, return_length = length;
341 if ((bytes = msblk->block_cache[i].length - offset) >= length) {
357 offset, bytes);
358 buffer += bytes;
362 length -= bytes;
999 TRACE("Filesystem size %lld bytes\n", sblk->bytes_used);
1144 int index = page->index << PAGE_CACHE_SHIFT, length, bytes;
1154 for (length = 0; length < index; length += bytes) {
1155 if (!(bytes = squashfs_get_cached_block(inode->i_sb, NULL,
1166 bytes = 0;
1170 bytes = (i_size_read(inode) - length) > PAGE_CACHE_SIZE ? PAGE_CACHE_SIZE :
1173 if (!(bytes = squashfs_get_cached_block(inode->i_sb, pageaddr, block,
1174 offset, bytes, &block, &offset)))
1178 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes);
1457 unsigned int bsize, i = 0, bytes = 0, byte_offset = 0;
1484 if (!(bytes = squashfs_read_data(inode->i_sb, msblk->read_page,
1504 bytes = SQUASHFS_I(inode)->u.s1.fragment_offset +
1511 for (i = start_index; i <= end_index && byte_offset < bytes;
1514 int available_bytes = (bytes - byte_offset) > PAGE_CACHE_SIZE ?
1515 PAGE_CACHE_SIZE : bytes - byte_offset;
1517 TRACE("bytes %d, i %d, byte_offset %d, available_bytes %d\n",
1518 bytes, i, byte_offset, available_bytes);
1557 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes);
1574 unsigned int bsize, bytes = 0;
1594 bytes = squashfs_read_data(inode->i_sb, msblk->read_page, block,
1597 if (bytes)
1598 memcpy(pageaddr, msblk->read_page, bytes);
1611 bytes = i_size_read(inode) & (sblk->block_size - 1);
1613 u.s1.fragment_offset, bytes);
1623 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes);