Home
last modified time | relevance | path

Searched refs:child_np (Results 1 – 14 of 14) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/phy/
H A Dphy-rockchip-inno-usb3.c106 const struct device_node *child_np);
336 const struct device_node *child_np) in rockchip_u3phy_port_init() argument
344 u3phy_port->base = (void __iomem *)ofnode_get_addr(np_to_ofnode(child_np)); in rockchip_u3phy_port_init()
350 if (!of_node_cmp(child_np->name, "pipe")) { in rockchip_u3phy_port_init()
353 ofnode_read_bool(np_to_ofnode(child_np), in rockchip_u3phy_port_init()
361 ret = u3phy->cfgs->phy_tuning(u3phy, u3phy_port, child_np); in rockchip_u3phy_port_init()
374 ofnode child_np; in rockchip_u3phy_probe() local
422 ofnode_for_each_subnode(child_np, udev->node) { in rockchip_u3phy_probe()
427 ofnode_to_np(child_np)); in rockchip_u3phy_probe()
444 of_node_put(ofnode_to_np(child_np)); in rockchip_u3phy_probe()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/sti/
H A Dsti_drv.c237 struct device_node *child_np; in sti_platform_probe() local
244 child_np = of_get_next_available_child(node, NULL); in sti_platform_probe()
246 while (child_np) { in sti_platform_probe()
248 child_np); in sti_platform_probe()
249 child_np = of_get_next_available_child(node, child_np); in sti_platform_probe()
/OK3568_Linux_fs/kernel/drivers/memory/
H A Dti-aemif.c334 struct device_node *child_np; in aemif_probe() local
379 for_each_available_child_of_node(np, child_np) { in aemif_probe()
380 ret = of_aemif_parse_abus_config(pdev, child_np); in aemif_probe()
382 of_node_put(child_np); in aemif_probe()
407 for_each_available_child_of_node(np, child_np) { in aemif_probe()
408 ret = of_platform_populate(child_np, NULL, in aemif_probe()
411 of_node_put(child_np); in aemif_probe()
H A Dpl172.c196 struct device_node *child_np, *np = adev->dev.of_node; in pl172_probe() local
259 for_each_available_child_of_node(np, child_np) { in pl172_probe()
260 ret = pl172_parse_cs_config(adev, child_np); in pl172_probe()
264 of_platform_populate(child_np, NULL, NULL, dev); in pl172_probe()
/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-naneng-usb2.c1208 struct device_node *child_np) in rockchip_usb2phy_otg_port_init() argument
1222 of_property_read_bool(child_np, "rockchip,vbus-always-on"); in rockchip_usb2phy_otg_port_init()
1249 rport->ls_irq = of_irq_get_byname(child_np, "linestate"); in rockchip_usb2phy_otg_port_init()
1264 rport->mode = of_usb_get_dr_mode_by_phy(child_np, -1); in rockchip_usb2phy_otg_port_init()
1280 rport->disconnect_irq = of_irq_get_byname(child_np, in rockchip_usb2phy_otg_port_init()
1302 rport->id_irq = of_irq_get_byname(child_np, "otg-id"); in rockchip_usb2phy_otg_port_init()
1337 rport->bvalid_irq = of_irq_get_byname(child_np, "otg-bvalid"); in rockchip_usb2phy_otg_port_init()
1376 struct device_node *child_np) in rockchip_usb2phy_host_port_init() argument
1386 rport->disconnect_irq = of_irq_get_byname(child_np, "disconnect"); in rockchip_usb2phy_host_port_init()
1402 rport->ls_irq = of_irq_get_byname(child_np, "linestate"); in rockchip_usb2phy_host_port_init()
[all …]
H A Dphy-rockchip-inno-usb3.c722 struct device_node *child_np) in rockchip_u3phy_port_init() argument
733 phy = devm_phy_create(u3phy->dev, child_np, &rockchip_u3phy_ops); in rockchip_u3phy_port_init()
741 ret = of_address_to_resource(child_np, 0, &res); in rockchip_u3phy_port_init()
744 child_np->name); in rockchip_u3phy_port_init()
754 if (!of_node_cmp(child_np->name, "pipe")) { in rockchip_u3phy_port_init()
757 of_property_read_bool(child_np, in rockchip_u3phy_port_init()
776 ret = u3phy->cfgs->phy_tuning(u3phy, u3phy_port, child_np); in rockchip_u3phy_port_init()
826 struct device_node *child_np; in rockchip_u3phy_probe() local
900 for_each_available_child_of_node(np, child_np) { in rockchip_u3phy_probe()
904 ret = rockchip_u3phy_port_init(u3phy, u3phy_port, child_np); in rockchip_u3phy_probe()
[all …]
H A Dphy-rockchip-inno-usb2.c1887 struct device_node *child_np) in rockchip_usb2phy_port_irq_init() argument
1903 rport->otg_mux_irq = of_irq_get_byname(child_np, "otg-mux"); in rockchip_usb2phy_port_irq_init()
1919 rport->ls_irq = of_irq_get_byname(child_np, "linestate"); in rockchip_usb2phy_port_irq_init()
1946 rport->bvalid_irq = of_irq_get_byname(child_np, in rockchip_usb2phy_port_irq_init()
1969 rport->id_irq = of_irq_get_byname(child_np, "otg-id"); in rockchip_usb2phy_port_irq_init()
2048 struct device_node *child_np) in rockchip_usb2phy_host_port_init() argument
2058 of_property_read_bool(child_np, "rockchip,low-power-mode"); in rockchip_usb2phy_host_port_init()
2063 ret = rockchip_usb2phy_port_irq_init(rphy, rport, child_np); in rockchip_usb2phy_host_port_init()
2100 struct device_node *child_np) in rockchip_usb2phy_otg_port_init() argument
2118 of_property_read_bool(child_np, "rockchip,bypass-uart"); in rockchip_usb2phy_otg_port_init()
[all …]
H A Dphy-rockchip-usbdp.c1189 struct device_node *child_np; in rockchip_udphy_probe() local
1256 for_each_available_child_of_node(np, child_np) { in rockchip_udphy_probe()
1259 if (of_node_name_eq(child_np, "dp-port")) { in rockchip_udphy_probe()
1260 phy = devm_phy_create(dev, child_np, &rockchip_dp_phy_ops); in rockchip_udphy_probe()
1262 dev_err(dev, "failed to create dp phy: %pOFn\n", child_np); in rockchip_udphy_probe()
1267 phy->attrs.max_link_rate = udphy_dp_get_max_link_rate(udphy, child_np); in rockchip_udphy_probe()
1268 } else if (of_node_name_eq(child_np, "u3-port")) { in rockchip_udphy_probe()
1269 phy = devm_phy_create(dev, child_np, &rockchip_u3phy_ops); in rockchip_udphy_probe()
1271 dev_err(dev, "failed to create usb phy: %pOFn\n", child_np); in rockchip_udphy_probe()
1289 of_node_put(child_np); in rockchip_udphy_probe()
H A Dphy-rockchip-typec.c1723 struct device_node *child_np; in rockchip_typec_phy_probe() local
1797 for_each_available_child_of_node(np, child_np) { in rockchip_typec_phy_probe()
1800 if (!of_node_cmp(child_np->name, "dp-port")) { in rockchip_typec_phy_probe()
1801 phy = devm_phy_create(dev, child_np, in rockchip_typec_phy_probe()
1805 child_np->name); in rockchip_typec_phy_probe()
1806 of_node_put(child_np); in rockchip_typec_phy_probe()
1811 } else if (!of_node_cmp(child_np->name, "usb3-port")) { in rockchip_typec_phy_probe()
1812 phy = devm_phy_create(dev, child_np, in rockchip_typec_phy_probe()
1816 child_np->name); in rockchip_typec_phy_probe()
1817 of_node_put(child_np); in rockchip_typec_phy_probe()
/OK3568_Linux_fs/kernel/drivers/phy/mediatek/
H A Dphy-mtk-xsphy.c495 struct device_node *child_np; in mtk_xsphy_probe() local
534 for_each_child_of_node(np, child_np) { in mtk_xsphy_probe()
546 phy = devm_phy_create(dev, child_np, &mtk_xsphy_ops); in mtk_xsphy_probe()
553 retval = of_address_to_resource(child_np, 0, &res); in mtk_xsphy_probe()
584 of_node_put(child_np); in mtk_xsphy_probe()
H A Dphy-mtk-tphy.c1097 struct device_node *child_np; in mtk_tphy_probe() local
1140 for_each_child_of_node(np, child_np) { in mtk_tphy_probe()
1152 phy = devm_phy_create(dev, child_np, &mtk_tphy_ops); in mtk_tphy_probe()
1159 retval = of_address_to_resource(child_np, 0, &res); in mtk_tphy_probe()
1198 of_node_put(child_np); in mtk_tphy_probe()
/OK3568_Linux_fs/kernel/drivers/soc/qcom/
H A Dcpr.c1080 struct device_node *child_np = NULL; in cpr_get_opp_hz_for_req() local
1093 child_np = of_get_next_available_child(desc_np, child_np); in cpr_get_opp_hz_for_req()
1094 child_req_np = of_parse_phandle(child_np, "required-opps", 0); in cpr_get_opp_hz_for_req()
1095 } while (child_np && child_req_np != ref_np); in cpr_get_opp_hz_for_req()
1097 if (child_np && child_req_np == ref_np) in cpr_get_opp_hz_for_req()
1098 of_property_read_u64(child_np, "opp-hz", &rate); in cpr_get_opp_hz_for_req()
1101 of_node_put(child_np); in cpr_get_opp_hz_for_req()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/apm/xgene/
H A Dxgene_enet_hw.c900 struct device_node *child_np; in xgene_mdiobus_register() local
906 for_each_child_of_node(dev->of_node, child_np) { in xgene_mdiobus_register()
907 if (of_device_is_compatible(child_np, in xgene_mdiobus_register()
909 mdio_np = child_np; in xgene_mdiobus_register()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/faraday/
H A Dftgmac100.c1752 struct device_node *child_np = of_get_child_by_name(np, name); in ftgmac100_has_child_node() local
1755 if (child_np) { in ftgmac100_has_child_node()
1757 of_node_put(child_np); in ftgmac100_has_child_node()