Lines Matching refs:master
88 struct mpc8xxx_spi *mspi = spi_master_get_devdata(spi->master); in fsl_spi_change_mode()
113 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); in fsl_spi_chipselect()
231 mpc8xxx_spi = spi_master_get_devdata(spi->master); in fsl_spi_setup_transfer()
309 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); in fsl_spi_bufs()
356 static int fsl_spi_do_one_msg(struct spi_master *master, in fsl_spi_do_one_msg() argument
411 spi_finalize_current_message(master); in fsl_spi_do_one_msg()
439 mpc8xxx_spi = spi_master_get_devdata(spi->master); in fsl_spi_setup()
498 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); in fsl_spi_cleanup()
564 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(spi->master); in fsl_spi_grlib_cs_control()
581 struct spi_master *master = dev_get_drvdata(dev); in fsl_spi_grlib_probe() local
582 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master); in fsl_spi_grlib_probe()
599 master->num_chipselect = mpc8xxx_spi->native_chipselects; in fsl_spi_grlib_probe()
607 struct spi_master *master; in fsl_spi_probe() local
613 master = spi_alloc_master(dev, sizeof(struct mpc8xxx_spi)); in fsl_spi_probe()
614 if (master == NULL) { in fsl_spi_probe()
619 dev_set_drvdata(dev, master); in fsl_spi_probe()
623 master->setup = fsl_spi_setup; in fsl_spi_probe()
624 master->cleanup = fsl_spi_cleanup; in fsl_spi_probe()
625 master->transfer_one_message = fsl_spi_do_one_msg; in fsl_spi_probe()
627 mpc8xxx_spi = spi_master_get_devdata(master); in fsl_spi_probe()
644 master->bits_per_word_mask = in fsl_spi_probe()
682 ret = devm_spi_register_master(dev, master); in fsl_spi_probe()
689 return master; in fsl_spi_probe()
694 spi_master_put(master); in fsl_spi_probe()
814 struct spi_master *master; in of_fsl_spi_probe() local
840 master = fsl_spi_probe(dev, &mem, irq); in of_fsl_spi_probe()
841 if (IS_ERR(master)) { in of_fsl_spi_probe()
842 ret = PTR_ERR(master); in of_fsl_spi_probe()
856 struct spi_master *master = platform_get_drvdata(ofdev); in of_fsl_spi_remove() local
857 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master); in of_fsl_spi_remove()
886 struct spi_master *master; in plat_mpc8xxx_spi_probe() local
899 master = fsl_spi_probe(&pdev->dev, mem, irq); in plat_mpc8xxx_spi_probe()
900 return PTR_ERR_OR_ZERO(master); in plat_mpc8xxx_spi_probe()
905 struct spi_master *master = platform_get_drvdata(pdev); in plat_mpc8xxx_spi_remove() local
906 struct mpc8xxx_spi *mpc8xxx_spi = spi_master_get_devdata(master); in plat_mpc8xxx_spi_remove()