Home
last modified time | relevance | path

Searched refs:disp (Results 1 – 2 of 2) sorted by relevance

/scripts/dtc/
Dfdtput.c70 static int encode_value(struct display_info *disp, char **arg, int arg_count, in encode_value() argument
83 if (disp->verbose) in encode_value()
87 fmt[1] = disp->type ? disp->type : 'd'; in encode_value()
91 if (disp->type == 's') in encode_value()
94 len = disp->size == -1 ? 4 : disp->size; in encode_value()
108 if (disp->type == 's') { in encode_value()
110 if (disp->verbose) in encode_value()
119 if (disp->verbose) { in encode_value()
121 disp->size == 1 ? "byte" : in encode_value()
122 disp->size == 2 ? "short" : "int", in encode_value()
[all …]
Dfdtget.c67 static int show_data(struct display_info *disp, const char *data, int len) in show_data() argument
80 is_string = (disp->type) == 's' || in show_data()
81 (!disp->type && util_is_printable_string(data, len)); in show_data()
94 size = disp->size; in show_data()
103 fmt[1] = disp->type ? disp->type : 'd'; in show_data()
206 static int show_data_for_item(const void *blob, struct display_info *disp, in show_data_for_item() argument
212 switch (disp->mode) { in show_data_for_item()
225 if (show_data(disp, value, len)) in show_data_for_item()
229 } else if (disp->default_val) { in show_data_for_item()
230 puts(disp->default_val); in show_data_for_item()
[all …]