Lines Matching refs:master
2 * spi_bitbang.c - polling/bitbanging SPI master controller driver utilities
190 bitbang = spi_master_get_devdata(spi->master);
396 bitbang = spi_master_get_devdata(spi->master);
414 * spi_bitbang_start - start up a polled/bitbanging SPI master driver
418 * provided callbacks for chip selection and I/O loops. If the master has
429 * master methods. Those methods are the defaults if the bitbang->txrx_bufs
440 if (!bitbang->master || !bitbang->chipselect)
447 if (!bitbang->master->mode_bits)
448 bitbang->master->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags;
450 if (!bitbang->master->transfer)
451 bitbang->master->transfer = spi_bitbang_transfer;
455 if (!bitbang->master->setup) {
459 bitbang->master->setup = spi_bitbang_setup;
460 bitbang->master->cleanup = spi_bitbang_cleanup;
462 } else if (!bitbang->master->setup)
468 dev_name(bitbang->master->dev.parent));
477 status = spi_register_master(bitbang->master);
495 spi_unregister_master(bitbang->master);