Lines Matching refs:master

136 	struct spi_master *master;  member
153 hw = spi_master_get_devdata(spi->master); in spi_ppc4xx_txrx()
171 struct ppc4xx_spi *hw = spi_master_get_devdata(spi->master); in spi_ppc4xx_setupxfer()
268 struct ppc4xx_spi *hw = spi_master_get_devdata(spi->master); in spi_ppc4xx_chipsel()
277 if (!hw->master->num_chipselect || hw->gpios[cs] == -EEXIST) in spi_ppc4xx_chipsel()
367 if (hw->master->num_chipselect) { in free_gpios()
369 for (i = 0; i < hw->master->num_chipselect; i++) in free_gpios()
384 struct spi_master *master; in spi_ppc4xx_of_probe() local
394 master = spi_alloc_master(dev, sizeof *hw); in spi_ppc4xx_of_probe()
395 if (master == NULL) in spi_ppc4xx_of_probe()
397 master->dev.of_node = np; in spi_ppc4xx_of_probe()
398 platform_set_drvdata(op, master); in spi_ppc4xx_of_probe()
399 hw = spi_master_get_devdata(master); in spi_ppc4xx_of_probe()
400 hw->master = master; in spi_ppc4xx_of_probe()
450 bbp->master = hw->master; in spi_ppc4xx_of_probe()
455 bbp->master->setup = spi_ppc4xx_setup; in spi_ppc4xx_of_probe()
456 bbp->master->cleanup = spi_ppc4xx_cleanup; in spi_ppc4xx_of_probe()
457 bbp->master->bits_per_word_mask = SPI_BPW_MASK(8); in spi_ppc4xx_of_probe()
460 bbp->master->mode_bits = in spi_ppc4xx_of_probe()
464 bbp->master->num_chipselect = num_gpios > 0 ? num_gpios : 0; in spi_ppc4xx_of_probe()
546 spi_master_put(master); in spi_ppc4xx_of_probe()
554 struct spi_master *master = platform_get_drvdata(op); in spi_ppc4xx_of_remove() local
555 struct ppc4xx_spi *hw = spi_master_get_devdata(master); in spi_ppc4xx_of_remove()
562 spi_master_put(master); in spi_ppc4xx_of_remove()