| /freebsd-13.1/sys/dev/ofw/ |
| H A D | openfirm.c | 93 phandle_t xref; member 131 if (OF_getencprop(child, "phandle", &xref, sizeof(xref)) == in xrefinfo_create() 134 "linux,phandle", &xref, sizeof(xref)) == -1) in xrefinfo_create() 138 xi->xref = xref; in xrefinfo_create() 184 xi->xref = xref; in xrefinfo_add() 634 return (xref); in OF_node_from_xref() 639 return (xref); in OF_node_from_xref() 647 phandle_t xref; in OF_xref_from_node() local 655 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 && in OF_xref_from_node() 659 return (xref); in OF_xref_from_node() [all …]
|
| H A D | openfirm.h | 141 phandle_t OF_node_from_xref(phandle_t xref); 151 device_t OF_device_from_xref(phandle_t xref); 153 int OF_device_register_xref(phandle_t xref, device_t dev);
|
| /freebsd-13.1/sys/powerpc/ofw/ |
| H A D | openpic_ofw.c | 132 phandle_t xref, node; in openpic_ofw_attach() local 137 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach() 138 OF_getencprop(node, "ibm,phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach() 139 OF_getencprop(node, "linux,phandle", &xref, sizeof(xref)) == -1) in openpic_ofw_attach() 140 xref = node; in openpic_ofw_attach() 147 return (openpic_common_attach(dev, xref)); in openpic_ofw_attach()
|
| /freebsd-13.1/sys/arm64/coresight/ |
| H A D | coresight_fdt.c | 55 phandle_t xref; in coresight_fdt_get_ports() local 81 "remote-endpoint", &xref, in coresight_fdt_get_ports() 82 sizeof(xref)) == -1) { in coresight_fdt_get_ports() 89 endp->their_node = OF_node_from_xref(xref); in coresight_fdt_get_ports() 115 pcell_t xref; in coresight_fdt_get_cpu() local 118 if (OF_getencprop(node, "cpu", &xref, sizeof(xref)) != -1) { in coresight_fdt_get_cpu() 119 cpu_node = OF_node_from_xref(xref); in coresight_fdt_get_cpu()
|
| /freebsd-13.1/contrib/openpam/misc/ |
| H A D | gendoc.pl | 120 my %xref; 169 %xref = ( 178 ++$xref{3}->{pam_strerror}; 229 ++$xref{$sect}->{$page}; 304 ++$xref{3}->{$1}; 341 'xref' => \%xref, 590 my %xref; 625 ++$xref{int($2)}->{$1}; 644 ++$xref{3}->{openpam}; 647 ++$xref{3}->{$func}; [all …]
|
| /freebsd-13.1/sys/kern/ |
| H A D | subr_intr.c | 733 if (dev == NULL && xref == 0) 743 if (xref == pic->pic_xref) 787 pic->pic_xref = xref; 827 pic = pic_create(dev, xref, FLAG_PIC); 864 pic = pic_lookup(dev, xref, FLAG_PIC); 947 pic = pic_lookup(dev, xref, 1322 pic = pic_create(dev, xref, FLAG_MSI); 1342 pic = pic_lookup(NULL, xref, FLAG_MSI); 1579 intptr_t xref; member 1664 *map_xref = irq_map[res_id]->xref; [all …]
|
| /freebsd-13.1/sys/dev/extres/hwreset/ |
| H A D | hwreset.c | 98 hwreset_default_ofw_map(device_t provider_dev, phandle_t xref, int ncells, in hwreset_default_ofw_map() argument 171 phandle_t xref, node; in hwreset_register_ofw_provider() local 177 xref = OF_xref_from_node(node); in hwreset_register_ofw_provider() 178 OF_device_register_xref(xref, provider_dev); in hwreset_register_ofw_provider() 184 phandle_t xref; in hwreset_unregister_ofw_provider() local 186 xref = OF_xref_from_device(provider_dev); in hwreset_unregister_ofw_provider() 187 OF_device_register_xref(xref, NULL); in hwreset_unregister_ofw_provider()
|
| /freebsd-13.1/sys/arm64/acpica/ |
| H A D | acpi_iort.c | 76 u_int xref; member 316 its->xref = 0; in iort_copy_its() 446 u_int xref; in madt_resolve_its_xref() local 454 xref = acpi_its_xref++; in madt_resolve_its_xref() 459 its_entry->xref = xref; in madt_resolve_its_xref() 594 acpi_iort_its_lookup(u_int its_id, u_int *xref, int *pxm) in acpi_iort_its_lookup() argument 604 *xref = its_entry->xref; in acpi_iort_its_lookup() 631 *xref = node->entries.its[0].xref; in acpi_iort_map_pci_msi() 649 *xref = smmu->BaseAddress; in acpi_iort_map_pci_smmuv3() 673 *xref = node->entries.its[0].xref; in acpi_iort_map_named_msi() [all …]
|
| /freebsd-13.1/sys/dev/beri/virtio/ |
| H A D | virtio.c | 198 phandle_t xref; in setup_pio() local 204 if (OF_searchencprop(node, name, &xref, in setup_pio() 205 sizeof(xref)) == -1) { in setup_pio() 209 pio_node = OF_node_from_xref(xref); in setup_pio() 225 phandle_t xref; in setup_offset() local 232 if (OF_searchencprop(node, "beri-mem", &xref, in setup_offset() 233 sizeof(xref)) == -1) { in setup_offset() 237 mem_node = OF_node_from_xref(xref); in setup_offset()
|
| H A D | virtio_mmio_platform.c | 89 phandle_t xref; in setup_pio() local 95 if (OF_searchencprop(node, name, &xref, in setup_pio() 96 sizeof(xref)) == -1) { in setup_pio() 100 pio_node = OF_node_from_xref(xref); in setup_pio()
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | gic_fdt.c | 133 intptr_t xref; in gic_fdt_attach() local 142 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_fdt_attach() 148 if (intr_pic_register(dev, xref) == NULL) { in gic_fdt_attach() 159 if (pxref == 0 || xref == pxref) { in gic_fdt_attach() 160 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc, in gic_fdt_attach() 163 intr_pic_deregister(dev, xref); in gic_fdt_attach() 170 intr_pic_deregister(dev, xref); in gic_fdt_attach() 176 intr_pic_deregister(dev, xref); in gic_fdt_attach() 181 OF_device_register_xref(xref, dev); in gic_fdt_attach()
|
| H A D | gic_acpi.c | 212 intptr_t xref; in gic_acpi_attach() local 221 xref = ACPI_INTR_XREF; in gic_acpi_attach() 227 if (intr_pic_register(dev, xref) == NULL) { in gic_acpi_attach() 235 if (intr_pic_claim_root(dev, xref, arm_gic_intr, sc, in gic_acpi_attach() 238 intr_pic_deregister(dev, xref); in gic_acpi_attach()
|
| /freebsd-13.1/sys/dev/virtio/mmio/ |
| H A D | virtio_mmio_fdt.c | 108 phandle_t xref; in vtmmio_setup_platform() local 116 if (OF_searchencprop(node, "platform", &xref, in vtmmio_setup_platform() 117 sizeof(xref)) == -1) { in vtmmio_setup_platform() 121 platform_node = OF_node_from_xref(xref); in vtmmio_setup_platform()
|
| /freebsd-13.1/sys/mips/broadcom/ |
| H A D | bcm_mips.c | 84 uintptr_t xref; in bcm_mips_register_isrcs() local 87 xref = bcm_mips_pic_xref(sc); in bcm_mips_register_isrcs() 96 xref, "%s,%u", name, ivec); in bcm_mips_register_isrcs() 304 uintptr_t xref; in bcm_mips_attach() local 322 xref = bcm_mips_pic_xref(sc); in bcm_mips_attach() 369 if ((pic = intr_pic_register(dev, xref)) == NULL) { in bcm_mips_attach() 483 uintptr_t xref; in bcm_mips_pic_xref() local 486 xref = BHND_BUS_GET_INTR_DOMAIN(device_get_parent(sc->dev), sc->dev, in bcm_mips_pic_xref() 488 KASSERT(xref != 0, ("missing interrupt domain")); in bcm_mips_pic_xref() 490 return (xref); in bcm_mips_pic_xref()
|
| H A D | bhnd_nexus.c | 184 uintptr_t xref; in bhnd_nexus_map_intr() local 195 xref = BHND_BUS_GET_INTR_DOMAIN(dev, child, false); in bhnd_nexus_map_intr() 196 KASSERT(xref != 0, ("missing interrupt domain")); in bhnd_nexus_map_intr() 204 *irq = intr_map_irq(NULL, xref, &imd->mdata); in bhnd_nexus_map_intr()
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | gic_v3_fdt.c | 121 intptr_t xref; in gic_v3_fdt_attach() local 158 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_v3_fdt_attach() 159 sc->gic_pic = intr_pic_register(dev, xref); in gic_v3_fdt_attach() 167 intr_msi_register(dev, xref); in gic_v3_fdt_attach() 170 OF_device_register_xref(xref, dev); in gic_v3_fdt_attach() 172 if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc, in gic_v3_fdt_attach()
|
| /freebsd-13.1/sys/dev/mii/ |
| H A D | mii_fdt.c | 92 pcell_t xref; in mii_fdt_get_phynode() local 96 if (OF_getencprop(macnode, props[i], &xref, sizeof(xref)) > 0) in mii_fdt_get_phynode() 97 return (OF_node_from_xref(xref)); in mii_fdt_get_phynode()
|
| /freebsd-13.1/sys/dev/pwm/ |
| H A D | ofw_pwm.c | 46 phandle_t xref; in pwm_get_by_ofw_propidx() local 52 idx, &xref, &ncells, &cells); in pwm_get_by_ofw_propidx() 56 channel.dev = OF_device_from_xref(xref); in pwm_get_by_ofw_propidx()
|
| /freebsd-13.1/sys/dev/iicbus/ |
| H A D | sy8106a.c | 71 phandle_t xref; member 221 reg_sc->xref = OF_xref_from_node(node); in sy8106a_reg_attach() 230 sy8106a_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in sy8106a_regdev_map() argument 237 if (sc->reg->xref != xref) in sy8106a_regdev_map()
|
| H A D | syr827.c | 75 phandle_t xref; member 202 reg_sc->xref = OF_xref_from_node(node); in syr827_reg_attach() 226 syr827_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in syr827_regdev_map() argument 233 if (sc->reg->xref != xref) in syr827_regdev_map()
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | mips_pic.c | 222 intptr_t xref = pic_xref(dev); in mips_pic_attach() local 245 if (intr_pic_register(dev, xref) == NULL) { in mips_pic_attach() 251 if (intr_pic_claim_root(dev, xref, mips_pic_intr, sc, 0) != 0) { in mips_pic_attach() 253 intr_pic_deregister(dev, xref); in mips_pic_attach() 461 uintptr_t xref; in mips_pic_map_fixed_intr() local 490 xref = pic_xref(pic_dev); in mips_pic_map_fixed_intr() 497 xref = MIPS_PIC_XREF; in mips_pic_map_fixed_intr() 501 intr->intr_irq = intr_map_irq(pic_dev, xref, &data->hdr); in mips_pic_map_fixed_intr()
|
| /freebsd-13.1/sys/arm/broadcom/bcm2835/ |
| H A D | bcm2835_intr.c | 331 bcm_intc_pic_register(struct bcm_intc_softc *sc, intptr_t xref) in bcm_intc_pic_register() argument 362 if (intr_pic_register(sc->sc_dev, xref) == NULL) in bcm_intc_pic_register() 387 intptr_t xref; in bcm_intc_attach() local 399 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in bcm_intc_attach() 400 if (bcm_intc_pic_register(sc, xref) != 0) { in bcm_intc_attach() 410 if (intr_pic_claim_root(dev, xref, bcm2835_intc_intr, sc, 0) != 0) { in bcm_intc_attach()
|
| /freebsd-13.1/sys/arm/freescale/imx/ |
| H A D | tzic.c | 205 intptr_t xref; in tzic_pic_attach() local 218 xref = OF_xref_from_node(ofw_bus_get_node(sc->dev)); in tzic_pic_attach() 219 pic = intr_pic_register(sc->dev, xref); in tzic_pic_attach() 223 return (intr_pic_claim_root(sc->dev, xref, tzic_intr, sc, 0)); in tzic_pic_attach()
|
| /freebsd-13.1/sys/arm/ti/ |
| H A D | aintc.c | 218 intptr_t xref; in ti_aintc_pic_attach() local 230 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)); in ti_aintc_pic_attach() 231 pic = intr_pic_register(sc->sc_dev, xref); in ti_aintc_pic_attach() 235 return (intr_pic_claim_root(sc->sc_dev, xref, ti_aintc_intr, sc, 0)); in ti_aintc_pic_attach()
|
| /freebsd-13.1/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()
|