Lines Matching refs:iter
278 RealDTEntryIterator iter;
284 iter = (RealDTEntryIterator) kalloc(sizeof(struct OpaqueDTEntryIterator));
286 iter->outerScope = (RealDTEntry) startEntry;
287 iter->currentScope = (RealDTEntry) startEntry;
289 iter->outerScope = DTRootNode;
290 iter->currentScope = DTRootNode;
292 iter->currentEntry = NULL;
293 iter->savedScope = NULL;
294 iter->currentIndex = 0;
296 *iterator = iter;
303 RealDTEntryIterator iter = iterator;
306 while ((scope = iter->savedScope) != NULL) {
307 iter->savedScope = scope->nextScope;
317 RealDTEntryIterator iter = iterator;
324 newScope->nextScope = iter->savedScope;
325 newScope->scope = iter->currentScope;
326 newScope->entry = iter->currentEntry;
327 newScope->index = iter->currentIndex;
329 iter->currentScope = childEntry;
330 iter->currentEntry = NULL;
331 iter->savedScope = newScope;
332 iter->currentIndex = 0;
340 RealDTEntryIterator iter = iterator;
343 newScope = iter->savedScope;
347 iter->savedScope = newScope->nextScope;
348 iter->currentScope = newScope->scope;
349 iter->currentEntry = newScope->entry;
350 iter->currentIndex = newScope->index;
351 *currentPosition = iter->currentEntry;
361 RealDTEntryIterator iter = iterator;
363 if (iter->currentIndex >= iter->currentScope->nChildren) {
367 iter->currentIndex++;
368 if (iter->currentIndex == 1) {
369 iter->currentEntry = GetFirstChild(iter->currentScope);
371 iter->currentEntry = GetNextChild(iter->currentEntry);
373 *nextEntry = iter->currentEntry;
381 RealDTEntryIterator iter = iterator;
389 while ((scope = iter->savedScope) != NULL) {
390 iter->savedScope = scope->nextScope;
393 iter->currentScope = iter->outerScope;
396 iter->currentEntry = NULL;
397 iter->currentIndex = 0;
427 RealDTPropertyIterator iter;
429 iter = (RealDTPropertyIterator) kalloc(sizeof(struct OpaqueDTPropertyIterator));
430 iter->entry = entry;
431 iter->currentProperty = NULL;
432 iter->currentIndex = 0;
434 *iterator = iter;
448 RealDTPropertyIterator iter = iterator;
450 if (iter->currentIndex >= iter->entry->nProperties) {
454 iter->currentIndex++;
455 if (iter->currentIndex == 1) {
456 iter->currentProperty = (DeviceTreeNodeProperty *) (iter->entry + 1);
458 iter->currentProperty = next_prop(iter->currentProperty);
460 *foundProperty = iter->currentProperty->name;
468 RealDTPropertyIterator iter = iterator;
470 iter->currentProperty = NULL;
471 iter->currentIndex = 0;