Searched refs:dfd (Results 1 – 6 of 6) sorted by relevance
| /u-boot/tools/ |
| A D | imagetool.c | 131 int dfd; in imagetool_save_subimage() local 133 dfd = open(file_name, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, in imagetool_save_subimage() 135 if (dfd < 0) { in imagetool_save_subimage() 141 if (write(dfd, (void *)file_data, file_len) != (ssize_t)file_len) { in imagetool_save_subimage() 144 close(dfd); in imagetool_save_subimage() 148 close(dfd); in imagetool_save_subimage()
|
| A D | aisimage.c | 179 int dfd; in ais_alloc_buffer() local 184 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_alloc_buffer() 185 if (dfd < 0) { in ais_alloc_buffer() 191 if (fstat(dfd, &sbuf) < 0) { in ais_alloc_buffer() 213 close(dfd); in ais_alloc_buffer() 222 int dfd; in ais_copy_image() local 227 dfd = open(datafile, O_RDONLY|O_BINARY); in ais_copy_image() 228 if (dfd < 0) { in ais_copy_image() 234 if (fstat(dfd, &sbuf) < 0) { in ais_copy_image() 240 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in ais_copy_image() [all …]
|
| A D | imx8image.c | 308 int dfd; in copy_file_aligned() local 323 if (dfd < 0) { in copy_file_aligned() 329 if (fstat(dfd, &sbuf) < 0) { in copy_file_aligned() 367 close(dfd); in copy_file_aligned() 372 int dfd; in copy_file() local 383 if (dfd < 0) { in copy_file() 389 if (fstat(dfd, &sbuf) < 0) { in copy_file() 444 close(dfd); in copy_file() 449 int dfd; in read_dcd_offset() local 455 if (dfd < 0) { in read_dcd_offset() [all …]
|
| A D | rkcommon.c | 618 int dfd; in copy_file() local 626 dfd = open(file, O_RDONLY | O_BINARY); in copy_file() 627 if (dfd < 0) { in copy_file() 633 if (fstat(dfd, &sbuf) < 0) { in copy_file() 643 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file() 658 close(dfd); in copy_file() 664 close(dfd); in copy_file()
|
| A D | mkimage.c | 473 int dfd; in main() local 608 dfd = open(params.datafile, O_RDONLY | O_BINARY); in main() 609 if (dfd < 0) { in main() 616 if (fstat(dfd, &sbuf) < 0) { in main() 624 close(dfd); in main() 827 int dfd; in copy_file() local 843 if ((dfd = open(datafile, O_RDONLY|O_BINARY)) < 0) { in copy_file() 849 if (fstat(dfd, &sbuf) < 0) { in copy_file() 861 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file() 937 (void) close (dfd); in copy_file()
|
| A D | imx8mimage.c | 247 int dfd; in copy_file() local 257 dfd = open(datafile, O_RDONLY | O_BINARY); in copy_file() 258 if (dfd < 0) { in copy_file() 264 if (fstat(dfd, &sbuf) < 0) { in copy_file() 270 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file() 315 close(dfd); in copy_file()
|
Completed in 13 milliseconds