Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 106) sorted by relevance

12345

/u-boot/arch/arm/lib/
A Dsemihosting.c50 long fd; in smh_open() local
77 if (fd == -1) in smh_open()
81 return fd; in smh_open()
91 long fd; in smh_read() member
98 read.fd = fd; in smh_read()
153 long fd; in smh_load_file() local
157 fd = smh_open(name, "rb"); in smh_load_file()
158 if (fd == -1) in smh_load_file()
161 len = smh_len_fd(fd); in smh_load_file()
163 smh_close(fd); in smh_load_file()
[all …]
/u-boot/include/fsl-mc/
A Dfsl_dpaa_fd.h40 return (u64)((((uint64_t)fd->simple.addr_hi) << 32) in ldpaa_fd_get_addr()
41 + fd->simple.addr_lo); in ldpaa_fd_get_addr()
46 fd->simple.addr_hi = upper_32_bits(addr); in ldpaa_fd_set_addr()
47 fd->simple.addr_lo = lower_32_bits(addr); in ldpaa_fd_set_addr()
52 return fd->simple.len; in ldpaa_fd_get_len()
57 fd->simple.len = len; in ldpaa_fd_set_len()
67 fd->simple.bpid_offset &= 0xF000FFFF; in ldpaa_fd_set_offset()
68 fd->simple.bpid_offset |= (u32)offset << 16; in ldpaa_fd_set_offset()
73 return (uint16_t)(fd->simple.bpid_offset & 0xFFFF); in ldpaa_fd_get_bpid()
78 fd->simple.bpid_offset &= 0xFFFF0000; in ldpaa_fd_set_bpid()
[all …]
/u-boot/board/gardena/smart-gateway-mt7688/
A Dboard.c92 struct factory_data_values *fd; in factory_data_env_config() local
133 if (crc != fd->crc) in factory_data_env_config()
137 fd->version); in factory_data_env_config()
140 ptr = fd->wifi_mac; in factory_data_env_config()
152 ptr = fd->eth_mac; in factory_data_env_config()
215 struct factory_data_values *fd; in do_fd_write() local
246 fd->magic = FACTORY_DATA_MAGIC; in do_fd_write()
247 fd->version = 0x1; in do_fd_write()
273 fd->hqv_id); in do_fd_write()
275 fd->unielec_id); in do_fd_write()
[all …]
/u-boot/fs/sandbox/
A Dsandboxfs.c25 int fd, ret; in sandbox_fs_read_at() local
28 if (fd < 0) in sandbox_fs_read_at()
29 return fd; in sandbox_fs_read_at()
32 os_close(fd); in sandbox_fs_read_at()
38 os_close(fd); in sandbox_fs_read_at()
46 os_close(fd); in sandbox_fs_read_at()
62 int fd, ret; in sandbox_fs_write_at() local
65 if (fd < 0) in sandbox_fs_write_at()
66 return fd; in sandbox_fs_write_at()
69 os_close(fd); in sandbox_fs_write_at()
[all …]
/u-boot/arch/sandbox/cpu/
A Dos.c102 if (fd) in os_close()
119 int fd; in os_write_file() local
122 if (fd < 0) { in os_write_file()
140 int fd; in os_read_file() local
561 close(fd); in os_write_ram_buf()
584 close(fd); in os_read_ram_buf()
593 int fd; in make_exec() local
601 close(fd); in make_exec()
682 close(fd); in os_jump_to_file()
739 int fd; in os_find_u_boot() local
[all …]
/u-boot/tools/binman/
A Dcbfs_util.py484 fd.write(tools.GetBytes(self._erase_byte, offset - fd.tell()))
494 upto = fd.tell()
579 fd.write(hdr)
582 fd.write(hdr)
592 fd = io.BytesIO()
689 fd.seek(size - 4)
692 fd.seek(pos)
701 fd.seek(orig_pos)
724 pos = fd.tell()
759 fd.read(size)
[all …]
/u-boot/tools/gdb/
A Dserial.c66 int fd; in serialopen() local
71 if ((fd = open(device, O_RDWR)) < 0) in serialopen()
75 (void)close(fd); in serialopen()
79 return fd; in serialopen()
83 serialreadchar(int fd, int timeout) in serialreadchar() argument
94 FD_SET(fd, &fds); in serialreadchar()
104 if ((n = read(fd, &ch, 1)) < 0) in serialreadchar()
114 serialwrite(int fd, char *buf, int len) in serialwrite() argument
119 n = write(fd, buf, len); in serialwrite()
129 serialclose(int fd) in serialclose() argument
[all …]
/u-boot/arch/riscv/include/asm/
A Dposix_types.h73 typeof(_fd) (fd) = (_fd); \
74 (((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1 << (fd & 31)))
78 typeof(_fd) (fd) = (_fd); \
79 (((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1 << (fd & 31)))
83 typeof(_fd) (fd) = (_fd); \
84 ((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1 << (fd & 31))) != 0)
88 typeof(_fdsetp) (fd) = (_fdsetp); \
/u-boot/arch/xtensa/include/asm/
A Dposix_types.h56 #define __FD_SET(fd, fdsetp) \ argument
57 (((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1<<(fd & 31)))
60 #define __FD_CLR(fd, fdsetp) \ argument
61 (((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1<<(fd & 31)))
64 #define __FD_ISSET(fd, fdsetp) \ argument
65 ((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1<<(fd & 31))) != 0)
/u-boot/arch/nds32/include/asm/
A Dposix_types.h71 #define __FD_SET(fd, fdsetp) \ argument
72 (((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1<<(fd & 31)))
75 #define __FD_CLR(fd, fdsetp) \ argument
76 (((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1<<(fd & 31)))
79 #define __FD_ISSET(fd, fdsetp) \ argument
80 ((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1<<(fd & 31))) != 0)
/u-boot/arch/arm/include/asm/
A Dposix_types.h70 #define __FD_SET(fd, fdsetp) \ argument
71 (((fd_set *)fdsetp)->fds_bits[fd >> 5] |= (1<<(fd & 31)))
74 #define __FD_CLR(fd, fdsetp) \ argument
75 (((fd_set *)fdsetp)->fds_bits[fd >> 5] &= ~(1<<(fd & 31)))
78 #define __FD_ISSET(fd, fdsetp) \ argument
79 ((((fd_set *)fdsetp)->fds_bits[fd >> 5] & (1<<(fd & 31))) != 0)
/u-boot/fs/yaffs2/
A Dyaffsfs.h81 int yaffs_close(int fd) ;
82 int yaffs_fsync(int fd) ;
83 int yaffs_fdatasync(int fd) ;
88 int yaffs_dup(int fd);
99 int yaffs_ftruncate(int fd, loff_t new_size);
106 int yaffs_fstat(int fd, struct yaffs_stat *buf) ;
116 int yaffs_fsetxattr(int fd, const char *name,
123 int yaffs_fgetxattr(int fd, const char *name,
137 int yaffs_set_wince_times(int fd,
141 int yaffs_get_wince_times(int fd,
[all …]
/u-boot/tools/
A Dfit_common.c49 int fd; in mmap_fdt() local
52 fd = open(fname, (read_only ? O_RDONLY : O_RDWR) | O_BINARY); in mmap_fdt()
54 if (fd < 0) { in mmap_fdt()
60 if (fstat(fd, sbuf) < 0) { in mmap_fdt()
68 if (ftruncate(fd, sbuf->st_size)) { in mmap_fdt()
78 fd, 0); in mmap_fdt()
104 return fd; in mmap_fdt()
107 if (fd >= 0) in mmap_fdt()
108 close(fd); in mmap_fdt()
A Dkwboot.c166 FD_SET(fd, &rfds); in kwboot_tty_recv()
217 rc = tcdrain(fd); in kwboot_tty_send()
250 int rc, fd; in kwboot_open_tty() local
256 if (fd < 0) in kwboot_open_tty()
274 rc = fd; in kwboot_open_tty()
277 if (fd >= 0) in kwboot_open_tty()
278 close(fd); in kwboot_open_tty()
575 int rc, fd, flags; in kwboot_mmap_image() local
583 if (fd < 0) in kwboot_mmap_image()
605 if (fd >= 0) in kwboot_mmap_image()
[all …]
A Dprelink-riscv.c83 int fd = open(argv[1], O_RDWR, 0); in main() local
85 if (fd < 0) in main()
90 if (fstat(fd, &st) < 0) in main()
94 mmap(0, st.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
99 close(fd); in main()
A Dfit_image.c130 int fd; in fdt_property_file() local
154 close(fd); in fdt_property_file()
158 close(fd); in fdt_property_file()
386 int fd; in fit_build() local
416 close(fd); in fit_build()
421 close(fd); in fit_build()
443 int fd; in fit_extract_data() local
546 close(fd); in fit_extract_data()
553 close(fd); in fit_extract_data()
561 int fd; in fit_import_data() local
[all …]
A Dimagetool.c130 int fd; in imagetool_get_filesize() local
132 fd = open(fname, O_RDONLY | O_BINARY); in imagetool_get_filesize()
133 if (fd < 0) { in imagetool_get_filesize()
139 if (fstat(fd, &sbuf) < 0) { in imagetool_get_filesize()
142 close(fd); in imagetool_get_filesize()
145 close(fd); in imagetool_get_filesize()
/u-boot/arch/powerpc/include/asm/
A Dposix_types.h58 static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) in __FD_SET() argument
60 unsigned long _tmp = fd / __NFDBITS; in __FD_SET()
61 unsigned long _rem = fd % __NFDBITS; in __FD_SET()
66 static __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp) in __FD_CLR() argument
68 unsigned long _tmp = fd / __NFDBITS; in __FD_CLR()
69 unsigned long _rem = fd % __NFDBITS; in __FD_CLR()
74 static __inline__ int __FD_ISSET(unsigned long fd, __kernel_fd_set *p) in __FD_ISSET() argument
76 unsigned long _tmp = fd / __NFDBITS; in __FD_ISSET()
77 unsigned long _rem = fd % __NFDBITS; in __FD_ISSET()
/u-boot/arch/m68k/include/asm/
A Dposix_types.h58 static __inline__ void __FD_SET(unsigned long fd, __kernel_fd_set *fdsetp) in __FD_SET() argument
60 unsigned long _tmp = fd / __NFDBITS; in __FD_SET()
61 unsigned long _rem = fd % __NFDBITS; in __FD_SET()
66 static __inline__ void __FD_CLR(unsigned long fd, __kernel_fd_set *fdsetp) in __FD_CLR() argument
68 unsigned long _tmp = fd / __NFDBITS; in __FD_CLR()
69 unsigned long _rem = fd % __NFDBITS; in __FD_CLR()
74 static __inline__ int __FD_ISSET(unsigned long fd, __kernel_fd_set *p) in __FD_ISSET() argument
76 unsigned long _tmp = fd / __NFDBITS; in __FD_ISSET()
77 unsigned long _rem = fd % __NFDBITS; in __FD_ISSET()
/u-boot/arch/microblaze/include/asm/
A Dposix_types.h63 #define __FD_SET(fd, fd_set) \ argument
64 __set_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
66 #define __FD_CLR(fd, fd_set) \ argument
67 __clear_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
69 #define __FD_ISSET(fd, fd_set) \ argument
70 __test_bit (fd, (void *)&((__kernel_fd_set *)fd_set)->fds_bits)
/u-boot/drivers/block/
A Dsandbox.c53 if (os_lseek(host_dev->fd, start * block_dev->blksz, OS_SEEK_SET) ==
98 int ret, fd; local
126 fd = os_open(filename, OS_O_RDWR);
127 if (fd == -1) {
134 os_lseek(fd, 0, OS_SEEK_END) / 512, &dev);
139 host_dev->fd = fd;
156 os_close(fd);
170 os_close(host_dev->fd);
182 host_dev->fd = os_open(host_dev->filename, OS_O_RDWR);
183 if (host_dev->fd == -1) {
[all …]
/u-boot/arch/x86/include/asm/
A Dposix_types.h56 #define __FD_SET(fd,fdsetp) \ argument
58 "=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
61 #define __FD_CLR(fd,fdsetp) \ argument
63 "=m" (*(__kernel_fd_set *) (fdsetp)):"r" ((int) (fd)))
66 #define __FD_ISSET(fd,fdsetp) (__extension__ ({ \ argument
69 :"=q" (__result) :"r" ((int) (fd)), \
/u-boot/test/py/tests/
A Dtest_fit.py147 with open(fname, 'rb') as fd:
148 return fd.read()
158 with open(src, 'w') as fd:
159 fd.write(base_fdt)
172 with open(its, 'w') as fd:
173 print(base_its % params, file=fd)
192 fd.write(base_fdt)
207 with open(fname, 'w') as fd:
208 print(data, file=fd)
221 with open(fname, 'w') as fd:
[all …]
/u-boot/include/
A Dos.h27 ssize_t os_read(int fd, void *buf, size_t count);
37 ssize_t os_write(int fd, const void *buf, size_t count);
47 off_t os_lseek(int fd, off_t offset, int whence);
76 int os_close(int fd);
103 void os_tty_raw(int fd, bool allow_sigs);
/u-boot/tools/buildman/
A Dbuilderthread.py169 with open(done_file, 'r') as fd:
316 with open(outfile, 'w') as fd:
318 fd.write(result.stdout)
323 with open(errfile, 'w') as fd:
324 fd.write(result.stderr)
332 with open(done_file, 'w') as fd:
343 fd.write('%s' % result.return_code)
359 with open(nm, 'w') as fd:
370 with open(objdump, 'w') as fd:
403 with open(sizes, 'w') as fd:
[all …]

Completed in 33 milliseconds

12345