Lines Matching refs:size
87 const ssize_t size = write_size * MISC_PAGES; in get_bootloader_message_mtd() local
88 char data[size]; in get_bootloader_message_mtd()
89 ssize_t r = mtd_read_data(read, data, size); in get_bootloader_message_mtd()
90 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno)); in get_bootloader_message_mtd()
92 if (r != size) return -1; in get_bootloader_message_mtd()
113 ssize_t size = write_size * MISC_PAGES; in set_bootloader_message_mtd() local
114 char data[size]; in set_bootloader_message_mtd()
115 ssize_t r = mtd_read_data(read, data, size); in set_bootloader_message_mtd()
116 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno)); in set_bootloader_message_mtd()
118 if (r != size) return -1; in set_bootloader_message_mtd()
127 if (mtd_write_data(write, data, size) != size) { in set_bootloader_message_mtd()