Searched refs:dmaobj (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/dma/ |
A D | usernv04.c | 48 u32 length = dmaobj->base.limit - dmaobj->base.start; in nv04_dmaobj_bind() 51 if (dmaobj->clone) { in nv04_dmaobj_bind() 54 if (!dmaobj->base.start) in nv04_dmaobj_bind() 85 struct nv04_dmaobj *dmaobj; in nv04_dmaobj_new() local 88 if (!(dmaobj = kzalloc(sizeof(*dmaobj), GFP_KERNEL))) in nv04_dmaobj_new() 90 *pdmaobj = &dmaobj->base; in nv04_dmaobj_new() 99 dmaobj->clone = true; in nv04_dmaobj_new() 105 switch (dmaobj->base.target) { in nv04_dmaobj_new() 107 dmaobj->flags0 |= 0x00003000; in nv04_dmaobj_new() 110 dmaobj->flags0 |= 0x00023000; in nv04_dmaobj_new() [all …]
|
A D | usergf100.c | 77 struct gf100_dmaobj *dmaobj; in gf100_dmaobj_new() local 81 if (!(dmaobj = kzalloc(sizeof(*dmaobj), GFP_KERNEL))) in gf100_dmaobj_new() 83 *pdmaobj = &dmaobj->base; in gf100_dmaobj_new() 120 switch (dmaobj->base.target) { in gf100_dmaobj_new() 122 dmaobj->flags0 |= 0x00000000; in gf100_dmaobj_new() 125 dmaobj->flags0 |= 0x00010000; in gf100_dmaobj_new() 128 dmaobj->flags0 |= 0x00020000; in gf100_dmaobj_new() 131 dmaobj->flags0 |= 0x00030000; in gf100_dmaobj_new() 137 switch (dmaobj->base.access) { in gf100_dmaobj_new() 141 dmaobj->flags0 |= 0x00040000; in gf100_dmaobj_new() [all …]
|
A D | user.c | 51 return dmaobj->func->bind(dmaobj, gpuobj, align, pgpuobj); in nvkm_dmaobj_bind() 69 struct nvkm_dmaobj *dmaobj) in nvkm_dmaobj_ctor() argument 80 dmaobj->func = func; in nvkm_dmaobj_ctor() 81 dmaobj->dma = dma; in nvkm_dmaobj_ctor() 89 dmaobj->target = args->v0.target; in nvkm_dmaobj_ctor() 90 dmaobj->access = args->v0.access; in nvkm_dmaobj_ctor() 91 dmaobj->start = args->v0.start; in nvkm_dmaobj_ctor() 92 dmaobj->limit = args->v0.limit; in nvkm_dmaobj_ctor() 99 if (dmaobj->start > dmaobj->limit) in nvkm_dmaobj_ctor() 102 switch (dmaobj->target) { in nvkm_dmaobj_ctor() [all …]
|
A D | usernv50.c | 77 struct nv50_dmaobj *dmaobj; in nv50_dmaobj_new() local 81 if (!(dmaobj = kzalloc(sizeof(*dmaobj), GFP_KERNEL))) in nv50_dmaobj_new() 83 *pdmaobj = &dmaobj->base; in nv50_dmaobj_new() 123 dmaobj->flags5 = (part << 16); in nv50_dmaobj_new() 125 switch (dmaobj->base.target) { in nv50_dmaobj_new() 127 dmaobj->flags0 |= 0x00000000; in nv50_dmaobj_new() 130 dmaobj->flags0 |= 0x00010000; in nv50_dmaobj_new() 133 dmaobj->flags0 |= 0x00020000; in nv50_dmaobj_new() 136 dmaobj->flags0 |= 0x00030000; in nv50_dmaobj_new() 142 switch (dmaobj->base.access) { in nv50_dmaobj_new() [all …]
|
A D | usergv100.c | 43 u64 start = dmaobj->base.start >> 8; in gv100_dmaobj_bind() 44 u64 limit = dmaobj->base.limit >> 8; in gv100_dmaobj_bind() 50 nvkm_wo32(*pgpuobj, 0x00, dmaobj->flags0); in gv100_dmaobj_bind() 74 struct gv100_dmaobj *dmaobj; in gv100_dmaobj_new() local 78 if (!(dmaobj = kzalloc(sizeof(*dmaobj), GFP_KERNEL))) in gv100_dmaobj_new() 80 *pdmaobj = &dmaobj->base; in gv100_dmaobj_new() 83 &data, &size, &dmaobj->base); in gv100_dmaobj_new() 105 dmaobj->flags0 |= 0x00100000; in gv100_dmaobj_new() 107 dmaobj->flags0 |= 0x00000040; in gv100_dmaobj_new() 108 dmaobj->flags0 |= 0x00000004; /* rw */ in gv100_dmaobj_new() [all …]
|
A D | usergf119.c | 43 struct gf119_dmaobj *dmaobj = gf119_dmaobj(base); in gf119_dmaobj_bind() local 50 nvkm_wo32(*pgpuobj, 0x00, dmaobj->flags0); in gf119_dmaobj_bind() 51 nvkm_wo32(*pgpuobj, 0x04, dmaobj->base.start >> 8); in gf119_dmaobj_bind() 75 struct gf119_dmaobj *dmaobj; in gf119_dmaobj_new() local 79 if (!(dmaobj = kzalloc(sizeof(*dmaobj), GFP_KERNEL))) in gf119_dmaobj_new() 81 *pdmaobj = &dmaobj->base; in gf119_dmaobj_new() 84 &data, &size, &dmaobj->base); in gf119_dmaobj_new() 100 if (dmaobj->base.target != NV_MEM_TARGET_VM) { in gf119_dmaobj_new() 112 dmaobj->flags0 = (kind << 20) | (page << 6); in gf119_dmaobj_new() 114 switch (dmaobj->base.target) { in gf119_dmaobj_new() [all …]
|
A D | base.c | 37 struct nvkm_dmaobj *dmaobj = NULL; in nvkm_dma_oclass_new() local 40 ret = dma->func->class_new(dma, oclass, data, size, &dmaobj); in nvkm_dma_oclass_new() 41 if (dmaobj) in nvkm_dma_oclass_new() 42 *pobject = &dmaobj->object; in nvkm_dma_oclass_new()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
A D | chan.c | 348 struct nvkm_dmaobj *dmaobj, u64 offset, u64 length, in nvkm_chan_new_() argument 360 (!func->ramfc->ctxdma != !dmaobj) || in nvkm_chan_new_() 366 func->userd->bar < 0, userd, func->ramfc->ctxdma, dmaobj, in nvkm_chan_new_() 433 ret = nvkm_object_bind(&dmaobj->object, chan->inst, -16, &chan->push); in nvkm_chan_new_()
|
Completed in 13 milliseconds