Lines Matching defs:disp
59 * If a specific data type is provided in disp, then this is used. Otherwise
62 * @param disp Display information / options
67 static int show_data(struct display_info *disp, const char *data, int len)
80 is_string = (disp->type) == 's' ||
81 (!disp->type && util_is_printable_string(data, len));
94 size = disp->size;
103 fmt[1] = disp->type ? disp->type : 'd';
201 * @param disp Display information / options
206 static int show_data_for_item(const void *blob, struct display_info *disp,
212 switch (disp->mode) {
225 if (show_data(disp, value, len))
229 } else if (disp->default_val) {
230 puts(disp->default_val);
244 * @param disp Display information / options
250 static int do_fdtget(struct display_info *disp, const char *filename,
264 if (disp->default_val) {
265 puts(disp->default_val);
274 if (show_data_for_item(blob, disp, node, prop))
308 struct display_info disp;
312 memset(&disp, '\0', sizeof(disp));
313 disp.size = -1;
314 disp.mode = MODE_SHOW_VALUE;
326 if (utilfdt_decode_type(optarg, &disp.type,
327 &disp.size))
332 disp.mode = MODE_LIST_PROPS;
337 disp.mode = MODE_LIST_SUBNODES;
342 disp.default_val = optarg;
363 if (do_fdtget(&disp, filename, argv, argc, args_per_step))