Lines Matching refs:spi
34 struct spi_device *spi = to_spi_device(chip->dev); in ad714x_spi_read() local
53 error = spi_sync(spi, &message); in ad714x_spi_read()
68 struct spi_device *spi = to_spi_device(chip->dev); in ad714x_spi_write() local
74 error = spi_write(spi, (u8 *)chip->xfer_buf, in ad714x_spi_write()
84 static int ad714x_spi_probe(struct spi_device *spi) in ad714x_spi_probe() argument
89 spi->bits_per_word = 8; in ad714x_spi_probe()
90 err = spi_setup(spi); in ad714x_spi_probe()
94 chip = ad714x_probe(&spi->dev, BUS_SPI, spi->irq, in ad714x_spi_probe()
99 spi_set_drvdata(spi, chip); in ad714x_spi_probe()
104 static int ad714x_spi_remove(struct spi_device *spi) in ad714x_spi_remove() argument
106 struct ad714x_chip *chip = spi_get_drvdata(spi); in ad714x_spi_remove()