Searched refs:spi_gpio (Results 1 - 11 of 11) sorted by relevance

/linux-4.4.14/drivers/spi/
H A Dspi-gpio.c26 #include <linux/spi/spi_gpio.h>
35 * platform_device->driver_data ... points to spi_gpio
40 * spi->master->dev.driver_data ... points to spi_gpio->bitbang
43 struct spi_gpio { struct
76 #define DRIVER_NAME "spi_gpio"
91 static inline struct spi_gpio *__pure spi_to_spi_gpio()
95 struct spi_gpio *spi_gpio; spi_to_spi_gpio() local
98 spi_gpio = container_of(bang, struct spi_gpio, bitbang); spi_to_spi_gpio()
99 return spi_gpio; spi_to_spi_gpio()
218 struct spi_gpio *spi_gpio = spi_to_spi_gpio(spi); spi_gpio_chipselect() local
219 unsigned long cs = spi_gpio->cs_gpios[spi->chip_select]; spi_gpio_chipselect()
235 struct spi_gpio *spi_gpio = spi_to_spi_gpio(spi); spi_gpio_setup() local
243 cs = spi_gpio->cs_gpios[spi->chip_select]; spi_gpio_setup()
262 spi_gpio->cs_gpios[spi->chip_select] = cs; spi_gpio_setup()
275 struct spi_gpio *spi_gpio = spi_to_spi_gpio(spi); spi_gpio_cleanup() local
276 unsigned long cs = spi_gpio->cs_gpios[spi->chip_select]; spi_gpio_cleanup()
408 struct spi_gpio *spi_gpio; spi_gpio_probe() local
435 master = spi_alloc_master(&pdev->dev, sizeof(*spi_gpio) + spi_gpio_probe()
441 spi_gpio = spi_master_get_devdata(master); spi_gpio_probe()
442 platform_set_drvdata(pdev, spi_gpio); spi_gpio_probe()
444 spi_gpio->pdev = pdev; spi_gpio_probe()
446 spi_gpio->pdata = *pdata; spi_gpio_probe()
467 spi_gpio->cs_gpios[0] = SPI_GPIO_NO_CHIPSELECT; spi_gpio_probe()
476 spi_gpio->cs_gpios[i] = status; spi_gpio_probe()
481 spi_gpio->bitbang.master = master; spi_gpio_probe()
482 spi_gpio->bitbang.chipselect = spi_gpio_chipselect; spi_gpio_probe()
485 spi_gpio->bitbang.txrx_word[SPI_MODE_0] = spi_gpio_txrx_word_mode0; spi_gpio_probe()
486 spi_gpio->bitbang.txrx_word[SPI_MODE_1] = spi_gpio_txrx_word_mode1; spi_gpio_probe()
487 spi_gpio->bitbang.txrx_word[SPI_MODE_2] = spi_gpio_txrx_word_mode2; spi_gpio_probe()
488 spi_gpio->bitbang.txrx_word[SPI_MODE_3] = spi_gpio_txrx_word_mode3; spi_gpio_probe()
490 spi_gpio->bitbang.txrx_word[SPI_MODE_0] = spi_gpio_spec_txrx_word_mode0; spi_gpio_probe()
491 spi_gpio->bitbang.txrx_word[SPI_MODE_1] = spi_gpio_spec_txrx_word_mode1; spi_gpio_probe()
492 spi_gpio->bitbang.txrx_word[SPI_MODE_2] = spi_gpio_spec_txrx_word_mode2; spi_gpio_probe()
493 spi_gpio->bitbang.txrx_word[SPI_MODE_3] = spi_gpio_spec_txrx_word_mode3; spi_gpio_probe()
495 spi_gpio->bitbang.setup_transfer = spi_bitbang_setup_transfer; spi_gpio_probe()
496 spi_gpio->bitbang.flags = SPI_CS_HIGH; spi_gpio_probe()
498 status = spi_bitbang_start(&spi_gpio->bitbang); spi_gpio_probe()
514 struct spi_gpio *spi_gpio; spi_gpio_remove() local
517 spi_gpio = platform_get_drvdata(pdev); spi_gpio_remove()
521 spi_bitbang_stop(&spi_gpio->bitbang); spi_gpio_remove()
528 spi_master_put(spi_gpio->bitbang.master); spi_gpio_remove()
H A Dspi-sh-msiof.c526 * Use spi->controller_data for CS (same strategy as spi_gpio), sh_msiof_spi_setup()
/linux-4.4.14/drivers/misc/eeprom/
H A Ddigsy_mtc_eeprom.c16 #include <linux/spi/spi_gpio.h>
52 .name = "spi_gpio",
/linux-4.4.14/include/linux/spi/
H A Dspi_gpio.h6 * - name "spi_gpio"
/linux-4.4.14/arch/mips/alchemy/devboards/
H A Ddb1000.c33 #include <linux/spi/spi_gpio.h>
465 .controller_data = (void *)210, /* for spi_gpio: CS# GPIO210 */
470 .name = "spi_gpio",
523 /* spi_gpio on SSI0 pins */ db1000_dev_setup()
/linux-4.4.14/arch/mips/jz4740/
H A Dboard-qi_lb60.c24 #include <linux/spi/spi_gpio.h>
309 .name = "spi_gpio",
/linux-4.4.14/arch/arm/mach-pxa/
H A Dcm-x300.c42 #include <linux/spi/spi_gpio.h>
353 .name = "spi_gpio",
H A Draumfeld.c37 #include <linux/spi/spi_gpio.h>
645 .name = "spi_gpio",
/linux-4.4.14/arch/arm/mach-s3c24xx/
H A Dmach-qt2410.c36 #include <linux/spi/spi_gpio.h>
H A Dmach-jive.c29 #include <linux/spi/spi_gpio.h>
/linux-4.4.14/arch/arm/mach-s3c64xx/
H A Dmach-smartq.c21 #include <linux/spi/spi_gpio.h>

Completed in 403 milliseconds