Lines Matching refs:master
4 * Xilinx SPI controller driver (master mode only)
176 * put SPI controller into master mode, and enable it */
184 struct xilinx_spi *xspi = spi_master_get_devdata(spi->master);
220 struct xilinx_spi *xspi = spi_master_get_devdata(spi->master);
267 struct xilinx_spi *xspi = spi_master_get_devdata(spi->master);
301 /* This driver supports single master mode only. Hence Tx FIFO Empty
356 struct spi_master *master;
366 master = spi_alloc_master(dev, sizeof(struct xilinx_spi));
367 if (!master)
371 master->mode_bits = SPI_CPOL | SPI_CPHA;
373 xspi = spi_master_get_devdata(master);
374 xspi->bitbang.master = spi_master_get(master);
378 xspi->bitbang.master->setup = xilinx_spi_setup;
391 master->bus_num = bus_num;
392 master->num_chipselect = pdata->num_chipselect;
394 master->dev.of_node = dev->of_node;
436 return master;
445 spi_master_put(master);
450 void xilinx_spi_deinit(struct spi_master *master)
454 xspi = spi_master_get_devdata(master);
461 spi_master_put(xspi->bitbang.master);