Lines Matching full:want

42 	int want = 0;  in fdt_find_regions()  local
62 include = want >= 2; in fdt_find_regions()
71 include = want >= 2; in fdt_find_regions()
86 stack[depth] = want; in fdt_find_regions()
87 if (want == 1) in fdt_find_regions()
90 want = 2; in fdt_find_regions()
91 else if (want) in fdt_find_regions()
92 want--; in fdt_find_regions()
95 include = want; in fdt_find_regions()
102 include = want; in fdt_find_regions()
103 want = stack[depth--]; in fdt_find_regions()
197 * fdt_add_alias_regions() - Add regions covering the aliases that we want
201 * aliases are special in that we generally want to include those which
204 * In fact we want to include only aliases for those nodes still included in
208 * This function scans the aliases and adds regions for those which we want
323 if (!info->stack[i].want) in fdt_include_supernodes()
324 info->stack[i].want = WANT_NODES_ONLY; in fdt_include_supernodes()
353 p->want = WANT_NOTHING; in fdt_first_region()
376 * marks the start of the region we want to include.
379 * scanning until we find something that we don't want included. This
384 * One complication here is that we want to merge regions. So when we
407 * We keep track of a variable called 'want' which tells us what we want
412 * included. In this case 'want' will be WANT_NODES_AND_PROPS. The
413 * FDT_REG_DIRECT_SUBNODES feature also makes use of 'want'. While we
414 * are inside the subnode, 'want' will be set to WANT_NODES_ONLY, so
420 * Using 'want' we work out 'include', which tells us whether this
463 * decision. 'want' is used to track what we want to include - it in fdt_next_region()
503 include = p.want >= WANT_NODES_AND_PROPS; in fdt_next_region()
514 !p.want) in fdt_next_region()
515 p.want = WANT_NODES_ONLY; in fdt_next_region()
522 include = p.want >= WANT_NODES_AND_PROPS; in fdt_next_region()
540 info->stack[p.depth].want = p.want; in fdt_next_region()
547 if (p.want == WANT_NODES_ONLY || in fdt_next_region()
551 p.want = WANT_NOTHING; in fdt_next_region()
558 p.want = (flags & FDT_REG_ALL_SUBNODES) ? in fdt_next_region()
563 /* If not requested, decay our 'p.want' value */ in fdt_next_region()
564 else if (p.want) { in fdt_next_region()
565 if (p.want != WANT_ALL_NODES_AND_PROPS) in fdt_next_region()
566 p.want--; in fdt_next_region()
577 include = p.want; in fdt_next_region()
582 include = p.want; in fdt_next_region()
587 * If we don't want this node, stop right away, unless in fdt_next_region()
590 if (!p.want && !(flags & FDT_REG_DIRECT_SUBNODES)) in fdt_next_region()
592 p.want = info->stack[p.depth].want; in fdt_next_region()