Lines Matching refs:cs

132 	u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS);  in bcm2835_spi_reset_hw()  local
135 cs &= ~(BCM2835_SPI_CS_INTR | in bcm2835_spi_reset_hw()
140 cs |= BCM2835_SPI_CS_CLEAR_RX | BCM2835_SPI_CS_CLEAR_TX; in bcm2835_spi_reset_hw()
143 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_reset_hw()
172 u32 cs) in bcm2835_spi_transfer_one_irq() argument
187 cs | BCM2835_SPI_CS_TA); in bcm2835_spi_transfer_one_irq()
198 cs |= BCM2835_SPI_CS_INTR | BCM2835_SPI_CS_INTD | BCM2835_SPI_CS_TA; in bcm2835_spi_transfer_one_irq()
199 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_transfer_one_irq()
306 u32 cs) in bcm2835_spi_transfer_one_dma() argument
316 return bcm2835_spi_transfer_one_irq(master, spi, tfr, cs); in bcm2835_spi_transfer_one_dma()
335 cs | BCM2835_SPI_CS_TA | BCM2835_SPI_CS_DMAEN); in bcm2835_spi_transfer_one_dma()
482 u32 cs, in bcm2835_spi_transfer_one_poll() argument
489 bcm2835_wr(bs, BCM2835_SPI_CS, cs | BCM2835_SPI_CS_TA); in bcm2835_spi_transfer_one_poll()
518 tfr, cs); in bcm2835_spi_transfer_one_poll()
536 u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS); in bcm2835_spi_transfer_one() local
559 cs |= BCM2835_SPI_CS_REN; in bcm2835_spi_transfer_one()
561 cs &= ~BCM2835_SPI_CS_REN; in bcm2835_spi_transfer_one()
568 cs |= BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01; in bcm2835_spi_transfer_one()
585 cs, xfer_time_us); in bcm2835_spi_transfer_one()
589 return bcm2835_spi_transfer_one_dma(master, spi, tfr, cs); in bcm2835_spi_transfer_one()
592 return bcm2835_spi_transfer_one_irq(master, spi, tfr, cs); in bcm2835_spi_transfer_one()
600 u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS); in bcm2835_spi_prepare_message() local
602 cs &= ~(BCM2835_SPI_CS_CPOL | BCM2835_SPI_CS_CPHA); in bcm2835_spi_prepare_message()
605 cs |= BCM2835_SPI_CS_CPOL; in bcm2835_spi_prepare_message()
607 cs |= BCM2835_SPI_CS_CPHA; in bcm2835_spi_prepare_message()
609 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_prepare_message()
643 u32 cs = bcm2835_rd(bs, BCM2835_SPI_CS); in bcm2835_spi_set_cs() local
652 cs |= BCM2835_SPI_CS_CSPOL; in bcm2835_spi_set_cs()
653 cs |= BCM2835_SPI_CS_CSPOL0 << spi->chip_select; in bcm2835_spi_set_cs()
656 cs &= ~BCM2835_SPI_CS_CSPOL; in bcm2835_spi_set_cs()
657 cs &= ~(BCM2835_SPI_CS_CSPOL0 << spi->chip_select); in bcm2835_spi_set_cs()
665 cs |= BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01; in bcm2835_spi_set_cs()
668 cs &= ~(BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01); in bcm2835_spi_set_cs()
669 cs |= spi->chip_select; in bcm2835_spi_set_cs()
673 cs &= ~BCM2835_SPI_CS_CSPOL; in bcm2835_spi_set_cs()
675 cs |= BCM2835_SPI_CS_CS_10 | BCM2835_SPI_CS_CS_01; in bcm2835_spi_set_cs()
679 bcm2835_wr(bs, BCM2835_SPI_CS, cs); in bcm2835_spi_set_cs()