Searched refs:st_size (Results 1 – 3 of 3) sorted by relevance
| /rk3399_ARM-atf/tools/stm32image/ |
| H A D | stm32image.c | 154 stm32hdr->image_length = __cpu_to_le32((uint32_t)sbuf->st_size - in stm32image_set_header() 157 __cpu_to_le32(stm32image_checksum(ptr, sbuf->st_size, in stm32image_set_header() 218 ptr = mmap(NULL, sbuf.st_size, PROT_READ, MAP_SHARED, src_fd, 0); in stm32image_create_header_file() 250 if (write(dest_fd, ptr, sbuf.st_size) != sbuf.st_size) { in stm32image_create_header_file() 256 munmap((void *)ptr, sbuf.st_size); in stm32image_create_header_file() 263 ptr = mmap(0, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in stm32image_create_header_file() 279 munmap((void *)ptr, sbuf.st_size); in stm32image_create_header_file()
|
| /rk3399_ARM-atf/tools/fiptool/ |
| H A D | fiptool.c | 305 size_t st_size; in parse_fip() local 314 st_size = st.st_size; in parse_fip() 318 if (ioctl(fileno(fp), BLKGETSIZE64, &st_size) == -1) in parse_fip() 322 buf = xmalloc(st_size, "failed to load file into memory"); in parse_fip() 323 if (fread(buf, 1, st_size, fp) != st_size) in parse_fip() 325 bufend = buf + st_size; in parse_fip() 328 if (st_size < sizeof(fip_toc_header_t)) in parse_fip() 365 if (toc_entry->size + toc_entry->offset_address > st_size) in parse_fip() 418 image->buffer = xmalloc(st.st_size, "failed to allocate image buffer"); in read_image_from_file() 419 if (fread(image->buffer, 1, st.st_size, fp) != st.st_size) in read_image_from_file() [all …]
|
| /rk3399_ARM-atf/tools/marvell/doimage/ |
| H A D | doimage.c | 230 return st.st_size; in get_file_size()
|