Searched refs:gdata (Results 1 – 7 of 7) sorted by relevance
/linux/include/acpi/ |
H A D | ghes.h | 86 static inline int acpi_hest_get_version(struct acpi_hest_generic_data *gdata) in acpi_hest_get_version() argument 88 return gdata->revision >> 8; in acpi_hest_get_version() 91 static inline void *acpi_hest_get_payload(struct acpi_hest_generic_data *gdata) in acpi_hest_get_payload() argument 93 if (acpi_hest_get_version(gdata) >= 3) in acpi_hest_get_payload() 94 return (void *)(((struct acpi_hest_generic_data_v300 *)(gdata)) + 1); in acpi_hest_get_payload() 96 return gdata + 1; in acpi_hest_get_payload() 99 static inline int acpi_hest_get_error_length(struct acpi_hest_generic_data *gdata) in acpi_hest_get_error_length() argument 101 return ((struct acpi_hest_generic_data *)(gdata))->error_data_length; in acpi_hest_get_error_length() 104 static inline int acpi_hest_get_size(struct acpi_hest_generic_data *gdata) in acpi_hest_get_size() argument 106 if (acpi_hest_get_version(gdata) >= 3) in acpi_hest_get_size() [all …]
|
/linux/drivers/firmware/efi/ |
H A D | cper.c | 403 const struct acpi_hest_generic_data *gdata) in cper_print_pcie() argument 465 struct acpi_hest_generic_data *gdata, in cper_print_fw_err() argument 468 void *buf = acpi_hest_get_payload(gdata); in cper_print_fw_err() 469 u32 offset, length = gdata->error_data_length; in cper_print_fw_err() 511 struct acpi_hest_generic_data_v300 *gdata) in cper_print_tstamp() argument 515 if (gdata->validation_bits & ACPI_HEST_GEN_VALID_TIMESTAMP) { in cper_print_tstamp() 516 timestamp = (__u8 *)&(gdata->time_stamp); in cper_print_tstamp() 543 cper_estatus_print_section(const char *pfx, struct acpi_hest_generic_data *gdata, in cper_estatus_print_section() argument 546 guid_t *sec_type = (guid_t *)gdata->section_type; in cper_estatus_print_section() 550 if (acpi_hest_get_version(gdata) >= 3) in cper_estatus_print_section() [all …]
|
/linux/drivers/iio/gyro/ |
H A D | st_gyro_core.c | 39 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_get_mount_matrix() local 41 return &gdata->mount_matrix; in st_gyro_get_mount_matrix() 382 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_read_raw() local 393 *val2 = gdata->current_fullscale->gain; in st_gyro_read_raw() 396 *val = gdata->odr; in st_gyro_read_raw() 472 struct st_sensor_data *gdata = iio_priv(indio_dev); in st_gyro_common_probe() local 484 gdata->num_data_channels = ST_GYRO_NUMBER_DATA_CHANNELS; in st_gyro_common_probe() 485 indio_dev->channels = gdata->sensor_settings->ch; in st_gyro_common_probe() 488 err = iio_read_mount_matrix(parent, &gdata->mount_matrix); in st_gyro_common_probe() 492 gdata->current_fullscale = &gdata->sensor_settings->fs.fs_avl[0]; in st_gyro_common_probe() [all …]
|
H A D | st_gyro_i2c.c | 64 struct st_sensor_data *gdata; in st_gyro_i2c_probe() local 77 indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*gdata)); in st_gyro_i2c_probe() 81 gdata = iio_priv(indio_dev); in st_gyro_i2c_probe() 82 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_i2c_probe()
|
H A D | st_gyro_spi.c | 69 struct st_sensor_data *gdata; in st_gyro_spi_probe() local 82 indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*gdata)); in st_gyro_spi_probe() 86 gdata = iio_priv(indio_dev); in st_gyro_spi_probe() 87 gdata->sensor_settings = (struct st_sensor_settings *)settings; in st_gyro_spi_probe()
|
/linux/drivers/acpi/apei/ |
H A D | ghes.c | 506 static bool ghes_handle_memory_failure(struct acpi_hest_generic_data *gdata, in ghes_handle_memory_failure() argument 510 int sec_sev = ghes_severity(gdata->error_severity); in ghes_handle_memory_failure() 511 struct cper_sec_mem_err *mem_err = acpi_hest_get_payload(gdata); in ghes_handle_memory_failure() 518 (gdata->flags & CPER_SEC_ERROR_THRESHOLD_EXCEEDED)) in ghes_handle_memory_failure() 529 static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, in ghes_handle_arm_hw_error() argument 532 struct cper_sec_proc_arm *err = acpi_hest_get_payload(gdata); in ghes_handle_arm_hw_error() 540 sec_sev = ghes_severity(gdata->error_severity); in ghes_handle_arm_hw_error() 589 static void ghes_handle_aer(struct acpi_hest_generic_data *gdata) in ghes_handle_aer() argument 592 struct cper_sec_pcie *pcie_err = acpi_hest_get_payload(gdata); in ghes_handle_aer() 602 aer_severity = cper_severity_to_aer(gdata->error_severity); in ghes_handle_aer() [all …]
|
/linux/drivers/acpi/ |
H A D | acpi_extlog.c | 141 struct acpi_hest_generic_data *gdata; in extlog_print() local 169 apei_estatus_for_each_section(tmp, gdata) { in extlog_print() 170 if (gdata->validation_bits & CPER_SEC_VALID_FRU_ID) in extlog_print() 171 fru_id = (guid_t *)gdata->fru_id; in extlog_print() 174 if (gdata->validation_bits & CPER_SEC_VALID_FRU_TEXT) in extlog_print() 175 fru_text = gdata->fru_text; in extlog_print() 178 sec_type = (guid_t *)gdata->section_type; in extlog_print() 180 struct cper_sec_mem_err *mem = acpi_hest_get_payload(gdata); in extlog_print() 182 if (gdata->error_data_length >= sizeof(*mem)) in extlog_print() 184 (u8)gdata in extlog_print() [all...] |