Lines Matching refs:eld
149 static bool eld_parse_entry(const char *path, struct eld_entry *eld) in eld_parse_entry() argument
158 memset(eld, 0, sizeof(*eld)); in eld_parse_entry()
179 eld->valid = strcmp(value, "1") == 0; in eld_parse_entry()
181 snprintf(eld->monitor_name, sizeof(eld->monitor_name), in eld_parse_entry()
184 eld->sads_len = atoi(value); in eld_parse_entry()
187 igt_assert(sad_index < eld->sads_len); in eld_parse_entry()
188 parse_sad_field(&eld->sads[sad_index], sad_key, value); in eld_parse_entry()
206 bool eld_get_igt(struct eld_entry *eld) in eld_get_igt() argument
230 if (!eld_parse_entry(path, eld)) { in eld_get_igt()
234 if (!eld->valid) { in eld_get_igt()
239 if (strcmp(eld->monitor_name, "IGT") != 0) { in eld_get_igt()
242 path, eld->monitor_name); in eld_get_igt()
262 struct eld_entry eld; in eld_has_igt() local
263 return eld_get_igt(&eld); in eld_has_igt()