/linux/drivers/spi/ |
H A D | spi-mpc512x-psc.c | 124 if (spi_get_csgpiod(spi, 0)) { in mpc512x_psc_spi_activate_cs() 126 gpiod_set_value(spi_get_csgpiod(spi, 0), 1); in mpc512x_psc_spi_activate_cs() 132 if (spi_get_csgpiod(spi, 0)) { in mpc512x_psc_spi_deactivate_cs() 134 gpiod_set_value(spi_get_csgpiod(spi, 0), 0); in mpc512x_psc_spi_deactivate_cs()
|
H A D | spi-atmel.c | 389 if (spi_get_csgpiod(spi, 0)) in cs_activate() 420 if (spi_get_csgpiod(spi, 0)) { in cs_activate() 427 gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), 0); in cs_activate() 430 gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), 1); in cs_activate() 459 if (spi_get_csgpiod(spi, 0)) in cs_deactivate() 475 if (!spi_get_csgpiod(spi, 0)) in cs_deactivate() 881 if (spi_get_csgpiod(spi, 0)) in atmel_spi_set_xfer_speed() 1268 if (!spi_get_csgpiod(spi, 0) && (spi->mode & SPI_CS_HIGH)) { in atmel_spi_setup() 1280 if (spi_get_csgpiod(spi, 0) && as->native_cs_free) { in atmel_spi_setup() 1286 if (spi_get_csgpiod(spi, 0)) in atmel_spi_setup() [all …]
|
H A D | spi-davinci.c | 214 if (spi_get_csgpiod(spi, 0)) { in davinci_spi_chipselect() 216 gpiod_set_value(spi_get_csgpiod(spi, 0), 1); in davinci_spi_chipselect() 218 gpiod_set_value(spi_get_csgpiod(spi, 0), 0); in davinci_spi_chipselect() 417 if (np && spi_get_csgpiod(spi, 0)) in davinci_spi_setup()
|
H A D | spi-fsl-dspi.c | 900 if (!spi_get_csgpiod(spi, 0) || *cs) in dspi_assert_cs() 903 gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), true); in dspi_assert_cs() 909 if (!spi_get_csgpiod(spi, 0) || !*cs) in dspi_deassert_cs() 912 gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), false); in dspi_deassert_cs() 936 if (!spi_get_csgpiod(spi, 0)) in dspi_transfer_one_message() 1081 gpio_cs = spi_get_csgpiod(spi, 0); in dspi_setup()
|
H A D | spi-tegra114.c | 829 if (spi_get_csgpiod(spi, 0)) in tegra_spi_setup_transfer_one() 830 gpiod_set_value(spi_get_csgpiod(spi, 0), 1); in tegra_spi_setup_transfer_one() 978 if (spi_get_csgpiod(spi, 0)) in tegra_spi_setup() 979 gpiod_set_value(spi_get_csgpiod(spi, 0), 0); in tegra_spi_setup() 1000 if (spi_get_csgpiod(spi, 0)) in tegra_spi_transfer_end() 1001 gpiod_set_value(spi_get_csgpiod(spi, 0), 0); in tegra_spi_transfer_end()
|
H A D | spi-rockchip.c | 249 if (spi_get_csgpiod(spi, 0)) in rockchip_spi_set_cs() 255 if (spi_get_csgpiod(spi, 0)) in rockchip_spi_set_cs() 720 if (!spi_get_csgpiod(spi, 0) && (spi->mode & SPI_CS_HIGH) && !rs->cs_high_supported) { in rockchip_spi_setup()
|
H A D | spi-ath79.c | 143 if (spi_get_chipselect(mem->spi, 0) || spi_get_csgpiod(mem->spi, 0)) in ath79_exec_mem_op()
|
H A D | spi-stm32-qspi.c | 566 if (!spi_get_csgpiod(spi, 0)) in stm32_qspi_transfer_one_message() 575 gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), true); in stm32_qspi_transfer_one_message() 628 gpiod_set_value_cansleep(spi_get_csgpiod(spi, 0), false); in stm32_qspi_transfer_one_message()
|
H A D | spi-pic32.c | 594 if (!spi_get_csgpiod(spi, 0)) in pic32_spi_setup() 603 gpiod_direction_output(spi_get_csgpiod(spi, 0), 0); in pic32_spi_cleanup()
|
H A D | spidev.c | 396 if (ctlr->use_gpio_descriptors && spi_get_csgpiod(spi, 0)) in spidev_ioctl() 430 if (ctlr->use_gpio_descriptors && spi_get_csgpiod(spi, 0)) in spidev_ioctl()
|
H A D | spi-mem.c | 371 if (ctlr->mem_ops && ctlr->mem_ops->exec_op && !spi_get_csgpiod(mem->spi, 0)) { in spi_mem_exec_op() 858 if (ctlr->mem_ops && ctlr->mem_ops->poll_status && !spi_get_csgpiod(mem->spi, 0)) { in spi_mem_poll_status()
|
H A D | spi-st-ssc4.c | 186 if (!spi_get_csgpiod(spi, 0)) { in spi_st_setup()
|
H A D | spi-cs42l43.c | 189 if (spi_get_csgpiod(spi, 0)) in cs42l43_prepare_message()
|
H A D | spi-bcm2835aux.c | 449 if (spi_get_csgpiod(spi, 0)) in bcm2835aux_spi_setup()
|
H A D | spi-imx.c | 522 if (!spi_get_csgpiod(spi, 0)) in mx51_ecspi_channel() 799 if (!spi_get_csgpiod(spi, 0)) in mx31_prepare_transfer() 899 if (!spi_get_csgpiod(spi, 0)) in mx21_prepare_transfer()
|
H A D | spi-rspi.c | 952 if (spi_get_csgpiod(spi, 0)) in rspi_setup() 1003 rspi->spcmd |= SPCMD_SSLA(spi_get_csgpiod(spi, 0) ? rspi->ctlr->unused_native_cs in rspi_prepare_message()
|
H A D | spi-omap2-mcspi.c | 1177 if (spi_get_csgpiod(spi, 0)) in omap2_mcspi_transfer_one() 1249 if (spi_get_csgpiod(spi, 0)) in omap2_mcspi_transfer_one()
|
H A D | spi-mt65xx.c | 739 if (mdata->dev_comp->need_pad_sel && spi_get_csgpiod(spi, 0)) in mtk_spi_setup() 741 gpiod_direction_output(spi_get_csgpiod(spi, 0), 0); in mtk_spi_setup()
|
H A D | spi-sh-msiof.c | 559 if (spi_get_csgpiod(spi, 0) || spi_controller_is_target(p->ctlr)) in sh_msiof_spi_setup() 592 if (spi_get_csgpiod(spi, 0)) { in sh_msiof_prepare_message()
|
H A D | spi-bcm-qspi.c | 1049 if (!spi_get_csgpiod(spi, 0)) in bcm_qspi_bspi_exec_mem_op() 1129 if (!spi_get_csgpiod(spi, 0)) in bcm_qspi_transfer_one()
|
H A D | spi.c | 1056 gpiod_set_value_cansleep(spi_get_csgpiod(spi, idx), !enable); in spi_toggle_csgpiod() 1059 gpiod_set_value_cansleep(spi_get_csgpiod(spi, idx), activate); in spi_toggle_csgpiod() 1103 if (spi_get_csgpiod(spi, idx)) in spi_set_cs() 3851 if (spi->controller->set_cs_timing && !spi_get_csgpiod(spi, 0)) { in spi_set_cs_timing()
|
H A D | spi-lantiq-ssc.c | 396 if (spi_get_csgpiod(spidev, 0)) in lantiq_ssc_setup()
|
H A D | spi-bcm2835.c | 1280 if (spi_get_csgpiod(spi, 0)) in bcm2835_spi_setup()
|
/linux/include/linux/spi/ |
H A D | spi.h | 300 static inline struct gpio_desc *spi_get_csgpiod(const struct spi_device *spi, u8 idx) in spi_get_csgpiod() function 315 if (spi_get_csgpiod(spi, idx)) in spi_is_csgpiod()
|