Lines Matching defs:demands
156 struct list_head demands;
357 if (list_empty(&contract->demands)) {
364 } while (list_empty(&contract->demands));
367 promise = list_first_entry(&contract->demands,
427 * promise will live in the demands list on a contract. Once it has been
428 * completed, it will be moved to the completed demands list for later freeing.
494 * promise will live in the demands list on a contract. Once it has been
495 * completed, it will be moved to the completed demands list for later freeing.
562 INIT_LIST_HEAD(&contract->demands);
580 promise = list_first_entry_or_null(&contract->demands,
584 &contract->demands);
585 promise = list_first_entry(&contract->demands,
600 /* Free all the demands and completed demands */
601 list_for_each_entry_safe(promise, tmp, &contract->demands, list)
654 list_add_tail(&promise->list, &contract->demands);
764 list_add_tail(&promise->list, &contract->demands);
857 list_add_tail(&promise->list, &contract->demands);
966 list_for_each_entry(promise, &contract->demands, list)
974 promise = list_first_entry_or_null(&contract->demands,