Home
last modified time | relevance | path

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

12345678910>>...29

/NextBSD/sys/dev/snc/
HDif_snc_cbus.c76 int rid; in snc_isapnp_reconfig() local
80 for (rid = 0; rid < ISA_NMEM; rid++) { in snc_isapnp_reconfig()
81 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count)) in snc_isapnp_reconfig()
83 config.ic_mem[rid].ir_start = start; in snc_isapnp_reconfig()
84 config.ic_mem[rid].ir_end = start; in snc_isapnp_reconfig()
85 config.ic_mem[rid].ir_size = count; in snc_isapnp_reconfig()
87 config.ic_nmem = rid; in snc_isapnp_reconfig()
88 for (rid = 0; rid < ISA_NPORT; rid++) { in snc_isapnp_reconfig()
89 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count)) in snc_isapnp_reconfig()
91 config.ic_port[rid].ir_start = start; in snc_isapnp_reconfig()
[all …]
/NextBSD/tools/bus_space/
HDbus.c44 int rid; member
59 int rid; in rid_alloc() local
61 for (rid = 0; rid < nrids; rid++) { in rid_alloc()
62 if (ridtbl[rid].fd == -1) in rid_alloc()
65 if (rid == nrids) { in rid_alloc()
74 ridtbl[rid].fd = INT_MAX; in rid_alloc()
75 return (rid); in rid_alloc()
79 rid_lookup(int rid) in rid_lookup() argument
83 if (rid < 0 || rid >= nrids) { in rid_lookup()
87 r = ridtbl + rid; in rid_lookup()
[all …]
/NextBSD/sys/dev/mca/
HDmca_bus.c184 int rid = 0; local
186 while (resource_list_find(&(m_dev->rl), SYS_RES_IRQ, rid)) rid++;
187 resource_list_add(&(m_dev->rl), SYS_RES_IRQ, rid, irq, irq, 1);
198 int rid = 0; local
200 while (resource_list_find(&(m_dev->rl), SYS_RES_DRQ, rid)) rid++;
201 resource_list_add(&(m_dev->rl), SYS_RES_DRQ, rid, drq, drq, 1);
213 int rid = 0; local
215 while (resource_list_find(&(m_dev->rl), SYS_RES_MEMORY, rid)) rid++;
216 resource_list_add(&(m_dev->rl), SYS_RES_MEMORY, rid,
229 int rid = 0; local
[all …]
/NextBSD/sys/dev/atkbdc/
HDatkbdc_isa.c53 int type, int *rid, u_long start, u_long end,
56 int type, int rid, struct resource *r);
103 int rid; in atkbdc_isa_probe() local
129 rid = 0; in atkbdc_isa_probe()
130 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0) in atkbdc_isa_probe()
137 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1); in atkbdc_isa_probe()
138 port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe()
141 rid = 1; in atkbdc_isa_probe()
142 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0) in atkbdc_isa_probe()
145 port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in atkbdc_isa_probe()
[all …]
HDatkbdc_ebus.c95 int error, rid; in atkbdc_ebus_probe() local
132 rid = 0; in atkbdc_ebus_probe()
133 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count) != 0) { in atkbdc_ebus_probe()
138 port0 = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, start, start, 1, in atkbdc_ebus_probe()
146 rid = 1; in atkbdc_ebus_probe()
147 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count) != 0) { in atkbdc_ebus_probe()
153 port1 = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, start, start, 1, in atkbdc_ebus_probe()
180 int children, error, rid, unit; in atkbdc_ebus_attach() local
199 rid = 0; in atkbdc_ebus_attach()
200 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count) != 0) { in atkbdc_ebus_attach()
[all …]
/NextBSD/sys/x86/isa/
HDisa.c90 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, in isa_alloc_resource() argument
103 rle = resource_list_find(rl, type, *rid); in isa_alloc_resource()
105 if (*rid < 0) in isa_alloc_resource()
109 if (*rid >= ISA_NIRQ) in isa_alloc_resource()
113 if (*rid >= ISA_NDRQ) in isa_alloc_resource()
117 if (*rid >= ISA_NMEM) in isa_alloc_resource()
121 if (*rid >= ISA_NPORT) in isa_alloc_resource()
127 resource_list_add(rl, type, *rid, start, end, count); in isa_alloc_resource()
131 return resource_list_alloc(rl, bus, child, type, rid, in isa_alloc_resource()
141 isa_alloc_resourcev(device_t child, int type, int *rid, in isa_alloc_resourcev() argument
[all …]
HDorm.c65 int rid[MAX_ROMS]; member
89 int rid; in orm_identify() local
103 rid = sc->rnum; in orm_identify()
104 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, in orm_identify()
126 bus_release_resource(child, SYS_RES_MEMORY, rid, res); in orm_identify()
135 rid = sc->rnum; in orm_identify()
136 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); in orm_identify()
142 sc->rid[sc->rnum] = rid; in orm_identify()
163 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[i], in orm_detach()
/NextBSD/tools/bus_space/Python/
HDlang.c39 int rid; in bus_read_1() local
42 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) in bus_read_1()
44 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_1()
55 int rid; in bus_read_2() local
58 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) in bus_read_2()
60 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_2()
71 int rid; in bus_read_4() local
74 if (!PyArg_ParseTuple(args, "il", &rid, &ofs)) in bus_read_4()
76 if (!bs_read(rid, ofs, &val, sizeof(val))) { in bus_read_4()
87 int rid; in bus_write_1() local
[all …]
/NextBSD/tools/bus_space/C/
HDlang.c38 bus_read_1(int rid, long ofs) in bus_read_1() argument
42 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int)val); in bus_read_1()
46 bus_read_2(int rid, long ofs) in bus_read_2() argument
50 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int)val); in bus_read_2()
54 bus_read_4(int rid, long ofs) in bus_read_4() argument
58 return ((!bs_read(rid, ofs, &val, sizeof(val))) ? -1 : (int64_t)val); in bus_read_4()
62 bus_write_1(int rid, long ofs, uint8_t val) in bus_write_1() argument
65 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); in bus_write_1()
69 bus_write_2(int rid, long ofs, uint16_t val) in bus_write_2() argument
72 return ((!bs_write(rid, ofs, &val, sizeof(val))) ? errno : 0); in bus_write_2()
[all …]
/NextBSD/sys/dev/eisa/
HDeisaconf.c96 static struct irq_node *eisa_find_irq(struct eisa_device *e_dev, int rid);
97 static struct resvaddr *eisa_find_maddr(struct eisa_device *e_dev, int rid);
98 static struct resvaddr *eisa_find_ioaddr(struct eisa_device *e_dev, int rid);
244 int rid; in eisa_print_child() local
250 rid = 0; in eisa_print_child()
251 while ((resv = eisa_find_ioaddr(e_dev, rid++))) { in eisa_print_child()
253 retval += printf("%s%lx", rid == 1 ? " port 0x" : ",0x", in eisa_print_child()
256 retval += printf("%s%lx-0x%lx", rid == 1 ? " port 0x" : in eisa_print_child()
259 rid = 0; in eisa_print_child()
260 while ((resv = eisa_find_maddr(e_dev, rid++))) { in eisa_print_child()
[all …]
/NextBSD/sys/sparc64/isa/
HDisa.c149 int i, ndrq, nintr, nreg, nregidx, rid, rtype; in isa_setup_children() local
200 rid = 0; in isa_setup_children()
201 while (resource_list_find(rl, rtype, rid) != NULL) in isa_setup_children()
202 rid++; in isa_setup_children()
203 bus_set_resource(cdev, rtype, rid, start, in isa_setup_children()
224 rid = 0; in isa_setup_children()
226 rid) != NULL) in isa_setup_children()
227 rid++; in isa_setup_children()
228 bus_set_resource(cdev, rtype, rid, in isa_setup_children()
275 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, in isa_alloc_resource() argument
[all …]
/NextBSD/sys/dev/ata/
HData-cbus.c69 int rid; in ata_cbus_probe() local
77 rid = ATA_IOADDR_RID; in ata_cbus_probe()
78 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, in ata_cbus_probe()
83 rid = ATA_PC98_CTLADDR_RID; in ata_cbus_probe()
84 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &tmp, &tmp)) { in ata_cbus_probe()
85 bus_set_resource(dev, SYS_RES_IOPORT, rid, in ata_cbus_probe()
90 rid = ATA_PC98_BANKADDR_RID; in ata_cbus_probe()
91 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &tmp, &tmp)) { in ata_cbus_probe()
92 bus_set_resource(dev, SYS_RES_IOPORT, rid, in ata_cbus_probe()
105 int rid, unit; in ata_cbus_attach() local
[all …]
/NextBSD/sys/dev/proto/
HDproto_bus_isa.c70 int rid, type; in proto_isa_probe() local
72 rid = 0; in proto_isa_probe()
74 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
77 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_probe()
87 bus_release_resource(dev, type, rid, res); in proto_isa_probe()
96 int count, rid; in proto_isa_alloc() local
100 for (rid = 0; rid < nrids; rid++) { in proto_isa_alloc()
101 res = bus_alloc_resource_any(dev, type, &rid, RF_ACTIVE); in proto_isa_alloc()
104 proto_add_resource(sc, type, rid, res); in proto_isa_alloc()
/NextBSD/usr.bin/usbhidctl/
HDusbhid.c303 int dlen, havedata, i, match, r, rid, use_rid; in dumpdata() local
308 rid = -1; in dumpdata()
312 if (++rid >= 256) { in dumpdata()
313 rid = 0; in dumpdata()
317 rid = -1; in dumpdata()
319 if (rid == var->h.report_ID && in dumpdata()
326 dlen = hid_report_size(rd, kind < 3 ? kind : hid_input, rid); in dumpdata()
332 dbuf[0] = rid; in dumpdata()
335 warn("hid_get_report(rid %d)", rid); in dumpdata()
336 havedata = !r && (rid == 0 || dbuf[0] == rid); in dumpdata()
[all …]
/NextBSD/sys/dev/fdc/
HDfdc_cbus.c55 int i, rid; in fdc_cbus_alloc_resources() local
58 rid = 0; in fdc_cbus_alloc_resources()
59 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, fdc_iat, 3, in fdc_cbus_alloc_resources()
68 fdc->ridio[i] = rid; in fdc_cbus_alloc_resources()
74 rid = 3; in fdc_cbus_alloc_resources()
75 bus_set_resource(dev, SYS_RES_IOPORT, rid, IO_FDPORT, 1); in fdc_cbus_alloc_resources()
76 res = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE); in fdc_cbus_alloc_resources()
82 fdc->ridio[3] = rid; in fdc_cbus_alloc_resources()
87 rid = 4; in fdc_cbus_alloc_resources()
88 bus_set_resource(dev, SYS_RES_IOPORT, rid, 0x4be, 1); in fdc_cbus_alloc_resources()
[all …]
/NextBSD/crypto/openssl/crypto/cms/
HDcms_kari.c166 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_get0_id() local
167 if (rid->type == CMS_REK_ISSUER_SERIAL) { in CMS_RecipientEncryptedKey_get0_id()
169 *issuer = rid->d.issuerAndSerialNumber->issuer; in CMS_RecipientEncryptedKey_get0_id()
171 *sno = rid->d.issuerAndSerialNumber->serialNumber; in CMS_RecipientEncryptedKey_get0_id()
178 } else if (rid->type == CMS_REK_KEYIDENTIFIER) { in CMS_RecipientEncryptedKey_get0_id()
180 *keyid = rid->d.rKeyId->subjectKeyIdentifier; in CMS_RecipientEncryptedKey_get0_id()
182 *tm = rid->d.rKeyId->date; in CMS_RecipientEncryptedKey_get0_id()
184 *other = rid->d.rKeyId->other; in CMS_RecipientEncryptedKey_get0_id()
197 CMS_KeyAgreeRecipientIdentifier *rid = rek->rid; in CMS_RecipientEncryptedKey_cert_cmp() local
198 if (rid->type == CMS_REK_ISSUER_SERIAL) in CMS_RecipientEncryptedKey_cert_cmp()
[all …]
/NextBSD/sys/dev/pccbb/
HDpccbb.c165 int type, int rid, struct resource *res);
167 device_t child, int type, int rid, struct resource *res);
169 device_t child, int type, int *rid, u_long start,
172 int type, int rid, struct resource *res);
195 cbb_find_res(struct cbb_softc *sc, int type, int rid) in cbb_find_res() argument
200 if (SYS_RES_MEMORY == rle->type && rid == rle->rid) in cbb_find_res()
207 int rid) in cbb_insert_res() argument
220 rle->rid = rid; in cbb_insert_res()
232 "(rid=%x, type=%d, addr=%lx)\n", rle->rid, rle->type, in cbb_destroy_res()
1205 int rid, struct resource *res) in cbb_cardbus_activate_resource() argument
[all …]
/NextBSD/sys/x86/bios/
HDsmbios.c57 int rid; member
81 int rid; in smbios_identify() local
89 rid = 0; in smbios_identify()
107 bus_set_resource(child, SYS_RES_MEMORY, rid, addr, length); in smbios_identify()
118 int rid; in smbios_probe() local
122 rid = 0; in smbios_probe()
123 res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE); in smbios_probe()
138 bus_release_resource(dev, SYS_RES_MEMORY, rid, res); in smbios_probe()
152 sc->rid = 0; in smbios_attach()
153 sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &sc->rid, in smbios_attach()
[all …]
/NextBSD/sys/dev/pci/
HDisa_pci.c55 device_t child, int type, int *rid, u_long start, u_long end, u_long count,
58 int type, int rid, struct resource *r);
171 isab_pci_alloc_resource(device_t dev, device_t child, int type, int *rid, in isab_pci_alloc_resource() argument
178 return bus_generic_alloc_resource(dev, child, type, rid, start, in isab_pci_alloc_resource()
188 bar = PCI_RID2BAR(*rid); in isab_pci_alloc_resource()
194 rid, start, end, count, flags); in isab_pci_alloc_resource()
200 return (BUS_ALLOC_RESOURCE(device_get_parent(dev), child, type, rid, in isab_pci_alloc_resource()
205 isab_pci_release_resource(device_t dev, device_t child, int type, int rid, in isab_pci_release_resource() argument
212 return bus_generic_release_resource(dev, child, type, rid, r); in isab_pci_release_resource()
221 bar = PCI_RID2BAR(rid); in isab_pci_release_resource()
[all …]
/NextBSD/sys/powerpc/mpc85xx/
HDisa.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()
/NextBSD/sys/mips/sibyte/
HDsb_zbbus.c69 int rid; member
77 sb_intmap_lookup(int intrnum, device_t dev, int rid) in sb_intmap_lookup() argument
82 if (dev == map->dev && rid == map->rid && in sb_intmap_lookup()
96 sb_intmap_add(int intrnum, device_t dev, int rid, int intsrc) in sb_intmap_add() argument
103 map = sb_intmap_lookup(intrnum, dev, rid); in sb_intmap_add()
108 device_get_name(dev), device_get_unit(dev), rid, in sb_intmap_add()
117 map->rid = rid; in sb_intmap_add()
123 sb_intmap_activate(int intrnum, device_t dev, int rid) in sb_intmap_activate() argument
130 map = sb_intmap_lookup(intrnum, dev, rid); in sb_intmap_activate()
149 device_get_name(dev), device_get_unit(dev), rid); in sb_intmap_activate()
[all …]
HDsb_zbpci.c89 int n, rid, size; in zbpci_attach() local
96 rid = 0; in zbpci_attach()
97 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, in zbpci_attach()
117 rid = 1; in zbpci_attach()
119 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, CFG_PADDR_BASE, in zbpci_attach()
128 rid = 2; in zbpci_attach()
129 res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, in zbpci_attach()
167 zbpci_alloc_resource(device_t bus, device_t child, int type, int *rid, in zbpci_alloc_resource() argument
176 res = bus_generic_alloc_resource(bus, child, type, rid, in zbpci_alloc_resource()
186 rman_set_rid(res, *rid); in zbpci_alloc_resource()
[all …]
/NextBSD/sys/x86/x86/
HDnexus.c363 nexus_alloc_resource(device_t bus, device_t child, int type, int *rid, in nexus_alloc_resource() argument
381 rle = resource_list_find(&ndev->nx_resources, type, *rid); in nexus_alloc_resource()
397 rman_set_rid(rv, *rid); in nexus_alloc_resource()
400 if (bus_activate_resource(child, type, *rid, rv)) { in nexus_alloc_resource()
424 nexus_activate_resource(device_t bus, device_t child, int type, int rid, in nexus_activate_resource() argument
472 nexus_deactivate_resource(device_t bus, device_t child, int type, int rid, in nexus_deactivate_resource() argument
495 nexus_release_resource(device_t bus, device_t child, int type, int rid, in nexus_release_resource() argument
500 int error = bus_deactivate_resource(child, type, rid, r); in nexus_release_resource()
579 nexus_set_resource(device_t dev, device_t child, int type, int rid, u_long start, u_long count) in nexus_set_resource() argument
585 resource_list_add(rl, type, rid, start, start + count - 1, count); in nexus_set_resource()
[all …]
/NextBSD/sys/dev/rp/
HDrpreg.h48 #define rp_readio(size, ctlp, rid, offset) \ argument
49 (bus_read_##size(ctlp->io[rid], offset))
50 #define rp_readmultiio(size, ctlp, rid, offset, addr, count) \ argument
51 (bus_read_multi_##size(ctlp->io[rid], offset, addr, count))
52 #define rp_writeio(size, ctlp, rid, offset, data) \ argument
53 (bus_write_##size(ctlp->io[rid], offset, data))
54 #define rp_writemultiio(size, ctlp, rid, offset, addr, count) \ argument
55 (bus_write_multi_##size(ctlp->io[rid], offset, addr, count))
57 #define rp_readio1(ctlp, rid, offset) rp_readio(1, ctlp, rid, offset) argument
58 #define rp_readio2(ctlp, rid, offset) rp_readio(2, ctlp, rid, offset) argument
[all …]
/NextBSD/sys/dev/pccard/
HDpccard.c100 int rid, u_long start, u_long count);
102 int rid, u_long *startp, u_long *countp);
104 int rid);
106 int rid, u_long flags);
107 static int pccard_set_memory_offset(device_t dev, device_t child, int rid,
116 device_t child, int type, int *rid, u_long start,
119 int rid, struct resource *r);
478 int i, rid, spaces; in pccard_function_init() local
512 rid = i; in pccard_function_init()
514 r = bus_alloc_resource(bus, SYS_RES_IOPORT, &rid, in pccard_function_init()
[all …]

12345678910>>...29