Lines Matching refs:cnt

359 			 const void *data, size_t length, size_t *cnt)  in polling_write()  argument
367 *cnt = length; in polling_write()
375 const void *data, size_t length, size_t *cnt) in irq_write() argument
377 *cnt = ring_buf_put(&sh_uart->tx_ringbuf, data, length); in irq_write()
387 const void *data, size_t length, size_t *cnt) in async_write() argument
393 *cnt = 0; in async_write()
398 *cnt = length; in async_write()
406 const void *data, size_t length, size_t *cnt) in write_uart() argument
411 return polling_write(sh_uart, data, length, cnt); in write_uart()
413 return irq_write((struct shell_uart_int_driven *)transport->ctx, data, length, cnt); in write_uart()
415 return async_write((struct shell_uart_async *)transport->ctx, data, length, cnt); in write_uart()
420 void *data, size_t length, size_t *cnt) in irq_read() argument
422 *cnt = ring_buf_get(&sh_uart->rx_ringbuf, data, length); in irq_read()
428 void *data, size_t length, size_t *cnt) in polling_read() argument
430 *cnt = ring_buf_get(&sh_uart->rx_ringbuf, data, length); in polling_read()
436 void *data, size_t length, size_t *cnt) in async_read() argument
458 *cnt = sh_cnt; in async_read()
483 void *data, size_t length, size_t *cnt) in read_uart() argument
486 return irq_read((struct shell_uart_int_driven *)transport->ctx, data, length, cnt); in read_uart()
488 return async_read((struct shell_uart_async *)transport->ctx, data, length, cnt); in read_uart()
490 return polling_read((struct shell_uart_polling *)transport->ctx, data, length, cnt); in read_uart()