Lines Matching refs:master
388 mcfqspi = spi_master_get_devdata(spi->master);
428 if (spi->chip_select >= spi->master->num_chipselect) {
434 mcfqspi_cs_deselect(spi_master_get_devdata(spi->master),
448 struct spi_master *master;
454 master = spi_alloc_master(&pdev->dev, sizeof(*mcfqspi));
455 if (master == NULL) {
460 mcfqspi = spi_master_get_devdata(master);
504 mcfqspi->workq = create_singlethread_workqueue(dev_name(master->dev.parent));
520 master->bus_num = pdata->bus_num;
521 master->num_chipselect = pdata->num_chipselect;
530 master->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA;
531 master->setup = mcfqspi_setup;
532 master->transfer = mcfqspi_transfer;
534 platform_set_drvdata(pdev, master);
536 status = spi_register_master(master);
559 spi_master_put(master);
568 struct spi_master *master = platform_get_drvdata(pdev);
569 struct mcfqspi *mcfqspi = spi_master_get_devdata(master);
583 spi_unregister_master(master);
584 spi_master_put(master);