Lines Matching refs:length
82 ((*head)->length > (*head)->next->length)) { in sort_by_size()
93 if (current_res->next->length > current_res->next->next->length) { in sort_by_size()
129 ((*head)->length < (*head)->next->length)) { in sort_by_max_size()
140 if (current_res->next->length < current_res->next->next->length) { in sort_by_max_size()
185 if (node->length < size) in acpiphp_get_io_resource()
194 if ((node->length - (temp_qword - node->base)) < size) in acpiphp_get_io_resource()
203 node->length -= split_node->length; in acpiphp_get_io_resource()
211 if (node->length > size) { in acpiphp_get_io_resource()
214 split_node = acpiphp_make_resource(node->base + size, node->length - size); in acpiphp_get_io_resource()
219 node->length = size; in acpiphp_get_io_resource()
277 if (max->length < size) in acpiphp_get_max_resource()
286 if ((max->length - (temp_qword - max->base)) < size) in acpiphp_get_max_resource()
295 max->length -= split_node->length; in acpiphp_get_max_resource()
302 if ((max->base + max->length) & (size - 1)) { in acpiphp_get_max_resource()
305 temp_qword = ((max->base + max->length) & ~(size - 1)); in acpiphp_get_max_resource()
308 max->length + max->base - temp_qword); in acpiphp_get_max_resource()
313 max->length -= split_node->length; in acpiphp_get_max_resource()
321 if (max->length < size) in acpiphp_get_max_resource()
373 __FUNCTION__, size, node, (u32)node->base, node->length); in acpiphp_get_resource()
374 if (node->length < size) in acpiphp_get_resource()
384 if ((node->length - (temp_qword - node->base)) < size) in acpiphp_get_resource()
393 node->length -= split_node->length; in acpiphp_get_resource()
401 if (node->length > size) { in acpiphp_get_resource()
405 split_node = acpiphp_make_resource(node->base + size, node->length - size); in acpiphp_get_resource()
410 node->length = size; in acpiphp_get_resource()
461 (u32)base, size, node, (u32)node->base, node->length); in acpiphp_get_resource_with_base()
465 if ((node->base + node->length) < (base + size)) in acpiphp_get_resource_with_base()
475 if ((node->length - (temp_qword - node->base)) < size) in acpiphp_get_resource_with_base()
484 node->length -= split_node->length; in acpiphp_get_resource_with_base()
492 (u32)base, size, node, (u32)node->base, node->length); in acpiphp_get_resource_with_base()
495 if (node->length > size) { in acpiphp_get_resource_with_base()
499 split_node = acpiphp_make_resource(node->base + size, node->length - size); in acpiphp_get_resource_with_base()
504 node->length = size; in acpiphp_get_resource_with_base()
587 if ((node1->base + node1->length) == node1->next->base) { in acpiphp_resource_sort_and_combine()
590 node1->length += node1->next->length; in acpiphp_resource_sort_and_combine()
607 struct pci_resource *acpiphp_make_resource (u64 base, u32 length) in acpiphp_make_resource() argument
615 res->length = length; in acpiphp_make_resource()
671 cnt++, (u32)p->base, (u32)p->base + p->length - 1); in dump_resource()