• Home
  • Raw
  • Download

Lines Matching refs:last

90 dbg_get_status_section(const char *title, char **first, char **last)  in dbg_get_status_section()  argument
103 *last = pos - 1; in dbg_get_status_section()
107 dbg_has_line(const char *first, const char *last, const char *name) in dbg_has_line() argument
111 return pos != NULL && pos < last; in dbg_has_line()
115 dbg_get_int(const char *first, const char *last, const char *name) in dbg_get_int() argument
124 igt_assert(pos != last); in dbg_get_int()
130 dbg_get_bool(const char *first, const char *last, const char *name) in dbg_get_bool() argument
139 igt_assert(pos < last); in dbg_get_bool()
153 char *first, *last; in dbg_get_status() local
163 dbg_get_status_section("SSEU Device Info", &first, &last); in dbg_get_status()
164 for (char *tmp = first; tmp < last; tmp++) in dbg_get_status()
168 dbg_get_int(first, last, "Available Slice Total:"); in dbg_get_status()
170 dbg_get_int(first, last, "Available Subslice Total:"); in dbg_get_status()
172 if (dbg_has_line(first, last, "Available Subslice Per Slice:")) { in dbg_get_status()
174 dbg_get_int(first, last, "Available Subslice Per Slice:"); in dbg_get_status()
177 dbg_get_int(first, last, "Available Slice0 subslices:"); in dbg_get_status()
180 dbg_get_int(first, last, "Available EU Total:"); in dbg_get_status()
182 dbg_get_int(first, last, "Available EU Per Subslice:"); in dbg_get_status()
184 dbg_get_bool(first, last, "Has Slice Power Gating:"); in dbg_get_status()
186 dbg_get_bool(first, last, "Has Subslice Power Gating:"); in dbg_get_status()
188 dbg_get_bool(first, last, "Has EU Power Gating:"); in dbg_get_status()
190 dbg_get_status_section("SSEU Device Status", &first, &last); in dbg_get_status()
191 for (char *tmp = first; tmp < last; tmp++) in dbg_get_status()
195 dbg_get_int(first, last, "Enabled Slice Total:"); in dbg_get_status()
197 dbg_get_int(first, last, "Enabled Subslice Total:"); in dbg_get_status()
199 if (dbg_has_line(first, last, "Enabled Subslice Per Slice:")) { in dbg_get_status()
201 dbg_get_int(first, last, "Enabled Subslice Per Slice:"); in dbg_get_status()
202 } else if (dbg_has_line(first, last, "Enabled Slice0 subslices:")) { in dbg_get_status()
204 dbg_get_int(first, last, "Enabled Slice0 subslices:"); in dbg_get_status()
207 dbg_get_int(first, last, "Enabled EU Total:"); in dbg_get_status()
209 dbg_get_int(first, last, "Enabled EU Per Subslice:"); in dbg_get_status()