Lines Matching refs:master
186 struct spi_master *master; member
367 static bool s3c64xx_spi_can_dma(struct spi_master *master, in s3c64xx_spi_can_dma() argument
371 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_can_dma()
648 static int s3c64xx_spi_prepare_message(struct spi_master *master, in s3c64xx_spi_prepare_message() argument
651 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_prepare_message()
671 static int s3c64xx_spi_transfer_one(struct spi_master *master, in s3c64xx_spi_transfer_one() argument
675 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_transfer_one()
790 sdd = spi_master_get_devdata(spi->master); in s3c64xx_spi_setup()
911 struct spi_master *spi = sdd->master; in s3c64xx_spi_irq()
1034 struct spi_master *master; in s3c64xx_spi_probe() local
1061 master = spi_alloc_master(&pdev->dev, in s3c64xx_spi_probe()
1063 if (master == NULL) { in s3c64xx_spi_probe()
1068 platform_set_drvdata(pdev, master); in s3c64xx_spi_probe()
1070 sdd = spi_master_get_devdata(master); in s3c64xx_spi_probe()
1072 sdd->master = master; in s3c64xx_spi_probe()
1109 master->dev.of_node = pdev->dev.of_node; in s3c64xx_spi_probe()
1110 master->bus_num = sdd->port_id; in s3c64xx_spi_probe()
1111 master->setup = s3c64xx_spi_setup; in s3c64xx_spi_probe()
1112 master->cleanup = s3c64xx_spi_cleanup; in s3c64xx_spi_probe()
1113 master->prepare_transfer_hardware = s3c64xx_spi_prepare_transfer; in s3c64xx_spi_probe()
1114 master->prepare_message = s3c64xx_spi_prepare_message; in s3c64xx_spi_probe()
1115 master->transfer_one = s3c64xx_spi_transfer_one; in s3c64xx_spi_probe()
1116 master->unprepare_transfer_hardware = s3c64xx_spi_unprepare_transfer; in s3c64xx_spi_probe()
1117 master->num_chipselect = sci->num_cs; in s3c64xx_spi_probe()
1118 master->dma_alignment = 8; in s3c64xx_spi_probe()
1119 master->bits_per_word_mask = SPI_BPW_MASK(32) | SPI_BPW_MASK(16) | in s3c64xx_spi_probe()
1122 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in s3c64xx_spi_probe()
1123 master->auto_runtime_pm = true; in s3c64xx_spi_probe()
1125 master->can_dma = s3c64xx_spi_can_dma; in s3c64xx_spi_probe()
1192 ret = devm_spi_register_master(&pdev->dev, master); in s3c64xx_spi_probe()
1199 sdd->port_id, master->num_chipselect); in s3c64xx_spi_probe()
1218 spi_master_put(master); in s3c64xx_spi_probe()
1225 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev)); in s3c64xx_spi_remove() local
1226 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_remove()
1246 struct spi_master *master = dev_get_drvdata(dev); in s3c64xx_spi_suspend() local
1247 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_suspend()
1249 int ret = spi_master_suspend(master); in s3c64xx_spi_suspend()
1264 struct spi_master *master = dev_get_drvdata(dev); in s3c64xx_spi_resume() local
1265 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_resume()
1278 return spi_master_resume(master); in s3c64xx_spi_resume()
1285 struct spi_master *master = dev_get_drvdata(dev); in s3c64xx_spi_runtime_suspend() local
1286 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_runtime_suspend()
1296 struct spi_master *master = dev_get_drvdata(dev); in s3c64xx_spi_runtime_resume() local
1297 struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); in s3c64xx_spi_runtime_resume()