• Home
  • Raw
  • Download

Lines Matching full:settings

35 	uint16_t settings;  member
45 uint16_t settings; in spi_xcomm_sync_config() local
48 settings = spi_xcomm->settings; in spi_xcomm_sync_config()
49 settings |= len << SPI_XCOMM_SETTINGS_LEN_OFFSET; in spi_xcomm_sync_config()
52 put_unaligned_be16(settings, &buf[1]); in spi_xcomm_sync_config()
73 struct spi_device *spi, struct spi_transfer *t, unsigned int *settings) in spi_xcomm_setup_transfer() argument
83 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_64; in spi_xcomm_setup_transfer()
85 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_16; in spi_xcomm_setup_transfer()
87 *settings |= SPI_XCOMM_SETTINGS_CLOCK_DIV_4; in spi_xcomm_setup_transfer()
93 *settings |= SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer()
95 *settings &= ~SPI_XCOMM_SETTINGS_CPOL; in spi_xcomm_setup_transfer()
98 *settings &= ~SPI_XCOMM_SETTINGS_CPHA; in spi_xcomm_setup_transfer()
100 *settings |= SPI_XCOMM_SETTINGS_CPHA; in spi_xcomm_setup_transfer()
103 *settings |= SPI_XCOMM_SETTINGS_3WIRE; in spi_xcomm_setup_transfer()
105 *settings &= ~SPI_XCOMM_SETTINGS_3WIRE; in spi_xcomm_setup_transfer()
139 unsigned int settings = spi_xcomm->settings; in spi_xcomm_transfer_one() local
156 status = spi_xcomm_setup_transfer(spi_xcomm, spi, t, &settings); in spi_xcomm_transfer_one()
164 settings |= BIT(5); in spi_xcomm_transfer_one()
166 settings &= ~BIT(5); in spi_xcomm_transfer_one()
169 spi_xcomm->settings = settings; in spi_xcomm_transfer_one()
173 } else if (settings != spi_xcomm->settings || is_first) { in spi_xcomm_transfer_one()
174 spi_xcomm->settings = settings; in spi_xcomm_transfer_one()