Lines Matching refs:master
35 struct spi_master *master; member
61 dev_err(hw->master->dev.parent, in jcore_spi_program()
69 struct jcore_spi *hw = spi_master_get_devdata(spi->master); in jcore_spi_chipsel()
72 dev_dbg(hw->master->dev.parent, "chipselect %d\n", spi->chip_select); in jcore_spi_chipsel()
91 dev_dbg(hw->master->dev.parent, "speed=%d reg=0x%x\n", in jcore_spi_baudrate()
95 static int jcore_spi_txrx(struct spi_master *master, struct spi_device *spi, in jcore_spi_txrx() argument
98 struct jcore_spi *hw = spi_master_get_devdata(master); in jcore_spi_txrx()
131 spi_finalize_current_transfer(master); in jcore_spi_txrx()
143 struct spi_master *master; in jcore_spi_probe() local
149 master = spi_alloc_master(&pdev->dev, sizeof(struct jcore_spi)); in jcore_spi_probe()
150 if (!master) in jcore_spi_probe()
154 master->num_chipselect = 3; in jcore_spi_probe()
155 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
156 master->transfer_one = jcore_spi_txrx; in jcore_spi_probe()
157 master->set_cs = jcore_spi_chipsel; in jcore_spi_probe()
158 master->dev.of_node = node; in jcore_spi_probe()
159 master->bus_num = pdev->id; in jcore_spi_probe()
161 hw = spi_master_get_devdata(master); in jcore_spi_probe()
162 hw->master = master; in jcore_spi_probe()
200 err = devm_spi_register_master(&pdev->dev, master); in jcore_spi_probe()
209 spi_master_put(master); in jcore_spi_probe()