Lines Matching refs:master
149 xspi = spi_master_get_devdata(spi->master); in xlp_spi_setup()
354 static int xlp_spi_transfer_one(struct spi_master *master, in xlp_spi_transfer_one() argument
358 struct xlp_spi_priv *xspi = spi_master_get_devdata(master); in xlp_spi_transfer_one()
364 if (spi_transfer_is_last(master, t)) in xlp_spi_transfer_one()
372 spi_finalize_current_transfer(master); in xlp_spi_transfer_one()
378 struct spi_master *master; in xlp_spi_probe() local
412 master = spi_alloc_master(&pdev->dev, 0); in xlp_spi_probe()
413 if (!master) { in xlp_spi_probe()
418 master->bus_num = 0; in xlp_spi_probe()
419 master->num_chipselect = XLP_SPI_MAX_CS; in xlp_spi_probe()
420 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in xlp_spi_probe()
421 master->setup = xlp_spi_setup; in xlp_spi_probe()
422 master->transfer_one = xlp_spi_transfer_one; in xlp_spi_probe()
423 master->dev.of_node = pdev->dev.of_node; in xlp_spi_probe()
426 spi_master_set_devdata(master, xspi); in xlp_spi_probe()
430 err = devm_spi_register_master(&pdev->dev, master); in xlp_spi_probe()
433 spi_master_put(master); in xlp_spi_probe()