Lines Matching refs:xlat
238 xlookup(xlat, val)
239 const struct xlat *xlat;
242 for (; xlat->str != NULL; xlat++)
243 if (xlat->val == val)
244 return xlat->str;
249 * Print entry in struct xlat table, if there.
252 printxval(xlat, val, dflt)
253 const struct xlat *xlat;
257 char *str = xlookup(xlat, val);
266 * Interpret `xlat' as an array of flags
271 addflags(xlat, flags)
272 const struct xlat *xlat;
277 for (n = 0; xlat->str; xlat++) {
278 if (xlat->val && (flags & xlat->val) == xlat->val) {
279 tprintf("|%s", xlat->str);
280 flags &= ~xlat->val;
292 printflags(xlat, flags, dflt)
293 const struct xlat *xlat;
300 if (flags == 0 && xlat->val == 0) {
301 tprintf("%s", xlat->str);
306 for (n = 0; xlat->str; xlat++) {
307 if (xlat->val && (flags & xlat->val) == xlat->val) {
308 tprintf("%s%s", sep, xlat->str);
309 flags &= ~xlat->val;
959 extern const struct xlat struct_user_offsets[];
960 const struct xlat *x;