Lines Matching defs:image_length
68 static int image_length = 0;
324 unsigned int offset = sizeof(struct cramfs_super) + image_length;
334 if (image_length > 0)
580 buf = mmap(NULL, image_length, PROT_READ, MAP_PRIVATE, fd, 0);
581 memcpy(base + offset, buf, image_length);
582 munmap(buf, image_length);
584 /* Pad up the image_length to a 4-byte boundary */
585 while (image_length & 3) {
586 *(base + offset + image_length) = '\0';
587 image_length++;
589 return (offset + image_length);
652 image_length = st.st_size; /* may be padded later */
653 fslen_ub += (image_length + 3); /* 3 is for padding */