Lines Matching refs:spidev
388 static int lantiq_ssc_setup(struct spi_device *spidev) in lantiq_ssc_setup() argument
390 struct spi_controller *host = spidev->controller; in lantiq_ssc_setup()
392 unsigned int cs = spi_get_chipselect(spidev, 0); in lantiq_ssc_setup()
396 if (spi_get_csgpiod(spidev, 0)) in lantiq_ssc_setup()
411 if (spidev->mode & SPI_CS_HIGH) in lantiq_ssc_setup()
432 struct spi_device *spidev, struct spi_transfer *t) in hw_setup_transfer() argument
722 static int transfer_start(struct lantiq_ssc_spi *spi, struct spi_device *spidev, in transfer_start() argument
797 static void lantiq_ssc_set_cs(struct spi_device *spidev, bool enable) in lantiq_ssc_set_cs() argument
799 struct lantiq_ssc_spi *spi = spi_controller_get_devdata(spidev->controller); in lantiq_ssc_set_cs()
800 unsigned int cs = spi_get_chipselect(spidev, 0); in lantiq_ssc_set_cs()
803 if (!!(spidev->mode & SPI_CS_HIGH) == enable) in lantiq_ssc_set_cs()
812 struct spi_device *spidev, in lantiq_ssc_transfer_one() argument
817 hw_setup_transfer(spi, spidev, t); in lantiq_ssc_transfer_one()
819 return transfer_start(spi, spidev, t); in lantiq_ssc_transfer_one()