Lines Matching refs:gdata
101 static inline int acpi_hest_get_version(struct acpi_hest_generic_data *gdata) in acpi_hest_get_version() argument
103 return gdata->revision >> 8; in acpi_hest_get_version()
106 static inline void *acpi_hest_get_payload(struct acpi_hest_generic_data *gdata) in acpi_hest_get_payload() argument
108 if (acpi_hest_get_version(gdata) >= 3) in acpi_hest_get_payload()
109 return (void *)(((struct acpi_hest_generic_data_v300 *)(gdata)) + 1); in acpi_hest_get_payload()
111 return gdata + 1; in acpi_hest_get_payload()
114 static inline int acpi_hest_get_error_length(struct acpi_hest_generic_data *gdata) in acpi_hest_get_error_length() argument
116 return ((struct acpi_hest_generic_data *)(gdata))->error_data_length; in acpi_hest_get_error_length()
119 static inline int acpi_hest_get_size(struct acpi_hest_generic_data *gdata) in acpi_hest_get_size() argument
121 if (acpi_hest_get_version(gdata) >= 3) in acpi_hest_get_size()
127 static inline int acpi_hest_get_record_size(struct acpi_hest_generic_data *gdata) in acpi_hest_get_record_size() argument
129 return (acpi_hest_get_size(gdata) + acpi_hest_get_error_length(gdata)); in acpi_hest_get_record_size()
132 static inline void *acpi_hest_get_next(struct acpi_hest_generic_data *gdata) in acpi_hest_get_next() argument
134 return (void *)(gdata) + acpi_hest_get_record_size(gdata); in acpi_hest_get_next()