Lines Matching refs:master
55 struct spi_master *master;
965 struct driver_data *drv_data = spi_master_get_devdata(spi->master);
1011 struct driver_data *drv_data = spi_master_get_devdata(spi->master);
1140 && (chip->chip_select_num <= spi->master->num_chipselect))
1141 peripheral_request(ssel[spi->master->bus_num]
1161 && (chip->chip_select_num <= spi->master->num_chipselect))
1162 peripheral_free(ssel[spi->master->bus_num]
1186 dev_name(drv_data->master->dev.parent));
1261 struct spi_master *master;
1268 /* Allocate master with space for drv_data */
1269 master = spi_alloc_master(dev, sizeof(struct driver_data) + 16);
1270 if (!master) {
1275 drv_data = spi_master_get_devdata(master);
1276 drv_data->master = master;
1282 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
1284 master->bus_num = pdev->id;
1285 master->num_chipselect = platform_info->num_chipselect;
1286 master->cleanup = bfin_spi_cleanup;
1287 master->setup = bfin_spi_setup;
1288 master->transfer = bfin_spi_transfer;
1333 status = spi_register_master(master);
1335 dev_err(dev, "problem registering spi master\n");
1350 spi_master_put(master);
1379 spi_unregister_master(drv_data->master);