Lines Matching defs:rle
182 struct cbb_reslist *rle;
184 SLIST_FOREACH(rle, &sc->rl, link) {
185 if (rle->res == res) {
186 SLIST_REMOVE(&sc->rl, rle, cbb_reslist, link);
187 free(rle, M_DEVBUF);
196 struct cbb_reslist *rle;
198 SLIST_FOREACH(rle, &sc->rl, link)
199 if (SYS_RES_MEMORY == rle->type && rid == rle->rid)
200 return (rle->res);
208 struct cbb_reslist *rle;
214 rle = malloc(sizeof(struct cbb_reslist), M_DEVBUF, M_NOWAIT);
215 if (rle == NULL)
217 rle->res = res;
218 rle->type = type;
219 rle->rid = rid;
220 SLIST_INSERT_HEAD(&sc->rl, rle, link);
226 struct cbb_reslist *rle;
228 while ((rle = SLIST_FIRST(&sc->rl)) != NULL) {
231 "(rid=%x, type=%d, addr=%jx)\n", rle->rid, rle->type,
232 rman_get_start(rle->res));
234 free(rle, M_DEVBUF);
1123 struct cbb_reslist *rle;
1137 SLIST_FOREACH(rle, &sc->rl, link) {
1138 if (rle->type != type)
1140 if (rle->res == NULL)
1142 if (!(rman_get_flags(rle->res) & RF_ACTIVE))
1144 if (rman_get_flags(rle->res) & RF_PREFETCHABLE)
1148 if (rman_get_start(rle->res) < starts[i])
1149 starts[i] = rman_get_start(rle->res);
1150 if (rman_get_end(rle->res) > ends[i])
1151 ends[i] = rman_get_end(rle->res);