MCPcopy Create free account
hub / github.com/F-Stack/f-stack / linear_dir

Function linear_dir

dpdk/drivers/common/dpaax/dpaa_of.c:159–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static void
160linear_dir(struct dt_dir *d)
161{
162 struct dt_file *f;
163 struct dt_dir *dd;
164
165 d->compatible = NULL;
166 d->status = NULL;
167 d->lphandle = NULL;
168 d->a_cells = NULL;
169 d->s_cells = NULL;
170 d->reg = NULL;
171 list_for_each_entry(f, &d->files, node.list) {
172 if (!strcmp(f->node.node.name, "compatible")) {
173 if (d->compatible)
174 DPAAX_LOG(DEBUG, "Duplicate compatible in"
175 " %s", d->node.node.full_name);
176 d->compatible = f;
177 } else if (!strcmp(f->node.node.name, "status")) {
178 if (d->status)
179 DPAAX_LOG(DEBUG, "Duplicate status in %s",
180 d->node.node.full_name);
181 d->status = f;
182 } else if (!strcmp(f->node.node.name, "linux,phandle")) {
183 if (d->lphandle)
184 DPAAX_LOG(DEBUG, "Duplicate lphandle in %s",
185 d->node.node.full_name);
186 d->lphandle = f;
187 } else if (!strcmp(f->node.node.name, "phandle")) {
188 if (d->lphandle)
189 DPAAX_LOG(DEBUG, "Duplicate lphandle in %s",
190 d->node.node.full_name);
191 d->lphandle = f;
192 } else if (!strcmp(f->node.node.name, "#address-cells")) {
193 if (d->a_cells)
194 DPAAX_LOG(DEBUG, "Duplicate a_cells in %s",
195 d->node.node.full_name);
196 d->a_cells = f;
197 } else if (!strcmp(f->node.node.name, "#size-cells")) {
198 if (d->s_cells)
199 DPAAX_LOG(DEBUG, "Duplicate s_cells in %s",
200 d->node.node.full_name);
201 d->s_cells = f;
202 } else if (!strcmp(f->node.node.name, "reg")) {
203 if (d->reg)
204 DPAAX_LOG(DEBUG, "Duplicate reg in %s",
205 d->node.node.full_name);
206 d->reg = f;
207 }
208 }
209
210 list_for_each_entry(dd, &d->subdirs, node.list) {
211 list_add_tail(&dd->linear, &linear);
212 linear_dir(dd);
213 }
214}
215
216int

Callers 1

of_init_pathFunction · 0.85

Calls 2

strcmpFunction · 0.85
list_add_tailFunction · 0.50

Tested by

no test coverage detected