Lines Matching refs:adis

176 	struct adis adis;  member
216 ret = adis_read_reg_16(&st->adis, ADIS16334_LOT_ID1, &lot1); in adis16400_show_serial_number()
220 ret = adis_read_reg_16(&st->adis, ADIS16334_LOT_ID2, &lot2); in adis16400_show_serial_number()
224 ret = adis_read_reg_16(&st->adis, ADIS16334_SERIAL_NUMBER, in adis16400_show_serial_number()
248 ret = adis_read_reg_16(&st->adis, ADIS16400_PRODUCT_ID, &prod_id); in adis16400_show_product_id()
265 ret = adis_read_reg_16(&st->adis, ADIS16400_FLASH_CNT, &flash_count); in adis16400_show_flash_count()
320 ret = __adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &t); in adis16334_get_freq()
344 return __adis_write_reg_16(&st->adis, ADIS16400_SMPL_PRD, t); in adis16334_set_freq()
352 ret = __adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &t); in adis16400_get_freq()
380 st->adis.spi->max_speed_hz = ADIS16400_SPI_SLOW; in adis16400_set_freq()
382 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_set_freq()
384 return __adis_write_reg_8(&st->adis, ADIS16400_SMPL_PRD, val); in adis16400_set_freq()
409 ret = __adis_read_reg_16(&st->adis, ADIS16400_SENS_AVG, &val16); in __adis16400_set_filter()
413 ret = __adis_write_reg_16(&st->adis, ADIS16400_SENS_AVG, in __adis16400_set_filter()
424 ret = adis_write_reg_16(&st->adis, ADIS16400_SLP_CNT, in adis16400_stop_device()
442 st->adis.spi->max_speed_hz = ADIS16400_SPI_SLOW; in adis16400_initial_setup()
444 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_initial_setup()
445 st->adis.spi->mode = SPI_MODE_3; in adis16400_initial_setup()
446 spi_setup(st->adis.spi); in adis16400_initial_setup()
448 ret = __adis_initial_startup(&st->adis); in adis16400_initial_setup()
453 ret = adis_read_reg_16(&st->adis, in adis16400_initial_setup()
469 st->adis.spi->chip_select, st->adis.spi->irq); in adis16400_initial_setup()
473 ret = adis_read_reg_16(&st->adis, ADIS16400_SMPL_PRD, &smp_prd); in adis16400_initial_setup()
478 st->adis.spi->max_speed_hz = ADIS16400_SPI_FAST; in adis16400_initial_setup()
479 spi_setup(st->adis.spi); in adis16400_initial_setup()
504 ret = adis_write_reg_16(&st->adis, in adis16400_write_raw()
512 adis_dev_lock(&st->adis); in adis16400_write_raw()
517 adis_dev_unlock(&st->adis); in adis16400_write_raw()
523 adis_dev_unlock(&st->adis); in adis16400_write_raw()
531 adis_dev_lock(&st->adis); in adis16400_write_raw()
533 adis_dev_unlock(&st->adis); in adis16400_write_raw()
587 ret = adis_read_reg_16(&st->adis, in adis16400_read_raw()
599 adis_dev_lock(&st->adis); in adis16400_read_raw()
601 ret = __adis_read_reg_16(&st->adis, in adis16400_read_raw()
605 adis_dev_unlock(&st->adis); in adis16400_read_raw()
609 adis_dev_unlock(&st->adis); in adis16400_read_raw()
617 adis_dev_lock(&st->adis); in adis16400_read_raw()
619 adis_dev_unlock(&st->adis); in adis16400_read_raw()
636 struct adis *adis = &st->adis; in adis16400_trigger_handler() local
640 ret = spi_sync(adis->spi, &adis->msg); in adis16400_trigger_handler()
642 dev_err(&adis->spi->dev, "Failed to read data: %d\n", ret); in adis16400_trigger_handler()
645 buffer = adis->buffer + sizeof(u16); in adis16400_trigger_handler()
657 adis->buffer, in adis16400_trigger_handler()
1186 ret = adis_init(&st->adis, indio_dev, spi, adis16400_data); in adis16400_probe()
1190 ret = devm_adis_setup_buffer_and_trigger(&st->adis, indio_dev, adis16400_trigger_handler); in adis16400_probe()