Lines Matching refs:master
61 struct spi_master *master;
71 return spi_master_get_devdata(sdev->master);
352 struct spi_master *master;
355 master = spi_alloc_master(&pdev->dev, sizeof(struct nuc900_spi));
356 if (master == NULL) {
362 hw = spi_master_get_devdata(master);
365 hw->master = spi_master_get(master);
378 master->mode_bits = SPI_MODE_0;
379 master->num_chipselect = hw->pdata->num_cs;
380 master->bus_num = hw->pdata->bus_num;
381 hw->bitbang.master = hw->master;
385 hw->bitbang.master->setup = nuc900_spi_setup;
435 dev_err(&pdev->dev, "Failed to register SPI master\n");
452 spi_master_put(hw->master);;
466 spi_unregister_master(hw->master);
476 spi_master_put(hw->master);