Lines Matching refs:variable

37 	size_t Hash(ConditionVariable* variable) const  in Hash()
38 { return (size_t)variable->fObject; } in Hash()
39 bool Compare(const void* key, ConditionVariable* variable) const in Compare()
40 { return key == variable->fObject; } in Compare()
41 ConditionVariable*& GetLink(ConditionVariable* variable) const in GetLink()
42 { return variable->fNext; } in GetLink()
76 ConditionVariable* variable = sConditionVariableHash.Lookup(object); in Add() local
78 if (variable == NULL) { in Add()
83 SpinLocker variableLocker(variable->fLock); in Add()
86 _AddToLockedVariable(variable); in Add()
100 ConditionVariableEntry::_AddToLockedVariable(ConditionVariable* variable) in _AddToLockedVariable() argument
105 fVariable = variable; in _AddToLockedVariable()
119 ConditionVariable* variable = atomic_pointer_get(&fVariable); in _RemoveFromVariable() local
138 atomic_add(&variable->fEntriesCount, -1); in _RemoveFromVariable()
148 if (try_acquire_spinlock(&variable->fLock)) in _RemoveFromVariable()
157 atomic_add(&variable->fEntriesCount, -1); in _RemoveFromVariable()
158 release_spinlock(&variable->fLock); in _RemoveFromVariable()
173 ConditionVariable* variable = atomic_pointer_get(&fVariable); in Wait() local
174 if (variable == NULL) in Wait()
193 THREAD_BLOCK_TYPE_CONDITION_VARIABLE, variable); in Wait()
269 ConditionVariable* variable = sConditionVariableHash.Lookup(fObject); in Unpublish() local
270 if (variable != this) { in Unpublish()
271 panic("Condition variable %p not published, found: %p", this, variable); in Unpublish()
354 ConditionVariable* variable = sConditionVariableHash.Lookup(object); in _Notify() local
355 if (variable == NULL) in _Notify()
357 SpinLocker variableLocker(variable->fLock); in _Notify()
360 return variable->_NotifyLocked(all, result); in _Notify()
449 while (ConditionVariable* variable = it.Next()) { in ListAll() local
451 int count = variable->fEntries.Count(); in ListAll()
453 kprintf("%p %p %-20s %15d\n", variable, variable->fObject, in ListAll()
454 variable->fObjectType, count); in ListAll()
508 ConditionVariable* variable = sConditionVariableHash.Lookup((void*)address); in dump_condition_variable() local
510 if (variable == NULL) { in dump_condition_variable()
512 variable = (ConditionVariable*)address; in dump_condition_variable()
515 if (variable != NULL) { in dump_condition_variable()
516 variable->Dump(); in dump_condition_variable()
518 set_debug_variable("_cvar", (addr_t)variable); in dump_condition_variable()
519 set_debug_variable("_object", (addr_t)variable->Object()); in dump_condition_variable()