• Home
  • Raw
  • Download

Lines Matching refs:adata

915 	struct st_sensor_data *adata = iio_priv(indio_dev);  in st_accel_read_raw()  local
925 *val = adata->current_fullscale->gain / 1000000; in st_accel_read_raw()
926 *val2 = adata->current_fullscale->gain % 1000000; in st_accel_read_raw()
929 *val = adata->odr; in st_accel_read_raw()
1001 struct st_sensor_data *adata = iio_priv(indio_dev); in get_mount_matrix() local
1003 return adata->mount_matrix; in get_mount_matrix()
1017 struct st_sensor_data *adata = iio_priv(indio_dev); in apply_acpi_orientation() local
1041 adev = ACPI_COMPANION(adata->dev); in apply_acpi_orientation()
1104 adata->mount_matrix = devm_kmalloc(&indio_dev->dev, in apply_acpi_orientation()
1105 sizeof(*adata->mount_matrix), in apply_acpi_orientation()
1107 if (!adata->mount_matrix) { in apply_acpi_orientation()
1130 adata->mount_matrix->rotation[i * 3 + j] = str_value; in apply_acpi_orientation()
1173 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_common_probe() local
1175 (struct st_sensors_platform_data *)adata->dev->platform_data; in st_accel_common_probe()
1191 adata->num_data_channels = ST_ACCEL_NUMBER_DATA_CHANNELS; in st_accel_common_probe()
1196 adata->sensor_settings->ch, in st_accel_common_probe()
1208 adata->current_fullscale = (struct st_sensor_fullscale_avl *) in st_accel_common_probe()
1209 &adata->sensor_settings->fs.fs_avl[0]; in st_accel_common_probe()
1210 adata->odr = adata->sensor_settings->odr.odr_avl[0].hz; in st_accel_common_probe()
1223 if (adata->irq > 0) { in st_accel_common_probe()
1240 if (adata->irq > 0) in st_accel_common_probe()
1253 struct st_sensor_data *adata = iio_priv(indio_dev); in st_accel_common_remove() local
1258 if (adata->irq > 0) in st_accel_common_remove()