Home
last modified time | relevance | path

Searched refs:infd (Results 1 – 7 of 7) sorted by relevance

/openbmc/u-boot/tools/
H A Dmxsboot.c426 size = lseek(infd, 0, SEEK_END); in mx28_nand_write_firmware()
427 lseek(infd, 0, SEEK_SET); in mx28_nand_write_firmware()
432 ret = read(infd, buf + offset1, size); in mx28_nand_write_firmware()
540 fsize = lseek(infd, 0, SEEK_END); in mx28_create_sd_image()
541 lseek(infd, 0, SEEK_SET); in mx28_create_sd_image()
639 int infd, outfd; in main() local
650 infd = open(argv[offset + 1], O_RDONLY); in main()
651 if (infd < 0) { in main()
666 ret = mx28_create_sd_image(infd, outfd); in main()
668 ret = mx28_create_nand_image(infd, outfd); in main()
[all …]
/openbmc/linux/arch/arm/vdso/
H A Dvdsomunge.c127 int infd; in main() local
138 infd = open(infile, O_RDONLY); in main()
139 if (infd < 0) in main()
142 if (fstat(infd, &stat) != 0) in main()
145 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
149 close(infd); in main()
/openbmc/u-boot/tools/patman/
H A Dtest.py73 infd = os.fdopen(inhandle, 'w')
74 infd.write(data)
75 infd.close()
211 infd = os.fdopen(inhandle, 'w')
213 infd.write(data)
214 infd.close()
H A Dpatchstream.py348 def ProcessStream(self, infd, outfd): argument
362 line = infd.readline()
456 infd = open(fname, 'r')
459 ps.ProcessStream(infd, outfd)
460 infd.close()
/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_connect.c354 int infd, struct wstate *winfo) in sock_connect_mptcp() argument
743 static int do_recvfile(int infd, int outfd) in do_recvfile() argument
750 r = do_rnd_read(infd, buf, sizeof(buf)); in do_recvfile()
850 r = sendfile(outfd, infd, NULL, count); in do_sendfile()
873 err = do_mmap(infd, peerfd, size, winfo); in copyfd_io_mmap()
875 err = do_mmap(infd, peerfd, size, winfo); in copyfd_io_mmap()
898 err = do_sendfile(infd, peerfd, size, winfo); in copyfd_io_sendfile()
900 err = do_sendfile(infd, peerfd, size, winfo); in copyfd_io_sendfile()
930 file_size = get_infd_size(infd); in copyfd_io()
933 ret = copyfd_io_mmap(infd, peerfd, outfd, file_size, in copyfd_io()
[all …]
/openbmc/linux/tools/firmware/
H A Dihex2fw.c74 int infd, outfd; in main() local
99 infd = 0; in main()
101 infd = open(argv[optind], O_RDONLY); in main()
102 if (infd == -1) { in main()
107 if (fstat(infd, &st)) { in main()
111 data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, infd, 0); in main()
/openbmc/qemu/linux-user/
H A Dsyscall.c751 safe_syscall6(ssize_t, copy_file_range, int, infd, loff_t *, pinoff, in safe_syscall3()