/freebsd/sys/dev/ofw/ |
H A D | openfirm.c | 91 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 D | openfirm.h | 139 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/sys/powerpc/ofw/ |
H A D | openpic_ofw.c | 129 phandle_t xref, node; in openpic_ofw_attach() local 134 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach() 135 OF_getencprop(node, "ibm,phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach() 136 OF_getencprop(node, "linux,phandle", &xref, sizeof(xref)) == -1) in openpic_ofw_attach() 137 xref = node; in openpic_ofw_attach() 144 return (openpic_common_attach(dev, xref)); in openpic_ofw_attach()
|
/freebsd/sys/arm64/coresight/ |
H A D | coresight_fdt.c | 52 phandle_t xref; in coresight_fdt_get_ports() local 78 "remote-endpoint", &xref, in coresight_fdt_get_ports() 79 sizeof(xref)) == -1) { in coresight_fdt_get_ports() 86 endp->their_node = OF_node_from_xref(xref); in coresight_fdt_get_ports() 112 pcell_t xref; in coresight_fdt_get_cpu() local 115 if (OF_getencprop(node, "cpu", &xref, sizeof(xref)) != -1) { in coresight_fdt_get_cpu() 116 cpu_node = OF_node_from_xref(xref); in coresight_fdt_get_cpu()
|
/freebsd/contrib/openpam/misc/ |
H A D | gendoc.pl | 118 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/sys/dev/hwreset/ |
H A D | hwreset.c | 96 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/sys/arm64/acpica/ |
H A D | acpi_iort.c | 73 u_int xref; member 313 its->xref = 0; in iort_copy_its() 443 u_int xref; in madt_resolve_its_xref() local 451 xref = acpi_its_xref++; in madt_resolve_its_xref() 456 its_entry->xref = xref; in madt_resolve_its_xref() 591 acpi_iort_its_lookup(u_int its_id, u_int *xref, int *pxm) in acpi_iort_its_lookup() argument 601 *xref = its_entry->xref; in acpi_iort_its_lookup() 628 *xref = node->entries.its[0].xref; in acpi_iort_map_pci_msi() 646 *xref = smmu->BaseAddress; in acpi_iort_map_pci_smmuv3() 670 *xref = node->entries.its[0].xref; in acpi_iort_map_named_msi() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_intr.c | 753 if (dev == NULL && xref == 0) 763 if (xref == pic->pic_xref) 807 pic->pic_xref = xref; 847 pic = pic_create(dev, xref, FLAG_PIC); 884 pic = pic_lookup(dev, xref, FLAG_PIC); 966 pic = pic_lookup(dev, xref, 1341 pic = pic_create(dev, xref, FLAG_MSI); 1361 pic = pic_lookup(NULL, xref, FLAG_MSI); 1598 intptr_t xref; member 1683 *map_xref = irq_map[res_id]->xref; [all …]
|
/freebsd/sys/dev/beri/virtio/ |
H A D | virtio.c | 195 phandle_t xref; in setup_pio() local 201 if (OF_searchencprop(node, name, &xref, in setup_pio() 202 sizeof(xref)) == -1) { in setup_pio() 206 pio_node = OF_node_from_xref(xref); in setup_pio() 222 phandle_t xref; in setup_offset() local 229 if (OF_searchencprop(node, "beri-mem", &xref, in setup_offset() 230 sizeof(xref)) == -1) { in setup_offset() 234 mem_node = OF_node_from_xref(xref); in setup_offset()
|
H A D | virtio_mmio_platform.c | 86 phandle_t xref; in setup_pio() local 92 if (OF_searchencprop(node, name, &xref, in setup_pio() 93 sizeof(xref)) == -1) { in setup_pio() 97 pio_node = OF_node_from_xref(xref); in setup_pio()
|
/freebsd/sys/dev/sound/fdt/ |
H A D | audio_soc.c | 319 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/sys/arm/arm/ |
H A D | gic_fdt.c | 129 intptr_t xref; in gic_fdt_attach() local 138 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_fdt_attach() 144 if (intr_pic_register(dev, xref) == NULL) { in gic_fdt_attach() 155 if (pxref == 0 || xref == pxref) { in gic_fdt_attach() 156 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc) != 0) { in gic_fdt_attach() 158 intr_pic_deregister(dev, xref); in gic_fdt_attach() 172 intr_pic_deregister(dev, xref); in gic_fdt_attach() 178 intr_pic_deregister(dev, xref); in gic_fdt_attach() 183 OF_device_register_xref(xref, dev); in gic_fdt_attach()
|
H A D | gic_acpi.c | 207 intptr_t xref; in gic_acpi_attach() local 216 xref = ACPI_INTR_XREF; in gic_acpi_attach() 222 if (intr_pic_register(dev, xref) == NULL) { in gic_acpi_attach() 230 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc) != 0) { in gic_acpi_attach() 232 intr_pic_deregister(dev, xref); in gic_acpi_attach()
|
H A D | pmu_fdt.c | 88 phandle_t xref, uint32_t mpidr) in pmu_parse_affinity() argument 94 if (xref != 0) { in pmu_parse_affinity() 95 err = OF_getencprop(OF_node_from_xref(xref), "reg", &mpidr, in pmu_parse_affinity()
|
/freebsd/sys/dev/virtio/mmio/ |
H A D | virtio_mmio_fdt.c | 102 phandle_t xref; in vtmmio_setup_platform() local 110 if (OF_searchencprop(node, "platform", &xref, in vtmmio_setup_platform() 111 sizeof(xref)) == -1) { in vtmmio_setup_platform() 115 platform_node = OF_node_from_xref(xref); in vtmmio_setup_platform()
|
/freebsd/sys/dev/pwm/ |
H A D | ofw_pwm.c | 43 phandle_t xref; in pwm_get_by_ofw_propidx() local 49 idx, &xref, &ncells, &cells); in pwm_get_by_ofw_propidx() 53 channel.dev = OF_device_from_xref(xref); in pwm_get_by_ofw_propidx()
|
/freebsd/sys/dev/dpaa2/ |
H A D | memac_mdio_fdt.c | 61 phandle_t xref; member 120 sc->xref = OF_xref_from_node(node); in memacphy_fdt_attach() 122 error = OF_device_register_xref(sc->xref, dev); in memacphy_fdt_attach() 124 device_printf(dev, "Failed to register xref %#x\n", sc->xref); in memacphy_fdt_attach() 128 node, ofw_bus_get_name(dev), sc->reg, sc->xref, sc->scc.phy); in memacphy_fdt_attach()
|
/freebsd/sys/dev/iicbus/pmic/silergy/ |
H A D | sy8106a.c | 66 phandle_t xref; member 216 reg_sc->xref = OF_xref_from_node(node); in sy8106a_reg_attach() 225 sy8106a_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in sy8106a_regdev_map() argument 232 if (sc->reg->xref != xref) in sy8106a_regdev_map()
|
H A D | syr827.c | 72 phandle_t xref; member 199 reg_sc->xref = OF_xref_from_node(node); in syr827_reg_attach() 223 syr827_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in syr827_regdev_map() argument 230 if (sc->reg->xref != xref) in syr827_regdev_map()
|
/freebsd/sys/arm64/arm64/ |
H A D | gic_v3_fdt.c | 113 intptr_t xref; in gic_v3_fdt_attach() local 150 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_v3_fdt_attach() 151 sc->gic_pic = intr_pic_register(dev, xref); in gic_v3_fdt_attach() 159 intr_msi_register(dev, xref); in gic_v3_fdt_attach() 162 OF_device_register_xref(xref, dev); in gic_v3_fdt_attach() 164 if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc) != 0) { in gic_v3_fdt_attach()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_intr.c | 329 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/sys/arm/allwinner/ |
H A D | aw_r_intc.c | 74 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()
|
/freebsd/sys/arm/ti/ |
H A D | aintc.c | 216 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/sys/riscv/riscv/ |
H A D | intc.c | 157 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/sys/dev/mii/ |
H A D | mii_fdt.c | 90 pcell_t xref; in mii_fdt_get_phynode() local 94 if (OF_getencprop(macnode, props[i], &xref, sizeof(xref)) > 0) in mii_fdt_get_phynode() 95 return (OF_node_from_xref(xref)); in mii_fdt_get_phynode()
|