Searched refs:st_size (Results 1 - 25 of 49) sorted by last modified time

12

/u-boot/fs/yaffs2/
H A Dyaffs_uboot_glue.c379 yaffs_read(h, addr, (int)s.st_size);
421 (long)stat.st_size);
H A Dyaffsfs.c1606 buf->st_size = yaffs_get_obj_length(obj);
1608 buf->st_blocks = lldiv(buf->st_size + buf->st_blksize - 1,
/u-boot/fs/jffs2/
H A Djffs2_1pass.c915 st->st_size, s, name);
918 printf(" %s %8ld %s %s", mkmodestr(st->st_mode,str), st->st_size, s, name);
936 st.st_size = i->isize;
/u-boot/tools/
H A Dfit_common.c82 sbuf->st_size += size_inc;
83 if (ftruncate(fd, sbuf->st_size)) {
91 ptr = mmap(0, sbuf->st_size,
110 ret = fdt_open_into(ptr, ptr, sbuf->st_size);
H A Dimage-host.c317 if (sbuf.st_size != expected_size) {
319 filename, (long long)sbuf.st_size, expected_size);
324 n = read(fd, data, sbuf.st_size);
332 if (n != sbuf.st_size) {
334 filename, n, (long long)sbuf.st_size);
H A Dfit_image.c54 destfd_size = dest_sbuf.st_size;
92 munmap(ptr, sbuf.st_size);
153 ret = fdt_property_placeholder(fdt, "data", sbuf.st_size, &ptr);
156 ret = read(fd, ptr, sbuf.st_size);
157 if (ret != sbuf.st_size) {
576 munmap(fdt, sbuf.st_size);
613 munmap(fdt, sbuf.st_size);
639 size = sbuf.st_size + 16384;
698 munmap(old_fdt, sbuf.st_size);
728 munmap(old_fdt, sbuf.st_size);
[all...]
H A Dimximage.c581 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0);
589 if (sbuf.st_size > MAX_PLUGIN_CODE_SIZE) {
594 memcpy(plugin_buf, ptr, sbuf.st_size);
595 imximage_plugin_size = sbuf.st_size;
597 (void) munmap((void *)ptr, sbuf.st_size);
880 *header_size_ptr = ROUND((sbuf->st_size + imximage_ivt_offset), 4096);
1041 pad_len = ROUND(sbuf.st_size, 4096) - sbuf.st_size;
H A Dimx8mimage.c270 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0);
277 size = sbuf.st_size - datafile_offset;
313 munmap((void *)ptr, sbuf.st_size);
521 file_off += ALIGN_IMX(sbuf.st_size,
568 ALIGN_IMX(sbuf.st_size + sizeof(imx_header_v3_t) + ivt_offset,
607 file_off += sbuf.st_size + sizeof(struct legacy_img_hdr);
H A Dmkimage.c428 params.file_size = sbuf.st_size;
568 } else if (tparams && sbuf.st_size < (off_t)tparams->header_size) {
572 (unsigned long long) sbuf.st_size,
576 size = sbuf.st_size;
594 (void) munmap((void *)ptr, sbuf.st_size);
624 params.file_size = sbuf.st_size + tparams->header_size;
665 size = cpu_to_uimage (sbuf.st_size);
773 params.file_size = sbuf.st_size;
775 map_len = sbuf.st_size;
856 if (sbuf.st_size
[all...]
H A Dmkeficapsule.c134 if (bin_stat.st_size > SIZE_MAX) {
139 buf = malloc(bin_stat.st_size);
142 (size_t)bin_stat.st_size);
147 size = fread(buf, 1, bin_stat.st_size, g);
148 if (size < bin_stat.st_size) {
155 *bin_size = bin_stat.st_size;
840 if ((ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, fd, 0))
H A Drenesas_spkgimage.c237 params->orig_file_size = s.st_size;
241 uint32_t payload_len = conf.blp_len + s.st_size + SPKG_CRC_SIZE;
H A Drelocate-rela.c670 debug(" st_size:\t0x%x\n", elf32_to_cpu(symbols.st_size));
H A Ddefault_image.c124 sbuf->st_size - sizeof(struct legacy_img_hdr));
132 imagesize = sbuf->st_size - sizeof(struct legacy_img_hdr)
136 imagesize = sbuf->st_size - sizeof(struct legacy_img_hdr);
H A Dmtk_image.c739 lk->size = cpu_to_le32(sbuf->st_size - sizeof(union lk_hdr));
748 img_size = sbuf->st_size;
751 mtk_image_set_mt7621_header(ptr, sbuf->st_size, params->addr);
756 mtk_image_set_nand_header(ptr, sbuf->st_size, params->addr);
758 mtk_image_set_gen_header(ptr, sbuf->st_size, params->addr);
H A Dprelink-riscv.c94 mmap(0, st.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
121 munmap(data, st.st_size);
H A Dzynqimage.c277 zynqhdr->image_size = cpu_to_le32((uint32_t)sbuf->st_size);
H A Dsocfpgaimage.c407 sbuf.st_size <= (sfp_max_size(ver) - sizeof(uint32_t))) {
408 data_size = sbuf.st_size;
H A Dstm32image.c132 stm32hdr->image_length = cpu_to_le32((uint32_t)sbuf->st_size -
135 cpu_to_le32(stm32image_checksum(ptr, sbuf->st_size));
H A Dsunxi_egon.c164 for (i = 0; i < sbuf->st_size / 4; i++)
H A Dpblimage.c292 uboot_size = roundup(st.st_size, 64);
H A Drkcommon.c641 (int)sbuf.st_size, padded_size);
643 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0);
650 size = sbuf.st_size;
657 munmap((void *)ptr, sbuf.st_size);
662 munmap((void *)ptr, sbuf.st_size);
/u-boot/arch/sandbox/cpu/
H A Dos.c681 next->size = buf.st_size;
724 *size = buf.st_size;
/u-boot/tools/env/
H A Dfw_env.c1758 if (s.st_size >= sizeof(buf)) {
1762 size = fread(buf, s.st_size, 1, fp);
1768 buf[s.st_size] = '\0';
1790 ENVSIZE(0) = s.st_size;
/u-boot/tools/buildman/
H A Dbuilderthread.py333 if os.path.exists(err_file) and os.stat(err_file).st_size:
/u-boot/test/py/tests/
H A Dtest_fit.py140 return os.stat(fname).st_size

Completed in 140 milliseconds

12