Lines Matching refs:disp
47 * @param disp Display information / options
53 static int show_cell_list(struct display_info *disp, const char *data, int len,
62 fmt[1] = disp->type ? disp->type : 'd';
78 * If a specific data type is provided in disp, then this is used. Otherwise
81 * @param disp Display information / options
86 static int show_data(struct display_info *disp, const char *data, int len)
96 is_string = (disp->type) == 's' ||
97 (!disp->type && util_is_printable_string(data, len));
110 size = disp->size;
119 return show_cell_list(disp, data, len, size);
206 * @param disp Display information / options
211 static int show_data_for_item(const void *blob, struct display_info *disp,
217 switch (disp->mode) {
230 if (show_data(disp, value, len))
234 } else if (disp->default_val) {
235 puts(disp->default_val);
249 * @param disp Display information / options
255 static int do_fdtget(struct display_info *disp, const char *filename,
269 if (disp->default_val) {
270 puts(disp->default_val);
280 if (show_data_for_item(blob, disp, node, prop)) {
319 struct display_info disp;
323 memset(&disp, '\0', sizeof(disp));
324 disp.size = -1;
325 disp.mode = MODE_SHOW_VALUE;
331 if (utilfdt_decode_type(optarg, &disp.type,
332 &disp.size))
337 disp.mode = MODE_LIST_PROPS;
342 disp.mode = MODE_LIST_SUBNODES;
347 disp.default_val = optarg;
368 if (do_fdtget(&disp, filename, argv, argc, args_per_step))