Lines Matching refs:slv

138 	struct bcm2835_spidev *slv;  member
638 bcm2835_wr(bs, BCM2835_SPI_CS, bs->slv->clear_rx_cs); in bcm2835_spi_dma_tx_done()
670 struct bcm2835_spidev *slv, in bcm2835_spi_prepare_sg() argument
710 bs->slv = slv; in bcm2835_spi_prepare_sg()
768 struct bcm2835_spidev *slv, in bcm2835_spi_transfer_one_dma() argument
786 ret = bcm2835_spi_prepare_sg(ctlr, tfr, bs, slv, true); in bcm2835_spi_transfer_one_dma()
812 ret = bcm2835_spi_prepare_sg(ctlr, tfr, bs, slv, false); in bcm2835_spi_transfer_one_dma()
814 cookie = dmaengine_submit(slv->clear_rx_desc); in bcm2835_spi_transfer_one_dma()
1053 struct bcm2835_spidev *slv = spi_get_ctldata(spi); in bcm2835_spi_transfer_one() local
1056 u32 cs = slv->prepare_cs; in bcm2835_spi_transfer_one()
1104 return bcm2835_spi_transfer_one_dma(ctlr, tfr, slv, cs); in bcm2835_spi_transfer_one()
1115 struct bcm2835_spidev *slv = spi_get_ctldata(spi); in bcm2835_spi_prepare_message() local
1134 bcm2835_wr(bs, BCM2835_SPI_CS, slv->prepare_cs); in bcm2835_spi_prepare_message()
1166 struct bcm2835_spidev *slv = spi_get_ctldata(spi); in bcm2835_spi_cleanup() local
1169 if (slv->clear_rx_desc) in bcm2835_spi_cleanup()
1170 dmaengine_desc_free(slv->clear_rx_desc); in bcm2835_spi_cleanup()
1172 if (slv->clear_rx_addr) in bcm2835_spi_cleanup()
1174 slv->clear_rx_addr, in bcm2835_spi_cleanup()
1178 kfree(slv); in bcm2835_spi_cleanup()
1184 struct bcm2835_spidev *slv) in bcm2835_spi_setup_dma() argument
1191 slv->clear_rx_addr = dma_map_single(ctlr->dma_rx->device->dev, in bcm2835_spi_setup_dma()
1192 &slv->clear_rx_cs, in bcm2835_spi_setup_dma()
1195 if (dma_mapping_error(ctlr->dma_rx->device->dev, slv->clear_rx_addr)) { in bcm2835_spi_setup_dma()
1197 slv->clear_rx_addr = 0; in bcm2835_spi_setup_dma()
1201 slv->clear_rx_desc = dmaengine_prep_dma_cyclic(ctlr->dma_rx, in bcm2835_spi_setup_dma()
1202 slv->clear_rx_addr, in bcm2835_spi_setup_dma()
1205 if (!slv->clear_rx_desc) { in bcm2835_spi_setup_dma()
1210 ret = dmaengine_desc_set_reuse(slv->clear_rx_desc); in bcm2835_spi_setup_dma()
1223 struct bcm2835_spidev *slv = spi_get_ctldata(spi); in bcm2835_spi_setup() local
1228 if (!slv) { in bcm2835_spi_setup()
1229 slv = kzalloc(ALIGN(sizeof(*slv), dma_get_cache_alignment()), in bcm2835_spi_setup()
1231 if (!slv) in bcm2835_spi_setup()
1234 spi_set_ctldata(spi, slv); in bcm2835_spi_setup()
1236 ret = bcm2835_spi_setup_dma(ctlr, spi, bs, slv); in bcm2835_spi_setup()
1252 slv->prepare_cs = cs; in bcm2835_spi_setup()
1259 slv->clear_rx_cs = cs | BCM2835_SPI_CS_TA | in bcm2835_spi_setup()
1263 slv->clear_rx_addr, in bcm2835_spi_setup()