Lines Matching refs:disp

60 static int encode_value(struct display_info *disp, char **arg, int arg_count,  in encode_value()  argument
73 if (disp->verbose) in encode_value()
77 fmt[1] = disp->type ? disp->type : 'd'; in encode_value()
81 if (disp->type == 's') in encode_value()
84 len = disp->size == -1 ? 4 : disp->size; in encode_value()
93 if (disp->type == 's') { in encode_value()
95 if (disp->verbose) in encode_value()
104 if (disp->verbose) { in encode_value()
106 disp->size == 1 ? "byte" : in encode_value()
107 disp->size == 2 ? "short" : "int", in encode_value()
114 if (disp->verbose) in encode_value()
316 static int do_fdtput(struct display_info *disp, const char *filename, in do_fdtput() argument
328 switch (disp->oper) { in do_fdtput()
335 if (disp->auto_path && create_paths(&blob, *arg)) in do_fdtput()
337 if (encode_value(disp, arg + 2, arg_count - 2, &value, &len) || in do_fdtput()
343 if (disp->auto_path) in do_fdtput()
406 struct display_info disp; in main() local
409 memset(&disp, '\0', sizeof(disp)); in main()
410 disp.size = -1; in main()
411 disp.oper = OPER_WRITE_PROP; in main()
423 disp.oper = OPER_CREATE_NODE; in main()
426 disp.oper = OPER_REMOVE_NODE; in main()
429 disp.oper = OPER_DELETE_PROP; in main()
432 disp.auto_path = 1; in main()
435 if (utilfdt_decode_type(optarg, &disp.type, in main()
436 &disp.size)) in main()
441 disp.verbose = 1; in main()
454 if (disp.oper == OPER_WRITE_PROP) { in main()
461 if (disp.oper == OPER_DELETE_PROP) in main()
465 if (do_fdtput(&disp, filename, argv, argc)) in main()