Lines Matching refs:pg
132 struct pgstat *pg;
142 pg = sc->next;
143 *(pg->sample) = sc->sample;
154 pg = pg->next;
155 sc->next = pg;
156 *(pg->sample) = 0;
157 bus_write_4(sc->res[0], 0x24, pg->phys);
170 struct pgstat *pg;
180 pg = sc->chunks;
181 for (i = 0; i < sc->nchunks; i++, pg++) {
186 *paddr = pg->phys + (offset - o);
198 struct pgstat *pg;
243 if (sc->nchunks * sizeof (*pg->sample) +
250 pg = malloc(sizeof *pg * sc->nchunks,
252 sc->chunks = pg;
254 pg->sample = sample;
255 *pg->sample = 0;
257 pg->virt = contigmalloc(sc->p0->chunksize,
261 pg->phys = vtophys(pg->virt);
263 pg->next = sc->chunks;
265 pg->next = pg + 1;
266 pg++;
272 pg = sc->chunks;
274 *pg->sample = 0;
275 pg++;
306 pg = sc->next = sc->chunks;
307 *(pg->sample) = 0;
308 bus_write_4(sc->res[0], 0x24, pg->phys);