Lines Matching refs:tx
173 uarte_tx_data_t tx; member
481 p_cb->tx.cache.p_buffer = p_config->tx_cache.p_buffer; in nrfx_uarte_init()
484 p_cb->tx.cache.length = 0; in nrfx_uarte_init()
488 p_cb->tx.cache.length = p_config->tx_cache.length - 1; in nrfx_uarte_init()
754 if (p_cb->tx.cache.p_buffer == NULL) in poll_out()
772 if (p_cb->tx.amount < 0) in poll_out()
774 p_cb->tx.amount = (int)nrfy_uarte_tx_amount_get(p_uarte); in poll_out()
779 p_cb->tx.cache.p_buffer[p_cb->tx.cache.length] = *p_byte; in poll_out()
780 p_buf = &p_cb->tx.cache.p_buffer[p_cb->tx.cache.length]; in poll_out()
820 uint32_t chunk_len = NRFX_MIN(p_cb->tx.cache.length, p_cb->tx.curr.length - p_cb->tx.off); in tx_prepare_start()
822 memcpy(p_cb->tx.cache.p_buffer, &p_cb->tx.curr.p_buffer[p_cb->tx.off], chunk_len); in tx_prepare_start()
823 p_buf = p_cb->tx.cache.p_buffer; in tx_prepare_start()
828 p_buf = p_cb->tx.curr.p_buffer; in tx_prepare_start()
829 xfer_len = p_cb->tx.curr.length; in tx_prepare_start()
831 p_cb->tx.amount = -1; in tx_prepare_start()
846 if ((early_ret && !p_cb->tx.cache.p_buffer) || (p_cb->flags & UARTE_FLAG_TX_LINKED)) in blocking_tx()
902 if (p_cb->tx.curr.length == 0) in nrfx_uarte_tx()
904 p_cb->tx.curr.length = length; in nrfx_uarte_tx()
912 p_cb->tx.curr.length = 0; in nrfx_uarte_tx()
926 if (!p_cb->tx.cache.p_buffer || in nrfx_uarte_tx()
952 if (p_cb->tx.curr.length == 0) in nrfx_uarte_tx()
954 p_cb->tx.curr.length = length; in nrfx_uarte_tx()
961 p_cb->tx.curr.p_buffer = (uint8_t *)p_data; in nrfx_uarte_tx()
975 !p_cb->tx.next.length && (flags & NRFX_UARTE_TX_LINK)) in nrfx_uarte_tx()
977 if (nrf_dma_accessible_check(p_uarte, p_cb->tx.curr.p_buffer)) in nrfx_uarte_tx()
988 p_cb->tx.next.p_buffer = (uint8_t *)p_data; in nrfx_uarte_tx()
994 p_cb->tx.next.length = length; in nrfx_uarte_tx()
1029 return (m_cb[p_instance->drv_inst_idx].tx.curr.length != 0); in nrfx_uarte_tx_in_progress()
1039 if (p_cb->tx.curr.length == 0) in nrfx_uarte_tx_abort()
1053 p_cb->tx.curr.length = 0; in nrfx_uarte_tx_abort()
1139 .tx = { in user_handler_on_tx_done()
1931 if (p_cb->tx.curr.length == 0) in txstopped_irq_handler()
1938 if (p_cb->tx.curr.p_buffer == NULL) in txstopped_irq_handler()
1940 pending_tx_handler(p_uarte, &p_cb->tx); in txstopped_irq_handler()
1951 use_cache = !nrf_dma_accessible_check(p_uarte, p_cb->tx.curr.p_buffer); in txstopped_irq_handler()
1955 amount = p_cb->tx.amount >= 0 ? (size_t)p_cb->tx.amount : nrfy_uarte_tx_amount_get(p_uarte); in txstopped_irq_handler()
1960 p_cb->tx.off += amount; in txstopped_irq_handler()
1961 if (p_cb->tx.off == p_cb->tx.curr.length || aborted) in txstopped_irq_handler()
1963 uint32_t off = p_cb->tx.off; in txstopped_irq_handler()
1967 p_cb->tx.curr.length = 0; in txstopped_irq_handler()
1968 p_cb->tx.off = 0; in txstopped_irq_handler()
1969 user_handler_on_tx_done(p_cb, p_cb->tx.curr.p_buffer, off, aborted); in txstopped_irq_handler()
1990 uint8_t const * p_buf = p_cb->tx.curr.p_buffer; in endtx_irq_handler()
1991 uint32_t len = p_cb->tx.curr.length; in endtx_irq_handler()
2006 p_cb->tx.curr = p_cb->tx.next; in endtx_irq_handler()
2007 p_cb->tx.next.length = 0; in endtx_irq_handler()
2008 p_cb->tx.next.p_buffer = NULL; in endtx_irq_handler()
2015 p_cb->tx.amount = 0; in endtx_irq_handler()