Lines Matching refs:master
62 struct spi_master *master; member
151 dev_err(&ms->master->dev, "spurious irq, status=0x%.2x\n", in mpc52xx_spi_fsmstate_idle()
234 dev_err(&ms->master->dev, "mode fault\n"); in mpc52xx_spi_fsmstate_transfer()
277 dev_err(&ms->master->dev, "spurious irq, status=0x%.2x\n", in mpc52xx_spi_fsmstate_wait()
363 struct mpc52xx_spi *ms = spi_master_get_devdata(spi->master); in mpc52xx_spi_transfer()
382 struct spi_master *master; in mpc52xx_spi_probe() local
417 master = spi_alloc_master(&op->dev, sizeof *ms); in mpc52xx_spi_probe()
418 if (!master) { in mpc52xx_spi_probe()
423 master->transfer = mpc52xx_spi_transfer; in mpc52xx_spi_probe()
424 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
425 master->bits_per_word_mask = SPI_BPW_MASK(8); in mpc52xx_spi_probe()
426 master->dev.of_node = op->dev.of_node; in mpc52xx_spi_probe()
428 platform_set_drvdata(op, master); in mpc52xx_spi_probe()
430 ms = spi_master_get_devdata(master); in mpc52xx_spi_probe()
431 ms->master = master; in mpc52xx_spi_probe()
439 master->num_chipselect = ms->gpio_cs_count; in mpc52xx_spi_probe()
494 rc = spi_register_master(master); in mpc52xx_spi_probe()
498 dev_info(&ms->master->dev, "registered MPC5200 SPI bus\n"); in mpc52xx_spi_probe()
503 dev_err(&ms->master->dev, "initialization failed\n"); in mpc52xx_spi_probe()
510 spi_master_put(master); in mpc52xx_spi_probe()
519 struct spi_master *master = spi_master_get(platform_get_drvdata(op)); in mpc52xx_spi_remove() local
520 struct mpc52xx_spi *ms = spi_master_get_devdata(master); in mpc52xx_spi_remove()
530 spi_unregister_master(master); in mpc52xx_spi_remove()
532 spi_master_put(master); in mpc52xx_spi_remove()