Lines Matching full:size
53 /* return the size or -1 if error */
56 int fd, size;
60 size = lseek(fd, 0, SEEK_END);
62 return size;
65 /* return the size or -1 if error */
66 /* deprecated, because caller does not specify buffer size! */
69 int fd, size;
73 size = lseek(fd, 0, SEEK_END);
75 if (read(fd, addr, size) != size) {
80 return size;
128 /* return the size or -1 if error */
213 int fd, size, ret;
221 size = read(fd, &e, sizeof(e));
222 if (size < 0)
235 size = read_targphys(fd, addr, e.a_text + e.a_data);
236 if (size < 0)
243 size = read_targphys(fd, addr, e.a_text);
244 if (size < 0)
249 size += ret;
255 return size;
263 static void *load_at(int fd, int offset, int size)
268 ptr = qemu_malloc(size);
269 if (read(fd, ptr, size) != size) {
373 static void *zalloc(void *x, unsigned items, unsigned size)
377 size *= items;
378 size = (size + ZALLOC_ALIGNMENT - 1) & ~(ZALLOC_ALIGNMENT - 1);
380 p = qemu_malloc(size);
460 int size;
470 size = read(fd, hdr, sizeof(uboot_image_header_t));
471 if (size < 0)