Lines Matching refs:p_spi

220     NRF_SPI_Type * p_spi = p_instance->p_reg;  in nrfx_spi_uninit()  local
227 nrf_spi_int_disable(p_spi, NRF_SPI_ALL_INTS_MASK); in nrfx_spi_uninit()
230 nrf_spi_disable(p_spi); in nrfx_spi_uninit()
234 nrf_gpio_cfg_default(nrf_spi_sck_pin_get(p_spi)); in nrfx_spi_uninit()
236 uint32_t miso_pin = nrf_spi_miso_pin_get(p_spi); in nrfx_spi_uninit()
242 uint32_t mosi_pin = nrf_spi_mosi_pin_get(p_spi); in nrfx_spi_uninit()
289 static bool transfer_byte(NRF_SPI_Type * p_spi, spi_control_block_t * p_cb) in transfer_byte() argument
294 volatile uint8_t rx_data = nrf_spi_rxd_get(p_spi); in transfer_byte()
325 nrf_spi_txd_set(p_spi, p_cb->evt.xfer_desc.p_tx_buffer[bytes_used]); in transfer_byte()
330 nrf_spi_txd_set(p_spi, p_cb->orc); in transfer_byte()
338 static void spi_xfer(NRF_SPI_Type * p_spi, in spi_xfer() argument
343 nrf_spi_int_disable(p_spi, NRF_SPI_INT_READY_MASK); in spi_xfer()
345 nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY); in spi_xfer()
350 nrf_spi_txd_set(p_spi, in spi_xfer()
359 nrf_spi_txd_set(p_spi, p_xfer_desc->p_tx_buffer[1]); in spi_xfer()
363 nrf_spi_txd_set(p_spi, p_cb->orc); in spi_xfer()
373 nrf_spi_int_enable(p_spi, NRF_SPI_INT_READY_MASK); in spi_xfer()
378 while (!nrf_spi_event_check(p_spi, NRF_SPI_EVENT_READY)) {} in spi_xfer()
379 nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY); in spi_xfer()
381 } while (transfer_byte(p_spi, p_cb)); in spi_xfer()
448 static void irq_handler(NRF_SPI_Type * p_spi, spi_control_block_t * p_cb) in irq_handler() argument
452 nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY); in irq_handler()
455 if (!transfer_byte(p_spi, p_cb)) in irq_handler()