Searched refs:sbuf (Results 26 - 49 of 49) sorted by relevance

12

/u-boot/tools/
H A Dsfspl.c133 static void sfspl_set_header(void *buf, struct stat *sbuf, int infd, argument
H A Datmelimage.c206 static void atmel_set_header(void *ptr, struct stat *sbuf, int ifd, argument
213 size_t size = sbuf->st_size;
H A Dzynqimage.c268 static void zynqimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
277 zynqhdr->image_size = cpu_to_le32((uint32_t)sbuf->st_size);
H A Dzynqmpbif.c209 struct stat sbuf; local
216 if (fstat(fd, &sbuf) < 0)
220 *size = sbuf.st_size;
222 buf = malloc(sbuf.st_size);
227 while (len < sbuf.st_size) {
228 r = read(fd, bufp, sbuf.st_size - len);
997 static void zynqmpbif_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Dimage-host.c297 struct stat sbuf; local
310 if (fstat(fd, &sbuf) < 0) {
317 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 Dimagetool.h196 * @sbuf: stat information about the file pointed to by ptr
205 struct stat *sbuf,
H A Dvybridimage.c95 static void vybridimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Dmkeficapsule.c822 struct stat sbuf; local
835 if (fstat(fd, &sbuf) < 0) {
840 if ((ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, fd, 0))
H A Dpblimage.c262 static void pblimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Dublimage.c212 static void ublimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Drenesas_spkgimage.c284 static void spkgimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Dzynqmpimage.c441 static void zynqmpimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Dsunxi_toc0.c804 static void toc0_set_header(void *buf, struct stat *sbuf, int ifd, argument
H A Dmxsimage.c2174 static void mxsimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
H A Dkwbimage.c1902 static void kwbimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
1917 * Do not use sbuf->st_size as it contains size with padding.
/u-boot/fs/ubifs/
H A Dreplay.c553 sleb = ubifs_recover_leb(c, lnum, offs, c->sbuf, b->bud->jhead);
555 sleb = ubifs_scan(c, lnum, offs, c->sbuf, 0);
815 * @sbuf: scan buffer
821 static int replay_log_leb(struct ubifs_info *c, int lnum, int offs, void *sbuf) argument
829 sleb = ubifs_scan(c, lnum, offs, sbuf, c->need_recovery);
838 sleb = ubifs_recover_log_leb(c, lnum, offs, sbuf);
1025 err = replay_log_leb(c, lnum, 0, c->sbuf);
H A Dubifs.h1750 * @sbuf: a buffer of LEB size used by GC and replay for scanning
1984 void *sbuf; member in struct:ubifs_info
2115 int offs, void *sbuf, int quiet);
2120 int offs, void *sbuf);
2376 int offs, void *sbuf, int jhead);
2378 int offs, void *sbuf);
2379 int ubifs_recover_inl_heads(struct ubifs_info *c, void *sbuf);
2380 int ubifs_clean_lebs(struct ubifs_info *c, void *sbuf);
H A Dmaster.c39 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
55 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
H A Dsuper.c1396 c->sbuf = vmalloc(c->leb_size);
1397 if (!c->sbuf)
1484 err = ubifs_recover_inl_heads(c, c->sbuf);
1712 vfree(c->sbuf);
1757 vfree(c->sbuf);
1830 err = ubifs_clean_lebs(c, c->sbuf);
1833 err = ubifs_recover_inl_heads(c, c->sbuf);
H A Dorphan.c665 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1);
669 c->sbuf, -1);
H A Dsb.c695 err = ubifs_leb_read(c, lnum, c->sbuf, 0, len, 1);
699 return ubifs_leb_change(c, lnum, c->sbuf, len);
H A Dgc.c508 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0);
H A Dlog.c642 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 0);
/u-boot/test/
H A Dcompression.c442 struct buf_state sbuf, *buf = &sbuf; local

Completed in 232 milliseconds

12