Home
last modified time | relevance | path

Searched refs:buf (Results 26 – 48 of 48) sorted by relevance

12

/lib/liblwip/src/api/
Dsockets.c561 void *buf = NULL; in lwip_recvfrom() local
580 buf = sock->lastdata; in lwip_recvfrom()
600 err = netconn_recv_tcp_pbuf(sock->conn, (struct pbuf **)&buf); in lwip_recvfrom()
602 err = netconn_recv(sock->conn, (struct netbuf **)&buf); in lwip_recvfrom()
605 err, buf)); in lwip_recvfrom()
625 LWIP_ASSERT("buf != NULL", buf != NULL); in lwip_recvfrom()
626 sock->lastdata = buf; in lwip_recvfrom()
630 p = (struct pbuf *)buf; in lwip_recvfrom()
632 p = ((struct netbuf *)buf)->p; in lwip_recvfrom()
675 addr = netbuf_fromaddr((struct netbuf *)buf); in lwip_recvfrom()
[all …]
Dapi_msg.c82 struct netbuf *buf; in recv_raw() local
107 buf = (struct netbuf *)memp_malloc(MEMP_NETBUF); in recv_raw()
108 if (buf == NULL) { in recv_raw()
113 buf->p = q; in recv_raw()
114 buf->ptr = q; in recv_raw()
115 ip_addr_copy(buf->addr, *ip_current_src_addr()); in recv_raw()
116 buf->port = pcb->protocol; in recv_raw()
119 if (sys_mbox_trypost(&conn->recvmbox, buf) != ERR_OK) { in recv_raw()
120 netbuf_delete(buf); in recv_raw()
147 struct netbuf *buf; local
[all …]
Dnetdb.c162 lwip_gethostbyname_r(const char *name, struct hostent *ret, char *buf, in lwip_gethostbyname_r() argument
183 if ((name == NULL) || (ret == NULL) || (buf == NULL)) { in lwip_gethostbyname_r()
196 h = (struct gethostbyname_r_helper*)LWIP_MEM_ALIGN(buf); in lwip_gethostbyname_r()
/include/
Dtime.h20 char *asctime_r(const struct tm *tm, char *buf);
22 char *ctime_r(const time_t *timep, char *buf);
Dstdio.h30 size_t fread(void *buf, size_t size, size_t nmemb, FILE *fh);
31 size_t fwrite(const void *buf, size_t size, size_t nmemb, FILE *fh);
Dstdlib.h17 void free(void *buf);
Dsyscall.h30 int OSReadDir(uint64_t fd, char *buf, size_t length, uint64_t *offset);
/sys/kern/
Dprintf.c35 char buf[64]; in printnum() local
36 char *p = buf; in printnum()
53 spaces = width - (p - buf); in printnum()
63 while (p != buf) { in printnum()
Dloader.c131 Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len) in Loader_Load() argument
138 ehdr = (const Elf64_Ehdr *)(buf); in Loader_Load()
139 phdr = (const Elf64_Phdr *)(buf + ehdr->e_phoff); in Loader_Load()
Ddebug.c253 char buf[DEBUG_MAX_LINE]; in Debug_Prompt() local
266 Console_Gets((char *)&buf, DEBUG_MAX_LINE); in Debug_Prompt()
269 nextArg = strtok_r(buf, " \t\r\n", &last); in Debug_Prompt()
/lib/liblwip/src/core/ipv4/
Dip_addr.c276 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen) in ipaddr_ntoa_r() argument
289 rp = buf; in ipaddr_ntoa_r()
311 return buf; in ipaddr_ntoa_r()
Dip_frag.c618 static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU + MEM_ALIGNMENT - 1)]; variable
703 rambuf->payload = LWIP_MEM_ALIGN((void *)buf); in ip_frag()
/lib/liblwip/src/include/ipv4/lwip/
Dinet.h101 #define inet_ntoa_r(addr, buf, buflen) ipaddr_ntoa_r((ip_addr_t*)&(addr), buf, buflen) argument
Dip_addr.h238 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen);
/sys/include/
Dloader.h8 bool Loader_Load(Thread *thr, VNode *vn, void *buf, uint64_t len);
/lib/liblwip/src/netif/ppp/
Drandm.h73 void avGenRand(char *buf, u32_t bufLen);
Dmd5.h46 u32_t buf[4]; /* scratch buffer */ member
/lib/liblwip/src/core/
Dpbuf.c918 pbuf_copy_partial(struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) in pbuf_copy_partial() argument
925 LWIP_ERROR("pbuf_copy_partial: invalid buf", (buf != NULL), return 0;); in pbuf_copy_partial()
930 if((buf == NULL) || (dataptr == NULL)) { in pbuf_copy_partial()
935 for(p = buf; len != 0 && p != NULL; p = p->next) { in pbuf_copy_partial()
966 pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len) in pbuf_take() argument
973 LWIP_ERROR("pbuf_take: invalid buf", (buf != NULL), return 0;); in pbuf_take()
976 if ((buf == NULL) || (dataptr == NULL) || (buf->tot_len < len)) { in pbuf_take()
981 for(p = buf; total_copy_len != 0; p = p->next) { in pbuf_take()
/sbin/newfs_o2fs/
Dnewfs_o2fs.c96 FlushBlock(uint64_t offset, const void *buf, size_t len) in FlushBlock() argument
101 pwrite(diskfd, buf, len, offset); in FlushBlock()
109 AppendBlock(const void *buf, size_t len) in AppendBlock() argument
113 FlushBlock(offset, buf, len); in AppendBlock()
/lib/libc/
Dsyscall.c95 OSReadDir(uint64_t fd, char *buf, size_t length, uint64_t *offset) in OSReadDir() argument
97 return syscall(SYSCALL_READDIR, fd, buf, length, offset); in OSReadDir()
/lib/liblwip/src/include/lwip/
Dapi.h235 err_t netconn_sendto(struct netconn *conn, struct netbuf *buf,
237 err_t netconn_send(struct netconn *conn, struct netbuf *buf);
Dpbuf.h162 err_t pbuf_take(struct pbuf *buf, const void *dataptr, u16_t len);
/sys/dev/
De1000.c162 RXPOOL_Free(void *buf) in RXPOOL_Free() argument
164 Slab_Free(&rxPool, buf); in RXPOOL_Free()

12