Lines Matching refs:dspi
27 struct dspi *regs;
117 struct dspi *dspi = cfspi->regs; in coldfire_spi_claim_bus() local
121 if ((in_be32(&dspi->sr) & DSPI_SR_TXRXS) != DSPI_SR_TXRXS) in coldfire_spi_claim_bus()
125 clrbits_be32(&dspi->mcr, DSPI_MCR_CTXF | DSPI_MCR_CRXF); in coldfire_spi_claim_bus()
136 struct dspi *dspi = cfspi->regs; in coldfire_spi_release_bus() local
141 clrbits_be32(&dspi->mcr, DSPI_MCR_CTXF | DSPI_MCR_CRXF); in coldfire_spi_release_bus()
229 struct dspi *dspi = cfspi->regs; in coldfire_spi_set_speed() local
244 bus_setup = readl(&dspi->ctar[dev_seq(bus)]); in coldfire_spi_set_speed()
298 writel(bus_setup, &dspi->ctar[dev_seq(bus)]); in coldfire_spi_set_speed()
306 struct dspi *dspi = cfspi->regs; in coldfire_spi_set_mode() local
322 readl(&dspi->ctar[dev_seq(bus)]) & MCF_FRM_SZ_16BIT; in coldfire_spi_set_mode()
333 (readl(&dspi->ctar[dev_seq(bus)]) & MCF_CTAR_MODE_MASK); in coldfire_spi_set_mode()
337 ((readl(&dspi->ctar[dev_seq(bus)]) & MCF_FRM_SZ_16BIT) == in coldfire_spi_set_mode()
340 setbits_be32(&dspi->ctar[dev_seq(bus)], bus_setup); in coldfire_spi_set_mode()
349 struct dspi *dspi = cfspi->regs; in coldfire_spi_probe() local
352 cfspi->regs = (struct dspi *)plat->regs_addr; in coldfire_spi_probe()
377 writel(MCF_DSPI_DEFAULT_CTAR, &dspi->ctar[i]); in coldfire_spi_probe()
379 dspi->mcr = DSPI_MCR_MSTR | DSPI_MCR_CSIS7 | DSPI_MCR_CSIS6 | in coldfire_spi_probe()