Lines Matching refs:spi_device
63 struct spi_device *spi_device; member
80 static inline int bma220_read_reg(struct spi_device *spi, u8 reg) in bma220_read_reg()
96 struct spi_device *spi = data->spi_device; in bma220_trigger_handler()
124 ret = bma220_read_reg(data->spi_device, chan->address); in bma220_read_raw()
131 ret = bma220_read_reg(data->spi_device, BMA220_REG_RANGE); in bma220_read_raw()
166 ret = spi_write(data->spi_device, data->tx_buf, in bma220_write_raw()
169 dev_err(&data->spi_device->dev, in bma220_write_raw()
201 static int bma220_init(struct spi_device *spi) in bma220_init()
221 static int bma220_power(struct spi_device *spi, bool up) in bma220_power()
250 static int bma220_probe(struct spi_device *spi) in bma220_probe()
263 data->spi_device = spi; in bma220_probe()
273 ret = bma220_init(data->spi_device); in bma220_probe()
294 struct spi_device *spi = to_spi_device(dev); in bma220_suspend()
301 struct spi_device *spi = to_spi_device(dev); in bma220_resume()