Lines Matching refs:np
196 const struct device_node *np = ofnode_to_np(node); in ofnode_find_subnode() local
198 for (np = np->child; np; np = np->sibling) { in ofnode_find_subnode()
199 if (!strcmp(subnode_name, np->name)) in ofnode_find_subnode()
202 subnode = np_to_ofnode(np); in ofnode_find_subnode()
245 return np_to_ofnode(node.np->child); in ofnode_first_subnode()
255 return np_to_ofnode(node.np->sibling); in ofnode_next_subnode()
284 return strrchr(node.np->full_name, '/') + 1; in ofnode_get_name()
411 out->node = np_to_ofnode(in->np); in ofnode_from_of_phandle_args()
686 const struct device_node *np = ofnode_to_np(node); in ofnode_get_addr_size() local
687 const __be32 *prop = of_get_property(np, property, &psize); in ofnode_get_addr_size()
691 na = of_n_addr_cells(np); in ofnode_get_addr_size()
692 ns = of_n_size_cells(np); in ofnode_get_addr_size()
697 return of_translate_address(np, prop); in ofnode_get_addr_size()
712 const struct device_node *np = ofnode_to_np(node); in ofnode_read_u8_array_ptr() local
714 const __be32 *prop = of_get_property(np, propname, &psize); in ofnode_read_u8_array_ptr()
979 const struct device_node *np = ofnode_to_np(node); in ofnode_write_prop() local
987 if (!np) in ofnode_write_prop()
990 for (pp = np->properties; pp; pp = pp->next) { in ofnode_write_prop()