Lines Matching refs:flags
52 static int device_chld_remove(struct udevice *dev, uint flags) in device_chld_remove() argument
60 ret = device_remove(pos, flags); in device_chld_remove()
76 if (dev->flags & DM_FLAG_ACTIVATED) in device_unbind()
79 if (!(dev->flags & DM_FLAG_BOUND)) 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()
116 if (dev->flags & DM_FLAG_NAME_ALLOCED) in device_unbind()
155 static bool flags_remove(uint flags, uint drv_flags) in flags_remove() argument
157 if ((flags & DM_REMOVE_NORMAL) || in flags_remove()
158 (flags & (drv_flags & (DM_FLAG_ACTIVE_DMA | DM_FLAG_OS_PREPARE)))) in flags_remove()
164 int device_remove(struct udevice *dev, uint flags) in device_remove() argument
172 if (!(dev->flags & DM_FLAG_ACTIVATED)) in device_remove()
182 ret = device_chld_remove(dev, flags); in device_remove()
190 if (drv->remove && flags_remove(flags, drv->flags)) { in device_remove()
204 if (flags_remove(flags, drv->flags)) { in device_remove()
208 dev->flags &= ~DM_FLAG_ACTIVATED; in device_remove()