Lines Matching refs:head

44 static void free_list(struct list_head *head)
48 list_for_each_entry_safe(dev_res, tmp, head, list) {
56 * @head: Head of the list
63 static int add_to_list(struct list_head *head,
83 list_add(&tmp->list, head);
88 static void remove_from_list(struct list_head *head,
93 list_for_each_entry_safe(dev_res, tmp, head, list) {
102 static resource_size_t get_res_add_size(struct list_head *head,
107 list_for_each_entry(dev_res, head, list) {
124 static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head)
157 n = head;
158 list_for_each_entry(dev_res, head, list) {
175 struct list_head *head)
191 pdev_sort_resources(dev, head);
204 * @realloc_head : head of the list tracking requests requiring additional
206 * @head : head of the list tracking requests with allocated
211 * is in the head list.
214 struct list_head *head)
230 /* skip this resource if not found in head list */
231 list_for_each_entry(dev_res, head, list) {
267 * @head : head of the list tracking requests for resources
268 * @failed_list : head of the list tracking requests that could
274 static void assign_requested_resources_sorted(struct list_head *head,
281 list_for_each_entry(dev_res, head, list) {
303 static void __assign_resources_sorted(struct list_head *head,
326 list_for_each_entry(dev_res, head, list) {
333 /* Update res in head list with add_size in realloc_head list */
334 list_for_each_entry(dev_res, head, list)
338 /* Try updated head list with add_size added */
339 assign_requested_resources_sorted(head, &local_fail_head);
343 /* Remove head list from realloc_head list */
344 list_for_each_entry(dev_res, head, list)
347 free_list(head);
353 list_for_each_entry(dev_res, head, list)
368 assign_requested_resources_sorted(head, fail_head);
373 reassign_resources_sorted(realloc_head, head);
374 free_list(head);
381 LIST_HEAD(head);
383 __dev_sort_resources(dev, &head);
384 __assign_resources_sorted(&head, add_head, fail_head);
393 LIST_HEAD(head);
396 __dev_sort_resources(dev, &head);
398 __assign_resources_sorted(&head, realloc_head, fail_head);