Lines Matching refs:np
217 struct device_node *np; in pegasos_set_l2cr() local
224 np = of_find_node_by_type(NULL, "cpu"); in pegasos_set_l2cr()
225 if (np != NULL) { in pegasos_set_l2cr()
226 const unsigned int *l2cr = of_get_property(np, "l2cr", NULL); in pegasos_set_l2cr()
239 of_node_put(np); in pegasos_set_l2cr()
382 struct device_node *np, *root; in chrp_find_openpic() local
390 np = of_find_node_by_type(NULL, "open-pic"); in chrp_find_openpic()
391 if (np == NULL) in chrp_find_openpic()
403 if (of_address_to_resource(np, 0, &r)) { in chrp_find_openpic()
412 iranges = of_get_property(np, "interrupt-ranges", &len); in chrp_find_openpic()
438 chrp_mpic = mpic_alloc(np, opaddr, MPIC_NO_RESET, in chrp_find_openpic()
458 of_node_put(np); in chrp_find_openpic()
470 struct device_node *np, *pic = NULL; in chrp_find_8259() local
475 for_each_node_by_type(np, "interrupt-controller") in chrp_find_8259()
476 if (of_device_is_compatible(np, "chrp,iic")) { in chrp_find_8259()
477 pic = np; in chrp_find_8259()
496 for_each_node_by_name(np, "pci") { in chrp_find_8259()
497 const unsigned int *addrp = of_get_property(np, in chrp_find_8259()
502 chrp_int_ack = addrp[of_n_addr_cells(np)-1]; in chrp_find_8259()
505 of_node_put(np); in chrp_find_8259()
506 if (np == NULL) in chrp_find_8259()