Home
last modified time | relevance | path

Searched refs:xref (Results 1 – 25 of 86) sorted by relevance

1234

/freebsd-14.2/sys/dev/ofw/
H A Dopenfirm.c91 phandle_t xref; member
129 if (OF_getencprop(child, "phandle", &xref, sizeof(xref)) == in xrefinfo_create()
132 "linux,phandle", &xref, sizeof(xref)) == -1) in xrefinfo_create()
136 xi->xref = xref; in xrefinfo_create()
182 xi->xref = xref; in xrefinfo_add()
632 return (xref); in OF_node_from_xref()
637 return (xref); in OF_node_from_xref()
645 phandle_t xref; in OF_xref_from_node() local
653 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 && in OF_xref_from_node()
657 return (xref); in OF_xref_from_node()
[all …]
H A Dopenfirm.h139 phandle_t OF_node_from_xref(phandle_t xref);
149 device_t OF_device_from_xref(phandle_t xref);
151 int OF_device_register_xref(phandle_t xref, device_t dev);
/freebsd-14.2/sys/powerpc/ofw/
H A Dopenpic_ofw.c130 phandle_t xref, node; in openpic_ofw_attach() local
135 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach()
136 OF_getencprop(node, "ibm,phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach()
137 OF_getencprop(node, "linux,phandle", &xref, sizeof(xref)) == -1) in openpic_ofw_attach()
138 xref = node; in openpic_ofw_attach()
145 return (openpic_common_attach(dev, xref)); in openpic_ofw_attach()
/freebsd-14.2/sys/arm64/coresight/
H A Dcoresight_fdt.c53 phandle_t xref; in coresight_fdt_get_ports() local
79 "remote-endpoint", &xref, in coresight_fdt_get_ports()
80 sizeof(xref)) == -1) { in coresight_fdt_get_ports()
87 endp->their_node = OF_node_from_xref(xref); in coresight_fdt_get_ports()
113 pcell_t xref; in coresight_fdt_get_cpu() local
116 if (OF_getencprop(node, "cpu", &xref, sizeof(xref)) != -1) { in coresight_fdt_get_cpu()
117 cpu_node = OF_node_from_xref(xref); in coresight_fdt_get_cpu()
/freebsd-14.2/contrib/openpam/misc/
H A Dgendoc.pl118 my %xref;
167 %xref = (
176 ++$xref{3}->{pam_strerror};
227 ++$xref{$sect}->{$page};
302 ++$xref{3}->{$1};
339 'xref' => \%xref,
588 my %xref;
623 ++$xref{int($2)}->{$1};
642 ++$xref{3}->{openpam};
645 ++$xref{3}->{$func};
[all …]
/freebsd-14.2/sys/dev/extres/hwreset/
H A Dhwreset.c96 hwreset_default_ofw_map(device_t provider_dev, phandle_t xref, int ncells, in hwreset_default_ofw_map() argument
169 phandle_t xref, node; in hwreset_register_ofw_provider() local
175 xref = OF_xref_from_node(node); in hwreset_register_ofw_provider()
176 OF_device_register_xref(xref, provider_dev); in hwreset_register_ofw_provider()
182 phandle_t xref; in hwreset_unregister_ofw_provider() local
184 xref = OF_xref_from_device(provider_dev); in hwreset_unregister_ofw_provider()
185 OF_device_register_xref(xref, NULL); in hwreset_unregister_ofw_provider()
/freebsd-14.2/sys/arm64/acpica/
H A Dacpi_iort.c74 u_int xref; member
314 its->xref = 0; in iort_copy_its()
444 u_int xref; in madt_resolve_its_xref() local
452 xref = acpi_its_xref++; in madt_resolve_its_xref()
457 its_entry->xref = xref; in madt_resolve_its_xref()
592 acpi_iort_its_lookup(u_int its_id, u_int *xref, int *pxm) in acpi_iort_its_lookup() argument
602 *xref = its_entry->xref; in acpi_iort_its_lookup()
629 *xref = node->entries.its[0].xref; in acpi_iort_map_pci_msi()
647 *xref = smmu->BaseAddress; in acpi_iort_map_pci_smmuv3()
671 *xref = node->entries.its[0].xref; in acpi_iort_map_named_msi()
[all …]
/freebsd-14.2/sys/kern/
H A Dsubr_intr.c751 if (dev == NULL && xref == 0)
761 if (xref == pic->pic_xref)
805 pic->pic_xref = xref;
845 pic = pic_create(dev, xref, FLAG_PIC);
882 pic = pic_lookup(dev, xref, FLAG_PIC);
964 pic = pic_lookup(dev, xref,
1339 pic = pic_create(dev, xref, FLAG_MSI);
1359 pic = pic_lookup(NULL, xref, FLAG_MSI);
1596 intptr_t xref; member
1681 *map_xref = irq_map[res_id]->xref;
[all …]
/freebsd-14.2/sys/dev/beri/virtio/
H A Dvirtio.c201 phandle_t xref; in setup_pio() local
207 if (OF_searchencprop(node, name, &xref, in setup_pio()
208 sizeof(xref)) == -1) { in setup_pio()
212 pio_node = OF_node_from_xref(xref); in setup_pio()
228 phandle_t xref; in setup_offset() local
235 if (OF_searchencprop(node, "beri-mem", &xref, in setup_offset()
236 sizeof(xref)) == -1) { in setup_offset()
240 mem_node = OF_node_from_xref(xref); in setup_offset()
H A Dvirtio_mmio_platform.c87 phandle_t xref; in setup_pio() local
93 if (OF_searchencprop(node, name, &xref, in setup_pio()
94 sizeof(xref)) == -1) { in setup_pio()
98 pio_node = OF_node_from_xref(xref); in setup_pio()
/freebsd-14.2/sys/dev/sound/fdt/
H A Daudio_soc.c319 uint32_t xref; in audio_soc_init() local
334 if ((OF_getencprop(child, "sound-dai", &xref, sizeof(xref))) <= 0) { in audio_soc_init()
338 daidev = OF_device_from_xref(xref); in audio_soc_init()
350 if ((OF_getencprop(child, "sound-dai", &xref, sizeof(xref))) <= 0) { in audio_soc_init()
354 daidev = OF_device_from_xref(xref); in audio_soc_init()
426 uint32_t xref; in audio_soc_attach() local
470 if ((OF_getencprop(node, "simple-audio-card,frame-master", &xref, sizeof(xref))) > 0) in audio_soc_attach()
471 frame_master = cpu_child == OF_node_from_xref(xref); in audio_soc_attach()
473 if ((OF_getencprop(node, "simple-audio-card,bitclock-master", &xref, sizeof(xref))) > 0) in audio_soc_attach()
474 bitclock_master = cpu_child == OF_node_from_xref(xref); in audio_soc_attach()
/freebsd-14.2/sys/arm/arm/
H A Dgic_fdt.c130 intptr_t xref; in gic_fdt_attach() local
139 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_fdt_attach()
145 if (intr_pic_register(dev, xref) == NULL) { in gic_fdt_attach()
156 if (pxref == 0 || xref == pxref) { in gic_fdt_attach()
157 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc) != 0) { in gic_fdt_attach()
159 intr_pic_deregister(dev, xref); in gic_fdt_attach()
173 intr_pic_deregister(dev, xref); in gic_fdt_attach()
179 intr_pic_deregister(dev, xref); in gic_fdt_attach()
184 OF_device_register_xref(xref, dev); in gic_fdt_attach()
H A Dgic_acpi.c208 intptr_t xref; in gic_acpi_attach() local
217 xref = ACPI_INTR_XREF; in gic_acpi_attach()
223 if (intr_pic_register(dev, xref) == NULL) { in gic_acpi_attach()
231 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc) != 0) { in gic_acpi_attach()
233 intr_pic_deregister(dev, xref); in gic_acpi_attach()
H A Dpmu_fdt.c89 phandle_t xref, uint32_t mpidr) in pmu_parse_affinity() argument
95 if (xref != 0) { in pmu_parse_affinity()
96 err = OF_getencprop(OF_node_from_xref(xref), "reg", &mpidr, in pmu_parse_affinity()
/freebsd-14.2/sys/dev/virtio/mmio/
H A Dvirtio_mmio_fdt.c103 phandle_t xref; in vtmmio_setup_platform() local
111 if (OF_searchencprop(node, "platform", &xref, in vtmmio_setup_platform()
112 sizeof(xref)) == -1) { in vtmmio_setup_platform()
116 platform_node = OF_node_from_xref(xref); in vtmmio_setup_platform()
/freebsd-14.2/sys/dev/pwm/
H A Dofw_pwm.c44 phandle_t xref; in pwm_get_by_ofw_propidx() local
50 idx, &xref, &ncells, &cells); in pwm_get_by_ofw_propidx()
54 channel.dev = OF_device_from_xref(xref); in pwm_get_by_ofw_propidx()
/freebsd-14.2/sys/dev/iicbus/pmic/silergy/
H A Dsy8106a.c67 phandle_t xref; member
217 reg_sc->xref = OF_xref_from_node(node); in sy8106a_reg_attach()
226 sy8106a_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in sy8106a_regdev_map() argument
233 if (sc->reg->xref != xref) in sy8106a_regdev_map()
H A Dsyr827.c73 phandle_t xref; member
200 reg_sc->xref = OF_xref_from_node(node); in syr827_reg_attach()
224 syr827_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in syr827_regdev_map() argument
231 if (sc->reg->xref != xref) in syr827_regdev_map()
/freebsd-14.2/sys/dev/dpaa2/
H A Dmemac_mdio_fdt.c62 phandle_t xref; member
121 sc->xref = OF_xref_from_node(node); in memacphy_fdt_attach()
123 error = OF_device_register_xref(sc->xref, dev); in memacphy_fdt_attach()
125 device_printf(dev, "Failed to register xref %#x\n", sc->xref); in memacphy_fdt_attach()
129 node, ofw_bus_get_name(dev), sc->reg, sc->xref, sc->scc.phy); in memacphy_fdt_attach()
/freebsd-14.2/sys/arm64/arm64/
H A Dgic_v3_fdt.c114 intptr_t xref; in gic_v3_fdt_attach() local
151 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_v3_fdt_attach()
152 sc->gic_pic = intr_pic_register(dev, xref); in gic_v3_fdt_attach()
160 intr_msi_register(dev, xref); in gic_v3_fdt_attach()
163 OF_device_register_xref(xref, dev); in gic_v3_fdt_attach()
165 if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc) != 0) { in gic_v3_fdt_attach()
/freebsd-14.2/sys/arm/broadcom/bcm2835/
H A Dbcm2835_intr.c329 bcm_intc_pic_register(struct bcm_intc_softc *sc, intptr_t xref) in bcm_intc_pic_register() argument
360 if (intr_pic_register(sc->sc_dev, xref) == NULL) in bcm_intc_pic_register()
385 intptr_t xref; in bcm_intc_attach() local
397 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in bcm_intc_attach()
398 if (bcm_intc_pic_register(sc, xref) != 0) { in bcm_intc_attach()
408 if (intr_pic_claim_root(dev, xref, bcm2835_intc_intr, sc) != 0) { in bcm_intc_attach()
/freebsd-14.2/sys/arm/freescale/imx/
H A Dtzic.c203 intptr_t xref; in tzic_pic_attach() local
216 xref = OF_xref_from_node(ofw_bus_get_node(sc->dev)); in tzic_pic_attach()
217 pic = intr_pic_register(sc->dev, xref); in tzic_pic_attach()
221 return (intr_pic_claim_root(sc->dev, xref, tzic_intr, sc, 0)); in tzic_pic_attach()
/freebsd-14.2/sys/arm/ti/
H A Daintc.c216 intptr_t xref; in ti_aintc_pic_attach() local
228 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)); in ti_aintc_pic_attach()
229 pic = intr_pic_register(sc->sc_dev, xref); in ti_aintc_pic_attach()
233 return (intr_pic_claim_root(sc->sc_dev, xref, ti_aintc_intr, sc)); in ti_aintc_pic_attach()
/freebsd-14.2/sys/riscv/riscv/
H A Dintc.c157 phandle_t xref; in intc_attach() local
165 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in intc_attach()
180 pic = intr_pic_register(sc->dev, xref); in intc_attach()
184 return (intr_pic_claim_root(sc->dev, xref, intc_intr, sc)); in intc_attach()
/freebsd-14.2/sys/arm/allwinner/
H A Daw_r_intc.c74 phandle_t node, xref, intr_parent; in aw_r_intc_gicp_attach() local
93 xref = OF_xref_from_node(node); in aw_r_intc_gicp_attach()
94 if (intr_pic_register(dev, xref) == NULL) { in aw_r_intc_gicp_attach()
105 OF_device_register_xref(xref, dev); in aw_r_intc_gicp_attach()

1234