Lines Matching defs:size
23 uint32_t size; // Length of image
95 offset = master->size + directory * master->erasesize;
108 if (offset == master->size)
135 * FIS directory itself. The FIS directory size is
136 * one erase block; if the buf[i].size field is
139 * (NOTE: this is 'size' not 'data_length'; size is
140 * the full size of the entry.)
146 'size' matches the eraseblock size precisely,
147 or if the swapped size actually fits in an
148 eraseblock while the unswapped size doesn't. */
149 if (swab32(buf[i].size) == master->erasesize ||
150 (buf[i].size > master->erasesize
151 && swab32(buf[i].size) < master->erasesize)) {
153 /* Update numslots based on actual FIS directory size */
154 numslots = swab32(buf[i].size) / sizeof (struct fis_image_desc);
173 swab32s(&buf[j].size);
179 } else if (buf[i].size < master->erasesize) {
180 /* Update numslots based on actual FIS directory size */
181 numslots = buf[i].size / sizeof(struct fis_image_desc);
217 buf[i].flash_base &= master->size-1;
237 if (tmp_fl->img->flash_base + tmp_fl->img->size + master->erasesize <= tmp_fl->next->img->flash_base) {
263 parts[0].size = fl->img->flash_base;
269 parts[i].size = fl->img->size;
284 if(fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_base) {
286 parts[i].offset = parts[i-1].size + parts[i-1].offset;
287 parts[i].size = fl->next->img->flash_base - parts[i].offset;