Home
last modified time | relevance | path

Searched refs:adata (Results 1 – 4 of 4) sorted by relevance

/drivers/iio/accel/
Dst_accel_buffer.c41 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_buffer_postenable() local
43 adata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_accel_buffer_postenable()
44 if (adata->buffer_data == NULL) { in st_accel_buffer_postenable()
61 kfree(adata->buffer_data); in st_accel_buffer_postenable()
69 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_buffer_predisable() local
82 kfree(adata->buffer_data); in st_accel_buffer_predisable()
Dst_accel_core.c744 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_read_raw() local
754 *val = adata->current_fullscale->gain / 1000000; in st_accel_read_raw()
755 *val2 = adata->current_fullscale->gain % 1000000; in st_accel_read_raw()
758 *val = adata->odr; in st_accel_read_raw()
829 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_common_probe() local
831 (struct st_sensors_platform_data *)adata->dev->platform_data; in st_accel_common_probe()
832 int irq = adata->get_irq_data_ready(indio_dev); in st_accel_common_probe()
837 mutex_init(&adata->tb.buf_lock); in st_accel_common_probe()
849 adata->num_data_channels = ST_ACCEL_NUMBER_DATA_CHANNELS; in st_accel_common_probe()
850 adata->multiread_bit = adata->sensor_settings->multi_read_bit; in st_accel_common_probe()
[all …]
Dst_accel_spi.c24 struct st_sensor_data *adata; in st_accel_spi_probe() local
27 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*adata)); in st_accel_spi_probe()
31 adata = iio_priv(indio_dev); in st_accel_spi_probe()
33 st_sensors_spi_configure(indio_dev, spi, adata); in st_accel_spi_probe()
Dst_accel_i2c.c98 struct st_sensor_data *adata; in st_accel_i2c_probe() local
101 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*adata)); in st_accel_i2c_probe()
105 adata = iio_priv(indio_dev); in st_accel_i2c_probe()
108 st_sensors_i2c_configure(indio_dev, client, adata); in st_accel_i2c_probe()