Lines Matching refs:params
133 static int gen_dts(FILE *fp, const struct gen_params *params) { in gen_dts() argument
134 if (!params->no_header) { in gen_dts()
135 output_header(fp, params->plugin); in gen_dts()
138 if (params->node_num > 0) { in gen_dts()
139 output_root_begin(fp, params->depth); in gen_dts()
140 output_unused_nodes(fp, params->unused_num); in gen_dts()
141 output_nodes(fp, params->node_num, "status", "disabled"); in gen_dts()
142 output_root_end(fp, params->depth); in gen_dts()
146 output_ref_nodes(fp, start_id, params->append_num, "new_prop", "bar"); in gen_dts()
147 start_id += params->append_num; in gen_dts()
148 output_ref_nodes(fp, start_id, params->override_num, "status", "okay"); in gen_dts()
155 struct gen_params params; in main() local
156 memset(¶ms, 0, sizeof(struct gen_params)); in main()
166 params.no_header = 1; in main()
169 params.plugin = 1; in main()
172 params.depth = atoi(optarg); in main()
175 params.unused_num = atoi(optarg); in main()
178 params.node_num = atoi(optarg); in main()
181 params.append_num = atoi(optarg); in main()
184 params.override_num = atoi(optarg); in main()
203 gen_dts(fp ? fp : stdout, ¶ms); in main()