Lines Matching refs:master
59 struct xtfpga_spi *xspi = spi_master_get_devdata(spi->master); in xtfpga_spi_txrx_word()
77 struct xtfpga_spi *xspi = spi_master_get_devdata(spi->master); in xtfpga_spi_chipselect()
88 struct spi_master *master; in xtfpga_spi_probe() local
90 master = spi_alloc_master(&pdev->dev, sizeof(struct xtfpga_spi)); in xtfpga_spi_probe()
91 if (!master) in xtfpga_spi_probe()
94 master->flags = SPI_MASTER_NO_RX; in xtfpga_spi_probe()
95 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16); in xtfpga_spi_probe()
96 master->bus_num = pdev->dev.id; in xtfpga_spi_probe()
97 master->dev.of_node = pdev->dev.of_node; in xtfpga_spi_probe()
99 xspi = spi_master_get_devdata(master); in xtfpga_spi_probe()
100 xspi->bitbang.master = master; in xtfpga_spi_probe()
130 platform_set_drvdata(pdev, master); in xtfpga_spi_probe()
133 spi_master_put(master); in xtfpga_spi_probe()
139 struct spi_master *master = platform_get_drvdata(pdev); in xtfpga_spi_remove() local
140 struct xtfpga_spi *xspi = spi_master_get_devdata(master); in xtfpga_spi_remove()
143 spi_master_put(master); in xtfpga_spi_remove()