Home
last modified time | relevance | path

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

/Linux-v4.19/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-v4.19/drivers/firmware/efi/
Dcper.c372 const struct acpi_hest_generic_data *gdata) in cper_print_pcie() argument
408 struct acpi_hest_generic_data_v300 *gdata) in cper_print_tstamp() argument
412 if (gdata->validation_bits & ACPI_HEST_GEN_VALID_TIMESTAMP) { in cper_print_tstamp()
413 timestamp = (__u8 *)&(gdata->time_stamp); in cper_print_tstamp()
429 cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata, in cper_estatus_print_section() argument
432 guid_t *sec_type = (guid_t *)gdata->section_type; in cper_estatus_print_section()
436 if (acpi_hest_get_version(gdata) >= 3) in cper_estatus_print_section()
437 cper_print_tstamp(pfx, (struct acpi_hest_generic_data_v300 *)gdata); in cper_estatus_print_section()
439 severity = gdata->error_severity; in cper_estatus_print_section()
442 if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID) in cper_estatus_print_section()
[all …]
/Linux-v4.19/drivers/iio/gyro/
Dst_gyro_core.c295 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_read_raw() local
306 *val2 = gdata->current_fullscale->gain; in st_gyro_read_raw()
309 *val = gdata->odr; in st_gyro_read_raw()
374 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_common_probe() local
375 int irq = gdata->get_irq_data_ready(indio_dev); in st_gyro_common_probe()
380 mutex_init(&gdata->tb.buf_lock); in st_gyro_common_probe()
392 gdata->num_data_channels = ST_GYRO_NUMBER_DATA_CHANNELS; in st_gyro_common_probe()
393 gdata->multiread_bit = gdata->sensor_settings->multi_read_bit; in st_gyro_common_probe()
394 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe()
397 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_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()
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()
/Linux-v4.19/drivers/acpi/
Dacpi_extlog.c143 struct acpi_hest_generic_data *gdata; in extlog_print() local
166 gdata = (struct acpi_hest_generic_data *)(tmp + 1); in extlog_print()
167 if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID) in extlog_print()
168 fru_id = (guid_t *)gdata->fru_id; in extlog_print()
169 if (gdata->validation_bits & CPER_SEC_VALID_FRU_TEXT) in extlog_print()
170 fru_text = gdata->fru_text; in extlog_print()
171 sec_type = (guid_t *)gdata->section_type; in extlog_print()
173 struct cper_sec_mem_err *mem = (void *)(gdata + 1); in extlog_print()
174 if (gdata->error_data_length >= sizeof(*mem)) in extlog_print()
176 (u8)gdata->error_severity); in extlog_print()
/Linux-v4.19/drivers/acpi/apei/
Dghes.c386 static void ghes_handle_memory_failure(struct acpi_hest_generic_data *gdata, int sev) in ghes_handle_memory_failure() argument
391 int sec_sev = ghes_severity(gdata->error_severity); in ghes_handle_memory_failure()
392 struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); in ghes_handle_memory_failure()
407 (gdata->flags & CPER_SEC_ERROR_THRESHOLD_EXCEEDED)) in ghes_handle_memory_failure()
431 static void ghes_handle_aer(struct acpi_hest_generic_data *gdata) in ghes_handle_aer() argument
434 struct cper_sec_pcie *pcie_err = acpi_hest_get_payload(gdata); in ghes_handle_aer()
443 aer_severity = cper_severity_to_aer(gdata->error_severity); in ghes_handle_aer()
450 if (gdata->flags & CPER_SEC_RESET) in ghes_handle_aer()
466 struct acpi_hest_generic_data *gdata; in ghes_do_proc() local
472 apei_estatus_for_each_section(estatus, gdata) { in ghes_do_proc()
[all …]
/Linux-v4.19/arch/x86/crypto/
Daesni-intel_glue.c137 struct gcm_context_data *gdata, u8 *out,
159 struct gcm_context_data *gdata, u8 *out,
166 struct gcm_context_data *gdata,
171 struct gcm_context_data *gdata, u8 *out,
174 struct gcm_context_data *gdata, u8 *out,
178 struct gcm_context_data *gdata,
/Linux-v4.19/drivers/net/wireless/ralink/rt2x00/
Drt2800lib.c4526 u32 data, gdata; in rt2800_config_txpower_rt6352() local
4563 gdata = t; in rt2800_config_txpower_rt6352()
4569 gdata |= (t << 8); in rt2800_config_txpower_rt6352()
4579 gdata |= (t << 16); in rt2800_config_txpower_rt6352()
4585 gdata |= (t << 24); in rt2800_config_txpower_rt6352()
4596 if (gdata != 0xffffffff) in rt2800_config_txpower_rt6352()
4599 gdata); in rt2800_config_txpower_rt6352()