Lines Matching defs:scratch
39 struct nouveau_scratch_state *scratch =
40 &to_nouveau_context(ctx)->scratch;
43 if (scratch->buf && size <= NOUVEAU_SCRATCH_SIZE - scratch->offset) {
44 nouveau_bo_ref(scratch->bo[scratch->index], bo);
46 buf = scratch->buf + scratch->offset;
47 *offset = scratch->offset;
48 scratch->offset += size;
51 scratch->index = (scratch->index + 1) % NOUVEAU_SCRATCH_COUNT;
52 nouveau_bo_ref(scratch->bo[scratch->index], bo);
55 buf = scratch->buf = (*bo)->map;
58 scratch->offset = size;
76 struct nouveau_scratch_state *scratch =
77 &to_nouveau_context(ctx)->scratch;
83 NULL, &scratch->bo[i]);
91 struct nouveau_scratch_state *scratch =
92 &to_nouveau_context(ctx)->scratch;
96 nouveau_bo_ref(NULL, &scratch->bo[i]);