Home
last modified time | relevance | path

Searched refs:spi_get_csgpiod (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/spi/
H A Dspi-mpc512x-psc.c124 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 Dspi-atmel.c389 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 Dspi-davinci.c214 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 Dspi-fsl-dspi.c900 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 Dspi-tegra114.c829 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 Dspi-rockchip.c249 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 Dspi-ath79.c143 if (spi_get_chipselect(mem->spi, 0) || spi_get_csgpiod(mem->spi, 0)) in ath79_exec_mem_op()
H A Dspi-stm32-qspi.c566 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 Dspi-pic32.c594 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 Dspidev.c396 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 Dspi-mem.c371 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 Dspi-st-ssc4.c186 if (!spi_get_csgpiod(spi, 0)) { in spi_st_setup()
H A Dspi-cs42l43.c189 if (spi_get_csgpiod(spi, 0)) in cs42l43_prepare_message()
H A Dspi-bcm2835aux.c449 if (spi_get_csgpiod(spi, 0)) in bcm2835aux_spi_setup()
H A Dspi-imx.c522 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 Dspi-rspi.c952 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 Dspi-omap2-mcspi.c1177 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 Dspi-mt65xx.c739 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 Dspi-sh-msiof.c559 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 Dspi-bcm-qspi.c1049 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 Dspi.c1056 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 Dspi-lantiq-ssc.c396 if (spi_get_csgpiod(spidev, 0)) in lantiq_ssc_setup()
H A Dspi-bcm2835.c1280 if (spi_get_csgpiod(spi, 0)) in bcm2835_spi_setup()
/linux/include/linux/spi/
H A Dspi.h300 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()