Home
last modified time | relevance | path

Searched refs:gdata (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/include/acpi/
Dghes.h80 static inline int acpi_hest_get_version(struct acpi_hest_generic_data *gdata) in acpi_hest_get_version() argument
82 return gdata->revision >> 8; in acpi_hest_get_version()
85 static inline void *acpi_hest_get_payload(struct acpi_hest_generic_data *gdata) in acpi_hest_get_payload() argument
87 if (acpi_hest_get_version(gdata) >= 3) in acpi_hest_get_payload()
88 return (void *)(((struct acpi_hest_generic_data_v300 *)(gdata)) + 1); in acpi_hest_get_payload()
90 return gdata + 1; in acpi_hest_get_payload()
93 static inline int acpi_hest_get_error_length(struct acpi_hest_generic_data *gdata) in acpi_hest_get_error_length() argument
95 return ((struct acpi_hest_generic_data *)(gdata))->error_data_length; in acpi_hest_get_error_length()
98 static inline int acpi_hest_get_size(struct acpi_hest_generic_data *gdata) in acpi_hest_get_size() argument
100 if (acpi_hest_get_version(gdata) >= 3) in acpi_hest_get_size()
[all …]
/linux-4.19.296/drivers/iio/gyro/
Dst_gyro_core.c368 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()
[all …]
Dst_gyro_buffer.c41 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_buffer_postenable() local
43 gdata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_gyro_buffer_postenable()
44 if (gdata->buffer_data == NULL) { in st_gyro_buffer_postenable()
61 kfree(gdata->buffer_data); in st_gyro_buffer_postenable()
69 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_buffer_predisable() local
82 kfree(gdata->buffer_data); in st_gyro_buffer_predisable()
Dst_gyro_spi.c74 struct st_sensor_data *gdata; in st_gyro_spi_probe() local
77 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*gdata)); in st_gyro_spi_probe()
81 gdata = iio_priv(indio_dev); in st_gyro_spi_probe()
85 st_sensors_spi_configure(indio_dev, spi, gdata); in st_gyro_spi_probe()
Dst_gyro_i2c.c70 struct st_sensor_data *gdata; in st_gyro_i2c_probe() local
73 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*gdata)); in st_gyro_i2c_probe()
77 gdata = iio_priv(indio_dev); in st_gyro_i2c_probe()
81 st_sensors_i2c_configure(indio_dev, client, gdata); in st_gyro_i2c_probe()