Lines Matching refs:np
49 struct device_node *np; in of_fsl_spi_probe() local
52 for_each_compatible_node(np, type, compatible) { in of_fsl_spi_probe()
66 prop = of_get_property(np, "reg", NULL); in of_fsl_spi_probe()
71 prop = of_get_property(np, "cell-index", NULL); in of_fsl_spi_probe()
75 prop = of_get_property(np, "mode", NULL); in of_fsl_spi_probe()
87 ret = of_address_to_resource(np, 0, &res[0]); in of_fsl_spi_probe()
91 ret = of_irq_to_resource(np, 0, &res[1]); in of_fsl_spi_probe()
116 pr_err("%s: registration failed\n", np->full_name); in of_fsl_spi_probe()
197 struct device_node *np; in mpc832x_rdb_setup_arch() local
208 if ((np = of_find_node_by_name(NULL, "par_io")) != NULL) { in mpc832x_rdb_setup_arch()
209 par_io_init(np); in mpc832x_rdb_setup_arch()
210 of_node_put(np); in mpc832x_rdb_setup_arch()
212 for (np = NULL; (np = of_find_node_by_name(np, "ucc")) != NULL;) in mpc832x_rdb_setup_arch()
213 par_io_of_config(np); in mpc832x_rdb_setup_arch()