Lines Matching defs:child
91 struct drm_mm_node *child;
93 child = (struct drm_mm_node *)
94 drm_alloc(sizeof (*child), DRM_MEM_MM);
95 if (!child)
98 child->free = 1;
99 child->size = size;
100 child->start = start;
101 child->mm = mm;
103 list_add_tail(&child->ml_entry, &mm->ml_entry, (caddr_t)child);
104 list_add_tail(&child->fl_entry, &mm->fl_entry, (caddr_t)child);
130 struct drm_mm_node *child;
132 child = (struct drm_mm_node *)
133 drm_alloc(sizeof (*child), DRM_MEM_MM);
134 if (!child)
137 INIT_LIST_HEAD(&child->fl_entry);
139 child->free = 0;
140 child->size = size;
141 child->start = parent->start;
142 child->mm = parent->mm;
144 list_add_tail(&child->ml_entry, &parent->ml_entry, (caddr_t)child);
145 INIT_LIST_HEAD(&child->fl_entry);
149 return (child);
210 struct drm_mm_node *child;
227 child = drm_mm_split_at_start(parent, size);
233 return (child);