• Home
  • Raw
  • Download

Lines Matching refs:np

34 	struct device_node *np;  in mpc512x_restart_init()  local
38 np = of_find_compatible_node(NULL, NULL, reset_compat); in mpc512x_restart_init()
39 if (!np) in mpc512x_restart_init()
42 reset_module_base = of_iomap(np, 0); in mpc512x_restart_init()
43 of_node_put(np); in mpc512x_restart_init()
71 struct device_node *np; in mpc512x_set_pixel_clock() local
77 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_set_pixel_clock()
78 if (!np) { in mpc512x_set_pixel_clock()
82 clk_diu = of_clk_get(np, 0); in mpc512x_set_pixel_clock()
85 clk_diu = clk_get_sys(np->name, "ipg"); in mpc512x_set_pixel_clock()
87 of_node_put(np); in mpc512x_set_pixel_clock()
219 struct device_node *np; in mpc512x_init_diu() local
226 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-diu"); in mpc512x_init_diu()
227 if (!np) { in mpc512x_init_diu()
232 diu_reg = of_iomap(np, 0); in mpc512x_init_diu()
233 of_node_put(np); in mpc512x_init_diu()
316 struct device_node *np; in mpc512x_init_IRQ() local
318 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-ipic"); in mpc512x_init_IRQ()
319 if (!np) in mpc512x_init_IRQ()
322 ipic_init(np, 0); in mpc512x_init_IRQ()
323 of_node_put(np); in mpc512x_init_IRQ()
377 static unsigned int __init get_fifo_size(struct device_node *np, in get_fifo_size() argument
382 fp = of_get_property(np, prop_name, NULL); in get_fifo_size()
387 prop_name, np, DEFAULT_FIFO_SIZE); in get_fifo_size()
398 struct device_node *np; in mpc512x_psc_fifo_init() local
411 for_each_compatible_node(np, NULL, psc_compat) { in mpc512x_psc_fifo_init()
412 tx_fifo_size = get_fifo_size(np, "fsl,tx-fifo-size"); in mpc512x_psc_fifo_init()
413 rx_fifo_size = get_fifo_size(np, "fsl,rx-fifo-size"); in mpc512x_psc_fifo_init()
423 psc = of_iomap(np, 0); in mpc512x_psc_fifo_init()
426 __func__, np); in mpc512x_psc_fifo_init()
433 __func__, np); in mpc512x_psc_fifo_init()
490 struct device_node *np; in mpc512x_cs_config() local
496 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-lpc"); in mpc512x_cs_config()
497 lpc = of_iomap(np, 0); in mpc512x_cs_config()
498 of_node_put(np); in mpc512x_cs_config()