Lines Matching refs:spi

23 	result = inv_spi_read(&cfg->spi, REG_ACCEL_CONFIG0, &databuf, 1);  in icm42605_set_fs()
31 result = inv_spi_single_write(&cfg->spi, REG_ACCEL_CONFIG0, &databuf); in icm42605_set_fs()
33 result = inv_spi_read(&cfg->spi, REG_GYRO_CONFIG0, &databuf, 1); in icm42605_set_fs()
42 result = inv_spi_single_write(&cfg->spi, REG_GYRO_CONFIG0, &databuf); in icm42605_set_fs()
63 result = inv_spi_read(&cfg->spi, REG_ACCEL_CONFIG0, &databuf, 1); in icm42605_set_odr()
99 result = inv_spi_single_write(&cfg->spi, REG_ACCEL_CONFIG0, &databuf); in icm42605_set_odr()
107 result = inv_spi_read(&cfg->spi, REG_GYRO_CONFIG0, &databuf, 1); in icm42605_set_odr()
139 result = inv_spi_single_write(&cfg->spi, REG_GYRO_CONFIG0, &databuf); in icm42605_set_odr()
153 result = inv_spi_read(&cfg->spi, REG_WHO_AM_I, &v, 1); in icm42605_sensor_init()
161 result = inv_spi_read(&cfg->spi, REG_DEVICE_CONFIG, &v, 1); in icm42605_sensor_init()
170 result = inv_spi_single_write(&cfg->spi, REG_DEVICE_CONFIG, &v); in icm42605_sensor_init()
182 result = inv_spi_single_write(&cfg->spi, REG_INTF_CONFIG1, &v); in icm42605_sensor_init()
193 result = inv_spi_single_write(&cfg->spi, REG_TMST_CONFIG, &v); in icm42605_sensor_init()
200 result = inv_spi_read(&cfg->spi, REG_INTF_CONFIG0, &v, 1); in icm42605_sensor_init()
211 result = inv_spi_single_write(&cfg->spi, REG_INTF_CONFIG0, &v); in icm42605_sensor_init()
219 result = inv_spi_single_write(&cfg->spi, REG_INT_CONFIG1, &v); in icm42605_sensor_init()
225 result = inv_spi_single_write(&cfg->spi, REG_PWR_MGMT0, &v); in icm42605_sensor_init()
246 result = inv_spi_single_write(&cfg->spi, REG_FIFO_CONFIG, &v); in icm42605_turn_on_fifo()
252 result = inv_spi_single_write(&cfg->spi, REG_FIFO_CONFIG1, &v); in icm42605_turn_on_fifo()
257 result = inv_spi_read(&cfg->spi, REG_FIFO_COUNTH, burst_read, 2); in icm42605_turn_on_fifo()
262 result = inv_spi_read(&cfg->spi, REG_FIFO_DATA, burst_read, 3); in icm42605_turn_on_fifo()
268 result = inv_spi_single_write(&cfg->spi, REG_FIFO_CONFIG, &v); in icm42605_turn_on_fifo()
273 result = inv_spi_single_write(&cfg->spi, REG_FIFO_CONFIG1, &fifo_en); in icm42605_turn_on_fifo()
278 result = inv_spi_single_write(&cfg->spi, REG_INT_SOURCE0, &int0_en); in icm42605_turn_on_fifo()
285 result = inv_spi_single_write(&cfg->spi, REG_APEX_CONFIG0, &v); in icm42605_turn_on_fifo()
291 result = inv_spi_single_write(&cfg->spi, REG_SIGNAL_PATH_RESET, &v); in icm42605_turn_on_fifo()
297 result = inv_spi_single_write(&cfg->spi, REG_BANK_SEL, &v); in icm42605_turn_on_fifo()
303 result = inv_spi_single_write(&cfg->spi, REG_INT_SOURCE6, &v); in icm42605_turn_on_fifo()
309 result = inv_spi_single_write(&cfg->spi, REG_BANK_SEL, &v); in icm42605_turn_on_fifo()
329 result = inv_spi_single_write(&cfg->spi, REG_FIFO_CONFIG, &v); in icm42605_turn_off_fifo()
335 result = inv_spi_single_write(&cfg->spi, REG_FIFO_CONFIG1, &v); in icm42605_turn_off_fifo()
340 result = inv_spi_read(&cfg->spi, REG_FIFO_COUNTH, burst_read, 2); in icm42605_turn_off_fifo()
345 result = inv_spi_read(&cfg->spi, REG_FIFO_DATA, burst_read, 3); in icm42605_turn_off_fifo()
350 result = inv_spi_single_write(&cfg->spi, REG_INT_SOURCE0, &int0_en); in icm42605_turn_off_fifo()
357 result = inv_spi_single_write(&cfg->spi, REG_APEX_CONFIG0, &v); in icm42605_turn_off_fifo()
362 result = inv_spi_single_write(&cfg->spi, REG_SIGNAL_PATH_RESET, &v); in icm42605_turn_off_fifo()
368 result = inv_spi_single_write(&cfg->spi, REG_BANK_SEL, &v); in icm42605_turn_off_fifo()
374 result = inv_spi_single_write(&cfg->spi, REG_INT_SOURCE6, &v); in icm42605_turn_off_fifo()
380 result = inv_spi_single_write(&cfg->spi, REG_BANK_SEL, &v); in icm42605_turn_off_fifo()
409 result = inv_spi_single_write(&cfg->spi, REG_PWR_MGMT0, &v); in icm42605_turn_on_sensor()
432 result = inv_spi_read(&cfg->spi, REG_PWR_MGMT0, &v, 1); in icm42605_turn_off_sensor()
437 result = inv_spi_single_write(&cfg->spi, REG_PWR_MGMT0, &v); in icm42605_turn_off_sensor()