Lines Matching refs:master
86 struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master); in rb4xx_set_cs()
98 static int rb4xx_transfer_one(struct spi_master *master, in rb4xx_transfer_one() argument
101 struct rb4xx_spi *rbspi = spi_master_get_devdata(master); in rb4xx_transfer_one()
132 spi_finalize_current_transfer(master); in rb4xx_transfer_one()
139 struct spi_master *master; in rb4xx_spi_probe() local
151 master = spi_alloc_master(&pdev->dev, sizeof(*rbspi)); in rb4xx_spi_probe()
152 if (!master) in rb4xx_spi_probe()
159 master->bus_num = 0; in rb4xx_spi_probe()
160 master->num_chipselect = 3; in rb4xx_spi_probe()
161 master->mode_bits = SPI_TX_DUAL; in rb4xx_spi_probe()
162 master->bits_per_word_mask = BIT(7); in rb4xx_spi_probe()
163 master->flags = SPI_MASTER_MUST_TX; in rb4xx_spi_probe()
164 master->transfer_one = rb4xx_transfer_one; in rb4xx_spi_probe()
165 master->set_cs = rb4xx_set_cs; in rb4xx_spi_probe()
167 err = devm_spi_register_master(&pdev->dev, master); in rb4xx_spi_probe()
177 rbspi = spi_master_get_devdata(master); in rb4xx_spi_probe()