Lines Matching refs:master
63 struct spi_master *master;
152 dev_err(&ms->master->dev, "spurious irq, status=0x%.2x\n",
235 dev_err(&ms->master->dev, "mode fault\n");
277 dev_err(&ms->master->dev, "spurious irq, status=0x%.2x\n",
368 if (spi->chip_select >= spi->master->num_chipselect)
376 struct mpc52xx_spi *ms = spi_master_get_devdata(spi->master);
396 struct spi_master *master;
431 master = spi_alloc_master(&op->dev, sizeof *ms);
432 if (!master) {
437 master->bus_num = -1;
438 master->setup = mpc52xx_spi_setup;
439 master->transfer = mpc52xx_spi_transfer;
440 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
441 master->dev.of_node = op->dev.of_node;
443 dev_set_drvdata(&op->dev, master);
445 ms = spi_master_get_devdata(master);
446 ms->master = master;
454 master->num_chipselect = ms->gpio_cs_count;
484 master->num_chipselect = 1;
511 rc = spi_register_master(master);
515 dev_info(&ms->master->dev, "registered MPC5200 SPI bus\n");
520 dev_err(&ms->master->dev, "initialization failed\n");
521 spi_master_put(master);
535 struct spi_master *master = dev_get_drvdata(&op->dev);
536 struct mpc52xx_spi *ms = spi_master_get_devdata(master);
546 spi_unregister_master(master);
547 spi_master_put(master);