Lines Matching full:if
43 if (devp) in device_bind_common()
45 if (!name) in device_bind_common()
49 if (ret) { in device_bind_common()
54 #if defined(CONFIG_USING_KERNEL_DTB) && !defined(CONFIG_USING_KERNEL_DTB_V2) in device_bind_common()
55 if (gd->flags & GD_FLG_RELOC) { in device_bind_common()
57 if (drv->id == UCLASS_MMC || drv->id == UCLASS_RKNAND || in device_bind_common()
66 if ((gd->flags & GD_FLG_KDTB_READY) && in device_bind_common()
71 if (!strcmp(name, dev->name)) { in device_bind_common()
90 if (!strcmp(name, dev->name) && in device_bind_common()
95 if (drv->id == UCLASS_CRYPTO || in device_bind_common()
108 if (!dev) in device_bind_common()
127 if (CONFIG_IS_ENABLED(OF_CONTROL) && CONFIG_IS_ENABLED(DM_SEQ_ALIAS)) { in device_bind_common()
135 if (uc->uc_drv->flags & DM_UC_FLAG_SEQ_ALIAS) { in device_bind_common()
136 if (uc->uc_drv->name && ofnode_valid(node)) { in device_bind_common()
142 if (drv->platdata_auto_alloc_size) { in device_bind_common()
145 if (CONFIG_IS_ENABLED(OF_PLATDATA)) { in device_bind_common()
146 if (of_platdata_size) { in device_bind_common()
148 if (of_platdata_size < in device_bind_common()
153 if (alloc) { in device_bind_common()
157 if (!dev->platdata) { in device_bind_common()
161 if (CONFIG_IS_ENABLED(OF_PLATDATA) && platdata) { in device_bind_common()
169 if (size) { in device_bind_common()
172 if (!dev->uclass_platdata) { in device_bind_common()
178 if (parent) { in device_bind_common()
180 if (!size) { in device_bind_common()
184 if (size) { in device_bind_common()
187 if (!dev->parent_platdata) { in device_bind_common()
195 if (parent) in device_bind_common()
227 if (gd->flags & GD_FLG_KDTB_READY) { in device_bind_common()
232 if (drv->id == prior_u_boot_uclass_id[i]) { in device_bind_common()
239 if (!dev->uclass->u_boot_dev_head) in device_bind_common()
242 if (!dev->uclass->u_boot_dev_head) in device_bind_common()
246 if (gd->flags & GD_FLG_KDTB_READY) in device_bind_common()
251 if (ret) in device_bind_common()
254 /* if we fail to bind we remove device from successors and free it */ in device_bind_common()
255 if (drv->bind) { in device_bind_common()
257 if (ret) in device_bind_common()
260 if (parent && parent->driver->child_post_bind) { in device_bind_common()
262 if (ret) in device_bind_common()
265 if (uc->uc_drv->post_bind) { in device_bind_common()
267 if (ret) in device_bind_common()
271 if (parent) in device_bind_common()
273 if (devp) in device_bind_common()
283 if (CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)) { in device_bind_common()
284 if (drv->unbind && drv->unbind(dev)) { in device_bind_common()
291 if (CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)) { in device_bind_common()
292 if (uclass_unbind_device(dev)) { in device_bind_common()
298 if (CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)) { in device_bind_common()
300 if (dev->flags & DM_FLAG_ALLOC_PARENT_PDATA) { in device_bind_common()
306 if (dev->flags & DM_FLAG_ALLOC_UCLASS_PDATA) { in device_bind_common()
311 if (dev->flags & DM_FLAG_ALLOC_PDATA) { in device_bind_common()
347 if (!drv) in device_bind_by_name()
349 if (pre_reloc_only && !(drv->flags & DM_FLAG_PRE_RELOC)) in device_bind_by_name()
352 #if CONFIG_IS_ENABLED(OF_PLATDATA) in device_bind_by_name()
364 if (flags & DM_FLAG_ALLOC_PRIV_DMA) { in alloc_priv()
367 if (priv) { in alloc_priv()
372 * This prevents problems if the driver uses this as in alloc_priv()
411 if (!dev) in device_probe()
414 if (dev->flags & DM_FLAG_ACTIVATED) in device_probe()
420 /* Allocate private data if requested and not reentered */ in device_probe()
421 if (drv->priv_auto_alloc_size && !dev->priv) { in device_probe()
423 if (!dev->priv) { in device_probe()
428 /* Allocate private data if requested and not reentered */ in device_probe()
430 if (size && !dev->uclass_priv) { in device_probe()
432 if (!dev->uclass_priv) { in device_probe()
439 if (dev->parent) { in device_probe()
441 if (!size) { in device_probe()
445 if (size && !dev->parent_priv) { in device_probe()
447 if (!dev->parent_priv) { in device_probe()
454 if (ret) in device_probe()
463 if (dev->flags & DM_FLAG_ACTIVATED) in device_probe()
468 if (seq < 0) { in device_probe()
482 if (dev->parent && device_get_uclass_id(dev) != UCLASS_PINCTRL) in device_probe()
486 if (ret) in device_probe()
489 if (dev->parent && dev->parent->driver->child_pre_probe) { in device_probe()
491 if (ret) in device_probe()
495 if (drv->ofdata_to_platdata && dev_has_of_node(dev)) { in device_probe()
497 if (ret) in device_probe()
501 if (drv->probe) { in device_probe()
503 if (ret) { in device_probe()
510 if (ret) in device_probe()
513 if (dev->parent && device_get_uclass_id(dev) == UCLASS_PINCTRL) { in device_probe()
520 if (device_remove(dev, DM_REMOVE_NORMAL)) { in device_probe()
535 if (!dev) { in dev_get_platdata()
545 if (!dev) { in dev_get_parent_platdata()
555 if (!dev) { in dev_get_uclass_platdata()
565 if (!dev) { in dev_get_priv()
575 if (!dev) { in dev_get_uclass_priv()
585 if (!dev) { in dev_get_parent_priv()
596 if (ret) in device_get_device_tail()
600 if (ret) in device_get_device_tail()
613 if (!index--) in device_get_child()
626 if (seq_or_req_seq == -1) in device_find_child_by_seq()
630 if ((find_req_seq ? dev->req_seq : dev->seq) == in device_find_child_by_seq()
648 if (ret == -ENODEV) { in device_get_child_by_seq()
650 * We didn't find it in probed devices. See if there is one in device_get_child_by_seq()
651 * that will request this seq if probed. in device_get_child_by_seq()
666 if (dev_of_offset(dev) == of_offset) { in device_find_child_by_of_offset()
691 if (dev_of_offset(parent) == of_offset) in _device_find_global_by_of_offset()
696 if (found) in _device_find_global_by_of_offset()
713 if (list_empty(&parent->child_head)) { in device_find_first_child()
728 if (list_is_last(&dev->sibling_node, &parent->child_head)) { in device_find_next_child()
750 if (!dev || !dev->driver->ops) in dev_get_driver_ops()
763 if (!dev) in dev_get_uclass_name()
781 if (device_active(child)) in device_has_active_children()
792 if (!parent) in device_is_last_sibling()
805 if (!name) in device_set_name()
818 if (ofnode_is_np(node)) in device_is_compatible()