Searched refs:rle (Results 1 - 25 of 46) sorted by relevance

12

/freebsd-10.0-release/sys/dev/pci/
H A Dpci_subr.c183 struct resource_list_entry *rle; local
195 rle = resource_list_find(&hr->hr_rl, type, rid);
196 rle->flags = RLE_PREFETCH;
205 struct resource_list_entry *rle; local
213 rle = resource_list_find(&hr->hr_rl, type, 0);
214 if (rle == NULL) {
225 for (; rle != NULL; rle = STAILQ_NEXT(rle, link)) {
226 if (rle
265 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/mips/sibyte/
H A Dsb_zbbus.c288 struct resource_list_entry *rle; local
299 rle = resource_list_find(rl, type, *rid);
300 if (rle) {
301 if (rle->res)
304 start = rle->start;
305 count = ulmax(count, rle->count);
306 end = ulmax(rle->end, start + count - 1);
330 rle = NULL;
367 if (res != NULL && rle == NULL && device_get_parent(child) == bus) {
369 rle
[all...]
/freebsd-10.0-release/sys/dev/quicc/
H A Dquicc_core.c102 struct resource_list_entry *rle; local
188 rle = resource_list_find(&qd->qd_rlist, SYS_RES_IRQ, 0);
189 rle->res = sc->sc_ires;
260 struct resource_list_entry *rle; local
270 rle = resource_list_find(&qd->qd_rlist, type, *rid);
271 if (rle == NULL)
274 if (rle->res == NULL) {
275 rle->res = rman_reserve_resource(qd->qd_rman, rle->start,
276 rle
290 struct resource_list_entry *rle; local
342 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/arm/xscale/pxa/
H A Dpxa_smi.c185 struct resource_list_entry *rle; local
195 rle = resource_list_find(rl, type, *rid);
196 if (rle == NULL)
198 if (rle->res != NULL)
206 rv = rman_reserve_resource(&sc->ps_mem, rle->start, rle->end,
207 rle->count, flags, child);
210 rle->res = rv;
213 rman_set_bushandle(rv, rle->start);
224 rv = bus_alloc_resource(dev, type, rid, rle
250 struct resource_list_entry *rle; local
[all...]
H A Dpxa_obio.c233 struct resource_list_entry *rle; local
241 rle = resource_list_find(rl, type, *rid);
242 if (rle == NULL) {
249 if (rle->res != NULL)
267 rv = rman_reserve_resource(rm, rle->start, rle->end, rle->count, flags,
271 rle->res = rv;
275 rman_set_bushandle(rv, rle->start);
294 struct resource_list_entry *rle; local
359 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/arm/at91/
H A Dat91.c326 struct resource_list_entry *rle; local
334 rle = resource_list_find(rl, type, *rid);
335 if (rle == NULL)
337 if (rle->res)
340 start = rle->start;
341 count = ulmax(count, rle->count);
342 end = ulmax(rle->end, start + count - 1);
347 rle->res = rman_reserve_resource(&sc->sc_irq_rman,
351 rle->res = rman_reserve_resource(&sc->sc_mem_rman,
353 if (rle
382 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/ia64/isa/
H A Disa.c95 struct resource_list_entry *rle; local
98 rle = resource_list_find(rl, type, *rid);
99 if (!rle) {
/freebsd-10.0-release/sys/isa/
H A Disa_common.c479 struct resource_list_entry *rle; local
482 STAILQ_FOREACH(rle, rl, link) {
483 if (!rle->res) {
484 rid = rle->rid;
485 resource_list_alloc(rl, dev, child, rle->type, &rid,
676 struct resource_list_entry *rle; local
680 rle = resource_list_find(rl, SYS_RES_IOPORT, 0);
681 if (rle)
682 *result = rle->start;
688 rle
897 struct resource_list_entry *rle; local
[all...]
H A Disahint.c91 struct resource_list_entry *rle; local
93 STAILQ_FOREACH(rle, rl, link) {
94 if (rle->type != type)
96 if (rle->start <= value && rle->end >= value)
/freebsd-10.0-release/sys/dev/mca/
H A Dmca_bus.c355 struct resource_list_entry * rle; local
366 while ((rle = resource_list_find(&(m_dev->rl), SYS_RES_IOPORT, rid++))) {
367 if (rle->count == 1) {
370 rle->start);
374 rle->start,
375 (rle->start + rle->count));
382 while ((rle = resource_list_find(&(m_dev->rl), SYS_RES_MEMORY, rid++))) {
383 if (rle->count == 1) {
386 rle
462 struct resource_list_entry * rle; local
[all...]
/freebsd-10.0-release/sys/ofed/include/linux/
H A Dpci.h146 struct resource_list_entry *rle; local
149 if ((rle = _pci_get_rle(pdev, SYS_RES_MEMORY, bar)) == NULL)
150 rle = _pci_get_rle(pdev, SYS_RES_IOPORT, bar);
151 return (rle);
175 struct resource_list_entry *rle; local
177 if ((rle = _pci_get_bar(pdev, bar)) == NULL)
179 return rle->start;
185 struct resource_list_entry *rle; local
187 if ((rle = _pci_get_bar(pdev, bar)) == NULL)
189 return rle
198 struct resource_list_entry *rle; local
267 struct resource_list_entry *rle; local
430 struct resource_list_entry *rle; local
541 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/arm/econa/
H A Decona.c521 struct resource_list_entry *rle; local
529 rle = resource_list_find(rl, type, *rid);
530 if (rle == NULL) {
533 if (rle->res)
536 start = rle->start;
537 count = ulmax(count, rle->count);
538 end = ulmax(rle->end, start + count - 1);
543 rle->res = rman_reserve_resource(&sc->ec_irq_rman,
547 rle->res = rman_reserve_resource(&sc->ec_mem_rman,
549 if (rle
577 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/mips/mips/
H A Dnexus.c321 struct resource_list_entry *rle; local
333 rle = NULL;
341 rle = resource_list_find(&ndev->nx_resources, type, *rid);
342 if (rle == NULL)
344 if (rle->res != NULL) {
347 start = rle->start;
348 end = rle->end;
349 count = rle->count;
422 struct resource_list_entry *rle; local
427 rle
441 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/dev/pccard/
H A Dpccard.c474 struct resource_list_entry *rle; local
522 rle = resource_list_add(rl, SYS_RES_IOPORT,
524 if (rle == NULL)
526 rle->res = r;
548 rle = resource_list_add(rl, SYS_RES_MEMORY,
550 if (rle == NULL)
552 rle->res = r;
567 rle = resource_list_add(rl, SYS_RES_IRQ, rid,
569 if (rle == NULL)
571 rle
594 struct resource_list_entry *rle; local
783 struct resource_list_entry *rle = local
873 struct resource_list_entry *rle; local
961 struct resource_list_entry *rle; local
1140 struct resource_list_entry *rle = 0; local
1190 struct resource_list_entry *rle = 0; local
[all...]
/freebsd-10.0-release/sys/dev/scc/
H A Dscc_core.c99 struct resource_list_entry *rle; local
180 rle = resource_list_find(&ch->ch_rlist, sc->sc_rtype, 0);
181 rle->res = &ch->ch_rres;
184 rman_set_bushandle(rle->res, bh);
185 rman_set_bustag(rle->res, rman_get_bustag(sc->sc_rres));
188 rle = resource_list_find(&ch->ch_rlist, SYS_RES_IRQ, 0);
189 rle->res = (ch->ch_ires != NULL) ? ch->ch_ires :
412 struct resource_list_entry *rle; local
425 rle = resource_list_find(&ch->ch_rlist, type, 0);
426 if (rle
436 struct resource_list_entry *rle; local
501 struct resource_list_entry *rle; local
[all...]
/freebsd-10.0-release/sys/dev/if_ndis/
H A Dif_ndis_pci.c176 struct resource_list_entry *rle; local
199 STAILQ_FOREACH(rle, rl, link) {
200 switch (rle->type) {
202 sc->ndis_io_rid = rle->rid;
222 sc->ndis_altmem_rid = rle->rid;
236 sc->ndis_mem_rid = rle->rid;
251 rid = rle->rid;
/freebsd-10.0-release/sys/sparc64/central/
H A Dcentral.c221 struct resource_list_entry *rle; local
234 rle = NULL;
243 rle = resource_list_find(rl, type, *rid);
244 if (rle == NULL)
246 if (rle->res != NULL)
249 start = rle->start;
250 count = ulmax(count, rle->count);
251 end = ulmax(rle->end, start + count - 1);
266 rle->res = res;
/freebsd-10.0-release/sys/sparc64/isa/
H A Disa.c284 struct resource_list_entry *rle; local
289 rle = resource_list_find(rl, type, *rid);
290 if (!rle) {
323 if ((rle = resource_list_find(rl, type, *rid)) == NULL)
336 if (rle->start != rle->end || rle->start <= 7)
345 if (!INRANGE(rle->start, base, limit) ||
346 !INRANGE(rle->end, base, limit))
/freebsd-10.0-release/sys/ia64/ia64/
H A Dnexus.c261 struct resource_list_entry *rle; local
273 rle = resource_list_find(&ndev->nx_resources, type, *rid);
274 if (rle == NULL)
276 start = rle->start;
277 end = rle->end;
278 count = rle->count;
444 struct resource_list_entry *rle; local
446 rle = resource_list_find(rl, type, rid);
448 type, rid, startp, countp, rle);
449 if (!rle)
[all...]
/freebsd-10.0-release/sys/mips/adm5120/
H A Dobio.c230 struct resource_list_entry *rle; local
237 rle = NULL;
249 rle = resource_list_find(&ivar->resources, type, *rid);
250 if (rle == NULL)
252 if (rle->res != NULL) {
255 start = rle->start;
256 end = rle->end;
257 count = rle->count;
325 struct resource_list_entry *rle; local
330 rle
[all...]
/freebsd-10.0-release/sys/mips/alchemy/
H A Dobio.c231 struct resource_list_entry *rle; local
238 rle = NULL;
250 rle = resource_list_find(&ivar->resources, type, *rid);
251 if (rle == NULL)
253 if (rle->res != NULL) {
256 start = rle->start;
257 end = rle->end;
258 count = rle->count;
326 struct resource_list_entry *rle; local
331 rle
[all...]
/freebsd-10.0-release/sys/mips/atheros/
H A Dapb.c167 struct resource_list_entry *rle; local
177 rle = NULL;
194 rle = resource_list_find(&ivar->resources, type, *rid);
195 if (rle == NULL) {
199 if (rle->res != NULL) {
202 start = rle->start;
203 end = rle->end;
204 count = rle->count;
267 struct resource_list_entry *rle; local
272 rle
[all...]
/freebsd-10.0-release/sys/mips/idt/
H A Dobio.c164 struct resource_list_entry *rle; local
171 rle = NULL;
183 rle = resource_list_find(&ivar->resources, type, *rid);
184 if (rle == NULL)
186 if (rle->res != NULL) {
189 start = rle->start;
190 end = rle->end;
191 count = rle->count;
250 struct resource_list_entry *rle; local
255 rle
[all...]
/freebsd-10.0-release/sys/kern/
H A Dsubr_bus.c2962 struct resource_list_entry *rle; local
2964 while ((rle = STAILQ_FIRST(rl)) != NULL) {
2965 if (rle->res)
2968 free(rle, M_BUS);
3017 struct resource_list_entry *rle; local
3019 rle = resource_list_find(rl, type, rid);
3020 if (!rle) {
3021 rle = malloc(sizeof(struct resource_list_entry), M_BUS,
3023 if (!rle)
3025 STAILQ_INSERT_TAIL(rl, rle, lin
3056 struct resource_list_entry *rle; local
3085 struct resource_list_entry *rle; local
3106 struct resource_list_entry *rle; local
3125 struct resource_list_entry *rle = resource_list_find(rl, type, rid); local
3175 struct resource_list_entry *rle = NULL; local
3232 struct resource_list_entry *rle = NULL; local
3302 struct resource_list_entry *rle = NULL; local
3359 struct resource_list_entry *rle; local
3402 struct resource_list_entry *rle = NULL; local
3440 struct resource_list_entry *rle; local
3474 struct resource_list_entry *rle; local
3974 struct resource_list_entry * rle = NULL; local
[all...]
/freebsd-10.0-release/sys/dev/pccbb/
H A Dpccbb.c186 struct cbb_reslist *rle; local
188 SLIST_FOREACH(rle, &sc->rl, link) {
189 if (rle->res == res) {
190 SLIST_REMOVE(&sc->rl, rle, cbb_reslist, link);
191 free(rle, M_DEVBUF);
200 struct cbb_reslist *rle; local
202 SLIST_FOREACH(rle, &sc->rl, link)
203 if (SYS_RES_MEMORY == rle->type && rid == rle->rid)
204 return (rle
212 struct cbb_reslist *rle; local
230 struct cbb_reslist *rle; local
1089 struct cbb_reslist *rle; local
[all...]

Completed in 226 milliseconds

12