/freebsd/tools/bus_space/ |
H A D | bus.c | 42 int rid; member 57 int rid; in rid_alloc() local 59 for (rid = 0; rid < nrids; rid++) { in rid_alloc() 73 return (rid); in rid_alloc() 81 if (rid < 0 || rid >= nrids) { in rid_lookup() 99 int len, rid; in bs_map() local 107 if (rid == -1) in bs_map() 115 r->rid = -1; in bs_map() 126 return (rid); in bs_map() 178 int fd0, rid; in bs_subregion() local [all …]
|
/freebsd/tools/bus_space/C/ |
H A D | lang.c | 35 bus_read_1(int rid, long ofs) in bus_read_1() argument 43 bus_read_2(int rid, long ofs) in bus_read_2() argument 51 bus_read_4(int rid, long ofs) in bus_read_4() argument 59 bus_write_1(int rid, long ofs, uint8_t val) in bus_write_1() argument 62 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); in bus_write_1() 66 bus_write_2(int rid, long ofs, uint16_t val) in bus_write_2() argument 73 bus_write_4(int rid, long ofs, uint32_t val) in bus_write_4() argument 87 bus_unmap(int rid) in bus_unmap() argument 90 return ((!bs_unmap(rid)) ? errno : 0); in bus_unmap() 94 bus_subregion(int rid, long ofs, long sz) in bus_subregion() argument [all …]
|
H A D | libbus.h | 31 int16_t bus_read_1(int rid, long ofs); 32 int32_t bus_read_2(int rid, long ofs); 33 int64_t bus_read_4(int rid, long ofs); 34 int bus_subregion(int rid, long ofs, long sz); 35 int bus_unmap(int rid); 36 int bus_write_1(int rid, long ofs, uint8_t val); 37 int bus_write_2(int rid, long ofs, uint16_t val); 38 int bus_write_4(int rid, long ofs, uint32_t val);
|
/freebsd/sys/dev/atkbdc/ |
H A D | atkbdc_isa.c | 53 int type, int *rid, rman_res_t start, rman_res_t end, 102 int rid; in atkbdc_isa_probe() local 128 rid = 0; in atkbdc_isa_probe() 136 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1); in atkbdc_isa_probe() 140 rid = 1; in atkbdc_isa_probe() 192 int rid; in atkbdc_isa_attach() local 209 rid = 0; in atkbdc_isa_attach() 215 rid = 1; in atkbdc_isa_attach() 228 rid = 0; in atkbdc_isa_attach() 268 ivar->rid = order; in atkbdc_isa_add_child() [all …]
|
H A D | atkbd_atkbdc.c | 87 int rid; in atkbdprobe() local 95 rid = KBDC_RID_KBD; in atkbdprobe() 96 res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in atkbdprobe() 103 bus_release_resource(dev, SYS_RES_IRQ, rid, res); in atkbdprobe() 116 int rid; in atkbdattach() local 121 rid = KBDC_RID_KBD; in atkbdattach() 122 irq = bus_get_resource_start(dev, SYS_RES_IRQ, rid); in atkbdattach() 129 sc->intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in atkbdattach() 135 bus_release_resource(dev, SYS_RES_IRQ, rid, sc->intr); in atkbdattach()
|
/freebsd/sys/dev/proto/ |
H A D | proto_bus_isa.c | 65 int rid, type; in proto_isa_probe() local 67 rid = 0; in proto_isa_probe() 69 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe() 72 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe() 78 bus_release_resource(dev, type, rid, res); in proto_isa_probe() 87 int count, rid; in proto_isa_alloc() local 91 for (rid = 0; rid < nrids; rid++) { in proto_isa_alloc() 92 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_alloc() 95 proto_add_resource(sc, type, rid, res); in proto_isa_alloc()
|
H A D | proto_bus_pci.c | 79 int bar, rid, type; in proto_pci_attach() local 87 rid = PCIR_BAR(bar); in proto_pci_attach() 88 val = pci_read_config(dev, rid, 4); in proto_pci_attach() 90 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_pci_attach() 93 proto_add_resource(sc, type, rid, res); in proto_pci_attach() 101 rid = 0; in proto_pci_attach() 103 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE | RF_SHAREABLE); in proto_pci_attach() 105 proto_add_resource(sc, type, rid, res); in proto_pci_attach()
|
/freebsd/tools/bus_space/Python/ |
H A D | lang.c | 37 int rid; in bus_read_1() local 53 int rid; in bus_read_2() local 69 int rid; in bus_read_4() local 85 int rid; in bus_write_1() local 101 int rid; in bus_write_2() local 117 int rid; in bus_write_4() local 133 int rid; in bus_map() local 138 if (rid == -1) { in bus_map() 148 int rid; in bus_unmap() local 163 int rid0, rid; in bus_subregion() local [all …]
|
/freebsd/sys/x86/isa/ |
H A D | isa.c | 87 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, in isa_alloc_resource() argument 100 rle = resource_list_find(rl, type, *rid); in isa_alloc_resource() 102 if (*rid < 0) in isa_alloc_resource() 106 if (*rid >= ISA_NIRQ) in isa_alloc_resource() 110 if (*rid >= ISA_NDRQ) in isa_alloc_resource() 114 if (*rid >= ISA_NMEM) in isa_alloc_resource() 118 if (*rid >= ISA_NPORT) in isa_alloc_resource() 124 resource_list_add(rl, type, *rid, start, end, count); in isa_alloc_resource() 128 return resource_list_alloc(rl, bus, child, type, rid, in isa_alloc_resource()
|
H A D | orm.c | 65 int rid[MAX_ROMS]; member 89 int rid; in orm_identify() local 106 rid = sc->rnum; in orm_identify() 107 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, in orm_identify() 129 bus_release_resource(child, SYS_RES_MEMORY, rid, res); in orm_identify() 138 rid = sc->rnum; in orm_identify() 139 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); in orm_identify() 145 sc->rid[sc->rnum] = rid; in orm_identify() 166 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[i], in orm_detach()
|
/freebsd/usr.bin/usbhidctl/ |
H A D | usbhid.c | 309 rid = -1; in dumpdata() 314 rid = 0; in dumpdata() 318 rid = -1; in dumpdata() 333 dbuf[0] = rid; in dumpdata() 337 havedata = !r && (rid == 0 || dbuf[0] == rid); in dumpdata() 338 if (rid != 0) in dumpdata() 339 dbuf[0] = rid; in dumpdata() 386 rid = 0; in writedata() 388 for (rid = 0; rid < 256; rid ++) { in writedata() 400 dbuf[0] = rid; in writedata() [all …]
|
/freebsd/sys/arm64/iommu/ |
H A D | smmu_fdt.c | 84 int rid; in smmu_fdt_attach() local 91 rid = 0; in smmu_fdt_attach() 92 sc->res[0] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in smmu_fdt_attach() 105 &rid); in smmu_fdt_attach() 112 sc->res[1] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in smmu_fdt_attach() 126 &rid); in smmu_fdt_attach() 133 sc->res[3] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in smmu_fdt_attach() 141 &rid); in smmu_fdt_attach() 148 sc->res[4] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in smmu_fdt_attach()
|
/freebsd/sys/dev/ata/ |
H A D | ata-isa.c | 63 int rid; in ata_isa_probe() local 70 rid = ATA_IOADDR_RID; in ata_isa_probe() 71 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_probe() 82 rid = ATA_CTLADDR_RID; in ata_isa_probe() 83 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_probe() 103 int i, rid; in ata_isa_attach() local 110 rid = ATA_IOADDR_RID; in ata_isa_attach() 111 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_attach() 122 rid = ATA_CTLADDR_RID; in ata_isa_attach() 123 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_attach()
|
/freebsd/sys/dev/pci/ |
H A D | vga_pci.c | 170 int i, rid, found; in vga_pci_map_bios() local 204 rid = PCIR_BIOS_1; in vga_pci_map_bios() 207 rid = 0; in vga_pci_map_bios() 210 rid = PCIR_BIOS; in vga_pci_map_bios() 213 if (rid == 0) in vga_pci_map_bios() 275 int rid; in vga_pci_unmap_bios() local 291 rid = PCIR_BIOS_1; in vga_pci_unmap_bios() 294 rid = 0; in vga_pci_unmap_bios() 297 rid = PCIR_BIOS; in vga_pci_unmap_bios() 300 if (rid == 0) in vga_pci_unmap_bios() [all …]
|
/freebsd/crypto/openssh/ |
H A D | mux.c | 90 u_int rid; member 95 u_int rid; member 345 cctx->rid = rid; in mux_master_process_new_session() 826 fctx->rid = rid; in mux_master_process_open_fwd() 1047 cctx->rid = rid; in mux_master_process_stdio_fwd() 1154 u_int type, rid, i; in mux_master_read_cb() local 1192 rid = 0; in mux_master_read_cb() 1712 u_int type, rid; in mux_client_request_terminate() local 1768 u_int type, rid; in mux_client_forward() local 2078 u_int type, rid; in mux_client_proxy() local [all …]
|
/freebsd/sys/dev/bhnd/cores/pmu/ |
H A D | bhnd_pmu_core.c | 84 int rid; in bhnd_pmu_core_attach() local 89 rid = 0; in bhnd_pmu_core_attach() 90 res = bhnd_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in bhnd_pmu_core_attach() 106 bhnd_release_resource(dev, SYS_RES_MEMORY, rid, res); in bhnd_pmu_core_attach() 110 sc->rid = rid; in bhnd_pmu_core_attach() 126 bhnd_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in bhnd_pmu_core_detach()
|
/freebsd/sys/x86/iommu/ |
H A D | intel_intrmap.c | 64 uint64_t low, uint16_t rid); 101 uint16_t rid; in iommu_map_msi_intr() local 104 unit = dmar_ir_find(src, &rid, &is_dmar); in iommu_map_msi_intr() 161 uint16_t rid; in iommu_map_ioapic_intr() local 163 unit = dmar_find_ioapic(ioapic_id, &rid); in iommu_map_ioapic_intr() 196 dmar_ir_program_irte(unit, idx, low, rid); in iommu_map_ioapic_intr() 252 unit = dmar_find_hpet(src, rid); in dmar_ir_find() 255 if (unit != NULL && rid != NULL) in dmar_ir_find() 256 iommu_get_requester(src, rid); in dmar_ir_find() 263 uint16_t rid) in dmar_ir_program_irte() argument [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_kari.c | 119 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_get0_id() local 121 if (rid->type == CMS_REK_ISSUER_SERIAL) { in CMS_RecipientEncryptedKey_get0_id() 132 } else if (rid->type == CMS_REK_KEYIDENTIFIER) { in CMS_RecipientEncryptedKey_get0_id() 136 *tm = rid->d.rKeyId->date; in CMS_RecipientEncryptedKey_get0_id() 138 *other = rid->d.rKeyId->other; in CMS_RecipientEncryptedKey_get0_id() 151 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_cert_cmp() local 153 if (rid->type == CMS_REK_ISSUER_SERIAL) in CMS_RecipientEncryptedKey_cert_cmp() 155 else if (rid->type == CMS_REK_KEYIDENTIFIER) in CMS_RecipientEncryptedKey_cert_cmp() 368 rek->rid->type = CMS_REK_KEYIDENTIFIER; in ossl_cms_RecipientInfo_kari_init() 370 if (rek->rid->d.rKeyId == NULL) in ossl_cms_RecipientInfo_kari_init() [all …]
|
/freebsd/sys/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 …]
|
/freebsd/sys/dev/sfxge/ |
H A D | sfxge_intr.c | 241 int rid; in sfxge_intr_alloc() local 254 rid = i + 1; in sfxge_intr_alloc() 259 "message %d\n", rid); in sfxge_intr_alloc() 263 table[i].eih_rid = rid; in sfxge_intr_alloc() 282 int rid; in sfxge_intr_teardown_msix() local 287 rid = rman_get_rid(resp); in sfxge_intr_teardown_msix() 298 int rid; in sfxge_intr_setup_msix() local 312 rid = PCIR_BAR(4); in sfxge_intr_setup_msix() 378 int rid; in sfxge_intr_setup_fixed() local 383 rid = 0; in sfxge_intr_setup_fixed() [all …]
|
/freebsd/sys/dev/gve/ |
H A D | gve_utils.c | 221 int rid; in gve_free_irqs() local 242 rid); in gve_free_irqs() 245 rid, irq->res); in gve_free_irqs() 248 rid); in gve_free_irqs() 270 int rid; in gve_alloc_irqs() local 298 rid = i + 1; in gve_alloc_irqs() 304 rid, i); in gve_alloc_irqs() 325 rid = i + j + 1; in gve_alloc_irqs() 349 rid = m + 1; in gve_alloc_irqs() 353 &rid, RF_ACTIVE); in gve_alloc_irqs() [all …]
|
/freebsd/sys/i386/bios/ |
H A D | smapi.c | 64 int rid; member 143 int rid; in smapi_identify() local 151 rid = 0; in smapi_identify() 156 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in smapi_identify() 167 int rid; in smapi_probe() local 171 rid = 0; in smapi_probe() 187 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in smapi_probe() 202 sc->rid = 0; in smapi_attach() 203 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in smapi_attach() 257 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in smapi_attach() [all …]
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | isa.c | 47 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, in isa_alloc_resource() argument 58 resource_list_find(rl, type, *rid) == NULL) { in isa_alloc_resource() 65 if (*rid < 0 || *rid >= rids) in isa_alloc_resource() 68 resource_list_add(rl, type, *rid, start, end, count); in isa_alloc_resource() 71 return (resource_list_alloc(rl, bus, child, type, rid, start, end, in isa_alloc_resource()
|
/freebsd/sys/dev/cfe/ |
H A D | cfe_resource.c | 55 int rid[MAX_CFE_RESERVATIONS]; member 80 int rid; in cferes_identify() local 102 rid = sc->rnum; in cferes_identify() 103 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); in cferes_identify() 108 sc->rid[sc->rnum] = rid; in cferes_identify() 131 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[i], in cferes_detach()
|
/freebsd/sys/x86/bios/ |
H A D | vpd.c | 74 int rid; member 134 int rid; in vpd_identify() local 141 rid = 0; in vpd_identify() 146 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in vpd_identify() 157 int rid; in vpd_probe() local 161 rid = 0; in vpd_probe() 174 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in vpd_probe() 189 sc->rid = 0; in vpd_attach() 190 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in vpd_attach() 231 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in vpd_attach() [all …]
|