Home
last modified time | relevance | path

Searched refs:rid (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/freebsd-14.2/tools/bus_space/
H A Dbus.c42 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-14.2/sys/dev/atkbdc/
H A Datkbdc_isa.c56 int type, int rid, struct resource *r);
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 Datkbd_atkbdc.c87 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-14.2/sys/x86/isa/
H A Disa.c87 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()
133 isa_release_resource(device_t bus, device_t child, int type, int rid, in isa_release_resource() argument
[all …]
H A Dorm.c65 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-14.2/tools/bus_space/C/
H A Dlang.c36 bus_read_1(int rid, long ofs) in bus_read_1() argument
44 bus_read_2(int rid, long ofs) in bus_read_2() argument
52 bus_read_4(int rid, long ofs) in bus_read_4() argument
60 bus_write_1(int rid, long ofs, uint8_t val) in bus_write_1() argument
63 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); in bus_write_1()
67 bus_write_2(int rid, long ofs, uint16_t val) in bus_write_2() argument
74 bus_write_4(int rid, long ofs, uint32_t val) in bus_write_4() argument
88 bus_unmap(int rid) in bus_unmap() argument
91 return ((!bs_unmap(rid)) ? errno : 0); in bus_unmap()
95 bus_subregion(int rid, long ofs, long sz) in bus_subregion() argument
[all …]
H A Dlibbus.h31 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-14.2/sys/dev/proto/
H A Dproto_bus_isa.c66 int rid, type; in proto_isa_probe() local
68 rid = 0; in proto_isa_probe()
70 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
73 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
79 bus_release_resource(dev, type, rid, res); in proto_isa_probe()
88 int count, rid; in proto_isa_alloc() local
92 for (rid = 0; rid < nrids; rid++) { in proto_isa_alloc()
93 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_alloc()
96 proto_add_resource(sc, type, rid, res); in proto_isa_alloc()
H A Dproto_bus_pci.c80 int bar, rid, type; in proto_pci_attach() local
88 rid = PCIR_BAR(bar); in proto_pci_attach()
89 val = pci_read_config(dev, rid, 4); in proto_pci_attach()
91 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_pci_attach()
94 proto_add_resource(sc, type, rid, res); in proto_pci_attach()
102 rid = 0; in proto_pci_attach()
104 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE | RF_SHAREABLE); in proto_pci_attach()
106 proto_add_resource(sc, type, rid, res); in proto_pci_attach()
/freebsd-14.2/tools/bus_space/Python/
H A Dlang.c37 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-14.2/sys/dev/pci/
H A Dvga_pci.c170 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()
277 int rid; in vga_pci_unmap_bios() local
293 rid = PCIR_BIOS_1; in vga_pci_unmap_bios()
296 rid = 0; in vga_pci_unmap_bios()
299 rid = PCIR_BIOS; in vga_pci_unmap_bios()
302 if (rid == 0) in vga_pci_unmap_bios()
[all …]
H A Disa_pci.c55 device_t child, int type, int *rid, rman_res_t start, rman_res_t end,
58 int type, int rid, struct resource *r);
168 isab_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, in isab_pci_alloc_resource() argument
175 return bus_generic_alloc_resource(dev, child, type, rid, start, in isab_pci_alloc_resource()
185 bar = PCI_RID2BAR(*rid); in isab_pci_alloc_resource()
191 rid, start, end, count, flags); in isab_pci_alloc_resource()
197 return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid, in isab_pci_alloc_resource()
209 return bus_generic_release_resource(dev, child, type, rid, r); in isab_pci_release_resource()
218 bar = PCI_RID2BAR(rid); in isab_pci_release_resource()
232 error = bus_release_resource(dev, type, rid, r); in isab_pci_release_resource()
[all …]
/freebsd-14.2/usr.bin/usbhidctl/
H A Dusbhid.c309 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-14.2/sys/powerpc/mpc85xx/
H A Disa.c48 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, in isa_alloc_resource() argument
59 resource_list_find(rl, type, *rid) == NULL) { in isa_alloc_resource()
66 if (*rid < 0 || *rid >= rids) in isa_alloc_resource()
69 resource_list_add(rl, type, *rid, start, end, count); in isa_alloc_resource()
72 return (resource_list_alloc(rl, bus, child, type, rid, start, end, in isa_alloc_resource()
77 isa_release_resource(device_t bus, device_t child, int type, int rid, in isa_release_resource() argument
83 return (resource_list_release(rl, bus, child, type, rid, r)); in isa_release_resource()
/freebsd-14.2/sys/dev/smbios/
H A Dsmbios.c61 int rid; member
87 int rid; in smbios_identify() local
105 rid = 0; in smbios_identify()
123 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in smbios_identify()
135 int rid; in smbios_probe() local
139 rid = 0; in smbios_probe()
155 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in smbios_probe()
169 sc->rid = 0; in smbios_attach()
170 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in smbios_attach()
190 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in smbios_attach()
[all …]
/freebsd-14.2/sys/dev/pccbb/
H A Dpccbb.c194 if (SYS_RES_MEMORY == rle->type && rid == rle->rid) in cbb_find_res()
201 int rid) in cbb_insert_res() argument
214 rle->rid = rid; in cbb_insert_res()
1185 type, rid, res); in cbb_cardbus_activate_resource()
1199 type, rid, res); in cbb_cardbus_deactivate_resource()
1280 type, rid, res)); in cbb_cardbus_release_resource()
1441 type, rid, res)); in cbb_pcic_release_resource()
1507 rid, r)); in cbb_deactivate_resource()
1510 rid, r)); in cbb_deactivate_resource()
1535 rid, r)); in cbb_release_resource()
[all …]
/freebsd-14.2/sys/arm64/iommu/
H A Dsmmu_fdt.c85 int rid; in smmu_fdt_attach() local
92 rid = 0; in smmu_fdt_attach()
93 sc->res[0] = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, in smmu_fdt_attach()
106 &rid); in smmu_fdt_attach()
113 sc->res[1] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in smmu_fdt_attach()
127 &rid); in smmu_fdt_attach()
134 sc->res[3] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in smmu_fdt_attach()
142 &rid); in smmu_fdt_attach()
149 sc->res[4] = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE); in smmu_fdt_attach()
/freebsd-14.2/sys/dev/ata/
H A Data-isa.c64 int rid; in ata_isa_probe() local
71 rid = ATA_IOADDR_RID; in ata_isa_probe()
72 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_probe()
83 rid = ATA_CTLADDR_RID; in ata_isa_probe()
84 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_probe()
104 int i, rid; in ata_isa_attach() local
111 rid = ATA_IOADDR_RID; in ata_isa_attach()
112 if (!(io = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_attach()
123 rid = ATA_CTLADDR_RID; in ata_isa_attach()
124 if (!(ctlio = bus_alloc_resource_anywhere(dev, SYS_RES_IOPORT, &rid, in ata_isa_attach()
/freebsd-14.2/crypto/openssh/
H A Dmux.c90 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-14.2/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu_core.c85 int rid; in bhnd_pmu_core_attach() local
90 rid = 0; in bhnd_pmu_core_attach()
91 res = bhnd_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in bhnd_pmu_core_attach()
107 bhnd_release_resource(dev, SYS_RES_MEMORY, rid, res); in bhnd_pmu_core_attach()
111 sc->rid = rid; in bhnd_pmu_core_attach()
127 bhnd_release_resource(dev, SYS_RES_MEMORY, sc->rid, sc->res); in bhnd_pmu_core_detach()
/freebsd-14.2/sys/x86/iommu/
H A Dintel_intrmap.c66 uint64_t low, uint16_t rid);
103 uint16_t rid; in dmar_map_msi_intr() local
106 unit = dmar_ir_find(src, &rid, &is_dmar); in dmar_map_msi_intr()
163 uint16_t rid; in dmar_map_ioapic_intr() local
165 unit = dmar_find_ioapic(ioapic_id, &rid); in dmar_map_ioapic_intr()
198 dmar_ir_program_irte(unit, idx, low, rid); in dmar_map_ioapic_intr()
254 unit = dmar_find_hpet(src, rid); in dmar_ir_find()
257 if (unit != NULL && rid != NULL) in dmar_ir_find()
258 iommu_get_requester(src, rid); in dmar_ir_find()
265 uint16_t rid) in dmar_ir_program_irte() argument
[all …]
/freebsd-14.2/crypto/openssl/crypto/cms/
H A Dcms_kari.c119 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-14.2/sys/contrib/libsodium/packaging/dotnet-core/
H A Dprepare.py59 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-14.2/sys/dev/sfxge/
H A Dsfxge_intr.c241 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-14.2/sys/dev/gve/
H A Dgve_utils.c221 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 …]

12345678910>>...27