OF_device_from_xref
ch->dmac = OF_device_from_xref(xref);
if ((sc->parent = OF_device_from_xref(intr_parent)) == NULL) {
if ((gpio = OF_device_from_xref(gpio_prop[0])) == NULL)
gic_dev = OF_device_from_xref(iparent);
if (OF_device_from_xref(sc->i2c_xref) != NULL) {
return (OF_device_from_xref(sc->i2c_xref));
if ((sc->parent = OF_device_from_xref(intr_parent)) == NULL) {
if ((sc->parent = OF_device_from_xref(msi_parent)) == NULL) {
output->ddc = OF_device_from_xref(ddc);
sc->tsens_dev = OF_device_from_xref(xnode);
sc->parent = OF_device_from_xref(parent_xref);
hdmi_dev = OF_device_from_xref(sc->sc_hdmi_framer);
ti_prm_dev = OF_device_from_xref(ti_prm_ref);
sc->parent = OF_device_from_xref(parent_xref);
iommu_dev = OF_device_from_xref(parent);
sc->tsens_dev = OF_device_from_xref(xnode);
phydev = OF_device_from_xref(phy_handle);
clockdev = OF_device_from_xref(parent);
phy_dev = OF_device_from_xref(OF_parent(phy_node));
xdev = OF_device_from_xref(OF_xref_from_node(sc->sfp));
return (OF_device_from_xref(OF_xref_from_node(sc->phy_handle)));
if ((gpio = OF_device_from_xref(gpio_prop[0])) == NULL) {
if ((gpio = OF_device_from_xref(gpio_prop[0])) == NULL) {
sc->sc_mdio_dev = OF_device_from_xref(OF_xref_from_node(mdio_p));
clockdev = OF_device_from_xref(clks[n]);
clockdev = OF_device_from_xref(clks[i]);
if (OF_device_from_xref(configs[i]) == pinctrl)
if ((pinctrl = OF_device_from_xref(configs[i])) != NULL)
shmem_dev = OF_device_from_xref(shmems[index]);
(*pins)[j].dev = OF_device_from_xref(gpios[i]);
pin.dev = OF_device_from_xref(xref);
return (OF_device_from_xref(sc->i2c_xref));
rstdev = OF_device_from_xref(xnode);
busdev = OF_device_from_xref((phandle_t)propval);
db_dev = OF_device_from_xref(parent);
helper->mmc_pwrseq = OF_device_from_xref(pwrseq_xref);
provider = OF_device_from_xref(OF_xref_from_node(OF_parent(cell_node)));
provider = OF_device_from_xref(OF_xref_from_node(prov_node));
return (OF_device_from_xref(OF_xref_from_node(outport)));
device_t OF_device_from_xref(phandle_t xref);
phydev = OF_device_from_xref(xnode);
phydev = OF_device_from_xref(cells[0]);
channel.dev = OF_device_from_xref(xref);
regdev = OF_device_from_xref(cells[0]);
sc->gpio_pin.dev = OF_device_from_xref(sc->gpio_prodxref);
xdev = OF_device_from_xref(OF_xref_from_node(sc->i2c_bus));
daidev = OF_device_from_xref(xref);
daidev = OF_device_from_xref(xref);
auxdev = OF_device_from_xref(aux_devs[i]);
usbmdev = OF_device_from_xref(usbmprops[0]);
OF_device_from_xref(OF_xref_from_node(mdio));
dma_dev = OF_device_from_xref(parent);
xio->dev = OF_device_from_xref(prop);
sc->dma_dev = OF_device_from_xref(prop);
sc->sc_gpio = OF_device_from_xref(gp[0]);