| /freebsd-12-stable/sys/dev/ofw/ |
| D | openfirm.c | 93 phandle_t xref; member 122 phandle_t child, xref; in xrefinfo_create() local 131 if (OF_getencprop(child, "phandle", &xref, sizeof(xref)) == in xrefinfo_create() 132 -1 && OF_getencprop(child, "ibm,phandle", &xref, in xrefinfo_create() 133 sizeof(xref)) == -1 && OF_getencprop(child, in xrefinfo_create() 134 "linux,phandle", &xref, sizeof(xref)) == -1) in xrefinfo_create() 138 xi->xref = xref; in xrefinfo_create() 166 if ((find_by == FIND_BY_XREF && (phandle_t)key == xi->xref) || in xrefinfo_find() 178 xrefinfo_add(phandle_t node, phandle_t xref, device_t dev) in xrefinfo_add() argument 184 xi->xref = xref; in xrefinfo_add() [all …]
|
| 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-12-stable/sys/powerpc/ofw/ |
| D | openpic_ofw.c | 128 phandle_t xref, node; in openpic_ofw_attach() local 132 if (OF_getencprop(node, "phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach() 133 OF_getencprop(node, "ibm,phandle", &xref, sizeof(xref)) == -1 && in openpic_ofw_attach() 134 OF_getencprop(node, "linux,phandle", &xref, sizeof(xref)) == -1) in openpic_ofw_attach() 135 xref = node; in openpic_ofw_attach() 137 return (openpic_common_attach(dev, xref)); in openpic_ofw_attach()
|
| /freebsd-12-stable/contrib/openpam/misc/ |
| D | gendoc.pl | 118 my %xref; 167 %xref = ( 176 ++$xref{3}->{pam_strerror}; 227 ++$xref{$sect}->{$page}; 302 ++$xref{3}->{$1}; 339 'xref' => \%xref, 415 my $xref = shift; # References 419 foreach my $sect (sort(keys(%{$xref}))) { 420 foreach my $page (sort(dictionary_order keys(%{$xref->{$sect}}))) { 529 $mdoc .= ".Sh SEE ALSO\n" . genxref($$func{xref}); [all …]
|
| /freebsd-12-stable/sys/kern/ |
| D | subr_intr.c | 121 static struct intr_pic *pic_lookup(device_t dev, intptr_t xref, int flags); 152 static void intr_map_copy_map_data(u_int res_id, device_t *dev, intptr_t *xref, 691 pic_lookup_locked(device_t dev, intptr_t xref, int flags) argument 697 if (dev == NULL && xref == 0) 707 if (xref == pic->pic_xref) 709 } else if (xref == 0 || pic->pic_xref == 0) { 712 } else if (xref == pic->pic_xref && dev == pic->pic_dev) 722 pic_lookup(device_t dev, intptr_t xref, int flags) argument 727 pic = pic_lookup_locked(dev, xref, flags); 736 pic_create(device_t dev, intptr_t xref, int flags) argument [all …]
|
| /freebsd-12-stable/sys/arm64/coresight/ |
| D | coresight.c | 58 phandle_t xref; in coresight_get_ports() local 83 if (OF_getencprop(endpoint_child, "remote-endpoint", &xref, in coresight_get_ports() 84 sizeof(xref)) == -1) { in coresight_get_ports() 91 endp->their_node = OF_node_from_xref(xref); in coresight_get_ports() 169 pcell_t xref; in coresight_get_cpu() local 172 if (OF_getencprop(node, "cpu", &xref, sizeof(xref)) != -1) { in coresight_get_cpu() 173 cpu_node = OF_node_from_xref(xref); in coresight_get_cpu()
|
| /freebsd-12-stable/sys/dev/extres/hwreset/ |
| 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-12-stable/sys/dev/beri/virtio/ |
| D | virtio.c | 199 phandle_t xref; in setup_pio() local 205 if (OF_searchencprop(node, name, &xref, in setup_pio() 206 sizeof(xref)) == -1) { in setup_pio() 210 pio_node = OF_node_from_xref(xref); in setup_pio() 226 phandle_t xref; in setup_offset() local 233 if (OF_searchencprop(node, "beri-mem", &xref, in setup_offset() 234 sizeof(xref)) == -1) { in setup_offset() 238 mem_node = OF_node_from_xref(xref); in setup_offset()
|
| 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-12-stable/sys/arm/arm/ |
| 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()
|
| 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()
|
| D | pl190.c | 227 phandle_t xref; in pl190_intc_attach() local 277 xref = OF_xref_from_node(ofw_bus_get_node(sc->dev)); in pl190_intc_attach() 278 pic = intr_pic_register(sc->dev, xref); in pl190_intc_attach() 282 return (intr_pic_claim_root(sc->dev, xref, pl190_intc_intr, sc, 0)); in pl190_intc_attach()
|
| /freebsd-12-stable/sys/arm64/acpica/ |
| D | acpi_iort.c | 76 u_int xref; member 228 its->xref = 0; in iort_copy_its() 341 u_int xref; in madt_resolve_its_xref() local 349 xref = acpi_its_xref++; in madt_resolve_its_xref() 354 its_entry->xref = xref; in madt_resolve_its_xref() 489 acpi_iort_its_lookup(u_int its_id, u_int *xref, int *pxm) in acpi_iort_its_lookup() argument 499 *xref = its_entry->xref; in acpi_iort_its_lookup() 514 acpi_iort_map_pci_msi(u_int seg, u_int rid, u_int *xref, u_int *devid) in acpi_iort_map_pci_msi() argument 526 *xref = node->entries.its[0].xref; in acpi_iort_map_pci_msi()
|
| /freebsd-12-stable/sys/mips/broadcom/ |
| D | bcm_mips.c | 85 uintptr_t xref; in bcm_mips_register_isrcs() local 88 xref = bcm_mips_pic_xref(sc); in bcm_mips_register_isrcs() 97 xref, "%s,%u", name, ivec); in bcm_mips_register_isrcs() 305 uintptr_t xref; in bcm_mips_attach() local 323 xref = bcm_mips_pic_xref(sc); in bcm_mips_attach() 370 if ((pic = intr_pic_register(dev, xref)) == NULL) { in bcm_mips_attach() 485 uintptr_t xref; in bcm_mips_pic_xref() local 488 xref = BHND_BUS_GET_INTR_DOMAIN(device_get_parent(sc->dev), sc->dev, in bcm_mips_pic_xref() 490 KASSERT(xref != 0, ("missing interrupt domain")); in bcm_mips_pic_xref() 492 return (xref); in bcm_mips_pic_xref()
|
| D | bhnd_nexus.c | 185 uintptr_t xref; in bhnd_nexus_map_intr() local 196 xref = BHND_BUS_GET_INTR_DOMAIN(dev, child, false); in bhnd_nexus_map_intr() 197 KASSERT(xref != 0, ("missing interrupt domain")); in bhnd_nexus_map_intr() 205 *irq = intr_map_irq(NULL, xref, &imd->mdata); in bhnd_nexus_map_intr()
|
| /freebsd-12-stable/sys/dev/mii/ |
| 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-12-stable/sys/dev/iicbus/ |
| D | sy8106a.c | 72 phandle_t xref; member 222 reg_sc->xref = OF_xref_from_node(node); in sy8106a_reg_attach() 231 sy8106a_regdev_map(device_t dev, phandle_t xref, int ncells, pcell_t *cells, in sy8106a_regdev_map() argument 238 if (sc->reg->xref != xref) in sy8106a_regdev_map()
|
| 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-12-stable/sys/dev/pwm/ |
| D | ofw_pwm.c | 47 phandle_t xref; in pwm_get_by_ofw_propidx() local 53 idx, &xref, &ncells, &cells); in pwm_get_by_ofw_propidx() 57 channel.dev = OF_device_from_xref(xref); in pwm_get_by_ofw_propidx()
|
| /freebsd-12-stable/sys/arm64/arm64/ |
| D | gic_v3_fdt.c | 122 intptr_t xref; in gic_v3_fdt_attach() local 142 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in gic_v3_fdt_attach() 143 sc->gic_pic = intr_pic_register(dev, xref); in gic_v3_fdt_attach() 151 OF_device_register_xref(xref, dev); in gic_v3_fdt_attach() 153 if (intr_pic_claim_root(dev, xref, arm_gic_v3_intr, sc, in gic_v3_fdt_attach()
|
| /freebsd-12-stable/sys/mips/mips/ |
| 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() 462 uintptr_t xref; in mips_pic_map_fixed_intr() local 491 xref = pic_xref(pic_dev); in mips_pic_map_fixed_intr() 498 xref = MIPS_PIC_XREF; in mips_pic_map_fixed_intr() 502 intr->intr_irq = intr_map_irq(pic_dev, xref, &data->hdr); in mips_pic_map_fixed_intr()
|
| /freebsd-12-stable/sys/arm/broadcom/bcm2835/ |
| D | bcm2835_intr.c | 332 bcm_intc_pic_register(struct bcm_intc_softc *sc, intptr_t xref) in bcm_intc_pic_register() argument 363 if (intr_pic_register(sc->sc_dev, xref) == NULL) in bcm_intc_pic_register() 388 intptr_t xref; in bcm_intc_attach() local 400 xref = OF_xref_from_node(ofw_bus_get_node(dev)); in bcm_intc_attach() 401 if (bcm_intc_pic_register(sc, xref) != 0) { in bcm_intc_attach() 411 if (intr_pic_claim_root(dev, xref, bcm2835_intc_intr, sc, 0) != 0) { in bcm_intc_attach()
|
| /freebsd-12-stable/sys/arm/ti/ |
| D | aintc.c | 219 intptr_t xref; in ti_aintc_pic_attach() local 231 xref = OF_xref_from_node(ofw_bus_get_node(sc->sc_dev)); in ti_aintc_pic_attach() 232 pic = intr_pic_register(sc->sc_dev, xref); in ti_aintc_pic_attach() 236 return (intr_pic_claim_root(sc->sc_dev, xref, ti_aintc_intr, sc, 0)); in ti_aintc_pic_attach()
|
| /freebsd-12-stable/sys/arm/freescale/imx/ |
| D | tzic.c | 206 intptr_t xref; in tzic_pic_attach() local 219 xref = OF_xref_from_node(ofw_bus_get_node(sc->dev)); in tzic_pic_attach() 220 pic = intr_pic_register(sc->dev, xref); in tzic_pic_attach() 224 return (intr_pic_claim_root(sc->dev, xref, tzic_intr, sc, 0)); in tzic_pic_attach()
|
| /freebsd-12-stable/sys/mips/ingenic/ |
| D | jz4780_intr.c | 160 intptr_t xref; in jz4780_pic_attach() local 162 xref = pic_xref(dev); in jz4780_pic_attach() 190 if (intr_pic_register(dev, xref) == NULL) { in jz4780_pic_attach() 198 intr_pic_deregister(dev, xref); in jz4780_pic_attach()
|