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()
296 ssize_t size = partition->erase_size; in read_block() local
299 while (pos + size <= (int) partition->size) { in read_block()
301 TEMP_FAILURE_RETRY(read(fd, data, size)) != size) { in read_block()
417 ssize_t size = partition->erase_size; in write_block() local
418 while (pos + size <= (int) partition->size) { in write_block()
432 erase_info.length = size; in write_block()
441 TEMP_FAILURE_RETRY(write(fd, data, size)) != size) { in write_block()
446 char verify[size]; in write_block()
448 TEMP_FAILURE_RETRY(read(fd, verify, size)) != size) { in write_block()
453 if (memcmp(data, verify, size) != 0) { in write_block()
523 const int total = (ctx->partition->size - pos) / ctx->partition->erase_size; in mtd_erase_blocks()