/scripts/dtc/ |
D | checks.c | 29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 61 static inline void PRINTF(5, 6) check_msg(struct check *c, struct dt_info *dti, in check_msg() argument 83 } else if (streq(dti->outname, "-")) { in check_msg() 86 xasprintf(&str, "%s", dti->outname); in check_msg() 119 #define FAIL(c, dti, node, ...) \ argument 123 check_msg((c), dti, node, NULL, __VA_ARGS__); \ 126 #define FAIL_PROP(c, dti, node, prop, ...) \ argument 130 check_msg((c), dti, node, prop, __VA_ARGS__); \ 134 static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) in check_nodes_props() argument 140 c->fn(c, dti, node); in check_nodes_props() [all …]
|
D | dtc.c | 162 struct dt_info *dti; in main() local 300 dti = dt_from_source(arg); in main() 302 dti = dt_from_fs(arg); in main() 304 dti = dt_from_blob(arg); in main() 308 dti->outname = outname; in main() 316 dti->boot_cpuid_phys = cmdline_boot_cpuid; in main() 318 fill_fullpaths(dti->dt, ""); in main() 321 if (dti->dtsflags & DTSF_PLUGIN) { in main() 325 process_checks(force, dti); in main() 328 generate_label_tree(dti, "aliases", false); in main() [all …]
|
D | livetree.c | 401 struct dt_info *dti; in build_dt_info() local 403 dti = xmalloc(sizeof(*dti)); in build_dt_info() 404 dti->dtsflags = dtsflags; in build_dt_info() 405 dti->reservelist = reservelist; in build_dt_info() 406 dti->dt = tree; in build_dt_info() 407 dti->boot_cpuid_phys = boot_cpuid_phys; in build_dt_info() 409 return dti; in build_dt_info() 665 static void sort_reserve_entries(struct dt_info *dti) in sort_reserve_entries() argument 670 for (ri = dti->reservelist; in sort_reserve_entries() 680 for (ri = dti->reservelist; in sort_reserve_entries() [all …]
|
D | dtc.h | 302 void sort_tree(struct dt_info *dti); 303 void generate_label_tree(struct dt_info *dti, char *name, bool allocph); 304 void generate_fixups_tree(struct dt_info *dti, char *name); 305 void generate_local_fixups_tree(struct dt_info *dti, char *name); 310 void process_checks(bool force, struct dt_info *dti); 314 void dt_to_blob(FILE *f, struct dt_info *dti, int version); 315 void dt_to_asm(FILE *f, struct dt_info *dti, int version); 321 void dt_to_source(FILE *f, struct dt_info *dti); 326 void dt_to_yaml(FILE *f, struct dt_info *dti);
|
D | flattree.c | 345 void dt_to_blob(FILE *f, struct dt_info *dti, int version) in dt_to_blob() argument 363 flatten_tree(dti->dt, &bin_emitter, &dtbuf, &strbuf, vi); in dt_to_blob() 366 reservebuf = flatten_reserve_list(dti->reservelist, vi); in dt_to_blob() 370 dti->boot_cpuid_phys); in dt_to_blob() 446 void dt_to_asm(FILE *f, struct dt_info *dti, int version) in dt_to_asm() argument 486 asm_emit_cell(f, dti->boot_cpuid_phys); in dt_to_asm() 516 for (re = dti->reservelist; re; re = re->next) { in dt_to_asm() 536 flatten_tree(dti->dt, &asm_emitter, f, &strbuf, vi); in dt_to_asm()
|
D | treesource.c | 328 void dt_to_source(FILE *f, struct dt_info *dti) in dt_to_source() argument 334 for (re = dti->reservelist; re; re = re->next) { in dt_to_source() 344 write_tree_source_node(f, dti->dt, 0); in dt_to_source()
|
D | yamltree.c | 205 void dt_to_yaml(FILE *f, struct dt_info *dti) in dt_to_yaml() argument 221 yaml_tree(dti->dt, &emitter); in dt_to_yaml()
|