38 for (i = 0; i < gpuobj->
size; i += 4)
39 nv_wo32(gpuobj, i, 0x00000000);
47 if (gpuobj->
heap.block_size)
59 int length,
void **pobject)
78 nv_error(parent,
"no gpuobj heap\n");
82 addr = nv_gpuobj(pargpu)->addr;
83 heap = &nv_gpuobj(pargpu)->heap;
86 ret = imem->
alloc(imem, parent, size, align, &parent);
91 addr = nv_memobj(pargpu)->addr;
92 size = nv_memobj(pargpu)->size;
94 if (bar && bar->
alloc) {
98 if (!bar->
alloc(bar, parent, node, &pargpu)) {
123 gpuobj->
addr += gpuobj->
node->offset;
133 for (i = 0; i < gpuobj->
size; i += 4)
134 nv_wo32(gpuobj, i, 0x00000000);
160 *pobject = nv_object(
object);
191 addr += gpuobj->
node->offset;
201 addr += gpuobj->
node->offset;
206 _nouveau_gpuobj_oclass = {
207 .handle = 0x00000000,
209 .ctor = _nouveau_gpuobj_ctor,
247 if (bar && bar->
umap) {
251 ret = bar->
umap(bar, *mem, access, vma);
297 nouveau_gpudup_oclass = {
300 .dtor = nouveau_gpudup_dtor,
314 &nouveau_gpudup_oclass, 0, &gpuobj);