Lines Matching refs:cs

126 	u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);  in bcm2835_spi_reset_hw()  local
129 cs &= ~(BCM2835_SPI_CS_INTR | in bcm2835_spi_reset_hw()
133 cs |= BCM2835_SPI_CS_CLEAR_RX | BCM2835_SPI_CS_CLEAR_TX; in bcm2835_spi_reset_hw()
136 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_reset_hw()
163 u32 cs, in bcm2835_spi_transfer_one_poll() argument
171 bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_TA); in bcm2835_spi_transfer_one_poll()
199 u32 cs) in bcm2835_spi_transfer_one_irq() argument
214 cs | BCM2835_SPI_CS_TA); in bcm2835_spi_transfer_one_irq()
225 cs |= BCM2835_SPI_CS_INTR | BCM2835_SPI_CS_INTD | BCM2835_SPI_CS_TA; in bcm2835_spi_transfer_one_irq()
226 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_transfer_one_irq()
239 u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS); in bcm2835_spi_transfer_one() local
262 cs |= BCM2835_SPI_CS_REN; in bcm2835_spi_transfer_one()
264 cs &= ~BCM2835_SPI_CS_REN; in bcm2835_spi_transfer_one()
271 cs |= BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01; in bcm2835_spi_transfer_one()
287 cs, xfer_time_us); in bcm2835_spi_transfer_one()
289 return bcm2835_spi_transfer_one_irq(master, spi, tfr, cs); in bcm2835_spi_transfer_one()
297 u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS); in bcm2835_spi_prepare_message() local
299 cs &= ~(BCM2835_SPI_CS_CPOL | BCM2835_SPI_CS_CPHA); in bcm2835_spi_prepare_message()
302 cs |= BCM2835_SPI_CS_CPOL; in bcm2835_spi_prepare_message()
304 cs |= BCM2835_SPI_CS_CPHA; in bcm2835_spi_prepare_message()
306 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_prepare_message()
331 u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS); in bcm2835_spi_set_cs() local
340 cs |= BCM2835_SPI_CS_CSPOL; in bcm2835_spi_set_cs()
341 cs |= BCM2835_SPI_CS_CSPOL0 << spi->chip_select; in bcm2835_spi_set_cs()
344 cs &= ~BCM2835_SPI_CS_CSPOL; in bcm2835_spi_set_cs()
345 cs &= ~(BCM2835_SPI_CS_CSPOL0 << spi->chip_select); in bcm2835_spi_set_cs()
353 cs |= BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01; in bcm2835_spi_set_cs()
356 cs &= ~(BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01); in bcm2835_spi_set_cs()
357 cs |= spi->chip_select; in bcm2835_spi_set_cs()
361 cs &= ~BCM2835_SPI_CS_CSPOL; in bcm2835_spi_set_cs()
363 cs |= BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01; in bcm2835_spi_set_cs()
367 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_set_cs()