Lines Matching refs:master
136 static int spi_xcomm_transfer_one(struct spi_master *master, in spi_xcomm_transfer_one() argument
139 struct spi_xcomm *spi_xcomm = spi_master_get_devdata(master); in spi_xcomm_transfer_one()
202 spi_finalize_current_message(master); in spi_xcomm_transfer_one()
211 struct spi_master *master; in spi_xcomm_probe() local
214 master = spi_alloc_master(&i2c->dev, sizeof(*spi_xcomm)); in spi_xcomm_probe()
215 if (!master) in spi_xcomm_probe()
218 spi_xcomm = spi_master_get_devdata(master); in spi_xcomm_probe()
221 master->num_chipselect = 16; in spi_xcomm_probe()
222 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
223 master->bits_per_word_mask = SPI_BPW_MASK(8); in spi_xcomm_probe()
224 master->flags = SPI_MASTER_HALF_DUPLEX; in spi_xcomm_probe()
225 master->transfer_one_message = spi_xcomm_transfer_one; in spi_xcomm_probe()
226 master->dev.of_node = i2c->dev.of_node; in spi_xcomm_probe()
227 i2c_set_clientdata(i2c, master); in spi_xcomm_probe()
229 ret = devm_spi_register_master(&i2c->dev, master); in spi_xcomm_probe()
231 spi_master_put(master); in spi_xcomm_probe()