Lines Matching defs:master
3 * Xilinx SPI controller driver (master mode only)
180 * put SPI controller into master mode, and enable it */
188 struct xilinx_spi *xspi = spi_master_get_devdata(spi->master);
228 struct xilinx_spi *xspi = spi_master_get_devdata(spi->master);
240 struct xilinx_spi *xspi = spi_master_get_devdata(spi->master);
337 /* This driver supports single master mode only. Hence Tx FIFO Empty
395 struct spi_master *master;
424 master = spi_alloc_master(&pdev->dev, sizeof(struct xilinx_spi));
425 if (!master)
429 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP |
432 xspi = spi_master_get_devdata(master);
434 xspi->bitbang.master = master;
447 master->bus_num = pdev->id;
448 master->num_chipselect = num_cs;
449 master->dev.of_node = pdev->dev.of_node;
469 master->bits_per_word_mask = SPI_BPW_MASK(bits_per_word);
498 spi_new_device(master, pdata->devices + i);
501 platform_set_drvdata(pdev, master);
505 spi_master_put(master);
512 struct spi_master *master = platform_get_drvdata(pdev);
513 struct xilinx_spi *xspi = spi_master_get_devdata(master);
523 spi_master_put(xspi->bitbang.master);