Lines Matching refs:chip_select
327 int chip_select; in cs_activate() local
331 chip_select = as->native_cs_for_gpio; in cs_activate()
333 chip_select = spi->chip_select; in cs_activate()
336 spi_writel(as, CSR0 + 4 * chip_select, asd->csr); in cs_activate()
343 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate()
349 SPI_BF(PCS, ~(0x01 << chip_select)) in cs_activate()
369 mr = SPI_BFINS(PCS, ~(1 << chip_select), mr); in cs_activate()
378 int chip_select; in cs_deactivate() local
382 chip_select = as->native_cs_for_gpio; in cs_deactivate()
384 chip_select = spi->chip_select; in cs_deactivate()
390 if (~SPI_BFEXT(PCS, mr) & (1 << chip_select)) { in cs_deactivate()
807 int chip_select; in atmel_spi_set_xfer_speed() local
810 chip_select = as->native_cs_for_gpio; in atmel_spi_set_xfer_speed()
812 chip_select = spi->chip_select; in atmel_spi_set_xfer_speed()
841 csr = spi_readl(as, CSR0 + 4 * chip_select); in atmel_spi_set_xfer_speed()
843 spi_writel(as, CSR0 + 4 * chip_select, csr); in atmel_spi_set_xfer_speed()
1192 int chip_select; in atmel_spi_setup() local
1217 chip_select = as->native_cs_for_gpio; in atmel_spi_setup()
1219 chip_select = spi->chip_select; in atmel_spi_setup()
1253 bits, spi->mode, spi->chip_select, csr); in atmel_spi_setup()
1256 spi_writel(as, CSR0 + 4 * chip_select, csr); in atmel_spi_setup()