| .. | .. |
|---|
| 25 | 25 | |
|---|
| 26 | 26 | #include <engine/fifo.h> |
|---|
| 27 | 27 | |
|---|
| 28 | +u32 |
|---|
| 29 | +nvkm_gr_ctxsw_inst(struct nvkm_device *device) |
|---|
| 30 | +{ |
|---|
| 31 | + struct nvkm_gr *gr = device->gr; |
|---|
| 32 | + if (gr && gr->func->ctxsw.inst) |
|---|
| 33 | + return gr->func->ctxsw.inst(gr); |
|---|
| 34 | + return 0; |
|---|
| 35 | +} |
|---|
| 36 | + |
|---|
| 37 | +int |
|---|
| 38 | +nvkm_gr_ctxsw_resume(struct nvkm_device *device) |
|---|
| 39 | +{ |
|---|
| 40 | + struct nvkm_gr *gr = device->gr; |
|---|
| 41 | + if (gr && gr->func->ctxsw.resume) |
|---|
| 42 | + return gr->func->ctxsw.resume(gr); |
|---|
| 43 | + return 0; |
|---|
| 44 | +} |
|---|
| 45 | + |
|---|
| 46 | +int |
|---|
| 47 | +nvkm_gr_ctxsw_pause(struct nvkm_device *device) |
|---|
| 48 | +{ |
|---|
| 49 | + struct nvkm_gr *gr = device->gr; |
|---|
| 50 | + if (gr && gr->func->ctxsw.pause) |
|---|
| 51 | + return gr->func->ctxsw.pause(gr); |
|---|
| 52 | + return 0; |
|---|
| 53 | +} |
|---|
| 54 | + |
|---|
| 28 | 55 | static bool |
|---|
| 29 | 56 | nvkm_gr_chsw_load(struct nvkm_engine *engine) |
|---|
| 30 | 57 | { |
|---|