Lines Matching refs:host
84 struct spi_controller *host;
86 host = devm_spi_alloc_host(&pdev->dev, sizeof(struct xtfpga_spi));
87 if (!host)
90 host->flags = SPI_CONTROLLER_NO_RX;
91 host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16);
92 host->bus_num = pdev->dev.id;
93 host->dev.of_node = pdev->dev.of_node;
95 xspi = spi_controller_get_devdata(host);
96 xspi->bitbang.ctlr = host;
116 platform_set_drvdata(pdev, host);
122 struct spi_controller *host = platform_get_drvdata(pdev);
123 struct xtfpga_spi *xspi = spi_controller_get_devdata(host);
126 spi_controller_put(host);