Lines Matching refs:ctxbuf

55 	} ctxbuf[R515_GR_MAX_CTXBUFS];  member
149 const bool alloc = golden || !gr->ctxbuf[i].global; in r535_gr_promote_ctx()
152 entry->bufferId = gr->ctxbuf[i].bufferId; in r535_gr_promote_ctx()
153 entry->bInitialize = gr->ctxbuf[i].init && alloc; in r535_gr_promote_ctx()
156 ret = nvkm_memory_new(device, gr->ctxbuf[i].init ? in r535_gr_promote_ctx()
158 gr->ctxbuf[i].size, 1 << gr->ctxbuf[i].page, in r535_gr_promote_ctx()
159 gr->ctxbuf[i].init, &pmem[i]); in r535_gr_promote_ctx()
163 if (gr->ctxbuf[i].bufferId == in r535_gr_promote_ctx()
167 if (gr->ctxbuf[i].bufferId == in r535_gr_promote_ctx()
177 .ro = gr->ctxbuf[i].ro, in r535_gr_promote_ctx()
181 ret = nvkm_vmm_get_locked(vmm, false, true, false, 0, gr->ctxbuf[i].align, in r535_gr_promote_ctx()
196 entry->size = gr->ctxbuf[i].size; in r535_gr_promote_ctx()
398 if (WARN_ON(gr->ctxbuf_nr == ARRAY_SIZE(gr->ctxbuf))) in r535_gr_oneinit()
401 gr->ctxbuf[gr->ctxbuf_nr].bufferId = map[id].id1; in r535_gr_oneinit()
402 gr->ctxbuf[gr->ctxbuf_nr].size = size; in r535_gr_oneinit()
403 gr->ctxbuf[gr->ctxbuf_nr].page = page; in r535_gr_oneinit()
404 gr->ctxbuf[gr->ctxbuf_nr].align = align; in r535_gr_oneinit()
405 gr->ctxbuf[gr->ctxbuf_nr].global = map[id].global; in r535_gr_oneinit()
406 gr->ctxbuf[gr->ctxbuf_nr].init = map[id].init; in r535_gr_oneinit()
407 gr->ctxbuf[gr->ctxbuf_nr].ro = map[id].ro; in r535_gr_oneinit()
411 if (WARN_ON(gr->ctxbuf_nr == ARRAY_SIZE(gr->ctxbuf))) in r535_gr_oneinit()
414 gr->ctxbuf[gr->ctxbuf_nr] = gr->ctxbuf[gr->ctxbuf_nr - 1]; in r535_gr_oneinit()
415 gr->ctxbuf[gr->ctxbuf_nr].bufferId = in r535_gr_oneinit()