Home
last modified time | relevance | path

Searched refs:engctx (Results 1 – 17 of 17) sorted by relevance

/drivers/gpu/drm/nouveau/core/core/
Dengctx.c37 struct nouveau_engctx *engctx; in nouveau_engctx_exists() local
40 list_for_each_entry(engctx, &engine->contexts, head) { in nouveau_engctx_exists()
41 parctx = nv_pclass(nv_object(engctx), NV_PARENT_CLASS); in nouveau_engctx_exists()
43 atomic_inc(&nv_object(engctx)->refcount); in nouveau_engctx_exists()
44 *pobject = engctx; in nouveau_engctx_exists()
62 struct nouveau_object *engctx; in nouveau_engctx_create_() local
88 engctx = *pobject; in nouveau_engctx_create_()
100 nouveau_object_ref(NULL, &engctx); in nouveau_engctx_create_()
106 list_add(&nv_engctx(engctx)->head, &engine->contexts); in nouveau_engctx_create_()
107 nv_engctx(engctx)->addr = ~0ULL; in nouveau_engctx_create_()
[all …]
Dhandle.c195 nouveau_handle_get_class(struct nouveau_object *engctx, u16 oclass) in nouveau_handle_get_class() argument
198 if (engctx && (namedb = (void *)nv_pclass(engctx, NV_NAMEDB_CLASS))) in nouveau_handle_get_class()
204 nouveau_handle_get_vinst(struct nouveau_object *engctx, u64 vinst) in nouveau_handle_get_vinst() argument
207 if (engctx && (namedb = (void *)nv_pclass(engctx, NV_NAMEDB_CLASS))) in nouveau_handle_get_vinst()
213 nouveau_handle_get_cinst(struct nouveau_object *engctx, u32 cinst) in nouveau_handle_get_cinst() argument
216 if (engctx && (namedb = (void *)nv_pclass(engctx, NV_NAMEDB_CLASS))) in nouveau_handle_get_cinst()
Dobject.c197 struct nouveau_object *engctx = NULL; in nouveau_object_new() local
240 data, size, &engctx); in nouveau_object_new()
244 nouveau_object_ref(parent, &engctx); in nouveau_object_new()
248 ret = nouveau_object_ctor(engctx, engine, oclass, data, size, &object); in nouveau_object_new()
270 nouveau_object_ref(NULL, &engctx); in nouveau_object_new()
/drivers/gpu/drm/nouveau/core/engine/copy/
Dnva3.c87 struct nouveau_object *engctx; in nva3_copy_intr() local
98 engctx = nouveau_engctx_get(engine, inst); in nva3_copy_intr()
99 chid = pfifo->chid(pfifo, engctx); in nva3_copy_intr()
105 chid, inst << 12, nouveau_client_name(engctx), subc, in nva3_copy_intr()
116 nouveau_engctx_put(engctx); in nva3_copy_intr()
/drivers/gpu/drm/nouveau/core/engine/crypt/
Dnv98.c88 struct nouveau_object *engctx; in nv98_crypt_intr() local
100 engctx = nouveau_engctx_get(engine, inst); in nv98_crypt_intr()
101 chid = pfifo->chid(pfifo, engctx); in nv98_crypt_intr()
107 chid, (u64)inst << 12, nouveau_client_name(engctx), in nv98_crypt_intr()
118 nouveau_engctx_put(engctx); in nv98_crypt_intr()
Dnv84.c118 struct nouveau_object *engctx; in nv84_crypt_intr() local
126 engctx = nouveau_engctx_get(engine, inst); in nv84_crypt_intr()
127 chid = pfifo->chid(pfifo, engctx); in nv84_crypt_intr()
133 chid, (u64)inst << 12, nouveau_client_name(engctx), in nv84_crypt_intr()
140 nouveau_engctx_put(engctx); in nv84_crypt_intr()
/drivers/gpu/drm/nouveau/core/engine/fifo/
Dnv40.c108 struct nouveau_object *engctx) in nv40_fifo_context_attach() argument
115 switch (nv_engidx(engctx->engine)) { in nv40_fifo_context_attach()
131 nv_engctx(engctx)->addr = nv_gpuobj(engctx)->addr >> 4; in nv40_fifo_context_attach()
135 nv_wr32(priv, reg, nv_engctx(engctx)->addr); in nv40_fifo_context_attach()
136 nv_wo32(priv->ramfc, chan->ramfc + ctx, nv_engctx(engctx)->addr); in nv40_fifo_context_attach()
145 struct nouveau_object *engctx) in nv40_fifo_context_detach() argument
152 switch (nv_engidx(engctx->engine)) { in nv40_fifo_context_detach()
Dnvc0.c420 struct nouveau_object *engctx = NULL; in nvc0_fifo_isr_vm_fault() local
452 engctx = nouveau_engctx_get(engine, inst); in nvc0_fifo_isr_vm_fault()
456 nouveau_client_name(engctx)); in nvc0_fifo_isr_vm_fault()
458 nouveau_engctx_put(engctx); in nvc0_fifo_isr_vm_fault()
Dnve0.c423 struct nouveau_object *engctx = NULL; in nve0_fifo_isr_vm_fault() local
441 engctx = nouveau_engctx_get(engine, inst); in nve0_fifo_isr_vm_fault()
446 nouveau_client_name(engctx)); in nve0_fifo_isr_vm_fault()
448 nouveau_engctx_put(engctx); in nve0_fifo_isr_vm_fault()
/drivers/gpu/drm/nouveau/core/engine/graph/
Dnve0.c277 struct nouveau_object *engctx) in nve0_graph_trap_isr() argument
286 chid, inst, nouveau_client_name(engctx), stat); in nve0_graph_trap_isr()
295 chid, inst, nouveau_client_name(engctx), stat); in nve0_graph_trap_isr()
304 chid, inst, nouveau_client_name(engctx)); in nve0_graph_trap_isr()
322 chid, inst, nouveau_client_name(engctx)); in nve0_graph_trap_isr()
333 rop, chid, inst, nouveau_client_name(engctx), in nve0_graph_trap_isr()
344 chid, inst, nouveau_client_name(engctx), trap); in nve0_graph_trap_isr()
354 struct nouveau_object *engctx; in nve0_graph_intr() local
367 engctx = nouveau_engctx_get(engine, inst); in nve0_graph_intr()
368 chid = pfifo->chid(pfifo, engctx); in nve0_graph_intr()
[all …]
Dnv50.c544 int chid, u64 inst, struct nouveau_object *engctx) in nv50_graph_trap_handler() argument
580 nouveau_client_name(engctx), subc, in nv50_graph_trap_handler()
605 nouveau_client_name(engctx), subc, in nv50_graph_trap_handler()
758 struct nouveau_object *engctx; in nv50_graph_intr() local
771 engctx = nouveau_engctx_get(engine, inst); in nv50_graph_intr()
772 chid = pfifo->chid(pfifo, engctx); in nv50_graph_intr()
775 handle = nouveau_handle_get_class(engctx, class); in nv50_graph_intr()
790 engctx)) in nv50_graph_intr()
803 chid, (u64)inst << 12, nouveau_client_name(engctx), in nv50_graph_intr()
810 nouveau_engctx_put(engctx); in nv50_graph_intr()
Dnv40.c298 struct nouveau_object *engctx; in nv40_graph_intr() local
313 engctx = nouveau_engctx_get(engine, inst); in nv40_graph_intr()
314 chid = pfifo->chid(pfifo, engctx); in nv40_graph_intr()
318 handle = nouveau_handle_get_class(engctx, class); in nv40_graph_intr()
342 chid, inst << 4, nouveau_client_name(engctx), subc, in nv40_graph_intr()
346 nouveau_engctx_put(engctx); in nv40_graph_intr()
Dnv20.c200 struct nouveau_object *engctx; in nv20_graph_intr() local
214 engctx = nouveau_engctx_get(engine, chid); in nv20_graph_intr()
217 handle = nouveau_handle_get_class(engctx, class); in nv20_graph_intr()
237 chid, nouveau_client_name(engctx), subc, class, mthd, in nv20_graph_intr()
241 nouveau_engctx_put(engctx); in nv20_graph_intr()
Dnvc0.c431 struct nouveau_object *engctx; in nvc0_graph_intr() local
444 engctx = nouveau_engctx_get(engine, inst); in nvc0_graph_intr()
445 chid = pfifo->chid(pfifo, engctx); in nvc0_graph_intr()
448 handle = nouveau_handle_get_class(engctx, class); in nvc0_graph_intr()
452 chid, inst << 12, nouveau_client_name(engctx), in nvc0_graph_intr()
463 chid, inst << 12, nouveau_client_name(engctx), subc, in nvc0_graph_intr()
473 chid, inst << 12, nouveau_client_name(engctx), subc, in nvc0_graph_intr()
481 nouveau_client_name(engctx)); in nvc0_graph_intr()
499 nouveau_engctx_put(engctx); in nvc0_graph_intr()
/drivers/gpu/drm/nouveau/core/engine/mpeg/
Dnv31.c202 struct nouveau_object *engctx; in nv31_mpeg_intr() local
213 engctx = nouveau_engctx_get(engine, inst); in nv31_mpeg_intr()
214 chid = pfifo->chid(pfifo, engctx); in nv31_mpeg_intr()
224 handle = nouveau_handle_get_class(engctx, 0x3174); in nv31_mpeg_intr()
237 chid, inst << 4, nouveau_client_name(engctx), stat, in nv31_mpeg_intr()
241 nouveau_engctx_put(engctx); in nv31_mpeg_intr()
/drivers/gpu/drm/nouveau/core/subdev/fb/
Dnv50.c344 struct nouveau_object *engctx = NULL; in nv50_fb_intr() local
382 engctx = nouveau_engctx_get(engine, chan); in nv50_fb_intr()
383 if (engctx) in nv50_fb_intr()
388 if (!engctx) in nv50_fb_intr()
395 nouveau_client_name(engctx)); in nv50_fb_intr()
397 nouveau_engctx_put(engctx); in nv50_fb_intr()
/drivers/gpu/drm/nouveau/
DMakefile11 nouveau-y += core/core/engctx.o