Lines Matching refs:disp
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()
115 if (disp->verbose) in encode_value()
221 static int do_fdtput(struct display_info *disp, const char *filename, in do_fdtput() argument
232 switch (disp->oper) { in do_fdtput()
239 if (disp->auto_path && create_paths(blob, *arg)) in do_fdtput()
241 if (encode_value(disp, arg + 2, arg_count - 2, &value, &len) || in do_fdtput()
247 if (disp->auto_path) in do_fdtput()
288 struct display_info disp; in main() local
291 memset(&disp, '\0', sizeof(disp)); in main()
292 disp.size = -1; in main()
293 disp.oper = OPER_WRITE_PROP; in main()
310 disp.oper = OPER_CREATE_NODE; in main()
316 disp.auto_path = 1; in main()
319 if (utilfdt_decode_type(optarg, &disp.type, in main()
320 &disp.size)) in main()
325 disp.verbose = 1; in main()
338 if (disp.oper == OPER_WRITE_PROP) { in main()
345 if (do_fdtput(&disp, filename, argv, argc)) in main()