| /f-stack/freebsd/x86/isa/ |
| H A D | isa.c | 89 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, in isa_alloc_resource() argument 102 rle = resource_list_find(rl, type, *rid); in isa_alloc_resource() 104 if (*rid < 0) in isa_alloc_resource() 108 if (*rid >= ISA_NIRQ) in isa_alloc_resource() 112 if (*rid >= ISA_NDRQ) in isa_alloc_resource() 116 if (*rid >= ISA_NMEM) in isa_alloc_resource() 120 if (*rid >= ISA_NPORT) in isa_alloc_resource() 126 resource_list_add(rl, type, *rid, start, end, count); in isa_alloc_resource() 130 return resource_list_alloc(rl, bus, child, type, rid, in isa_alloc_resource() 135 isa_release_resource(device_t bus, device_t child, int type, int rid, in isa_release_resource() argument [all …]
|
| H A D | orm.c | 67 int rid[MAX_ROMS]; member 91 int rid; in orm_identify() local 108 rid = sc->rnum; in orm_identify() 109 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, in orm_identify() 131 bus_release_resource(child, SYS_RES_MEMORY, rid, res); in orm_identify() 140 rid = sc->rnum; in orm_identify() 141 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); in orm_identify() 147 sc->rid[sc->rnum] = rid; in orm_identify() 168 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[i], in orm_detach()
|
| /f-stack/freebsd/x86/bios/ |
| H A D | smbios.c | 59 int rid; member 83 int rid; in smbios_identify() local 91 rid = 0; in smbios_identify() 109 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in smbios_identify() 120 int rid; in smbios_probe() local 124 rid = 0; in smbios_probe() 140 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in smbios_probe() 154 sc->rid = 0; in smbios_attach() 155 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in smbios_attach() 175 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in smbios_attach() [all …]
|
| H A D | vpd.c | 76 int rid; member 138 int rid; in vpd_identify() local 145 rid = 0; in vpd_identify() 150 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in vpd_identify() 161 int rid; in vpd_probe() local 165 rid = 0; in vpd_probe() 178 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in vpd_probe() 193 sc->rid = 0; in vpd_attach() 194 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in vpd_attach() 235 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in vpd_attach() [all …]
|
| /f-stack/dpdk/drivers/net/netvsc/ |
| H A D | rndis.h | 224 uint32_t rid; member 235 uint32_t rid; member 244 uint32_t rid; member 266 uint32_t rid; member 276 uint32_t rid; member 290 uint32_t rid; member 307 uint32_t rid; member 321 uint32_t rid; member 346 uint32_t rid; member 389 uint32_t rid; member [all …]
|
| H A D | hn_rndis.c | 59 uint32_t rid; in hn_rndis_rid() local 65 return rid; in hn_rndis_rid() 373 uint32_t rid = hdr->rid; in hn_rndis_exec1() local 384 if (rid == 0) { in hn_rndis_exec1() 453 if (unlikely(hdr->rid != rid)) { in hn_rndis_execute() 456 hdr->rid, rid); in hn_rndis_execute() 474 uint32_t rid; in hn_rndis_query() local 493 req->rid = rid; in hn_rndis_query() 735 uint32_t rid; in hn_rndis_set() local 746 req->rid = rid; in hn_rndis_set() [all …]
|
| /f-stack/freebsd/x86/iommu/ |
| H A D | intel_intrmap.c | 67 uint64_t low, uint16_t rid); 104 uint16_t rid; in iommu_map_msi_intr() local 107 unit = dmar_ir_find(src, &rid, &is_dmar); in iommu_map_msi_intr() 164 uint16_t rid; in iommu_map_ioapic_intr() local 166 unit = dmar_find_ioapic(ioapic_id, &rid); in iommu_map_ioapic_intr() 199 dmar_ir_program_irte(unit, idx, low, rid); in iommu_map_ioapic_intr() 255 unit = dmar_find_hpet(src, rid); in dmar_ir_find() 258 if (unit != NULL && rid != NULL) in dmar_ir_find() 259 iommu_get_requester(src, rid); in dmar_ir_find() 266 uint16_t rid) in dmar_ir_program_irte() argument [all …]
|
| H A D | intel_ctx.c | 123 ctxp += ctx->context.rid & 0xff; in dmar_map_ctx_entry() 449 ctx->context.rid = rid; in dmar_ctx_alloc() 536 bus = PCI_RID2BUS(rid); in dmar_get_ctx_for_dev1() 537 slot = PCI_RID2SLOT(rid); in dmar_get_ctx_for_dev1() 538 func = PCI_RID2FUNC(rid); in dmar_get_ctx_for_dev1() 547 ctx = dmar_find_ctx_locked(dmar, rid); in dmar_get_ctx_for_dev1() 555 dmar_ensure_ctx_page(dmar, PCI_RID2BUS(rid)); in dmar_get_ctx_for_dev1() 573 ctx1 = dmar_ctx_alloc(domain1, rid); in dmar_get_ctx_for_dev1() 581 ctx = dmar_find_ctx_locked(dmar, rid); in dmar_get_ctx_for_dev1() 603 func, rid, domain->domain, domain->mgaw, in dmar_get_ctx_for_dev1() [all …]
|
| /f-stack/freebsd/contrib/libsodium/packaging/dotnet-core/ |
| H A D | prepare.py | 59 def __init__(self, version, rid, platform): argument 62 self.packfile = os.path.join(version.builddir, 'runtimes', rid, 'native', LIBRARY + '.dll') 64 self.tempdir = os.path.join(version.tempdir, rid) 83 def __init__(self, version, rid, codename): argument 88 self.tempdir = os.path.join(version.tempdir, rid) 107 def __init__(self, version, rid, docker_image): argument 111 self.tempdir = os.path.join(version.tempdir, rid) 114 self.recipe = rid 184 items = [ WindowsItem(version, rid, platform) for (rid, platform) in WINDOWS ] + \ 185 [ MacOSItem(version, rid, codename) for (rid, codename) in MACOS ] + \ [all …]
|
| /f-stack/freebsd/i386/bios/ |
| H A D | smapi.c | 67 int rid; member 156 int rid; in smapi_identify() local 164 rid = 0; in smapi_identify() 169 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in smapi_identify() 180 int rid; in smapi_probe() local 184 rid = 0; in smapi_probe() 200 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in smapi_probe() 214 sc->rid = 0; in smapi_attach() 215 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in smapi_attach() 264 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in smapi_attach() [all …]
|
| /f-stack/freebsd/x86/x86/ |
| H A D | nexus.c | 409 rman_set_rid(rv, *rid); in nexus_alloc_resource() 412 if (bus_activate_resource(child, type, *rid, rv)) { in nexus_alloc_resource() 681 rle = resource_list_find(rl, type, rid); in nexus_get_resource() 697 resource_list_delete(rl, type, rid); in nexus_delete_resource() 793 int error, rid; in ram_attach() local 805 rid = 0; in ram_attach() 814 error = bus_set_resource(dev, SYS_RES_MEMORY, rid, in ram_attach() 819 rid, error); in ram_attach() 824 rid); in ram_attach() 825 rid++; in ram_attach() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zfs_fuid.c | 520 uint32_t rid; in zfs_fuid_create_cred() local 549 rid = ksid_getrid(ksid); in zfs_fuid_create_cred() 556 return (FUID_ENCODE(idx, rid)); in zfs_fuid_create_cred() 580 uint32_t rid = 0; in zfs_fuid_create() local 632 &domain, &rid); in zfs_fuid_create() 635 &domain, &rid); in zfs_fuid_create() 643 rid = UID_NOBODY; in zfs_fuid_create() 652 rid, idx, id, type); in zfs_fuid_create() 657 return (FUID_ENCODE(idx, rid)); in zfs_fuid_create() 742 uint32_t rid = FUID_RID(id); in zfs_groupmember() local [all …]
|
| /f-stack/freebsd/amd64/vmm/io/ |
| H A D | ppt.c | 244 int i, rid; in ppt_teardown_msi() local 252 rid = ppt->msi.startrid + i; in ppt_teardown_msi() 275 int rid; in ppt_teardown_msix_intr() local 279 rid = ppt->msix.startrid + idx; in ppt_teardown_msix_intr() 501 int i, rid, flags; in ppt_setup_msi() local 564 rid = startrid + i; in ppt_setup_msi() 566 &rid, flags); in ppt_setup_msi() 596 int numvec, alloced, rid, error; in ppt_setup_msix() local 642 ppt->msix.msix_table_rid = rid; in ppt_setup_msix() 654 ppt->msix.msix_pba_rid = rid; in ppt_setup_msix() [all …]
|
| H A D | iommu.c | 121 IOMMU_ADD_DEVICE(void *domain, uint16_t rid) in IOMMU_ADD_DEVICE() argument 125 (*ops->add_device)(domain, rid); in IOMMU_ADD_DEVICE() 129 IOMMU_REMOVE_DEVICE(void *domain, uint16_t rid) in IOMMU_REMOVE_DEVICE() argument 133 (*ops->remove_device)(domain, rid); in IOMMU_REMOVE_DEVICE() 324 iommu_add_device(void *dom, uint16_t rid) in iommu_add_device() argument 327 IOMMU_ADD_DEVICE(dom, rid); in iommu_add_device() 331 iommu_remove_device(void *dom, uint16_t rid) in iommu_remove_device() argument 334 IOMMU_REMOVE_DEVICE(dom, rid); in iommu_remove_device()
|
| H A D | iommu.h | 44 typedef void (*iommu_add_device_t)(void *domain, uint16_t rid); 45 typedef void (*iommu_remove_device_t)(void *dom, uint16_t rid); 73 void iommu_add_device(void *dom, uint16_t rid); 74 void iommu_remove_device(void *dom, uint16_t rid);
|
| /f-stack/freebsd/mips/mips/ |
| H A D | nexus.c | 289 __func__, bus, child, type, rid, (void *)(intptr_t)start, in nexus_alloc_resource() 291 dprintf("%s: requested rid is %d\n", __func__, *rid); in nexus_alloc_resource() 304 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource() 334 rman_set_rid(rv, *rid); in nexus_alloc_resource() 337 if (bus_activate_resource(child, type, *rid, rv)) { in nexus_alloc_resource() 356 nexus_set_resource(device_t dev, device_t child, int type, int rid, in nexus_set_resource() argument 366 rle = resource_list_add(rl, type, rid, start, start + count - 1, in nexus_set_resource() 375 nexus_get_resource(device_t dev, device_t child, int type, int rid, in nexus_get_resource() argument 382 rle = resource_list_find(rl, type, rid); in nexus_get_resource() 400 resource_list_delete(rl, type, rid); in nexus_delete_resource() [all …]
|
| /f-stack/freebsd/mips/atheros/ |
| H A D | apb.c | 117 int rid = 0; in apb_attach() local 165 apb_alloc_resource(device_t bus, device_t child, int type, int *rid, in apb_alloc_resource() argument 184 __func__, bus, child, type, *rid, (void *)(intptr_t)start, in apb_alloc_resource() 189 rid, start, end, count, flags)); in apb_alloc_resource() 198 rle = resource_list_find(&ivar->resources, type, *rid); in apb_alloc_resource() 233 rman_set_rid(rv, *rid); in apb_alloc_resource() 236 if (bus_activate_resource(child, type, *rid, rv)) { in apb_alloc_resource() 253 type, rid, r)); in apb_activate_resource() 263 type, rid, r)); in apb_deactivate_resource() 268 int rid, struct resource *r) in apb_release_resource() argument [all …]
|
| /f-stack/freebsd/amd64/vmm/intel/ |
| H A D | vtd.c | 106 #define VTD_RID2IDX(rid) (((rid) & 0xff) * 2) argument 182 vtd_device_scope(uint16_t rid) in vtd_device_scope() argument 229 if (PCI_RID2SLOT(rid) != path->Device) in vtd_device_scope() 440 vtd_add_device(void *arg, uint16_t rid) in vtd_add_device() argument 449 bus = PCI_RID2BUS(rid); in vtd_add_device() 452 idx = VTD_RID2IDX(rid); in vtd_add_device() 456 "domain %d", rid, in vtd_add_device() 462 "any DMA remapping unit", rid); in vtd_add_device() 484 vtd_remove_device(void *arg, uint16_t rid) in vtd_remove_device() argument 491 bus = PCI_RID2BUS(rid); in vtd_remove_device() [all …]
|
| /f-stack/freebsd/mips/mediatek/ |
| H A D | mtk_dotg.c | 92 int err, rid; in dotg_fdt_attach() local 100 rid = 0; in dotg_fdt_attach() 102 bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in dotg_fdt_attach() 108 rid = 0; in dotg_fdt_attach() 110 &rid, RF_ACTIVE); in dotg_fdt_attach()
|
| /f-stack/freebsd/arm/nvidia/ |
| H A D | tegra_abpmisc.c | 125 int rid; in tegra_abpmisc_attach() local 131 rid = 0; in tegra_abpmisc_attach() 132 sc->abp_misc_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in tegra_abpmisc_attach() 139 rid = 1; in tegra_abpmisc_attach() 140 sc->strap_opt_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in tegra_abpmisc_attach()
|
| /f-stack/freebsd/arm/freescale/imx/ |
| H A D | imx_epit.c | 303 int err, rid; in epit_et_attach() local 305 rid = 0; in epit_et_attach() 306 sc->intres = bus_alloc_resource_any(sc->dev, SYS_RES_IRQ, &rid, in epit_et_attach() 343 int num_units, rid, unit; in epit_probe() local 369 rid = 0; in epit_probe() 370 memres = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_UNMAPPED); in epit_probe() 411 int err, rid; in epit_attach() local 417 rid = 0; in epit_attach() 418 sc->memres = bus_alloc_resource_any(sc->dev, SYS_RES_MEMORY, &rid, in epit_attach()
|
| /f-stack/freebsd/sys/ |
| H A D | bus.h | 342 int rid; /**< @brief resource identifier */ member 359 int type, int rid, 365 int type, int rid); 369 int type, int rid); 371 int type, int rid); 375 int type, int *rid, 387 int type, int *rid, 392 int type, int rid); 412 int rid, struct resource *r); 435 int rid, struct resource *r); [all …]
|
| /f-stack/freebsd/mips/malta/ |
| H A D | gt.c | 79 gt_alloc_resource(device_t dev, device_t child, int type, int *rid, in gt_alloc_resource() argument 83 type, rid, start, end, count, flags)); in gt_alloc_resource() 104 gt_activate_resource(device_t dev, device_t child, int type, int rid, in gt_activate_resource() argument 108 type, rid, r)); in gt_activate_resource()
|
| /f-stack/freebsd/arm/arm/ |
| H A D | pmu_fdt.c | 123 int rid, err, ncpus, i; in pmu_parse_intr() local 144 rid = 0; in pmu_parse_intr() 145 sc->irq[0].res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, in pmu_parse_intr() 177 rid = i; in pmu_parse_intr() 179 &rid, RF_ACTIVE | RF_SHAREABLE); in pmu_parse_intr()
|
| /f-stack/freebsd/contrib/vchiq/interface/vchiq_arm/ |
| H A D | vchiq_kmod.c | 149 int rid = 0; in bcm_vchiq_attach() local 154 sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in bcm_vchiq_attach() 163 rid = 0; in bcm_vchiq_attach() 164 sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in bcm_vchiq_attach() 183 bus_release_resource(dev, SYS_RES_IRQ, rid, in bcm_vchiq_attach()
|