Lines Matching defs:sync
70 static void bank_task_dealloc(bank_task_t bank_task, mach_voucher_attr_value_reference_t sync);
71 static kern_return_t bank_account_dealloc_with_sync(bank_account_t bank_account, mach_voucher_attr_value_reference_t sync);
80 mach_voucher_attr_value_reference_t sync);
208 * Purpose: Release a value, if sync matches the sync count in value.
210 * KERN_FAILURE: if sync value does not matches.
217 mach_voucher_attr_value_reference_t sync)
238 if (bank_task->bt_made != (int)sync) {
242 bank_task_made_release_num(bank_task, sync);
243 bank_task_dealloc(bank_task, sync);
246 kr = bank_account_dealloc_with_sync(bank_account, sync);
664 mach_voucher_attr_value_reference_t sync)
668 if (bank_task_release_num(bank_task, sync) > (int)sync)
690 * Purpose: Drop the reference on bank account if the sync matches.
691 * Returns: KERN_SUCCESS if sync matches.
697 mach_voucher_attr_value_reference_t sync)
702 /* Grab the acc to pay list lock and check the sync value */
705 if (bank_account->ba_made != (int)sync) {
710 bank_account_made_release_num(bank_account, sync);
712 if (bank_account_release_num(bank_account, sync) > (int)sync)