Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 21 of 21) sorted by relevance

/lk-master/external/lib/lwip/include/lwip/
A Dnetdb.h102 size_t buflen, struct hostent **result, int *h_errnop);
111 #define gethostbyname_r(name, ret, buf, buflen, result, h_errnop) \ argument
112 lwip_gethostbyname_r(name, ret, buf, buflen, result, h_errnop)
/lk-master/app/moot/
A Dusbboot.c219 size_t buflen = sizeof(buffer); in handle_usb_cmd() local
220 snprintf((char *)buffer, buflen, "%s\n%s\n%s\n%s\n%s", in handle_usb_cmd()
225 resp->arg = strnlen((char *)buffer, buflen); in handle_usb_cmd()
311 .buflen = len, in usb_xmit()
327 .buflen = len, in usb_recv()
/lk-master/lib/fs/spifs/test/
A Dspifstest.c515 size_t buflen = 10013; in test_read_write_big() local
517 uint8_t *rbuf = malloc(buflen); in test_read_write_big()
522 uint8_t *wbuf = malloc(buflen); in test_read_write_big()
528 for (size_t i = 0; i < buflen; i++) { in test_read_write_big()
533 status_t status = fs_create_file(TEST_FILE_PATH, &handle, buflen); in test_read_write_big()
539 ssize_t bytes = fs_write_file(handle, wbuf, 0, buflen); in test_read_write_big()
540 if ((size_t)bytes != buflen) { in test_read_write_big()
545 bytes = fs_read_file(handle, rbuf, 0, buflen); in test_read_write_big()
546 if ((size_t)bytes != buflen) { in test_read_write_big()
551 for (size_t i = 0; i < buflen; i++) { in test_read_write_big()
/lk-master/dev/include/dev/
A Dusbc.h43 size_t buflen; member
74 … buf %p, buflen %zd, bufpos %u, result %d\n", t, t->callback, t->buf, t->buflen, t->bufpos, t->res… in usbc_dump_transfer()
/lk-master/external/lib/lwip/core/ipv4/
A Dip_addr.c276 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen) in ipaddr_ntoa_r() argument
299 if (len++ >= buflen) { in ipaddr_ntoa_r()
304 if (len++ >= buflen) { in ipaddr_ntoa_r()
/lk-master/external/lib/lwip/include/ipv4/lwip/
A Dinet.h101 #define inet_ntoa_r(addr, buf, buflen) ipaddr_ntoa_r((ip_addr_t*)&(addr), buf, buflen) argument
A Dip_addr.h238 char *ipaddr_ntoa_r(const ip_addr_t *addr, char *buf, int buflen);
/lk-master/lib/cbuf/
A Dcbuf.c110 size_t cbuf_read(cbuf_t *cbuf, void *_buf, size_t buflen, bool block) { in cbuf_read() argument
131 while (pos < buflen && cbuf->tail != cbuf->head) { in cbuf_read()
135 read_len = MIN(cbuf->head - cbuf->tail, buflen - pos); in cbuf_read()
138 read_len = MIN(valpow2(cbuf->len_pow2) - cbuf->tail, buflen - pos); in cbuf_read()
/lk-master/app/usbtest/
A Dusbtest.c34 rx.buflen = sizeof(rxbuf); in queue_rx_transfer()
58 tx.buflen = sizeof(txbuf); in queue_tx_transfer()
/lk-master/platform/stm32f7xx/
A Dusbc.c246 …TRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen); in usbc_queue_rx()
252 HAL_PCD_EP_Receive(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_rx()
258 …TRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen); in usbc_queue_tx()
264 HAL_PCD_EP_Transmit(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_tx()
/lk-master/dev/usb/class/bulktest/
A Dbulktest.c42 transfer.buflen = sizeof(buf); in queue_rx()
60 transfer.buflen = sizeof(buf); in queue_tx()
/lk-master/platform/stm32f0xx/
A Dusbc.c288 …TRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen); in usbc_queue_rx()
294 HAL_PCD_EP_Receive(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_rx()
300 …TRACEF("ep %u, transfer %p (buf %p, buflen %zu)\n", ep, transfer, transfer->buf, transfer->buflen); in usbc_queue_tx()
306 HAL_PCD_EP_Transmit(&usbc.handle, ep, transfer->buf, transfer->buflen); in usbc_queue_tx()
/lk-master/target/nucleo-f072rb/
A Dusb.c125 transfer.buflen = sizeof(buf); in queue_rx()
143 transfer.buflen = sizeof(buf); in queue_tx()
/lk-master/lib/cbuf/include/lib/
A Dcbuf.h65 size_t cbuf_read(cbuf_t *cbuf, void *buf, size_t buflen, bool block);
/lk-master/lib/console/
A Dconsole.c377 …(const char *inbuffer, const char **continuebuffer, char *buffer, size_t buflen, console_cmd_args … in tokenize_command() argument
511 int rc = env_get(varname, &buffer[outpos], buflen - outpos); in tokenize_command()
720 size_t buflen; member
736 if (bufpos == (lineread->buflen - 1)) in fetch_next_line()
755 lineread.buflen = LINE_LEN; in console_run_script_etc()
/lk-master/lib/sysparam/
A Dsysparam.c557 ssize_t buflen = 64; in cmd_sysparam() local
559 str = malloc(buflen + 1); in cmd_sysparam()
576 if (len == buflen) { in cmd_sysparam()
577 buflen *= 2; in cmd_sysparam()
579 str = realloc(str, buflen + 1); in cmd_sysparam()
/lk-master/dev/usb/class/cdcserial/
A Dcdcserial.c247 transfer->buflen = len; in cdcserial_write_async()
282 transfer->buflen = len; in cdcserial_read_async()
/lk-master/external/lib/lwip/api/
A Dnetdb.c163 size_t buflen, struct hostent **result, int *h_errnop) in lwip_gethostbyname_r() argument
190 if (buflen < (sizeof(struct gethostbyname_r_helper) + namelen + 1 + (MEM_ALIGNMENT - 1))) { in lwip_gethostbyname_r()
A Dsockets.c563 u16_t buflen, copylen; in lwip_recvfrom() local
634 buflen = p->tot_len; in lwip_recvfrom()
636 buflen, len, off, sock->lastoffset)); in lwip_recvfrom()
638 buflen -= sock->lastoffset; in lwip_recvfrom()
640 if (len > buflen) { in lwip_recvfrom()
641 copylen = buflen; in lwip_recvfrom()
716 if ((netconn_type(sock->conn) == NETCONN_TCP) && (buflen - copylen > 0)) { in lwip_recvfrom()
2286 u16_t buflen = 0; local
2314 buflen = p->tot_len;
2315 buflen -= sock->lastoffset;
[all …]
/lk-master/external/lib/fdt/
A Dfdt_ro.c540 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) in fdt_get_path() argument
548 if (buflen < 2) in fdt_get_path()
565 if ((p + namelen + 1) <= buflen) { in fdt_get_path()
/lk-master/external/lib/fdt/include/
A Dlibfdt.h860 int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen);

Completed in 51 milliseconds