Lines Matching refs:cluster_size
328 unsigned int cluster_size;
808 * 0x20 / s->cluster_size;
851 s->cluster_size=s->sectors_per_cluster*0x200;
852 s->cluster_buffer=qemu_malloc(s->cluster_size);
917 mapping->end = cluster + 1 + (mapping->end-1)/s->cluster_size;
1194 offset = s->cluster_size*(cluster_num-s->current_mapping->begin);
1197 assert(((s->cluster-(unsigned char*)s->directory.pointer)%s->cluster_size)==0);
1198 assert((char*)s->cluster+s->cluster_size <= s->directory.pointer+s->directory.next*s->directory.item_size);
1210 offset=s->cluster_size*(cluster_num-s->current_mapping->begin)+s->current_mapping->info.file.offset;
1214 result=read(s->current_fd,s->cluster,s->cluster_size);
1663 if (offset != mapping->info.file.offset + s->cluster_size
1724 offset += s->cluster_size;
1737 unsigned char* cluster = qemu_malloc(s->cluster_size);
1838 (le32_to_cpu(direntries[i].size) + s->cluster_size
1839 - 1) / s->cluster_size) {
2220 char* cluster = qemu_malloc(s->cluster_size);
2225 assert((offset % s->cluster_size) == 0);
2227 for (i = s->cluster_size; i < offset; i += s->cluster_size)
2242 int rest_size = (size - offset > s->cluster_size ?
2243 s->cluster_size : size - offset);