Lines Matching refs:master

99 	struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master);  in mpc512x_psc_spi_activate_cs()
141 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc512x_psc_spi_deactivate_cs()
156 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master); in mpc512x_psc_spi_transfer_rxtx()
293 static int mpc512x_psc_spi_msg_xfer(struct spi_master *master, in mpc512x_psc_spi_msg_xfer() argument
334 spi_finalize_current_message(master); in mpc512x_psc_spi_msg_xfer()
338 static int mpc512x_psc_spi_prep_xfer_hw(struct spi_master *master) in mpc512x_psc_spi_prep_xfer_hw() argument
340 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); in mpc512x_psc_spi_prep_xfer_hw()
342 dev_dbg(&master->dev, "%s()\n", __func__); in mpc512x_psc_spi_prep_xfer_hw()
354 static int mpc512x_psc_spi_unprep_xfer_hw(struct spi_master *master) in mpc512x_psc_spi_unprep_xfer_hw() argument
356 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); in mpc512x_psc_spi_unprep_xfer_hw()
359 dev_dbg(&master->dev, "%s()\n", __func__); in mpc512x_psc_spi_unprep_xfer_hw()
409 static int mpc512x_psc_spi_port_config(struct spi_master *master, in mpc512x_psc_spi_port_config() argument
494 struct spi_master *master; in mpc512x_psc_spi_do_probe() local
499 master = spi_alloc_master(dev, sizeof *mps); in mpc512x_psc_spi_do_probe()
500 if (master == NULL) in mpc512x_psc_spi_do_probe()
503 dev_set_drvdata(dev, master); in mpc512x_psc_spi_do_probe()
504 mps = spi_master_get_devdata(master); in mpc512x_psc_spi_do_probe()
512 master->bus_num = pdata->bus_num; in mpc512x_psc_spi_do_probe()
513 master->num_chipselect = pdata->max_chipselect; in mpc512x_psc_spi_do_probe()
516 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_do_probe()
517 master->setup = mpc512x_psc_spi_setup; in mpc512x_psc_spi_do_probe()
518 master->prepare_transfer_hardware = mpc512x_psc_spi_prep_xfer_hw; in mpc512x_psc_spi_do_probe()
519 master->transfer_one_message = mpc512x_psc_spi_msg_xfer; in mpc512x_psc_spi_do_probe()
520 master->unprepare_transfer_hardware = mpc512x_psc_spi_unprep_xfer_hw; in mpc512x_psc_spi_do_probe()
521 master->cleanup = mpc512x_psc_spi_cleanup; in mpc512x_psc_spi_do_probe()
522 master->dev.of_node = dev->of_node; in mpc512x_psc_spi_do_probe()
560 ret = mpc512x_psc_spi_port_config(master, mps); in mpc512x_psc_spi_do_probe()
564 ret = devm_spi_register_master(dev, master); in mpc512x_psc_spi_do_probe()
575 spi_master_put(master); in mpc512x_psc_spi_do_probe()
582 struct spi_master *master = dev_get_drvdata(dev); in mpc512x_psc_spi_do_remove() local
583 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master); in mpc512x_psc_spi_do_remove()