Lines Matching refs:adis
48 ret = adis_read_reg_16(&st->adis, ADIS16334_LOT_ID1, &lot1); in adis16400_show_serial_number()
52 ret = adis_read_reg_16(&st->adis, ADIS16334_LOT_ID2, &lot2); in adis16400_show_serial_number()
56 ret = adis_read_reg_16(&st->adis, ADIS16334_SERIAL_NUMBER, in adis16400_show_serial_number()
80 ret = adis_read_reg_16(&st->adis, ADIS16400_PRODUCT_ID, &prod_id); in adis16400_show_product_id()
97 ret = adis_read_reg_16(&st->adis, ADIS16400_FLASH_CNT, &flash_count); in adis16400_show_flash_count()
153 ret = adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &t); in adis16334_get_freq()
177 return adis_write_reg_16(&st->adis, ADIS16400_SMPL_PRD, t); in adis16334_set_freq()
185 ret = adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &t); in adis16400_get_freq()
213 st->adis.spi->max_speed_hz = ADIS16400_SPI_SLOW; in adis16400_set_freq()
215 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_set_freq()
217 return adis_write_reg_8(&st->adis, ADIS16400_SMPL_PRD, val); in adis16400_set_freq()
242 ret = adis_read_reg_16(&st->adis, ADIS16400_SENS_AVG, &val16); in adis16400_set_filter()
246 ret = adis_write_reg_16(&st->adis, ADIS16400_SENS_AVG, in adis16400_set_filter()
257 ret = adis_write_reg_16(&st->adis, ADIS16400_SLP_CNT, in adis16400_stop_device()
275 st->adis.spi->max_speed_hz = ADIS16400_SPI_SLOW; in adis16400_initial_setup()
277 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_initial_setup()
278 st->adis.spi->mode = SPI_MODE_3; in adis16400_initial_setup()
279 spi_setup(st->adis.spi); in adis16400_initial_setup()
281 ret = adis_initial_startup(&st->adis); in adis16400_initial_setup()
286 ret = adis_read_reg_16(&st->adis, in adis16400_initial_setup()
299 st->adis.spi->chip_select, st->adis.spi->irq); in adis16400_initial_setup()
303 ret = adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &smp_prd); in adis16400_initial_setup()
308 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_initial_setup()
309 spi_setup(st->adis.spi); in adis16400_initial_setup()
335 ret = adis_write_reg_16(&st->adis, in adis16400_write_raw()
420 ret = adis_read_reg_16(&st->adis, in adis16400_read_raw()
435 ret = adis_read_reg_16(&st->adis, in adis16400_read_raw()
928 ret = adis_init(&st->adis, indio_dev, spi, &adis16400_data); in adis16400_probe()
932 ret = adis_setup_buffer_and_trigger(&st->adis, indio_dev, in adis16400_probe()
949 adis_cleanup_buffer_and_trigger(&st->adis, indio_dev); in adis16400_probe()
961 adis_cleanup_buffer_and_trigger(&st->adis, indio_dev); in adis16400_remove()