Lines Matching full:if

39 		if (ret && !saved_ret)  in device_chld_unbind()
49 * @pre_os_remove: Flag, if this functions is called in the pre-OS stage
61 if (ret) in device_chld_remove()
73 if (!dev) in device_unbind()
76 if (dev->flags & DM_FLAG_ACTIVATED) in device_unbind()
79 if (!(dev->flags & DM_FLAG_BOUND)) in device_unbind()
85 if (drv->unbind) { in device_unbind()
87 if (ret) in device_unbind()
92 if (ret) in device_unbind()
95 if (dev->flags & DM_FLAG_ALLOC_PDATA) { in device_unbind()
99 if (dev->flags & DM_FLAG_ALLOC_UCLASS_PDATA) { in device_unbind()
103 if (dev->flags & DM_FLAG_ALLOC_PARENT_PDATA) { in device_unbind()
108 if (ret) in device_unbind()
111 if (dev->parent) in device_unbind()
116 if (dev->flags & DM_FLAG_NAME_ALLOCED) in device_unbind()
131 if (dev->driver->priv_auto_alloc_size) { in device_free()
136 if (size) { in device_free()
140 if (dev->parent) { in device_free()
142 if (!size) { in device_free()
146 if (size) { in device_free()
157 if ((flags & DM_REMOVE_NORMAL) || in flags_remove()
169 if (!dev) in device_remove()
172 if (!(dev->flags & DM_FLAG_ACTIVATED)) in device_remove()
179 if (ret) in device_remove()
183 if (ret) in device_remove()
187 * Remove the device if called with the "normal" remove flag set, in device_remove()
188 * or if the remove flag matches any of the drivers remove flags in device_remove()
190 if (drv->remove && flags_remove(flags, drv->flags)) { in device_remove()
192 if (ret) in device_remove()
196 if (dev->parent && dev->parent->driver->child_post_remove) { in device_remove()
198 if (ret) { in device_remove()
204 if (flags_remove(flags, drv->flags)) { in device_remove()
219 if (ret) { in device_remove()