Lines Matching defs:rnum
64 int rnum;
99 sc->rnum = 0;
101 bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk,
103 rid = sc->rnum;
107 bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
127 bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
133 bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk,
135 rid = sc->rnum;
138 bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum);
142 sc->rid[sc->rnum] = rid;
143 sc->res[sc->rnum] = res;
144 sc->rnum++;
148 if (sc->rnum == 0)
150 else if (sc->rnum == 1)
162 for (i = 0; i < sc->rnum; i++)