• Home
  • Raw
  • Download

Lines Matching refs:master

204 	struct spi_master *master = dev_id;  in bcm2835aux_spi_interrupt()  local
205 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_interrupt()
218 complete(&master->xfer_completion); in bcm2835aux_spi_interrupt()
224 static int __bcm2835aux_spi_transfer_one_irq(struct spi_master *master, in __bcm2835aux_spi_transfer_one_irq() argument
228 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in __bcm2835aux_spi_transfer_one_irq()
239 static int bcm2835aux_spi_transfer_one_irq(struct spi_master *master, in bcm2835aux_spi_transfer_one_irq() argument
243 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_transfer_one_irq()
258 return __bcm2835aux_spi_transfer_one_irq(master, spi, tfr); in bcm2835aux_spi_transfer_one_irq()
261 static int bcm2835aux_spi_transfer_one_poll(struct spi_master *master, in bcm2835aux_spi_transfer_one_poll() argument
265 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_transfer_one_poll()
288 return __bcm2835aux_spi_transfer_one_irq(master, in bcm2835aux_spi_transfer_one_poll()
300 static int bcm2835aux_spi_transfer_one(struct spi_master *master, in bcm2835aux_spi_transfer_one() argument
304 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_transfer_one()
362 return bcm2835aux_spi_transfer_one_poll(master, spi, tfr); in bcm2835aux_spi_transfer_one()
365 return bcm2835aux_spi_transfer_one_irq(master, spi, tfr); in bcm2835aux_spi_transfer_one()
368 static void bcm2835aux_spi_handle_err(struct spi_master *master, in bcm2835aux_spi_handle_err() argument
371 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_handle_err()
378 struct spi_master *master; in bcm2835aux_spi_probe() local
384 master = devm_spi_alloc_master(&pdev->dev, sizeof(*bs)); in bcm2835aux_spi_probe()
385 if (!master) { in bcm2835aux_spi_probe()
390 platform_set_drvdata(pdev, master); in bcm2835aux_spi_probe()
391 master->mode_bits = BCM2835_AUX_SPI_MODE_BITS; in bcm2835aux_spi_probe()
392 master->bits_per_word_mask = SPI_BPW_MASK(8); in bcm2835aux_spi_probe()
404 master->num_chipselect = 1; in bcm2835aux_spi_probe()
405 master->transfer_one = bcm2835aux_spi_transfer_one; in bcm2835aux_spi_probe()
406 master->handle_err = bcm2835aux_spi_handle_err; in bcm2835aux_spi_probe()
407 master->dev.of_node = pdev->dev.of_node; in bcm2835aux_spi_probe()
409 bs = spi_master_get_devdata(master); in bcm2835aux_spi_probe()
451 dev_name(&pdev->dev), master); in bcm2835aux_spi_probe()
457 err = spi_register_master(master); in bcm2835aux_spi_probe()
472 struct spi_master *master = platform_get_drvdata(pdev); in bcm2835aux_spi_remove() local
473 struct bcm2835aux_spi *bs = spi_master_get_devdata(master); in bcm2835aux_spi_remove()
475 spi_unregister_master(master); in bcm2835aux_spi_remove()