Lines Matching refs:reg_data
193 uint32_t reg_data; in spi_pw_tx_thld_set() local
196 reg_data = spi_pw_reg_read(dev, PW_SPI_REG_SITF); in spi_pw_tx_thld_set()
198 reg_data &= ~(PW_SPI_WM_MASK); in spi_pw_tx_thld_set()
200 reg_data &= ~(PW_SPI_WM_MASK << PW_SPI_SITF_LWMTF_SHIFT); in spi_pw_tx_thld_set()
201 reg_data |= (PW_SPI_SITF_HIGH_WM_DFLT | PW_SPI_SITF_LOW_WM_DFLT); in spi_pw_tx_thld_set()
202 spi_pw_reg_write(dev, PW_SPI_REG_SITF, reg_data); in spi_pw_tx_thld_set()
208 uint32_t reg_data; in spi_pw_rx_thld_set() local
211 reg_data = spi_pw_reg_read(dev, PW_SPI_REG_SIRF); in spi_pw_rx_thld_set()
212 reg_data &= (uint32_t) ~(PW_SPI_WM_MASK); in spi_pw_rx_thld_set()
213 reg_data |= PW_SPI_SIRF_WM_DFLT; in spi_pw_rx_thld_set()
215 reg_data = spi->ctx.rx_len - 1; in spi_pw_rx_thld_set()
217 spi_pw_reg_write(dev, PW_SPI_REG_SIRF, reg_data); in spi_pw_rx_thld_set()