Lines Matching refs:master
252 struct davinci_spi *davinci_spi = spi_master_get_devdata(spi->master);
269 davinci_spi = spi_master_get_devdata(spi->master);
306 davinci_spi = spi_master_get_devdata(spi->master);
362 davinci_spi = spi_master_get_devdata(spi->master);
383 davinci_spi = spi_master_get_devdata(spi->master);
405 davinci_spi = spi_master_get_devdata(spi->master);
408 sdev = davinci_spi->bitbang.master->dev.parent;
446 davinci_spi = spi_master_get_devdata(spi->master);
447 sdev = davinci_spi->bitbang.master->dev.parent;
570 struct davinci_spi *davinci_spi = spi_master_get_devdata(spi->master);
621 struct device *sdev = davinci_spi->bitbang.master->dev.parent;
680 davinci_spi = spi_master_get_devdata(spi->master);
821 davinci_spi = spi_master_get_devdata(spi->master);
823 sdev = davinci_spi->bitbang.master->dev.parent;
1015 struct spi_master *master;
1030 master = spi_alloc_master(&pdev->dev, sizeof(struct davinci_spi));
1031 if (master == NULL) {
1036 dev_set_drvdata(&pdev->dev, master);
1038 davinci_spi = spi_master_get_devdata(master);
1086 davinci_spi->bitbang.master = spi_master_get(master);
1087 if (davinci_spi->bitbang.master == NULL) {
1100 master->bus_num = pdev->id;
1101 master->num_chipselect = pdata->num_chipselect;
1102 master->setup = davinci_spi_setup;
1103 master->cleanup = davinci_spi_cleanup;
1135 davinci_spi->dma_channels = kzalloc(master->num_chipselect
1142 for (i = 0; i < master->num_chipselect; i++) {
1175 /* master mode default */
1199 spi_master_put(master);
1209 kfree(master);
1226 struct spi_master *master;
1228 master = dev_get_drvdata(&pdev->dev);
1229 davinci_spi = spi_master_get_devdata(master);
1235 spi_master_put(master);