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()
801 int chip_select; in atmel_spi_set_xfer_speed() local
804 chip_select = as->native_cs_for_gpio; in atmel_spi_set_xfer_speed()
806 chip_select = spi->chip_select; in atmel_spi_set_xfer_speed()
835 csr = spi_readl(as, CSR0 + 4 * chip_select); in atmel_spi_set_xfer_speed()
837 spi_writel(as, CSR0 + 4 * chip_select, csr); in atmel_spi_set_xfer_speed()
1186 int chip_select; in atmel_spi_setup() local
1211 chip_select = as->native_cs_for_gpio; in atmel_spi_setup()
1213 chip_select = spi->chip_select; in atmel_spi_setup()
1247 bits, spi->mode, spi->chip_select, csr); in atmel_spi_setup()
1250 spi_writel(as, CSR0 + 4 * chip_select, csr); in atmel_spi_setup()