Searched defs:xref (Results 1 - 25 of 58) sorted by relevance

123

/freebsd-head/sys/dev/virtio/mmio/
H A Dvirtio_mmio_fdt.c109 phandle_t xref; local
117 if (OF_searchencprop(node, "platform", &xref,
118 sizeof(xref)) == -1) {
122 platform_node = OF_node_from_xref(xref);
/freebsd-head/sys/dev/pwm/
H A Dofw_pwm.c46 phandle_t xref; local
52 idx, &xref, &ncells, &cells);
56 channel.dev = OF_device_from_xref(xref);
/freebsd-head/sys/arm64/coresight/
H A Dcoresight_fdt.c55 phandle_t xref; local
81 "remote-endpoint", &xref,
82 sizeof(xref)) == -1) {
89 endp->their_node = OF_node_from_xref(xref);
115 pcell_t xref; local
118 if (OF_getencprop(node, "cpu", &xref, sizeof(xref)) != -1) {
119 cpu_node = OF_node_from_xref(xref);
/freebsd-head/sys/powerpc/ofw/
H A Dopenpic_ofw.c132 phandle_t xref, node; local
137 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 &&
138 OF_getencprop(node, "ibm,phandle", &xref, sizeof(xref)) == -1 &&
139 OF_getencprop(node, "linux,phandle", &xref, sizeof(xref)) == -1)
140 xref = node;
147 return (openpic_common_attach(dev, xref));
/freebsd-head/sys/dev/mii/
H A Dmii_fdt.c92 pcell_t xref; local
96 if (OF_getencprop(macnode, props[i], &xref, sizeof(xref)) > 0)
97 return (OF_node_from_xref(xref));
/freebsd-head/sys/dev/extres/hwreset/
H A Dhwreset.c98 hwreset_default_ofw_map(device_t provider_dev, phandle_t xref, int ncells, argument
171 phandle_t xref, node; local
177 xref = OF_xref_from_node(node);
178 OF_device_register_xref(xref, provider_dev);
184 phandle_t xref; local
186 xref = OF_xref_from_device(provider_dev);
187 OF_device_register_xref(xref, NULL);
/freebsd-head/sys/dev/beri/virtio/
H A Dvirtio_mmio_platform.c89 phandle_t xref; local
95 if (OF_searchencprop(node, name, &xref,
96 sizeof(xref)) == -1) {
100 pio_node = OF_node_from_xref(xref);
/freebsd-head/sys/arm64/arm64/
H A Dgic_v3_fdt.c122 intptr_t xref; local
142 xref = OF_xref_from_node(ofw_bus_get_node(dev));
143 sc->gic_pic = intr_pic_register(dev, xref);
150 /* Register xref */
151 OF_device_register_xref(xref, dev);
153 if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc,
/freebsd-head/sys/arm/arm/
H A Dgic_fdt.c133 intptr_t xref; local
142 xref = OF_xref_from_node(ofw_bus_get_node(dev));
148 if (intr_pic_register(dev, xref) == NULL) {
159 if (pxref == 0 || xref == pxref) {
160 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc,
163 intr_pic_deregister(dev, xref);
170 intr_pic_deregister(dev, xref);
176 intr_pic_deregister(dev, xref);
181 OF_device_register_xref(xref, dev);
H A Dgic_acpi.c212 intptr_t xref; local
221 xref = ACPI_INTR_XREF;
227 if (intr_pic_register(dev, xref) == NULL) {
235 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc,
238 intr_pic_deregister(dev, xref);
H A Dpl190.c229 phandle_t xref; local
279 xref = OF_xref_from_node(ofw_bus_get_node(sc->dev));
280 pic = intr_pic_register(sc->dev, xref);
284 return (intr_pic_claim_root(sc->dev, xref, pl190_intc_intr, sc, 0));
/freebsd-head/sys/arm/mv/
H A Dmv_ap806_gicp.c92 phandle_t node, xref, intr_parent; local
113 xref = OF_xref_from_node(node);
114 if (intr_pic_register(dev, xref) == NULL) {
122 OF_device_register_xref(xref, dev);
/freebsd-head/sys/mips/beri/
H A Dberi_iommu.c179 phandle_t xref, node; local
194 xref = OF_xref_from_node(node);
195 OF_device_register_xref(xref, dev);
H A Dberi_pic.c177 intptr_t xref; local
190 xref = OF_xref_from_node(ofw_bus_get_node(dev));
216 if (intr_pic_register(dev, xref) == NULL) {
228 intr_pic_deregister(dev, xref);
/freebsd-head/sys/mips/broadcom/
H A Dbhnd_nexus.c184 uintptr_t xref; local
195 xref = BHND_BUS_GET_INTR_DOMAIN(dev, child, false);
196 KASSERT(xref != 0, ("missing interrupt domain"));
204 *irq = intr_map_irq(NULL, xref, &imd->mdata);
/freebsd-head/sys/mips/mediatek/
H A Dmtk_intr_gic.c171 intptr_t xref = gic_xref(dev); local
216 if (intr_pic_register(dev, xref) == NULL) {
H A Dmtk_intr_v1.c168 intptr_t xref = pic_xref(dev); local
204 if (intr_pic_register(dev, xref) == NULL) {
212 intr_pic_deregister(dev, xref);
H A Dmtk_intr_v2.c163 intptr_t xref = pic_xref(dev); local
199 if (intr_pic_register(dev, xref) == NULL) {
207 intr_pic_deregister(dev, xref);
/freebsd-head/sys/mips/ingenic/
H A Djz4780_intr.c160 intptr_t xref; local
162 xref = pic_xref(dev);
190 if (intr_pic_register(dev, xref) == NULL) {
198 intr_pic_deregister(dev, xref);
/freebsd-head/sys/arm/freescale/imx/
H A Dtzic.c206 intptr_t xref; local
219 xref = OF_xref_from_node(ofw_bus_get_node(sc->dev));
220 pic = intr_pic_register(sc->dev, xref);
224 return (intr_pic_claim_root(sc->dev, xref, tzic_intr, sc, 0));
/freebsd-head/sys/arm/annapurna/alpine/
H A Dalpine_pci_msix.c139 intptr_t xref; local
147 xref = OF_xref_from_node(node);
148 OF_device_register_xref(xref, dev);
160 if (intr_msi_register(dev, xref) != 0) {
/freebsd-head/sys/dev/extres/phy/
H A Dphy.c413 int phydev_default_ofw_map(device_t provider, phandle_t xref, int ncells, argument
422 node = OF_node_from_xref(xref);
/freebsd-head/sys/dev/iicbus/
H A Dsyr827.c75 phandle_t xref; member in struct:syr827_reg_sc
202 reg_sc->xref = OF_xref_from_node(node);
226 syr827_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, argument
233 if (sc->reg->xref != xref)
H A Dsy8106a.c71 phandle_t xref; member in struct:sy8106a_reg_sc
221 reg_sc->xref = OF_xref_from_node(node);
230 sy8106a_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, argument
237 if (sc->reg->xref != xref)
/freebsd-head/sys/arm/ti/
H A Daintc.c218 intptr_t xref; local
230 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev));
231 pic = intr_pic_register(sc->sc_dev, xref);
235 return (intr_pic_claim_root(sc->sc_dev, xref, ti_aintc_intr, sc, 0));

Completed in 131 milliseconds

123