Lines Matching refs:master

206 	struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master);  in bcm63xx_spi_setup_transfer()
238 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_txrx_bufs()
333 static int bcm63xx_spi_transfer_one(struct spi_master *master, in bcm63xx_spi_transfer_one() argument
336 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_transfer_one()
406 spi_finalize_current_message(master); in bcm63xx_spi_transfer_one()
416 struct spi_master *master = (struct spi_master *)dev_id; in bcm63xx_spi_interrupt() local
417 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_interrupt()
487 struct spi_master *master; in bcm63xx_spi_probe() local
509 master = spi_alloc_master(dev, sizeof(*bs)); in bcm63xx_spi_probe()
510 if (!master) { in bcm63xx_spi_probe()
515 bs = spi_master_get_devdata(master); in bcm63xx_spi_probe()
518 platform_set_drvdata(pdev, master); in bcm63xx_spi_probe()
534 pdev->name, master); in bcm63xx_spi_probe()
540 master->bus_num = BCM63XX_SPI_BUS_NUM; in bcm63xx_spi_probe()
541 master->num_chipselect = BCM63XX_SPI_MAX_CS; in bcm63xx_spi_probe()
542 master->transfer_one_message = bcm63xx_spi_transfer_one; in bcm63xx_spi_probe()
543 master->mode_bits = MODEBITS; in bcm63xx_spi_probe()
544 master->bits_per_word_mask = SPI_BPW_MASK(8); in bcm63xx_spi_probe()
545 master->auto_runtime_pm = true; in bcm63xx_spi_probe()
559 ret = devm_spi_register_master(dev, master); in bcm63xx_spi_probe()
573 spi_master_put(master); in bcm63xx_spi_probe()
579 struct spi_master *master = platform_get_drvdata(pdev); in bcm63xx_spi_remove() local
580 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_remove()
594 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_suspend() local
595 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_suspend()
597 spi_master_suspend(master); in bcm63xx_spi_suspend()
606 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_resume() local
607 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_resume()
614 spi_master_resume(master); in bcm63xx_spi_resume()