Home
last modified time | relevance | path

Searched refs:ifd (Results 1 – 25 of 31) sorted by relevance

12

/u-boot/board/samsung/smdkv310/tools/
A Dmksmdkv310spl.c36 int ifd, ofd; in main() local
45 if (ifd < 0) { in main()
55 if (ifd) in main()
56 close(ifd); in main()
61 lseek(ifd, 0, SEEK_SET); in main()
69 if (ifd) in main()
70 close(ifd); in main()
86 if (ifd) in main()
87 close(ifd); in main()
94 if (ifd) in main()
[all …]
/u-boot/board/samsung/origen/tools/
A Dmkorigenspl.c38 int ifd, ofd; in main() local
47 if (ifd < 0) { in main()
57 if (ifd) in main()
58 close(ifd); in main()
63 lseek(ifd, 0, SEEK_SET); in main()
74 if (ifd) in main()
75 close(ifd); in main()
95 if (ifd) in main()
96 close(ifd); in main()
103 if (ifd) in main()
[all …]
/u-boot/tools/
A Dubsha1.c28 int ifd; in main() local
33 ifd = open (imagefile, O_RDWR|O_BINARY); in main()
34 if (ifd < 0) { in main()
39 if (fstat (ifd, &sbuf) < 0) { in main()
46 PROT_READ, MAP_SHARED, ifd, 0); in main()
70 lseek (ifd, SHA1_SUM_POS, SEEK_END); in main()
71 if (write (ifd, output, SHA1_SUM_LEN) != SHA1_SUM_LEN) { in main()
79 (void) close (ifd); in main()
A Dmkimage.c334 int ifd = -1; in main() local
393 if (ifd < 0) { in main()
404 if (fstat(ifd, &sbuf) < 0) { in main()
443 (void) close (ifd); in main()
535 copy_file (ifd, file, 1); in main()
617 (void) fdatasync (ifd); in main()
619 (void) fsync (ifd); in main()
622 if (fstat(ifd, &sbuf) < 0) { in main()
662 (void) fdatasync (ifd); in main()
664 (void) fsync (ifd); in main()
[all …]
A Dmkexynosspl.c78 int i, ifd, ofd; in main() local
104 ifd = open(argv[if_index], O_RDONLY); in main()
105 if (ifd < 0) { in main()
118 if (fstat(ifd, &stat)) { in main()
148 if (read(ifd, buffer, read_size) != read_size) { in main()
181 close(ifd); in main()
A Ddumpimage.c69 int ifd = -1; in main() local
149 ifd = open(params.imagefile, O_RDONLY|O_BINARY); in main()
150 if (ifd < 0) { in main()
156 if (fstat(ifd, &sbuf) < 0) { in main()
168 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0); in main()
199 (void)close(ifd); in main()
A Drkcommon.c249 void rkcommon_set_header(void *buf, struct stat *sbuf, int ifd, in rkcommon_set_header() argument
449 static int pad_file(struct image_tool_params *params, int ifd, int pad) in pad_file() argument
460 if (write(ifd, (char *)&zeros, todo) != todo) { in pad_file()
472 static int copy_file(struct image_tool_params *params, int ifd, in copy_file() argument
508 if (write(ifd, ptr, size) != size) { in copy_file()
516 return pad_file(params, ifd, padded_size - size); in copy_file()
525 int rockchip_copy_image(int ifd, struct image_tool_params *params) in rockchip_copy_image() argument
529 ret = copy_file(params, ifd, spl_params.init_file, in rockchip_copy_image()
535 ret = copy_file(params, ifd, spl_params.boot_file, in rockchip_copy_image()
541 return pad_file(params, ifd, in rockchip_copy_image()
A Drkspi.c19 static void rkspi_set_header(void *buf, struct stat *sbuf, int ifd, in rkspi_set_header() argument
27 rkcommon_set_header(buf, sbuf, ifd, params); in rkspi_set_header()
A Dimx8mimage.c58 static void imx8mimage_set_header(void *ptr, struct stat *sbuf, int ifd, in imx8mimage_set_header() argument
214 static void fill_zero(int ifd, int size, int offset) in fill_zero() argument
222 ret = lseek(ifd, offset, SEEK_SET); in fill_zero()
234 if (write(ifd, (char *)&zeros, fill_size) != fill_size) { in fill_zero()
244 static void copy_file(int ifd, const char *datafile, int pad, int offset, in copy_file() argument
278 ret = lseek(ifd, offset, SEEK_SET); in copy_file()
284 if (write(ifd, ptr + datafile_offset, size) != size) { in copy_file()
293 if (write(ifd, (char *)&zero, 4 - tail) != 4 - tail) { in copy_file()
304 if (write(ifd, (char *)&zeros, todo) != todo) { in copy_file()
A Dpblimage.c188 void pbl_load_uboot(int ifd, struct image_tool_params *params) in pbl_load_uboot() argument
211 lseek(ifd, 0, SEEK_SET); in pbl_load_uboot()
214 if (write(ifd, (const void *)&mem_buf, size) != size) { in pbl_load_uboot()
256 static void pblimage_set_header(void *ptr, struct stat *sbuf, int ifd, in pblimage_set_header() argument
A Drkimage.c15 static void rkimage_set_header(void *buf, struct stat *sbuf, int ifd, in rkimage_set_header() argument
A Drkcommon.h51 void rkcommon_set_header(void *buf, struct stat *sbuf, int ifd,
A Dgpimage.c51 static void gpimage_set_header(void *ptr, struct stat *sbuf, int ifd, in gpimage_set_header() argument
A Dimx8image.c28 static void imx8image_set_header(void *ptr, struct stat *sbuf, int ifd, in imx8image_set_header() argument
297 static void copy_file_aligned(int ifd, const char *datafile, int offset, in copy_file_aligned() argument
338 ret = lseek(ifd, offset, SEEK_SET); in copy_file_aligned()
345 if (write(ifd, ptr, size) != size) { in copy_file_aligned()
352 if (write(ifd, (char *)&zeros, align) != align) { in copy_file_aligned()
362 static void copy_file (int ifd, const char *datafile, int pad, int offset) in copy_file() argument
398 ret = lseek(ifd, offset, SEEK_SET); in copy_file()
405 if (write(ifd, ptr, size) != size) { in copy_file()
414 if (write(ifd, (char *)&zero, 4 - tail) != 4 - tail) { in copy_file()
425 if (write(ifd, (char *)&zeros, todo) != todo) { in copy_file()
A Dimximage.c561 int ifd; in copy_plugin_code() local
566 ifd = open(plugin_file, O_RDONLY|O_BINARY); in copy_plugin_code()
567 if (ifd < 0) { in copy_plugin_code()
574 if (fstat(ifd, &sbuf) < 0) { in copy_plugin_code()
581 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0); in copy_plugin_code()
598 (void) close(ifd); in copy_plugin_code()
834 static void imximage_set_header(void *ptr, struct stat *sbuf, int ifd, in imximage_set_header() argument
A Dlpc32xximage.c139 static void lpc32xximage_set_header(void *ptr, struct stat *sbuf, int ifd, in lpc32xximage_set_header() argument
A Dstm32image.c123 static void stm32image_set_header(void *ptr, struct stat *sbuf, int ifd, in stm32image_set_header() argument
A Dvybridimage.c95 static void vybridimage_set_header(void *ptr, struct stat *sbuf, int ifd, in vybridimage_set_header() argument
A Dsocfpgaimage.c445 static void socfpgaimage_set_header_v0(void *ptr, struct stat *sbuf, int ifd, in socfpgaimage_set_header_v0() argument
451 static void socfpgaimage_set_header_v1(void *ptr, struct stat *sbuf, int ifd, in socfpgaimage_set_header_v1() argument
A Domapimage.c126 static void omapimage_set_header(void *ptr, struct stat *sbuf, int ifd, in omapimage_set_header() argument
A Ddefault_image.c89 static void image_set_header(void *ptr, struct stat *sbuf, int ifd, in image_set_header() argument
A Dublimage.c212 static void ublimage_set_header(void *ptr, struct stat *sbuf, int ifd, in ublimage_set_header() argument
A Datmelimage.c206 static void atmel_set_header(void *ptr, struct stat *sbuf, int ifd, in atmel_set_header() argument
A Dzynqimage.c268 static void zynqimage_set_header(void *ptr, struct stat *sbuf, int ifd, in zynqimage_set_header() argument
/u-boot/tools/gdb/
A Dgdbsend.c26 int c, sfd, ifd; in main() local
79 if ((ifd = open(ifn, O_RDONLY)) < 0) in main()
82 if (fstat(ifd, &ist) < 0) in main()
88 if ((c = read(ifd, image, ist.st_size)) < 0) in main()
94 if (close(ifd) < 0) in main()

Completed in 138 milliseconds

12