Lines Matching refs:master
80 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master);
122 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master);
137 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master);
278 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master);
306 struct mpc512x_psc_spi *mps = spi_master_get_devdata(spi->master);
325 static int mpc512x_psc_spi_port_config(struct spi_master *master,
337 sprintf(name, "psc%d_mclk", master->bus_num);
338 spiclk = clk_get(&master->dev, name);
362 0x00004000 | /* MSTR = 1 -- SPI master */
415 struct spi_master *master;
419 master = spi_alloc_master(dev, sizeof *mps);
420 if (master == NULL)
423 dev_set_drvdata(dev, master);
424 mps = spi_master_get_devdata(master);
432 master->bus_num = bus_num;
433 master->num_chipselect = 255;
437 master->bus_num = pdata->bus_num;
438 master->num_chipselect = pdata->max_chipselect;
441 master->setup = mpc512x_psc_spi_setup;
442 master->transfer = mpc512x_psc_spi_transfer;
443 master->cleanup = mpc512x_psc_spi_cleanup;
444 master->dev.of_node = dev->of_node;
461 ret = mpc512x_psc_spi_port_config(master, mps);
471 create_singlethread_workqueue(dev_name(master->dev.parent));
477 ret = spi_register_master(master);
490 spi_master_put(master);
497 struct spi_master *master = dev_get_drvdata(dev);
498 struct mpc512x_psc_spi *mps = spi_master_get_devdata(master);
502 spi_unregister_master(master);