Lines Matching refs:size
33 unsigned int size; member
145 p->size = mtdsize; in mtd_scan_partitions()
251 if (total_size != NULL) *total_size = mtd_info.size; in mtd_partition_info()
298 ssize_t size = partition->erase_size; in read_block() local
301 while (pos + size <= (int) partition->size) { in read_block()
302 if (lseek64(fd, pos, SEEK_SET) != pos || read(fd, data, size) != size) { in read_block()
415 ssize_t size = partition->erase_size; in write_block() local
416 while (pos + size <= (int) partition->size) { in write_block()
430 erase_info.length = size; in write_block()
439 write(fd, data, size) != size) { in write_block()
444 char verify[size]; in write_block()
446 read(fd, verify, size) != size) { in write_block()
451 if (memcmp(data, verify, size) != 0) { in write_block()
518 const int total = (ctx->partition->size - pos) / ctx->partition->erase_size; in mtd_erase_blocks()