Lines Matching refs:master
98 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_spi_setup_transfer()
141 struct bcm63xx_spi *bs = spi_master_get_devdata(spi->master); in bcm63xx_txrx_bufs()
245 static int bcm63xx_spi_prepare_transfer(struct spi_master *master) in bcm63xx_spi_prepare_transfer() argument
247 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_prepare_transfer()
254 static int bcm63xx_spi_unprepare_transfer(struct spi_master *master) in bcm63xx_spi_unprepare_transfer() argument
256 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_unprepare_transfer()
263 static int bcm63xx_spi_transfer_one(struct spi_master *master, in bcm63xx_spi_transfer_one() argument
266 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_transfer_one()
343 spi_finalize_current_message(master); in bcm63xx_spi_transfer_one()
353 struct spi_master *master = (struct spi_master *)dev_id; in bcm63xx_spi_interrupt() local
354 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_interrupt()
376 struct spi_master *master; in bcm63xx_spi_probe() local
402 master = spi_alloc_master(dev, sizeof(*bs)); in bcm63xx_spi_probe()
403 if (!master) { in bcm63xx_spi_probe()
409 bs = spi_master_get_devdata(master); in bcm63xx_spi_probe()
411 platform_set_drvdata(pdev, master); in bcm63xx_spi_probe()
425 pdev->name, master); in bcm63xx_spi_probe()
431 master->bus_num = pdata->bus_num; in bcm63xx_spi_probe()
432 master->num_chipselect = pdata->num_chipselect; in bcm63xx_spi_probe()
433 master->setup = bcm63xx_spi_setup; in bcm63xx_spi_probe()
434 master->prepare_transfer_hardware = bcm63xx_spi_prepare_transfer; in bcm63xx_spi_probe()
435 master->unprepare_transfer_hardware = bcm63xx_spi_unprepare_transfer; in bcm63xx_spi_probe()
436 master->transfer_one_message = bcm63xx_spi_transfer_one; in bcm63xx_spi_probe()
437 master->mode_bits = MODEBITS; in bcm63xx_spi_probe()
458 ret = spi_register_master(master); in bcm63xx_spi_probe()
473 spi_master_put(master); in bcm63xx_spi_probe()
482 struct spi_master *master = spi_master_get(platform_get_drvdata(pdev)); in bcm63xx_spi_remove() local
483 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_remove()
485 spi_unregister_master(master); in bcm63xx_spi_remove()
496 spi_master_put(master); in bcm63xx_spi_remove()
504 struct spi_master *master = in bcm63xx_spi_suspend() local
506 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_suspend()
508 spi_master_suspend(master); in bcm63xx_spi_suspend()
517 struct spi_master *master = in bcm63xx_spi_resume() local
519 struct bcm63xx_spi *bs = spi_master_get_devdata(master); in bcm63xx_spi_resume()
523 spi_master_resume(master); in bcm63xx_spi_resume()