Lines Matching refs:np
27 struct device_node *np = NULL; in mpc834x_usb_cfg() local
41 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc834x_usb_cfg()
42 if (np) { in mpc834x_usb_cfg()
45 prop = of_get_property(np, "phy_type", NULL); in mpc834x_usb_cfg()
53 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc834x_usb_cfg()
65 of_node_put(np); in mpc834x_usb_cfg()
67 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-mph"); in mpc834x_usb_cfg()
68 if (np) { in mpc834x_usb_cfg()
71 prop = of_get_property(np, "port0", NULL); in mpc834x_usb_cfg()
78 prop = of_get_property(np, "port1", NULL); in mpc834x_usb_cfg()
85 of_node_put(np); in mpc834x_usb_cfg()
103 struct device_node *np = NULL; in mpc831x_usb_cfg() local
112 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc831x_usb_cfg()
113 if (!np) in mpc831x_usb_cfg()
115 prop = of_get_property(np, "phy_type", NULL); in mpc831x_usb_cfg()
120 of_node_put(np); in mpc831x_usb_cfg()
125 immr_node = of_get_parent(np); in mpc831x_usb_cfg()
164 ret = of_address_to_resource(np, 0, &res); in mpc831x_usb_cfg()
166 of_node_put(np); in mpc831x_usb_cfg()
193 dr_mode = of_get_property(np, "dr_mode", NULL); in mpc831x_usb_cfg()
206 of_node_put(np); in mpc831x_usb_cfg()
215 struct device_node *np = NULL; in mpc837x_usb_cfg() local
219 np = of_find_compatible_node(NULL, NULL, "fsl-usb2-dr"); in mpc837x_usb_cfg()
220 if (!np || !of_device_is_available(np)) { in mpc837x_usb_cfg()
221 of_node_put(np); in mpc837x_usb_cfg()
224 prop = of_get_property(np, "phy_type", NULL); in mpc837x_usb_cfg()
228 of_node_put(np); in mpc837x_usb_cfg()
235 of_node_put(np); in mpc837x_usb_cfg()
248 of_node_put(np); in mpc837x_usb_cfg()