Lines Matching refs:np
31 struct device_node *np = NULL; in mpc834x_usb_cfg() local
45 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg()
46 if (np) { in mpc834x_usb_cfg()
49 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg()
57 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg()
69 of_node_put(np); in mpc834x_usb_cfg()
71 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg()
72 if (np) { in mpc834x_usb_cfg()
75 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg()
82 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg()
89 of_node_put(np); in mpc834x_usb_cfg()
107 struct device_node *np = NULL; in mpc831x_usb_cfg() local
116 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc831x_usb_cfg()
117 if (!np) in mpc831x_usb_cfg()
119 prop = of_get_property(np, "phy_type", NULL); in mpc831x_usb_cfg()
124 of_node_put(np); in mpc831x_usb_cfg()
129 immr_node = of_get_parent(np); in mpc831x_usb_cfg()
168 ret = of_address_to_resource(np, 0, &res); in mpc831x_usb_cfg()
170 of_node_put(np); in mpc831x_usb_cfg()
197 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc831x_usb_cfg()
210 of_node_put(np); in mpc831x_usb_cfg()
219 struct device_node *np = NULL; in mpc837x_usb_cfg() local
223 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc837x_usb_cfg()
224 if (!np || !of_device_is_available(np)) in mpc837x_usb_cfg()
226 prop = of_get_property(np, "phy_type", NULL); in mpc837x_usb_cfg()
230 of_node_put(np); in mpc837x_usb_cfg()
237 of_node_put(np); in mpc837x_usb_cfg()
250 of_node_put(np); in mpc837x_usb_cfg()