Searched refs:disp (Results 1 – 2 of 2) sorted by relevance
/scripts/dtc/ |
D | fdtput.c | 56 static int encode_value(struct display_info *disp, char **arg, int arg_count, in encode_value() argument 69 if (disp->verbose) in encode_value() 73 fmt[1] = disp->type ? disp->type : 'd'; in encode_value() 77 if (disp->type == 's') in encode_value() 80 len = disp->size == -1 ? 4 : disp->size; in encode_value() 94 if (disp->type == 's') { in encode_value() 96 if (disp->verbose) in encode_value() 105 if (disp->verbose) { in encode_value() 107 disp->size == 1 ? "byte" : in encode_value() 108 disp->size == 2 ? "short" : "int", in encode_value() [all …]
|
D | fdtget.c | 53 static int show_data(struct display_info *disp, const char *data, int len) in show_data() argument 66 is_string = (disp->type) == 's' || in show_data() 67 (!disp->type && util_is_printable_string(data, len)); in show_data() 80 size = disp->size; in show_data() 89 fmt[1] = disp->type ? disp->type : 'd'; in show_data() 192 static int show_data_for_item(const void *blob, struct display_info *disp, in show_data_for_item() argument 198 switch (disp->mode) { in show_data_for_item() 211 if (show_data(disp, value, len)) in show_data_for_item() 215 } else if (disp->default_val) { in show_data_for_item() 216 puts(disp->default_val); in show_data_for_item() [all …]
|