Home
last modified time | relevance | path

Searched refs:iget (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dringbuf.h39 uint16_t iget; member
52 (r)->iget = (r)->iput = 0; \
56 if (r->iget == r->iput) { in ringbuf_get()
59 uint8_t v = r->buf[r->iget++]; in ringbuf_get()
60 if (r->iget >= r->size) { in ringbuf_get()
61 r->iget = 0; in ringbuf_get()
67 if (r->iget == r->iput) { in ringbuf_peek()
70 return r->buf[r->iget]; in ringbuf_peek()
78 if (iput_new == r->iget) { in ringbuf_put()
87 return (r->size + r->iget - r->iput - 1) % r->size; in ringbuf_free()
[all …]
A Dringbuf.c33 r->iget += 2; in ringbuf_get16()
34 if (r->iget >= r->size) { in ringbuf_get16()
35 r->iget -= r->size; in ringbuf_get16()
41 if (r->iget == r->iput) { in ringbuf_peek16()
44 uint32_t iget_a = r->iget + 1; in ringbuf_peek16()
51 return (r->buf[r->iget] << 8) | (r->buf[iget_a]); in ringbuf_peek16()
59 if (iput_a == r->iget) { in ringbuf_put16()
66 if (iput_b == r->iget) { in ringbuf_put16()
/AliOS-Things-master/components/py_engine/adapter/haas/
A Dmpstdinport.c126 stdin_ringbuf.iget = 0; in mp_stdin_deinit()
A Dmphalport.c31 stdin_ringbuf.iget != stdin_ringbuf.iput) { in mp_hal_stdio_poll()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodlwip.c289 uint8_t iget; member
441 uint8_t i = socket->incoming.connection.iget; in _lwip_tcp_err_unaccepted()
939 socket->incoming.connection.iget = 0; in lwip_socket_listen()
980 …atile *incoming_connection = &lwip_socket_incoming_array(socket)[socket->incoming.connection.iget]; in lwip_socket_accept()
1008 if (++socket->incoming.connection.iget >= socket->incoming.connection.alloc) { in lwip_socket_accept()
1009 socket->incoming.connection.iget = 0; in lwip_socket_accept()
1452 if (lwip_socket_incoming_array(socket)[socket->incoming.connection.iget] != NULL) { in lwip_socket_ioctl()
A Dmodbluetooth.c368 self->ringbuf.iget = 0; in bluetooth_ble_config()
/AliOS-Things-master/components/py_engine/adapter/haas510/
A Dmphalport.c132 if ((poll_flags & MP_STREAM_POLL_RD) && stdin_ringbuf.iget != stdin_ringbuf.iput) { in mp_hal_stdio_poll()
/AliOS-Things-master/components/py_engine/adapter/haas600/
A Dmphalport.c132 if ((poll_flags & MP_STREAM_POLL_RD) && stdin_ringbuf.iget != stdin_ringbuf.iput) { in mp_hal_stdio_poll()

Completed in 14 milliseconds