Lines Matching refs:master
90 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_spi_setup_transfer()
122 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_txrx_bufs()
218 static int bcm63xx_spi_transfer_one(struct spi_master *master, in bcm63xx_spi_transfer_one() argument
221 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_transfer_one()
291 spi_finalize_current_message(master); in bcm63xx_spi_transfer_one()
301 struct spi_master *master = (struct spi_master *)dev_id; in bcm63xx_spi_interrupt() local
302 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_interrupt()
324 struct spi_master *master; in bcm63xx_spi_probe() local
341 master = spi_alloc_master(dev, sizeof(*bs)); in bcm63xx_spi_probe()
342 if (!master) { in bcm63xx_spi_probe()
347 bs = spi_master_get_devdata(master); in bcm63xx_spi_probe()
350 platform_set_drvdata(pdev, master); in bcm63xx_spi_probe()
365 pdev->name, master); in bcm63xx_spi_probe()
371 master->bus_num = pdata->bus_num; in bcm63xx_spi_probe()
372 master->num_chipselect = pdata->num_chipselect; in bcm63xx_spi_probe()
373 master->transfer_one_message = bcm63xx_spi_transfer_one; in bcm63xx_spi_probe()
374 master->mode_bits = MODEBITS; in bcm63xx_spi_probe()
375 master->bits_per_word_mask = SPI_BPW_MASK(8); in bcm63xx_spi_probe()
376 master->auto_runtime_pm = true; in bcm63xx_spi_probe()
400 ret = devm_spi_register_master(dev, master); in bcm63xx_spi_probe()
414 spi_master_put(master); in bcm63xx_spi_probe()
420 struct spi_master *master = platform_get_drvdata(pdev); in bcm63xx_spi_remove() local
421 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_remove()
435 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_suspend() local
436 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_suspend()
438 spi_master_suspend(master); in bcm63xx_spi_suspend()
447 struct spi_master *master = dev_get_drvdata(dev); in bcm63xx_spi_resume() local
448 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_resume()
455 spi_master_resume(master); in bcm63xx_spi_resume()