Lines Matching refs:ctlr
44 struct spi_controller *ctlr; member
159 struct spi_controller *ctlr; in ar934x_spi_probe() local
179 ctlr = devm_spi_alloc_master(&pdev->dev, sizeof(*sp)); in ar934x_spi_probe()
180 if (!ctlr) { in ar934x_spi_probe()
191 ctlr->mode_bits = SPI_LSB_FIRST; in ar934x_spi_probe()
192 ctlr->setup = ar934x_spi_setup; in ar934x_spi_probe()
193 ctlr->transfer_one_message = ar934x_spi_transfer_one_message; in ar934x_spi_probe()
194 ctlr->bits_per_word_mask = SPI_BPW_MASK(8); in ar934x_spi_probe()
195 ctlr->dev.of_node = pdev->dev.of_node; in ar934x_spi_probe()
196 ctlr->num_chipselect = 3; in ar934x_spi_probe()
198 dev_set_drvdata(&pdev->dev, ctlr); in ar934x_spi_probe()
200 sp = spi_controller_get_devdata(ctlr); in ar934x_spi_probe()
204 sp->ctlr = ctlr; in ar934x_spi_probe()
206 ret = spi_register_controller(ctlr); in ar934x_spi_probe()
217 struct spi_controller *ctlr; in ar934x_spi_remove() local
220 ctlr = dev_get_drvdata(&pdev->dev); in ar934x_spi_remove()
221 sp = spi_controller_get_devdata(ctlr); in ar934x_spi_remove()
223 spi_unregister_controller(ctlr); in ar934x_spi_remove()