Lines Matching refs:next

218 	for (pp = np->properties; pp; pp = pp->next) {  in __of_find_property()
612 struct device_node *next; in __of_get_next_child() local
617 next = prev ? prev->sibling : node->child; in __of_get_next_child()
618 of_node_get(next); in __of_get_next_child()
620 return next; in __of_get_next_child()
638 struct device_node *next; in of_get_next_child() local
642 next = __of_get_next_child(node, prev); in of_get_next_child()
644 return next; in of_get_next_child()
664 struct device_node *next; in of_get_next_child_with_prefix() local
671 next = prev ? prev->sibling : node->child; in of_get_next_child_with_prefix()
672 for (; next; next = next->sibling) { in of_get_next_child_with_prefix()
673 if (!of_node_name_prefix(next, prefix)) in of_get_next_child_with_prefix()
675 if (of_node_get(next)) in of_get_next_child_with_prefix()
680 return next; in of_get_next_child_with_prefix()
688 struct device_node *next; in of_get_next_status_child() local
695 next = prev ? prev->sibling : node->child; in of_get_next_status_child()
696 for (; next; next = next->sibling) { in of_get_next_status_child()
697 if (!checker(next)) in of_get_next_status_child()
699 if (of_node_get(next)) in of_get_next_status_child()
704 return next; in of_get_next_status_child()
750 struct device_node *next = NULL; in of_get_next_cpu_node() local
759 next = prev->sibling; in of_get_next_cpu_node()
761 next = node->child; in of_get_next_cpu_node()
764 for (; next; next = next->sibling) { in of_get_next_cpu_node()
765 if (__of_device_is_fail(next)) in of_get_next_cpu_node()
767 if (!(of_node_name_eq(next, "cpu") || in of_get_next_cpu_node()
768 __of_node_is_type(next, "cpu"))) in of_get_next_cpu_node()
770 if (of_node_get(next)) in of_get_next_cpu_node()
775 return next; in of_get_next_cpu_node()
1651 struct property **next; in __of_remove_property_from_list() local
1653 for (next = list; *next; next = &(*next)->next) { in __of_remove_property_from_list()
1654 if (*next == prop) { in __of_remove_property_from_list()
1655 *next = prop->next; in __of_remove_property_from_list()
1656 prop->next = NULL; in __of_remove_property_from_list()
1672 struct property **next; in __of_add_property() local
1678 prop->next = NULL; in __of_add_property()
1679 next = &np->properties; in __of_add_property()
1680 while (*next) { in __of_add_property()
1681 if (of_prop_cmp(prop->name, (*next)->name) == 0) { in __of_add_property()
1686 next = &(*next)->next; in __of_add_property()
1688 *next = prop; in __of_add_property()
1728 prop->next = np->deadprops; in __of_remove_property()
1772 struct property **next, *oldprop; in __of_update_property() local
1779 for (next = &np->properties; *next; next = &(*next)->next) { in __of_update_property()
1780 if (of_prop_cmp((*next)->name, newprop->name) == 0) in __of_update_property()
1783 *oldpropp = oldprop = *next; in __of_update_property()
1787 newprop->next = oldprop->next; in __of_update_property()
1788 *next = newprop; in __of_update_property()
1789 oldprop->next = np->deadprops; in __of_update_property()
1793 newprop->next = NULL; in __of_update_property()
1794 *next = newprop; in __of_update_property()