Lines Matching refs:variable

85 dequeue_temporary_variable(TemporaryVariable* variable)  in dequeue_temporary_variable()  argument
88 if (variable->queued) { in dequeue_temporary_variable()
89 sTemporaryVariablesLRUQueue.Remove(variable); in dequeue_temporary_variable()
90 variable->queued = false; in dequeue_temporary_variable()
96 unset_variable(Variable* variable) in unset_variable() argument
98 if (is_temporary_variable(variable->name)) in unset_variable()
99 dequeue_temporary_variable(static_cast<TemporaryVariable*>(variable)); in unset_variable()
101 variable->Uninit(); in unset_variable()
111 TemporaryVariable* variable = static_cast<TemporaryVariable*>(_variable); in touch_variable() local
114 dequeue_temporary_variable(variable); in touch_variable()
115 sTemporaryVariablesLRUQueue.Add(variable); in touch_variable()
116 variable->queued = true; in touch_variable()
123 TemporaryVariable* variable = sTemporaryVariablesLRUQueue.RemoveHead(); in free_temporary_variable_slot() local
124 if (variable) { in free_temporary_variable_slot()
125 variable->queued = false; in free_temporary_variable_slot()
126 variable->Uninit(); in free_temporary_variable_slot()
129 return variable; in free_temporary_variable_slot()
143 TemporaryVariable* variable = sTemporaryVariables + i; in get_variable() local
145 if (!variable->IsUsed()) { in get_variable()
147 freeSlot = variable; in get_variable()
148 } else if (variable->HasName(variableName)) in get_variable()
149 return variable; in get_variable()
157 Variable* variable = sVariables + i; in get_variable() local
159 if (!variable->IsUsed()) { in get_variable()
161 freeSlot = variable; in get_variable()
162 } else if (variable->HasName(variableName)) in get_variable()
163 return variable; in get_variable()
190 const char* variable = argv[1]; in cmd_unset_variable() local
192 if (!unset_debug_variable(variable)) in cmd_unset_variable()
193 kprintf("Did not find variable %s.\n", variable); in cmd_unset_variable()
227 Variable& variable = sVariables[i]; in cmd_variables() local
228 if (variable.IsUsed()) { in cmd_variables()
229 kprintf("%16s: %" B_PRIu64 " (0x%" B_PRIx64 ")\n", variable.name, in cmd_variables()
230 variable.value, variable.value); in cmd_variables()
236 Variable& variable = sTemporaryVariables[i]; in cmd_variables() local
237 if (variable.IsUsed()) { in cmd_variables()
238 kprintf("%16s: %" B_PRIu64 " (0x%" B_PRIx64 ")\n", variable.name, in cmd_variables()
239 variable.value, variable.value); in cmd_variables()
273 if (Variable* variable = get_variable(variableName, true)) { in set_debug_variable() local
274 variable->value = value; in set_debug_variable()
275 touch_variable(variable); in set_debug_variable()
286 if (Variable* variable = get_variable(variableName, false)) { in get_debug_variable() local
287 touch_variable(variable); in get_debug_variable()
288 return variable->value; in get_debug_variable()
310 if (Variable* variable = get_variable(variableName, false)) { in unset_debug_variable() local
311 unset_variable(variable); in unset_debug_variable()
324 Variable& variable = sVariables[i]; in unset_all_debug_variables() local
325 if (variable.IsUsed()) in unset_all_debug_variables()
326 unset_variable(&variable); in unset_all_debug_variables()
331 Variable& variable = sTemporaryVariables[i]; in unset_all_debug_variables() local
332 if (variable.IsUsed()) in unset_all_debug_variables()
333 unset_variable(&variable); in unset_all_debug_variables()