Lines Matching refs:disp
45 * If a specific data type is provided in disp, then this is used. Otherwise
48 * @param disp Display information / options
53 static int show_data(struct display_info *disp, const char *data, int len)
66 is_string = (disp->type) == 's' ||
67 (!disp->type && util_is_printable_string(data, len));
80 size = disp->size;
89 fmt[1] = disp->type ? disp->type : 'd';
187 * @param disp Display information / options
192 static int show_data_for_item(const void *blob, struct display_info *disp,
198 switch (disp->mode) {
211 if (show_data(disp, value, len))
215 } else if (disp->default_val) {
216 puts(disp->default_val);
230 * @param disp Display information / options
236 static int do_fdtget(struct display_info *disp, const char *filename,
250 if (disp->default_val) {
251 puts(disp->default_val);
260 if (show_data_for_item(blob, disp, node, prop))
294 struct display_info disp;
298 memset(&disp, '\0', sizeof(disp));
299 disp.size = -1;
300 disp.mode = MODE_SHOW_VALUE;
312 if (utilfdt_decode_type(optarg, &disp.type,
313 &disp.size))
318 disp.mode = MODE_LIST_PROPS;
323 disp.mode = MODE_LIST_SUBNODES;
328 disp.default_val = optarg;
349 if (do_fdtget(&disp, filename, argv, argc, args_per_step))