Lines Matching refs:p_buffer
481 p_cb->tx.cache.p_buffer = p_config->tx_cache.p_buffer; in nrfx_uarte_init()
492 p_cb->rx.flush.p_buffer = p_config->rx_cache.p_buffer; in nrfx_uarte_init()
509 p_cb->rx.p_cache->cache[0].p_buffer = in nrfx_uarte_init()
510 &p_config->rx_cache.p_buffer[UARTE_HW_RX_FIFO_SIZE]; in nrfx_uarte_init()
511 p_cb->rx.p_cache->cache[1].p_buffer = in nrfx_uarte_init()
512 &p_config->rx_cache.p_buffer[UARTE_HW_RX_FIFO_SIZE + buf_len]; in nrfx_uarte_init()
754 if (p_cb->tx.cache.p_buffer == NULL) 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()
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()
838 uint8_t const * p_buffer, in blocking_tx() argument
846 if ((early_ret && !p_cb->tx.cache.p_buffer) || (p_cb->flags & UARTE_FLAG_TX_LINKED)) in blocking_tx()
854 err = poll_out(p_instance, &p_buffer[i], early_ret); in blocking_tx()
926 if (!p_cb->tx.cache.p_buffer || in nrfx_uarte_tx()
961 p_cb->tx.curr.p_buffer = (uint8_t *)p_data; 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()
1113 .p_buffer = (uint8_t *)p_data, in user_handler_on_rx_done()
1140 .p_buffer = (uint8_t *)p_data, in user_handler_on_tx_done()
1187 p_cb->rx.curr.p_buffer = NULL; in on_rx_disabled()
1188 p_cb->rx.next.p_buffer = NULL; in on_rx_disabled()
1206 else if (!p_cache->user[0].p_buffer) in handler_on_rx_done()
1211 memcpy(&p_cache->user[0].p_buffer[p_cache->received], p_data, len); in handler_on_rx_done()
1218 uint8_t *p_buf = p_cache->user[0].p_buffer; in handler_on_rx_done()
1245 uint8_t * p_buf = p_cb->rx.curr.p_buffer; in rx_flushed_handler()
1248 p_cb->rx.curr.p_buffer = NULL; in rx_flushed_handler()
1250 memcpy(p_buf, p_cb->rx.flush.p_buffer, len); in rx_flushed_handler()
1252 memmove(p_cb->rx.flush.p_buffer, &p_cb->rx.flush.p_buffer[len], p_cb->rx.flush.length); in rx_flushed_handler()
1274 memcpy(p_cb->rx.curr.p_buffer, p_cb->rx.flush.p_buffer, p_cb->rx.flush.length); in rx_flushed_handler()
1295 if ((flags & NRFX_UARTE_RX_ENABLE_KEEP_FIFO_CONTENT) && !p_cb->rx.flush.p_buffer) in nrfx_uarte_rx_enable()
1313 if ((p_cb->rx.curr.p_buffer == NULL) && p_cb->handler) in nrfx_uarte_rx_enable()
1319 if (p_cb->rx.curr.p_buffer == NULL) in nrfx_uarte_rx_enable()
1365 if (p_cb->rx.curr.p_buffer == NULL || in rx_buffer_set()
1368 if (p_cb->rx.curr.p_buffer) in rx_buffer_set()
1373 p_cb->rx.curr.p_buffer = p_data; in rx_buffer_set()
1379 &p_cb->rx.curr.p_buffer[p_cb->rx.off], in rx_buffer_set()
1392 else if (p_cb->rx.next.p_buffer == NULL) in rx_buffer_set()
1394 p_cb->rx.next.p_buffer = p_data; in rx_buffer_set()
1473 if (!p_cache->user[0].p_buffer) in nrfx_uarte_rx_buffer_set()
1477 p_cache->user[0].p_buffer = p_data; in nrfx_uarte_rx_buffer_set()
1479 p_data = p_cache->cache[0].p_buffer; in nrfx_uarte_rx_buffer_set()
1486 else if (!p_cache->user[1].p_buffer) in nrfx_uarte_rx_buffer_set()
1488 p_cache->user[1].p_buffer = p_data; in nrfx_uarte_rx_buffer_set()
1491 if (!p_cb->rx.next.p_buffer) in nrfx_uarte_rx_buffer_set()
1494 p_data = p_cache->cache[p_cache->idx++ & 0x1].p_buffer; in nrfx_uarte_rx_buffer_set()
1541 nrfy_uarte_rx_buffer_set(p_uarte, p_cb->rx.flush.p_buffer, UARTE_HW_RX_FIFO_SIZE); in rx_flush()
1578 p_cb->rx.curr.p_buffer = NULL; in wait_for_rx_completion()
1579 p_cb->rx.next.p_buffer = NULL; in wait_for_rx_completion()
1786 if ((p_cb->rx.curr.p_buffer != NULL) && (p_cb->rx.next.p_buffer != NULL)) in rxstarted_irq_handler()
1802 uint8_t * p_buf = p_cache->cache[p_cache->idx++ & 0x1].p_buffer; in rxstarted_irq_handler()
1819 if (p_cb->rx.curr.p_buffer) in rxto_irq_handler()
1821 handler_on_rx_done(p_cb, p_cb->rx.curr.p_buffer, 0, true); in rxto_irq_handler()
1822 p_cb->rx.curr.p_buffer = NULL; in rxto_irq_handler()
1845 uint8_t *p_buf = p_cb->rx.curr.p_buffer; in endrx_irq_handler()
1861 else if (p_cb->rx.curr.p_buffer == NULL) in endrx_irq_handler()
1906 NRFX_ASSERT(p_tx->next.p_buffer); in pending_tx_handler()
1912 p_tx->curr.p_buffer = p_tx->next.p_buffer; in pending_tx_handler()
1913 p_tx->next.p_buffer = NULL; in pending_tx_handler()
1915 tx_start(p_uarte, p_tx->curr.p_buffer, p_tx->curr.length, true); in pending_tx_handler()
1938 if (p_cb->tx.curr.p_buffer == NULL) in txstopped_irq_handler()
1951 use_cache = !nrf_dma_accessible_check(p_uarte, p_cb->tx.curr.p_buffer); 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()
2008 p_cb->tx.next.p_buffer = NULL; in endtx_irq_handler()