Searched refs:rid (Results 1 - 25 of 524) sorted by relevance

1234567891011>>

/freebsd-10.0-release/sys/dev/snc/
H A Dif_snc_cbus.c76 int rid; local
80 for (rid = 0; rid < ISA_NMEM; rid++) {
81 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count))
83 config.ic_mem[rid].ir_start = start;
84 config.ic_mem[rid].ir_end = start;
85 config.ic_mem[rid].ir_size = count;
87 config.ic_nmem = rid;
88 for (rid
144 int rid = 0; local
[all...]
/freebsd-10.0-release/sys/ia64/isa/
H A Disa.c85 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
98 rle = resource_list_find(rl, type, *rid);
100 if (*rid < 0)
104 if (*rid >= ISA_NIRQ)
108 if (*rid >= ISA_NDRQ)
112 if (*rid >= ISA_NMEM)
116 if (*rid >= ISA_NPORT)
122 resource_list_add(rl, type, *rid, start, end, count);
126 return resource_list_alloc(rl, bus, child, type, rid,
131 isa_release_resource(device_t bus, device_t child, int type, int rid, argument
[all...]
/freebsd-10.0-release/sys/powerpc/mpc85xx/
H A Disa.c48 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
59 resource_list_find(rl, type, *rid) == NULL) {
66 if (*rid < 0 || *rid >= rids)
69 resource_list_add(rl, type, *rid, start, end, count);
72 return (resource_list_alloc(rl, bus, child, type, rid, start, end,
77 isa_release_resource(device_t bus, device_t child, int type, int rid, argument
83 return (resource_list_release(rl, bus, child, type, rid, r));
/freebsd-10.0-release/sys/dev/mca/
H A Dmca_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)) ri
229 int rid = 0; local
354 int rid; local
458 mca_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
[all...]
/freebsd-10.0-release/sys/dev/atkbdc/
H A Datkbdc_isa.c53 int type, int *rid, u_long start, u_long end,
56 int type, int rid, struct resource *r);
103 int rid; local
129 rid = 0;
130 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0)
137 bus_set_resource(dev, SYS_RES_IOPORT, rid, start, 1);
138 port0 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIVE);
141 rid = 1;
142 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, NULL, NULL) != 0)
145 port1 = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &rid, RF_ACTIV
193 int rid; local
297 atkbdc_isa_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
310 atkbdc_isa_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r) argument
[all...]
H A Datkbdc_ebus.c95 int error, rid; local
132 rid = 0;
133 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count) != 0) {
138 port0 = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, start, start, 1,
146 rid = 1;
147 if (bus_get_resource(dev, SYS_RES_MEMORY, rid, &start, &count) != 0) {
153 port1 = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, start, start, 1,
180 int children, error, rid, unit; local
199 rid = 0;
200 if (bus_get_resource(dev, SYS_RES_MEMORY, rid,
[all...]
H A Datkbd_atkbdc.c88 int rid; local
96 rid = KBDC_RID_KBD;
97 res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
104 bus_release_resource(dev, SYS_RES_IRQ, rid, res);
117 int rid; local
122 rid = KBDC_RID_KBD;
123 irq = bus_get_resource_start(dev, SYS_RES_IRQ, rid);
130 sc->intr = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
136 bus_release_resource(dev, SYS_RES_IRQ, rid, sc->intr);
/freebsd-10.0-release/sys/dev/ppc/
H A Dppcvar.h31 int ppc_probe(device_t dev, int rid);
44 int *rid, u_long start, u_long end, u_long count, u_int flags);
45 int ppc_release_resource(device_t bus, device_t child, int type, int rid,
/freebsd-10.0-release/sys/x86/isa/
H A Disa.c90 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
103 rle = resource_list_find(rl, type, *rid);
105 if (*rid < 0)
109 if (*rid >= ISA_NIRQ)
113 if (*rid >= ISA_NDRQ)
117 if (*rid >= ISA_NMEM)
121 if (*rid >= ISA_NPORT)
127 resource_list_add(rl, type, *rid, start, end, count);
131 return resource_list_alloc(rl, bus, child, type, rid,
141 isa_alloc_resourcev(device_t child, int type, int *rid, argument
213 isa_release_resource(device_t bus, device_t child, int type, int rid, struct resource *r) argument
[all...]
H A Dorm.c65 int rid[MAX_ROMS]; member in struct:orm_softc
89 int rid; local
103 rid = sc->rnum;
104 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid,
126 bus_release_resource(child, SYS_RES_MEMORY, rid, res);
135 rid = sc->rnum;
136 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
142 sc->rid[sc->rnum] = rid;
163 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[
[all...]
/freebsd-10.0-release/sys/dev/eisa/
H A Deisaconf.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; local
250 rid = 0;
251 while ((resv = eisa_find_ioaddr(e_dev, rid++))) {
253 retval += printf("%s%lx", rid == 1 ? " port 0x" : ",0x",
256 retval += printf("%s%lx-0x%lx", rid == 1 ? " port 0x" :
259 rid = 0;
260 while ((resv = eisa_find_maddr(e_dev, rid
279 eisa_find_irq(struct eisa_device *e_dev, int rid) argument
292 eisa_find_maddr(struct eisa_device *e_dev, int rid) argument
305 eisa_find_ioaddr(struct eisa_device *e_dev, int rid) argument
354 eisa_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
422 eisa_release_resource(device_t dev, device_t child, int type, int rid, struct resource *r) argument
[all...]
/freebsd-10.0-release/sys/sparc64/isa/
H A Disa.c149 int i, ndrq, nintr, nreg, nregidx, rid, rtype; local
200 rid = 0;
201 while (resource_list_find(rl, rtype, rid) != NULL)
202 rid++;
203 bus_set_resource(cdev, rtype, rid, start,
224 rid = 0;
226 rid) != NULL)
227 rid++;
228 bus_set_resource(cdev, rtype, rid,
275 isa_alloc_resource(device_t bus, device_t child, int type, int *rid, argument
356 isa_release_resource(device_t bus, device_t child, int type, int rid, struct resource *res) argument
[all...]
/freebsd-10.0-release/sys/dev/joy/
H A Djoyvar.h37 int rid; member in struct:joy_softc
/freebsd-10.0-release/sys/dev/cfe/
H A Dcfe_resource.c56 int rid[MAX_CFE_RESERVATIONS]; member in struct:cferes_softc
81 int rid; local
103 rid = sc->rnum;
104 res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0);
109 sc->rid[sc->rnum] = rid;
132 bus_release_resource(dev, SYS_RES_MEMORY, sc->rid[i],
/freebsd-10.0-release/sys/dev/cm/
H A Dif_cm_isa.c61 int rid; local
63 rid = 0;
65 dev, SYS_RES_IOPORT, &rid, 0ul, ~0ul, CM_IO_PORTS, RF_ACTIVE);
74 rid = 0;
76 dev, SYS_RES_MEMORY, &rid, 0ul, ~0ul, CM_MEM_SIZE, RF_ACTIVE);
82 rid = 0;
83 sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE);
/freebsd-10.0-release/sys/ofed/include/linux/
H A Dinterrupt.h91 int rid; local
96 rid = _irq_rid(dev, irq);
97 res = bus_alloc_resource_any(dev->bsddev, SYS_RES_IRQ, &rid,
110 bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res);
124 int rid; local
129 rid = _irq_rid(dev, irq);
134 bus_release_resource(dev->bsddev, SYS_RES_IRQ, rid, irqe->res);
/freebsd-10.0-release/sys/dev/ata/
H A Data-isa.c64 int rid; local
71 rid = ATA_IOADDR_RID;
72 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
83 rid = ATA_CTLADDR_RID;
84 if (!(ctlio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
104 int i, rid; local
111 rid = ATA_IOADDR_RID;
112 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
123 rid = ATA_CTLADDR_RID;
124 if (!(ctlio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
[all...]
H A Data-cbus.c69 int rid; local
77 rid = ATA_IOADDR_RID;
78 if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
83 rid = ATA_PC98_CTLADDR_RID;
84 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &tmp, &tmp)) {
85 bus_set_resource(dev, SYS_RES_IOPORT, rid,
90 rid = ATA_PC98_BANKADDR_RID;
91 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &tmp, &tmp)) {
92 bus_set_resource(dev, SYS_RES_IOPORT, rid,
105 int rid, uni local
170 ata_cbus_alloc_resource(device_t dev, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
[all...]
/freebsd-10.0-release/sys/dev/siba/
H A Dsiba_cc.c89 int rid; local
97 rid = MIPS_MEM_RID;
98 mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
104 rid = 0;
105 irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, 0);
/freebsd-10.0-release/usr.bin/usbhidctl/
H A Dusbhid.c203 printf("%s rid=%d size=%d count=%d page=%s usage=%s%s%s", label,
303 int dlen, havedata, i, match, r, rid, use_rid; local
308 rid = -1;
312 if (++rid >= 256) {
313 rid = 0;
317 rid = -1;
319 if (rid == var->h.report_ID &&
326 dlen = hid_report_size(rd, kind < 3 ? kind : hid_input, rid);
332 dbuf[0] = rid;
335 warn("hid_get_report(rid
380 int dlen, i, r, rid; local
[all...]
/freebsd-10.0-release/sys/dev/ieee488/
H A Dpcii.c105 int rid, i, j; local
113 rid = 0;
114 if (bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count) != 0)
148 for (rid = 0, addr = start; rid < 8; rid++, addr += 0x400) {
149 if (bus_set_resource(dev, SYS_RES_IOPORT, rid, addr, 1) != 0) {
210 int rid; local
236 for (rid = 0; rid <
[all...]
/freebsd-10.0-release/sys/dev/mse/
H A Dmse_cbus.c158 int rid; local
167 rid = 0;
168 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, mse_port,
173 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port);
191 bus_release_resource(dev, SYS_RES_IOPORT, rid,
198 bus_release_resource(dev, SYS_RES_IOPORT, rid, sc->sc_port);
206 int rid; local
210 rid = 0;
211 sc->sc_port = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid, mse_port,
216 bus_release_resource(dev, SYS_RES_IOPORT, rid, s
229 int rid; local
[all...]
/freebsd-10.0-release/sys/mips/sibyte/
H A Dsb_zbbus.c65 * The device 'dev' in combination with the 'rid' uniquely
69 int rid; member in struct:sb_intmap
77 sb_intmap_lookup(int intrnum, device_t dev, int rid) argument
82 if (dev == map->dev && rid == map->rid &&
90 * Keep track of which (dev,rid,hardint) tuple is using the interrupt source.
96 sb_intmap_add(int intrnum, device_t dev, int rid, int intsrc) argument
103 map = sb_intmap_lookup(intrnum, dev, rid);
106 ("%s%d allocating SYS_RES_IRQ resource with rid %d "
108 device_get_name(dev), device_get_unit(dev), rid,
123 sb_intmap_activate(int intrnum, device_t dev, int rid) argument
282 zbbus_alloc_resource(device_t bus, device_t child, int type, int *rid, u_long start, u_long end, u_long count, u_int flags) argument
[all...]
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/
H A Dsid.h81 #define kidmap_getsidbyuid(zone, uid, sid_prefix, rid) (1)
82 #define kidmap_getsidbygid(zone, gid, sid_prefix, rid) (1)
/freebsd-10.0-release/sys/dev/cs/
H A Dif_csvar.h76 int cs_alloc_port(device_t dev, int rid, int size);
77 int cs_alloc_irq(device_t dev, int rid);

Completed in 183 milliseconds

1234567891011>>