/lk-master/external/lib/lwip/include/lwip/ |
A D | sio.h | 72 void sio_send(u8_t c, sio_fd_t fd); 83 u8_t sio_recv(sio_fd_t fd); 98 u32_t sio_read(sio_fd_t fd, u8_t *data, u32_t len); 111 u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len); 125 u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len); 134 void sio_read_abort(sio_fd_t fd);
|
/lk-master/tools/ |
A D | bootimage.c | 99 r = write(fd, x, len); in writex() 114 int bootimage_write(bootimage *img, int fd) { in bootimage_write() argument 117 if (writex(fd, img->entry, 4096)) { in bootimage_write() 125 if (writex(fd, filler, s)) { in bootimage_write() 144 int fd, r; in load_file() local 146 if ((fd = open(fn, O_RDONLY)) < 0) { in load_file() 150 if ((sz = lseek(fd, 0, SEEK_END)) < 0) { in load_file() 153 if (lseek(fd, 0, SEEK_SET) != 0) { in load_file() 165 r = read(fd, x, sz); in load_file() 175 close(fd); in load_file() [all …]
|
A D | lkboot.c | 61 int fd = -1; in main() local 65 return lkboot_txn(host, cmd, fd, ""); in main() 67 return lkboot_txn(host, cmd + 1, fd, ""); in main() 100 if ((fd = open(fn, O_RDONLY)) < 0) { in main() 105 return lkboot_txn(host, cmd, fd, args); in main()
|
A D | mkimage.c | 81 int fd; in main() local 121 if ((fd = open(outname, O_CREAT|O_TRUNC|O_WRONLY, 0644)) < 0) { in main() 125 if (bootimage_write(img, fd)) { in main() 130 close(fd); in main()
|
A D | liblkboot.c | 103 static off_t trim_fpga_image(int fd, off_t len) { in trim_fpga_image() argument 116 if (read(fd, &buf[sizeof(buf) - 1], 1) < 1) { in trim_fpga_image() 123 lseek(fd, -sizeof(pat), SEEK_CUR); in trim_fpga_image()
|
A D | bootimage.h | 28 int bootimage_write(bootimage *img, int fd);
|
/lk-master/lib/devicetree/ |
A D | devicetreedump.c | 34 int fd; in loadfile() local 35 if ((fd = open(fn, O_RDONLY)) < 0) in loadfile() 37 if ((end = lseek(fd, 0, SEEK_END)) == -1) in loadfile() 39 if (lseek(fd, 0, SEEK_SET)) in loadfile() 43 if ((read(fd, data, end) != end)) in loadfile() 47 close(fd); in loadfile() 51 close(fd); in loadfile()
|
/lk-master/external/lib/lwip/netif/ppp/ |
A D | ppp.h | 143 int pppOverSerialOpen(sio_fd_t fd, pppLinkStatusCB_fn linkStatusCB, void *linkStatusCtx); 155 #define pppOpen(fd,cb,ls) pppOverSerialOpen(fd,cb,ls) argument
|
A D | ppp.c | 173 sio_fd_t fd; member 204 sio_fd_t fd; /* File device ID of port. */ member 352 sio_read_abort(pppControl[pd].fd); in pppRecvWakeup() 537 pppOverSerialOpen(sio_fd_t fd, pppLinkStatusCB_fn linkStatusCB, void *linkStatusCtx) in pppOverSerialOpen() argument 560 pc->rx.fd = fd; in pppOverSerialOpen() 563 pc->fd = fd; in pppOverSerialOpen() 709 if((c = sio_write(pc->fd, b->payload, b->len)) != b->len) { in nPut() 711 … incomplete sio_write(fd:%"SZT_F", len:%d, c: 0x%"X8_F") c = %d\n", (size_t)pc->fd, b->len, c, c)); in nPut() 994 *(sio_fd_t *)arg = pc->fd; in pppIOCtl() 1524 count = sio_read(pcrx->fd, pcrx->rxbuf, PPPOS_RX_BUFSIZE); in pppInputThread()
|
/lk-master/external/lib/heap/dlmalloc/ |
A D | dlmalloc.c | 3216 int fd; in init_mparams() local 3222 close(fd); in init_mparams() 3399 u = u->fd; in do_check_tree() 3631 F = B->fd;\ 3635 B->fd = P;\ 3637 P->fd = F;\ 3656 B->fd = F;\ 3678 B->fd = F;\ 3777 R->fd = F;\ 4639 p = b->fd; in dlmalloc() [all …]
|