/freebsd/sys/dev/dpaa/ |
H A D | if_dtsec_fdt.c | 116 phandle_t enet_node, phy_node; in dtsec_fdt_attach() local 141 if (OF_getprop(enet_node, "phy-handle", (void *)&phy_node, in dtsec_fdt_attach() 142 sizeof(phy_node)) <= 0) in dtsec_fdt_attach() 145 phy_node = OF_node_from_xref(phy_node); in dtsec_fdt_attach() 147 if (OF_getprop(phy_node, "reg", (void *)&sc->sc_phy_addr, in dtsec_fdt_attach() 151 phy_dev = OF_device_from_xref(OF_parent(phy_node)); in dtsec_fdt_attach()
|
/freebsd/sys/dev/fdt/ |
H A D | fdt_common.c | 382 phandle_t phy_node; in fdt_get_phyaddr() local 391 phy_node = OF_node_from_xref(phy_handle); in fdt_get_phyaddr() 393 if (OF_getencprop(phy_node, "reg", (void *)&phy_reg, in fdt_get_phyaddr() 410 phy_node = OF_parent(phy_node); in fdt_get_phyaddr() 411 while (phy_node != 0) { in fdt_get_phyaddr() 412 if (OF_getprop(phy_node, "phy-handle", (void *)&phy_handle, in fdt_get_phyaddr() 415 phy_node = OF_parent(phy_node); in fdt_get_phyaddr() 417 if (phy_node == 0) in fdt_get_phyaddr() 429 if (ofw_bus_get_node(child) == phy_node) in fdt_get_phyaddr()
|
/freebsd/sys/dev/axgbe/ |
H A D | if_axgbe.c | 308 phandle_t node, phy_node; in axgbe_attach() local 320 phy_node = node; in axgbe_attach() 348 phy_node = ofw_bus_get_node(phydev); in axgbe_attach() 402 if (OF_getencprop(phy_node, XGBE_SPEEDSET_PROPERTY, &sc->prv.speed_set, in axgbe_attach() 409 error = axgbe_get_optional_prop(dev, phy_node, XGBE_BLWC_PROPERTY, in axgbe_attach() 419 error = axgbe_get_optional_prop(dev, phy_node, XGBE_CDR_RATE_PROPERTY, in axgbe_attach() 429 error = axgbe_get_optional_prop(dev, phy_node, XGBE_PQ_SKEW_PROPERTY, in axgbe_attach() 439 error = axgbe_get_optional_prop(dev, phy_node, XGBE_TX_AMP_PROPERTY, in axgbe_attach() 449 error = axgbe_get_optional_prop(dev, phy_node, XGBE_DFE_CFG_PROPERTY, in axgbe_attach() 459 error = axgbe_get_optional_prop(dev, phy_node, XGBE_DFE_ENA_PROPERTY, in axgbe_attach()
|
/freebsd/sys/dev/mii/ |
H A D | mii_fdt.c | 262 phandle_t phy_node; in miibus_fdt_attach() local 273 phy_node = mii_fdt_lookup_phy(ofw_bus_get_node(parent), in miibus_fdt_attach() 275 if (phy_node == -1) { in miibus_fdt_attach() 281 error = ofw_bus_gen_setup_devinfo(&ma->obd, phy_node); in miibus_fdt_attach() 294 (void)ofw_bus_intr_to_rl(children[i], phy_node, &ma->rl, NULL); in miibus_fdt_attach()
|
/freebsd/sys/dev/dwc/ |
H A D | if_dwc_rk.c | 126 phandle_t phy_node; member 447 if ((sc->phy_node != 0) && sc->integrated_phy) { in if_dwc_rk_init_clocks() 448 if (clk_get_by_ofw_index(dev, sc->phy_node, 0, &sc->clk_phy) != 0) { in if_dwc_rk_init_clocks() 522 sc->phy_node = OF_node_from_xref(phy_handle); in if_dwc_rk_init() 524 if (sc->phy_node) in if_dwc_rk_init() 525 sc->integrated_phy = OF_hasprop(sc->phy_node, "phy-is-integrated"); in if_dwc_rk_init() 569 if (hwreset_get_by_ofw_idx(dev, sc->phy_node, 0, &phy_reset) == 0) { in if_dwc_rk_init()
|
/freebsd/sys/arm/allwinner/ |
H A D | if_awg.c | 1425 phandle_t node, phy_node; in awg_has_internal_phy() local 1432 phy_node = awg_get_phy_node(dev); in awg_has_internal_phy() 1433 return (phy_node != 0 && ofw_bus_node_is_compatible(OF_parent(phy_node), in awg_has_internal_phy() 1609 phandle_t node, phy_node; in awg_setup_extres() local 1621 phy_node = awg_get_phy_node(dev); in awg_setup_extres() 1623 if (phy_node == 0 && OF_hasprop(node, "phy-handle")) { in awg_setup_extres() 1638 if (phy_node == 0 || hwreset_get_by_ofw_idx(dev, phy_node, 0, in awg_setup_extres() 1649 if (phy_node == 0 || clk_get_by_ofw_index(dev, phy_node, 0, in awg_setup_extres()
|
/freebsd/sys/dev/xilinx/ |
H A D | if_xae.c | 154 phandle_t phy_node; in xae_get_phyaddr() local 161 phy_node = OF_node_from_xref(phy_handle); in xae_get_phyaddr() 163 if (OF_getencprop(phy_node, "reg", (void *)&phy_reg, in xae_get_phyaddr()
|
/freebsd/sys/dev/ixgbe/ |
H A D | if_ix.c | 2810 struct sysctl_oid *phy_node; in ixgbe_add_device_sysctls() local 2813 phy_node = SYSCTL_ADD_NODE(ctx_list, child, OID_AUTO, "phy", in ixgbe_add_device_sysctls() 2815 phy_list = SYSCTL_CHILDREN(phy_node); in ixgbe_add_device_sysctls()
|