Lines Matching refs:cnt
360 const void *data, size_t length, size_t *cnt) in polling_write() argument
368 *cnt = length; in polling_write()
376 const void *data, size_t length, size_t *cnt) in irq_write() argument
378 *cnt = ring_buf_put(&sh_uart->tx_ringbuf, data, length); in irq_write()
388 const void *data, size_t length, size_t *cnt) in async_write() argument
394 *cnt = 0; in async_write()
399 *cnt = length; in async_write()
407 const void *data, size_t length, size_t *cnt) in write_uart() argument
412 return polling_write(sh_uart, data, length, cnt); in write_uart()
414 return irq_write((struct shell_uart_int_driven *)transport->ctx, data, length, cnt); in write_uart()
416 return async_write((struct shell_uart_async *)transport->ctx, data, length, cnt); in write_uart()
421 void *data, size_t length, size_t *cnt) in irq_read() argument
423 *cnt = ring_buf_get(&sh_uart->rx_ringbuf, data, length); in irq_read()
429 void *data, size_t length, size_t *cnt) in polling_read() argument
431 *cnt = ring_buf_get(&sh_uart->rx_ringbuf, data, length); in polling_read()
437 void *data, size_t length, size_t *cnt) in async_read() argument
459 *cnt = sh_cnt; in async_read()
484 void *data, size_t length, size_t *cnt) in read_uart() argument
487 return irq_read((struct shell_uart_int_driven *)transport->ctx, data, length, cnt); in read_uart()
489 return async_read((struct shell_uart_async *)transport->ctx, data, length, cnt); in read_uart()
491 return polling_read((struct shell_uart_polling *)transport->ctx, data, length, cnt); in read_uart()