Lines Matching refs:spidev
387 static int lantiq_ssc_setup(struct spi_device *spidev) in lantiq_ssc_setup() argument
389 struct spi_master *master = spidev->master; in lantiq_ssc_setup()
391 unsigned int cs = spidev->chip_select; in lantiq_ssc_setup()
395 if (spidev->cs_gpiod) in lantiq_ssc_setup()
410 if (spidev->mode & SPI_CS_HIGH) in lantiq_ssc_setup()
431 struct spi_device *spidev, struct spi_transfer *t) in hw_setup_transfer() argument
721 static int transfer_start(struct lantiq_ssc_spi *spi, struct spi_device *spidev, in transfer_start() argument
796 static void lantiq_ssc_set_cs(struct spi_device *spidev, bool enable) in lantiq_ssc_set_cs() argument
798 struct lantiq_ssc_spi *spi = spi_master_get_devdata(spidev->master); in lantiq_ssc_set_cs()
799 unsigned int cs = spidev->chip_select; in lantiq_ssc_set_cs()
802 if (!!(spidev->mode & SPI_CS_HIGH) == enable) in lantiq_ssc_set_cs()
811 struct spi_device *spidev, in lantiq_ssc_transfer_one() argument
816 hw_setup_transfer(spi, spidev, t); in lantiq_ssc_transfer_one()
818 return transfer_start(spi, spidev, t); in lantiq_ssc_transfer_one()