Home
last modified time | relevance | path

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

12345678910>>...27

/freebsd/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/tools/bus_space/C/
H A Dlang.c35 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 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/sys/dev/atkbdc/
H A Datkbdc_isa.c53 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 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/sys/dev/proto/
H A Dproto_bus_isa.c67 int rid, type; in proto_isa_probe() local
69 rid = 0; in proto_isa_probe()
71 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
74 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
84 bus_release_resource(dev, type, rid, res); in proto_isa_probe()
93 int count, rid; in proto_isa_alloc() local
97 for (rid = 0; rid < nrids; rid++) { in proto_isa_alloc()
98 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_alloc()
101 proto_add_resource(sc, type, rid, res); in proto_isa_alloc()
H A Dproto_bus_pci.c85 int bar, rid, type; in proto_pci_attach() local
93 rid = PCIR_BAR(bar); in proto_pci_attach()
94 val = pci_read_config(dev, rid, 4); in proto_pci_attach()
96 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_pci_attach()
99 proto_add_resource(sc, type, rid, res); in proto_pci_attach()
107 rid = 0; in proto_pci_attach()
109 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE | RF_SHAREABLE); in proto_pci_attach()
111 proto_add_resource(sc, type, rid, res); in proto_pci_attach()
/freebsd/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/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()
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/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/sys/arm64/iommu/
H A Dsmmu_fdt.c84 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 Data-isa.c63 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 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()
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 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/sys/dev/bhnd/cores/pmu/
H A Dbhnd_pmu_core.c84 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 Dintel_intrmap.c63 uint64_t low, uint16_t rid);
100 uint16_t rid; in iommu_map_msi_intr() local
103 unit = dmar_ir_find(src, &rid, &is_dmar); in iommu_map_msi_intr()
160 uint16_t rid; in iommu_map_ioapic_intr() local
162 unit = dmar_find_ioapic(ioapic_id, &rid); in iommu_map_ioapic_intr()
195 dmar_ir_program_irte(unit, idx, low, rid); in iommu_map_ioapic_intr()
251 unit = dmar_find_hpet(src, rid); in dmar_ir_find()
254 if (unit != NULL && rid != NULL) in dmar_ir_find()
255 iommu_get_requester(src, rid); in dmar_ir_find()
262 uint16_t rid) in dmar_ir_program_irte() argument
[all …]
/freebsd/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/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/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/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 …]
/freebsd/sys/i386/bios/
H A Dsmapi.c64 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 Disa.c47 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 Dcfe_resource.c55 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 Dvpd.c74 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 …]

12345678910>>...27