Lines Matching refs:tmp

185 	struct resource *tmp, **p;  in __request_resource()  local
195 tmp = *p; in __request_resource()
196 if (!tmp || tmp->start > end) { in __request_resource()
197 new->sibling = tmp; in __request_resource()
202 p = &tmp->sibling; in __request_resource()
203 if (tmp->end < start) in __request_resource()
205 return tmp; in __request_resource()
211 struct resource *tmp, **p, *chd; in __release_resource() local
215 tmp = *p; in __release_resource()
216 if (!tmp) in __release_resource()
218 if (tmp == old) { in __release_resource()
219 if (release_child || !(tmp->child)) { in __release_resource()
220 *p = tmp->sibling; in __release_resource()
222 for (chd = tmp->child;; chd = chd->sibling) { in __release_resource()
223 chd->parent = tmp->parent; in __release_resource()
227 *p = tmp->child; in __release_resource()
228 chd->sibling = tmp->sibling; in __release_resource()
233 p = &tmp->sibling; in __release_resource()
240 struct resource *tmp, *p; in __release_child_resources() local
246 tmp = p; in __release_child_resources()
249 tmp->parent = NULL; in __release_child_resources()
250 tmp->sibling = NULL; in __release_child_resources()
251 __release_child_resources(tmp); in __release_child_resources()
253 printk(KERN_DEBUG "release child resource %pR\n", tmp); in __release_child_resources()
255 size = resource_size(tmp); in __release_child_resources()
256 tmp->start = 0; in __release_child_resources()
257 tmp->end = size - 1; in __release_child_resources()
673 struct resource tmp = *new, avail, alloc; in __find_resource_space() local
676 tmp.start = root->start; in __find_resource_space()
682 tmp.start = (this == old) ? old->start : this->end + 1; in __find_resource_space()
687 tmp.end = (this == old) ? this->end : this->start - 1; in __find_resource_space()
689 tmp.end = root->end; in __find_resource_space()
691 if (tmp.end < tmp.start) in __find_resource_space()
694 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource_space()
695 arch_remove_reservations(&tmp); in __find_resource_space()
698 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource_space()
699 avail.end = tmp.end; in __find_resource_space()
701 if (avail.start >= tmp.start) { in __find_resource_space()
722 tmp.start = this->end + 1; in __find_resource_space()
1031 struct resource *tmp, *parent = res->parent; in __adjust_resource() local
1044 tmp = parent->child; in __adjust_resource()
1045 if (tmp != res) { in __adjust_resource()
1046 while (tmp->sibling != res) in __adjust_resource()
1047 tmp = tmp->sibling; in __adjust_resource()
1048 if (start <= tmp->end) in __adjust_resource()
1053 for (tmp = res->child; tmp; tmp = tmp->sibling) in __adjust_resource()
1054 if ((tmp->start < start) || (tmp->end > end)) in __adjust_resource()
1856 struct resource_entry *entry, *tmp; in resource_list_free() local
1858 list_for_each_entry_safe(entry, tmp, head, node) in resource_list_free()