Lines Matching refs:settings

39 	u16 settings;  member
85 u16 settings; in spi_xcomm_sync_config() local
88 settings = spi_xcomm->settings; in spi_xcomm_sync_config()
89 settings |= len << SPI_XCOMM_SETTINGS_LEN_OFFSET; in spi_xcomm_sync_config()
92 put_unaligned_be16(settings, &buf[1]); in spi_xcomm_sync_config()
114 unsigned int *settings) in spi_xcomm_setup_transfer() argument
124 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_64; in spi_xcomm_setup_transfer()
126 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_16; in spi_xcomm_setup_transfer()
128 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_4; in spi_xcomm_setup_transfer()
134 *settings |= SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer()
136 *settings &= ~SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer()
139 *settings &= ~SPI_XCOMM_SETTINGS_CPHA; in spi_xcomm_setup_transfer()
141 *settings |= SPI_XCOMM_SETTINGS_CPHA; in spi_xcomm_setup_transfer()
144 *settings |= SPI_XCOMM_SETTINGS_3WIRE; in spi_xcomm_setup_transfer()
146 *settings &= ~SPI_XCOMM_SETTINGS_3WIRE; in spi_xcomm_setup_transfer()
180 unsigned int settings = spi_xcomm->settings; in spi_xcomm_transfer_one() local
196 status = spi_xcomm_setup_transfer(spi_xcomm, spi, t, &settings); in spi_xcomm_transfer_one()
204 settings |= BIT(5); in spi_xcomm_transfer_one()
206 settings &= ~BIT(5); in spi_xcomm_transfer_one()
209 spi_xcomm->settings = settings; in spi_xcomm_transfer_one()
213 } else if (settings != spi_xcomm->settings || is_first) { in spi_xcomm_transfer_one()
214 spi_xcomm->settings = settings; in spi_xcomm_transfer_one()