Lines Matching refs:master

186 	struct spi_master *master = dev_id;  in bcm2835aux_spi_interrupt()  local
187 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_interrupt()
218 complete(&master->xfer_completion); in bcm2835aux_spi_interrupt()
225 static int __bcm2835aux_spi_transfer_one_irq(struct spi_master *master, in __bcm2835aux_spi_transfer_one_irq() argument
229 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in __bcm2835aux_spi_transfer_one_irq()
240 static int bcm2835aux_spi_transfer_one_irq(struct spi_master *master, in bcm2835aux_spi_transfer_one_irq() argument
244 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_transfer_one_irq()
259 return __bcm2835aux_spi_transfer_one_irq(master, spi, tfr); in bcm2835aux_spi_transfer_one_irq()
262 static int bcm2835aux_spi_transfer_one_poll(struct spi_master *master, in bcm2835aux_spi_transfer_one_poll() argument
266 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_transfer_one_poll()
305 return __bcm2835aux_spi_transfer_one_irq(master, in bcm2835aux_spi_transfer_one_poll()
317 static int bcm2835aux_spi_transfer_one(struct spi_master *master, in bcm2835aux_spi_transfer_one() argument
321 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_transfer_one()
379 return bcm2835aux_spi_transfer_one_poll(master, spi, tfr); in bcm2835aux_spi_transfer_one()
382 return bcm2835aux_spi_transfer_one_irq(master, spi, tfr); in bcm2835aux_spi_transfer_one()
385 static void bcm2835aux_spi_handle_err(struct spi_master *master, in bcm2835aux_spi_handle_err() argument
388 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_handle_err()
395 struct spi_master *master; in bcm2835aux_spi_probe() local
401 master = spi_alloc_master(&pdev->dev, sizeof(*bs)); in bcm2835aux_spi_probe()
402 if (!master) { in bcm2835aux_spi_probe()
407 platform_set_drvdata(pdev, master); in bcm2835aux_spi_probe()
408 master->mode_bits = BCM2835_AUX_SPI_MODE_BITS; in bcm2835aux_spi_probe()
409 master->bits_per_word_mask = SPI_BPW_MASK(8); in bcm2835aux_spi_probe()
410 master->num_chipselect = -1; in bcm2835aux_spi_probe()
411 master->transfer_one = bcm2835aux_spi_transfer_one; in bcm2835aux_spi_probe()
412 master->handle_err = bcm2835aux_spi_handle_err; in bcm2835aux_spi_probe()
413 master->dev.of_node = pdev->dev.of_node; in bcm2835aux_spi_probe()
415 bs = spi_master_get_devdata(master); in bcm2835aux_spi_probe()
460 dev_name(&pdev->dev), master); in bcm2835aux_spi_probe()
466 err = devm_spi_register_master(&pdev->dev, master); in bcm2835aux_spi_probe()
477 spi_master_put(master); in bcm2835aux_spi_probe()
483 struct spi_master *master = platform_get_drvdata(pdev); in bcm2835aux_spi_remove() local
484 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_remove()