Lines Matching defs:demands
166 struct list_head demands;
368 if (list_empty(&contract->demands)) {
375 } while (list_empty(&contract->demands));
378 promise = list_first_entry(&contract->demands,
438 * promise will live in the demands list on a contract. Once it has been
439 * completed, it will be moved to the completed demands list for later freeing.
505 * promise will live in the demands list on a contract. Once it has been
506 * completed, it will be moved to the completed demands list for later freeing.
573 INIT_LIST_HEAD(&contract->demands);
591 promise = list_first_entry_or_null(&contract->demands,
595 &contract->demands);
596 promise = list_first_entry(&contract->demands,
611 /* Free all the demands and completed demands */
612 list_for_each_entry_safe(promise, tmp, &contract->demands, list)
665 list_add_tail(&promise->list, &contract->demands);
784 list_add_tail(&promise->list, &contract->demands);
877 list_add_tail(&promise->list, &contract->demands);
986 list_for_each_entry(promise, &contract->demands, list)
994 promise = list_first_entry_or_null(&contract->demands,