Lines Matching full:if
39 if (!gd->dm_root) { in dm_root()
50 if (gd->dm_root) { in dm_fixup_for_gd_move()
72 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
81 if (entry->of_match) in fix_drivers()
84 if (entry->bind) in fix_drivers()
86 if (entry->probe) in fix_drivers()
88 if (entry->remove) in fix_drivers()
90 if (entry->unbind) in fix_drivers()
92 if (entry->ofdata_to_platdata) in fix_drivers()
94 if (entry->child_post_bind) in fix_drivers()
96 if (entry->child_pre_probe) in fix_drivers()
98 if (entry->child_post_remove) in fix_drivers()
101 if (entry->ops) in fix_drivers()
114 if (entry->post_bind) in fix_uclass()
116 if (entry->pre_unbind) in fix_uclass()
118 if (entry->pre_probe) in fix_uclass()
120 if (entry->post_probe) in fix_uclass()
122 if (entry->pre_remove) in fix_uclass()
124 if (entry->child_post_bind) in fix_uclass()
126 if (entry->child_pre_probe) in fix_uclass()
128 if (entry->init) in fix_uclass()
130 if (entry->destroy) in fix_uclass()
133 if (entry->ops) in fix_uclass()
146 if (entry->platdata) in fix_devices()
157 if (gd->dm_root) { in dm_init()
163 #if defined(CONFIG_NEEDS_MANUAL_RELOC) in dm_init()
170 if (ret) in dm_init()
172 #if CONFIG_IS_ENABLED(OF_CONTROL) in dm_init()
173 # if CONFIG_IS_ENABLED(OF_LIVE) in dm_init()
174 if (of_live) in dm_init()
181 if (ret) in dm_init()
195 #if CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)
209 if (ret == -ENOENT) { in dm_scan_platdata()
217 #if CONFIG_IS_ENABLED(OF_LIVE)
226 if (pre_reloc_only && in dm_scan_fdt_live()
230 if (!of_device_is_available(np)) { in dm_scan_fdt_live()
235 if (err && !ret) { in dm_scan_fdt_live()
241 if (!pre_reloc_only && !strcmp(np->name, "firmware")) in dm_scan_fdt_live()
246 if (ret) in dm_scan_fdt_live()
253 #if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
263 * @pre_reloc_only: If true, bind only drivers with the DM_FLAG_PRE_RELOC
264 * flag. If false bind all drivers.
265 * @return 0 if OK, -ve on error
275 if (pre_reloc_only && in dm_scan_fdt_node()
278 if (!fdtdec_get_is_enabled(blob, offset)) { in dm_scan_fdt_node()
283 if (err && !ret) { in dm_scan_fdt_node()
289 #if CONFIG_IS_ENABLED(SCMI_FIRMWARE) in dm_scan_fdt_node()
294 if (name && !strcmp(name, "firmware")) in dm_scan_fdt_node()
300 if (ret) in dm_scan_fdt_node()
308 if (!dev_of_valid(dev)) in dm_scan_fdt_dev()
311 #if CONFIG_IS_ENABLED(OF_LIVE) in dm_scan_fdt_dev()
312 if (of_live_active()) in dm_scan_fdt_dev()
323 #if CONFIG_IS_ENABLED(OF_LIVE) in dm_scan_fdt()
324 if (of_live_active()) in dm_scan_fdt()
344 if (ret) { in dm_extended_scan_fdt()
351 /* if no DT "clocks" node, no need to go further */ in dm_extended_scan_fdt()
352 if (node < 0) in dm_extended_scan_fdt()
357 if (ret) in dm_extended_scan_fdt()
373 if (ret) { in dm_init_and_scan()
378 if (ret) { in dm_init_and_scan()
383 if (CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)) { in dm_init_and_scan()
385 if (ret) { in dm_init_and_scan()
392 if (ret) in dm_init_and_scan()