Lines Matching refs:gdata
368 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_read_raw() local
379 *val2 = gdata->current_fullscale->gain; in st_gyro_read_raw()
382 *val = gdata->odr; in st_gyro_read_raw()
447 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_common_probe() local
448 int irq = gdata->get_irq_data_ready(indio_dev); in st_gyro_common_probe()
453 mutex_init(&gdata->tb.buf_lock); in st_gyro_common_probe()
465 gdata->num_data_channels = ST_GYRO_NUMBER_DATA_CHANNELS; in st_gyro_common_probe()
466 gdata->multiread_bit = gdata->sensor_settings->multi_read_bit; in st_gyro_common_probe()
467 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
470 gdata->current_fullscale = (struct st_sensor_fullscale_avl *) in st_gyro_common_probe()
471 &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe()
472 gdata->odr = gdata->sensor_settings->odr.odr_avl[0].hz; in st_gyro_common_probe()
513 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_common_remove() local
518 if (gdata->get_irq_data_ready(indio_dev) > 0) in st_gyro_common_remove()