Lines Matching full:mps
63 struct mpc52xx_psc_spi *mps = spi_controller_get_devdata(spi->controller); in mpc52xx_psc_spi_activate_cs() local
64 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_activate_cs()
97 mps->bits_per_word = cs->bits_per_word; in mpc52xx_psc_spi_activate_cs()
107 struct mpc52xx_psc_spi *mps = spi_controller_get_devdata(spi->controller); in mpc52xx_psc_spi_transfer_rxtx() local
108 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_transfer_rxtx()
109 struct mpc52xx_psc_fifo __iomem *fifo = mps->fifo; in mpc52xx_psc_spi_transfer_rxtx()
159 wait_for_completion(&mps->done); in mpc52xx_psc_spi_transfer_rxtx()
242 static int mpc52xx_psc_spi_port_config(int psc_id, struct mpc52xx_psc_spi *mps) in mpc52xx_psc_spi_port_config() argument
244 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_port_config()
245 struct mpc52xx_psc_fifo __iomem *fifo = mps->fifo; in mpc52xx_psc_spi_port_config()
275 mps->bits_per_word = 8; in mpc52xx_psc_spi_port_config()
282 struct mpc52xx_psc_spi *mps = (struct mpc52xx_psc_spi *)dev_id; in mpc52xx_psc_spi_isr() local
283 struct mpc52xx_psc __iomem *psc = mps->psc; in mpc52xx_psc_spi_isr()
288 complete(&mps->done); in mpc52xx_psc_spi_isr()
297 struct mpc52xx_psc_spi *mps; in mpc52xx_psc_spi_of_probe() local
302 host = devm_spi_alloc_host(dev, sizeof(*mps)); in mpc52xx_psc_spi_of_probe()
307 mps = spi_controller_get_devdata(host); in mpc52xx_psc_spi_of_probe()
324 mps->psc = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); in mpc52xx_psc_spi_of_probe()
325 if (IS_ERR(mps->psc)) in mpc52xx_psc_spi_of_probe()
326 return dev_err_probe(dev, PTR_ERR(mps->psc), "could not ioremap I/O port range\n"); in mpc52xx_psc_spi_of_probe()
329 mps->fifo = ((void __iomem *)mps->psc) + sizeof(struct mpc52xx_psc); in mpc52xx_psc_spi_of_probe()
331 mps->irq = platform_get_irq(pdev, 0); in mpc52xx_psc_spi_of_probe()
332 if (mps->irq < 0) in mpc52xx_psc_spi_of_probe()
333 return mps->irq; in mpc52xx_psc_spi_of_probe()
335 ret = devm_request_irq(dev, mps->irq, mpc52xx_psc_spi_isr, 0, in mpc52xx_psc_spi_of_probe()
336 "mpc52xx-psc-spi", mps); in mpc52xx_psc_spi_of_probe()
340 ret = mpc52xx_psc_spi_port_config(host->bus_num, mps); in mpc52xx_psc_spi_of_probe()
344 init_completion(&mps->done); in mpc52xx_psc_spi_of_probe()