Commit 61671d85 authored by Ben Skeggs's avatar Ben Skeggs Committed by Danilo Krummrich

drm/nouveau/kms: remove push pointer from nv50_dmac

The struct itself lives in nv50_dmac already, just use that.
Signed-off-by: default avatarBen Skeggs <bskeggs@nvidia.com>
Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240726043828.58966-38-bskeggs@nvidia.com
parent 723388bc
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
int int
base507c_update(struct nv50_wndw *wndw, u32 *interlock) base507c_update(struct nv50_wndw *wndw, u32 *interlock)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -48,7 +48,7 @@ base507c_update(struct nv50_wndw *wndw, u32 *interlock) ...@@ -48,7 +48,7 @@ base507c_update(struct nv50_wndw *wndw, u32 *interlock)
int int
base507c_image_clr(struct nv50_wndw *wndw) base507c_image_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 4))) if ((ret = PUSH_WAIT(push, 4)))
...@@ -65,7 +65,7 @@ base507c_image_clr(struct nv50_wndw *wndw) ...@@ -65,7 +65,7 @@ base507c_image_clr(struct nv50_wndw *wndw)
static int static int
base507c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base507c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 13))) if ((ret = PUSH_WAIT(push, 13)))
...@@ -118,7 +118,7 @@ base507c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -118,7 +118,7 @@ base507c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
base507c_xlut_clr(struct nv50_wndw *wndw) base507c_xlut_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -132,7 +132,7 @@ base507c_xlut_clr(struct nv50_wndw *wndw) ...@@ -132,7 +132,7 @@ base507c_xlut_clr(struct nv50_wndw *wndw)
int int
base507c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base507c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -158,7 +158,7 @@ base507c_ntfy_wait_begun(struct nouveau_bo *bo, u32 offset, ...@@ -158,7 +158,7 @@ base507c_ntfy_wait_begun(struct nouveau_bo *bo, u32 offset,
int int
base507c_ntfy_clr(struct nv50_wndw *wndw) base507c_ntfy_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -171,7 +171,7 @@ base507c_ntfy_clr(struct nv50_wndw *wndw) ...@@ -171,7 +171,7 @@ base507c_ntfy_clr(struct nv50_wndw *wndw)
int int
base507c_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base507c_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 3))) if ((ret = PUSH_WAIT(push, 3)))
...@@ -195,7 +195,7 @@ base507c_ntfy_reset(struct nouveau_bo *bo, u32 offset) ...@@ -195,7 +195,7 @@ base507c_ntfy_reset(struct nouveau_bo *bo, u32 offset)
int int
base507c_sema_clr(struct nv50_wndw *wndw) base507c_sema_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -208,7 +208,7 @@ base507c_sema_clr(struct nv50_wndw *wndw) ...@@ -208,7 +208,7 @@ base507c_sema_clr(struct nv50_wndw *wndw)
int int
base507c_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base507c_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 5))) if ((ret = PUSH_WAIT(push, 5)))
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
static int static int
base827c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base827c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 13))) if ((ret = PUSH_WAIT(push, 13)))
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
static int static int
base907c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base907c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 10))) if ((ret = PUSH_WAIT(push, 10)))
...@@ -65,7 +65,7 @@ base907c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -65,7 +65,7 @@ base907c_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
static int static int
base907c_xlut_clr(struct nv50_wndw *wndw) base907c_xlut_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 6))) if ((ret = PUSH_WAIT(push, 6)))
...@@ -84,7 +84,7 @@ base907c_xlut_clr(struct nv50_wndw *wndw) ...@@ -84,7 +84,7 @@ base907c_xlut_clr(struct nv50_wndw *wndw)
static int static int
base907c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base907c_xlut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 6))) if ((ret = PUSH_WAIT(push, 6)))
...@@ -156,7 +156,7 @@ base907c_csc(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw, ...@@ -156,7 +156,7 @@ base907c_csc(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw,
static int static int
base907c_csc_clr(struct nv50_wndw *wndw) base907c_csc_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -170,7 +170,7 @@ base907c_csc_clr(struct nv50_wndw *wndw) ...@@ -170,7 +170,7 @@ base907c_csc_clr(struct nv50_wndw *wndw)
static int static int
base907c_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) base907c_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 13))) if ((ret = PUSH_WAIT(push, 13)))
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
int int
core507d_update(struct nv50_core *core, u32 *interlock, bool ntfy) core507d_update(struct nv50_core *core, u32 *interlock, bool ntfy)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, (ntfy ? 2 : 0) + 3))) if ((ret = PUSH_WAIT(push, (ntfy ? 2 : 0) + 3)))
...@@ -80,7 +80,7 @@ core507d_ntfy_init(struct nouveau_bo *bo, u32 offset) ...@@ -80,7 +80,7 @@ core507d_ntfy_init(struct nouveau_bo *bo, u32 offset)
int int
core507d_read_caps(struct nv50_disp *disp) core507d_read_caps(struct nv50_disp *disp)
{ {
struct nvif_push *push = disp->core->chan.push; struct nvif_push *push = &disp->core->chan.push;
int ret; int ret;
ret = PUSH_WAIT(push, 6); ret = PUSH_WAIT(push, 6);
...@@ -130,7 +130,7 @@ core507d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp) ...@@ -130,7 +130,7 @@ core507d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp)
int int
core507d_init(struct nv50_core *core) core507d_init(struct nv50_core *core)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
int int
corec37d_wndw_owner(struct nv50_core *core) corec37d_wndw_owner(struct nv50_core *core)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
const u32 windows = 8; /*XXX*/ const u32 windows = 8; /*XXX*/
int ret, i; int ret, i;
...@@ -51,7 +51,7 @@ corec37d_wndw_owner(struct nv50_core *core) ...@@ -51,7 +51,7 @@ corec37d_wndw_owner(struct nv50_core *core)
int int
corec37d_update(struct nv50_core *core, u32 *interlock, bool ntfy) corec37d_update(struct nv50_core *core, u32 *interlock, bool ntfy)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, (ntfy ? 2 * 2 : 0) + 5))) if ((ret = PUSH_WAIT(push, (ntfy ? 2 * 2 : 0) + 5)))
...@@ -127,7 +127,7 @@ int corec37d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp) ...@@ -127,7 +127,7 @@ int corec37d_caps_init(struct nouveau_drm *drm, struct nv50_disp *disp)
static int static int
corec37d_init(struct nv50_core *core) corec37d_init(struct nv50_core *core)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
const u32 windows = 8; /*XXX*/ const u32 windows = 8; /*XXX*/
int ret, i; int ret, i;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static int static int
corec57d_init(struct nv50_core *core) corec57d_init(struct nv50_core *core)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
const u32 windows = 8; /*XXX*/ const u32 windows = 8; /*XXX*/
int ret, i; int ret, i;
......
...@@ -26,7 +26,7 @@ static int ...@@ -26,7 +26,7 @@ static int
crc907d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source, crc907d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source,
struct nv50_crc_notifier_ctx *ctx) struct nv50_crc_notifier_ctx *ctx)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 crc_args = NVDEF(NV907D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) | u32 crc_args = NVDEF(NV907D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) |
NVDEF(NV907D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) | NVDEF(NV907D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) |
...@@ -74,7 +74,7 @@ crc907d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source ...@@ -74,7 +74,7 @@ crc907d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source
static int static int
crc907d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx) crc907d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -15,7 +15,7 @@ static int ...@@ -15,7 +15,7 @@ static int
crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source, crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source,
struct nv50_crc_notifier_ctx *ctx) struct nv50_crc_notifier_ctx *ctx)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 crc_args = NVVAL(NVC37D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, i * 4) | u32 crc_args = NVVAL(NVC37D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, i * 4) |
NVDEF(NVC37D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) | NVDEF(NVC37D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) |
...@@ -53,7 +53,7 @@ crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source ...@@ -53,7 +53,7 @@ crcc37d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source
int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx) int crcc37d_set_ctx(struct nv50_head *head, struct nv50_crc_notifier_ctx *ctx)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
static int crcc57d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source, static int crcc57d_set_src(struct nv50_head *head, int or, enum nv50_crc_source_type source,
struct nv50_crc_notifier_ctx *ctx) struct nv50_crc_notifier_ctx *ctx)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 crc_args = NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) | u32 crc_args = NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, CONTROLLING_CHANNEL, CORE) |
NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) | NVDEF(NVC57D, HEAD_SET_CRC_CONTROL, EXPECT_BUFFER_COLLAPSE, FALSE) |
......
...@@ -29,7 +29,7 @@ static int ...@@ -29,7 +29,7 @@ static int
dac507d_ctrl(struct nv50_core *core, int or, u32 ctrl, dac507d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh) struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
u32 sync = 0; u32 sync = 0;
int ret; int ret;
......
...@@ -29,7 +29,7 @@ static int ...@@ -29,7 +29,7 @@ static int
dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl, dac907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh) struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
......
...@@ -127,20 +127,20 @@ nv50_dmac_destroy(struct nv50_dmac *dmac) ...@@ -127,20 +127,20 @@ nv50_dmac_destroy(struct nv50_dmac *dmac)
nv50_chan_destroy(&dmac->base); nv50_chan_destroy(&dmac->base);
nvif_mem_dtor(&dmac->_push.mem); nvif_mem_dtor(&dmac->push.mem);
} }
static void static void
nv50_dmac_kick(struct nvif_push *push) nv50_dmac_kick(struct nvif_push *push)
{ {
struct nv50_dmac *dmac = container_of(push, typeof(*dmac), _push); struct nv50_dmac *dmac = container_of(push, typeof(*dmac), push);
dmac->cur = push->cur - (u32 __iomem *)dmac->_push.mem.object.map.ptr; dmac->cur = push->cur - (u32 __iomem *)dmac->push.mem.object.map.ptr;
if (dmac->put != dmac->cur) { if (dmac->put != dmac->cur) {
/* Push buffer fetches are not coherent with BAR1, we need to ensure /* Push buffer fetches are not coherent with BAR1, we need to ensure
* writes have been flushed right through to VRAM before writing PUT. * writes have been flushed right through to VRAM before writing PUT.
*/ */
if (dmac->push->mem.type & NVIF_MEM_VRAM) { if (dmac->push.mem.type & NVIF_MEM_VRAM) {
struct nvif_device *device = dmac->base.device; struct nvif_device *device = dmac->base.device;
nvif_wr32(&device->object, 0x070000, 0x00000001); nvif_wr32(&device->object, 0x070000, 0x00000001);
nvif_msec(device, 2000, nvif_msec(device, 2000,
...@@ -175,7 +175,7 @@ nv50_dmac_wind(struct nv50_dmac *dmac) ...@@ -175,7 +175,7 @@ nv50_dmac_wind(struct nv50_dmac *dmac)
if (get == 0) { if (get == 0) {
/* Corner-case, HW idle, but non-committed work pending. */ /* Corner-case, HW idle, but non-committed work pending. */
if (dmac->put == 0) if (dmac->put == 0)
nv50_dmac_kick(dmac->push); nv50_dmac_kick(&dmac->push);
if (nvif_msec(dmac->base.device, 2000, if (nvif_msec(dmac->base.device, 2000,
if (NVIF_TV32(&dmac->base.user, NV507C, GET, PTR, >, 0)) if (NVIF_TV32(&dmac->base.user, NV507C, GET, PTR, >, 0))
...@@ -184,7 +184,7 @@ nv50_dmac_wind(struct nv50_dmac *dmac) ...@@ -184,7 +184,7 @@ nv50_dmac_wind(struct nv50_dmac *dmac)
return -ETIMEDOUT; return -ETIMEDOUT;
} }
PUSH_RSVD(dmac->push, PUSH_JUMP(dmac->push, 0)); PUSH_RSVD(&dmac->push, PUSH_JUMP(&dmac->push, 0));
dmac->cur = 0; dmac->cur = 0;
return 0; return 0;
} }
...@@ -192,19 +192,19 @@ nv50_dmac_wind(struct nv50_dmac *dmac) ...@@ -192,19 +192,19 @@ nv50_dmac_wind(struct nv50_dmac *dmac)
static int static int
nv50_dmac_wait(struct nvif_push *push, u32 size) nv50_dmac_wait(struct nvif_push *push, u32 size)
{ {
struct nv50_dmac *dmac = container_of(push, typeof(*dmac), _push); struct nv50_dmac *dmac = container_of(push, typeof(*dmac), push);
int free; int free;
if (WARN_ON(size > dmac->max)) if (WARN_ON(size > dmac->max))
return -EINVAL; return -EINVAL;
dmac->cur = push->cur - (u32 __iomem *)dmac->_push.mem.object.map.ptr; dmac->cur = push->cur - (u32 __iomem *)dmac->push.mem.object.map.ptr;
if (dmac->cur + size >= dmac->max) { if (dmac->cur + size >= dmac->max) {
int ret = nv50_dmac_wind(dmac); int ret = nv50_dmac_wind(dmac);
if (ret) if (ret)
return ret; return ret;
push->cur = dmac->_push.mem.object.map.ptr; push->cur = dmac->push.mem.object.map.ptr;
push->cur = push->cur + dmac->cur; push->cur = push->cur + dmac->cur;
nv50_dmac_kick(push); nv50_dmac_kick(push);
} }
...@@ -217,7 +217,7 @@ nv50_dmac_wait(struct nvif_push *push, u32 size) ...@@ -217,7 +217,7 @@ nv50_dmac_wait(struct nvif_push *push, u32 size)
return -ETIMEDOUT; return -ETIMEDOUT;
} }
push->bgn = dmac->_push.mem.object.map.ptr; push->bgn = dmac->push.mem.object.map.ptr;
push->bgn = push->bgn + dmac->cur; push->bgn = push->bgn + dmac->cur;
push->cur = push->bgn; push->cur = push->bgn;
push->end = push->cur + free; push->end = push->cur + free;
...@@ -252,16 +252,15 @@ nv50_dmac_create(struct nouveau_drm *drm, ...@@ -252,16 +252,15 @@ nv50_dmac_create(struct nouveau_drm *drm,
(nv50_dmac_vram_pushbuf < 0 && device->info.family == NV_DEVICE_INFO_V0_PASCAL)) (nv50_dmac_vram_pushbuf < 0 && device->info.family == NV_DEVICE_INFO_V0_PASCAL))
type |= NVIF_MEM_VRAM; type |= NVIF_MEM_VRAM;
ret = nvif_mem_ctor_map(&drm->mmu, "kmsChanPush", type, 0x1000, &dmac->_push.mem); ret = nvif_mem_ctor_map(&drm->mmu, "kmsChanPush", type, 0x1000, &dmac->push.mem);
if (ret) if (ret)
return ret; return ret;
dmac->_push.wait = nv50_dmac_wait; dmac->push.wait = nv50_dmac_wait;
dmac->_push.kick = nv50_dmac_kick; dmac->push.kick = nv50_dmac_kick;
dmac->push = &dmac->_push; dmac->push.bgn = dmac->push.mem.object.map.ptr;
dmac->push->bgn = dmac->_push.mem.object.map.ptr; dmac->push.cur = dmac->push.bgn;
dmac->push->cur = dmac->push->bgn; dmac->push.end = dmac->push.bgn;
dmac->push->end = dmac->push->bgn;
dmac->max = 0x1000/4 - 1; dmac->max = 0x1000/4 - 1;
/* EVO channels are affected by a HW bug where the last 12 DWORDs /* EVO channels are affected by a HW bug where the last 12 DWORDs
...@@ -270,7 +269,7 @@ nv50_dmac_create(struct nouveau_drm *drm, ...@@ -270,7 +269,7 @@ nv50_dmac_create(struct nouveau_drm *drm,
if (disp->oclass < GV100_DISP) if (disp->oclass < GV100_DISP)
dmac->max -= 12; dmac->max -= 12;
args->pushbuf = nvif_handle(&dmac->_push.mem.object); args->pushbuf = nvif_handle(&dmac->push.mem.object);
ret = nv50_chan_create(device, disp, oclass, head, data, size, ret = nv50_chan_create(device, disp, oclass, head, data, size,
&dmac->base); &dmac->base);
......
...@@ -62,8 +62,7 @@ struct nv50_chan { ...@@ -62,8 +62,7 @@ struct nv50_chan {
struct nv50_dmac { struct nv50_dmac {
struct nv50_chan base; struct nv50_chan base;
struct nvif_push _push; struct nvif_push push;
struct nvif_push *push;
struct nvif_object sync; struct nvif_object sync;
struct nvif_object vram; struct nvif_object vram;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
int int
head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -48,7 +48,7 @@ head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -48,7 +48,7 @@ head507d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -66,7 +66,7 @@ head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -66,7 +66,7 @@ head507d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 bounds = 0; u32 bounds = 0;
int ret; int ret;
...@@ -94,7 +94,7 @@ head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -94,7 +94,7 @@ head507d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head507d_base(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 bounds = 0; u32 bounds = 0;
int ret; int ret;
...@@ -122,7 +122,7 @@ head507d_base(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -122,7 +122,7 @@ head507d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head507d_curs_clr(struct nv50_head *head) head507d_curs_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -139,7 +139,7 @@ head507d_curs_clr(struct nv50_head *head) ...@@ -139,7 +139,7 @@ head507d_curs_clr(struct nv50_head *head)
static int static int
head507d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -188,7 +188,7 @@ head507d_curs_layout(struct nv50_head *head, struct nv50_wndw_atom *asyw, ...@@ -188,7 +188,7 @@ head507d_curs_layout(struct nv50_head *head, struct nv50_wndw_atom *asyw,
int int
head507d_core_clr(struct nv50_head *head) head507d_core_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -202,7 +202,7 @@ head507d_core_clr(struct nv50_head *head) ...@@ -202,7 +202,7 @@ head507d_core_clr(struct nv50_head *head)
static int static int
head507d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -278,7 +278,7 @@ head507d_core_calc(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -278,7 +278,7 @@ head507d_core_calc(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head507d_olut_clr(struct nv50_head *head) head507d_olut_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -293,7 +293,7 @@ head507d_olut_clr(struct nv50_head *head) ...@@ -293,7 +293,7 @@ head507d_olut_clr(struct nv50_head *head)
static int static int
head507d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -345,7 +345,7 @@ head507d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size) ...@@ -345,7 +345,7 @@ head507d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)
int int
head507d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
struct nv50_head_mode *m = &asyh->mode; struct nv50_head_mode *m = &asyh->mode;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -400,7 +400,7 @@ head507d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -400,7 +400,7 @@ head507d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head507d_view(struct nv50_head *head, struct nv50_head_atom *asyh) head507d_view(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static int static int
head827d_curs_clr(struct nv50_head *head) head827d_curs_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -48,7 +48,7 @@ head827d_curs_clr(struct nv50_head *head) ...@@ -48,7 +48,7 @@ head827d_curs_clr(struct nv50_head *head)
static int static int
head827d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) head827d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -73,7 +73,7 @@ head827d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -73,7 +73,7 @@ head827d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head827d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) head827d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -110,7 +110,7 @@ head827d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -110,7 +110,7 @@ head827d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head827d_olut_clr(struct nv50_head *head) head827d_olut_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -127,7 +127,7 @@ head827d_olut_clr(struct nv50_head *head) ...@@ -127,7 +127,7 @@ head827d_olut_clr(struct nv50_head *head)
static int static int
head827d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh) head827d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
int int
head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -57,7 +57,7 @@ head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -57,7 +57,7 @@ head907d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -77,7 +77,7 @@ head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -77,7 +77,7 @@ head907d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -95,7 +95,7 @@ head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -95,7 +95,7 @@ head907d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head907d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 bounds = 0; u32 bounds = 0;
int ret; int ret;
...@@ -124,7 +124,7 @@ head907d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -124,7 +124,7 @@ head907d_ovly(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head907d_base(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 bounds = 0; u32 bounds = 0;
int ret; int ret;
...@@ -152,7 +152,7 @@ head907d_base(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -152,7 +152,7 @@ head907d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head907d_curs_clr(struct nv50_head *head) head907d_curs_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -171,7 +171,7 @@ head907d_curs_clr(struct nv50_head *head) ...@@ -171,7 +171,7 @@ head907d_curs_clr(struct nv50_head *head)
int int
head907d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -195,7 +195,7 @@ head907d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -195,7 +195,7 @@ head907d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head907d_core_clr(struct nv50_head *head) head907d_core_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -209,7 +209,7 @@ head907d_core_clr(struct nv50_head *head) ...@@ -209,7 +209,7 @@ head907d_core_clr(struct nv50_head *head)
int int
head907d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -246,7 +246,7 @@ head907d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -246,7 +246,7 @@ head907d_core_set(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head907d_olut_clr(struct nv50_head *head) head907d_olut_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -263,7 +263,7 @@ head907d_olut_clr(struct nv50_head *head) ...@@ -263,7 +263,7 @@ head907d_olut_clr(struct nv50_head *head)
int int
head907d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -322,7 +322,7 @@ bool head907d_ilut_check(int size) ...@@ -322,7 +322,7 @@ bool head907d_ilut_check(int size)
int int
head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
struct nv50_head_mode *m = &asyh->mode; struct nv50_head_mode *m = &asyh->mode;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -378,7 +378,7 @@ head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -378,7 +378,7 @@ head907d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
head907d_view(struct nv50_head *head, struct nv50_head_atom *asyh) head907d_view(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
static int static int
head917d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) head917d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -48,7 +48,7 @@ head917d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -48,7 +48,7 @@ head917d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head917d_base(struct nv50_head *head, struct nv50_head_atom *asyh) head917d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u32 bounds = 0; u32 bounds = 0;
int ret; int ret;
...@@ -77,7 +77,7 @@ head917d_base(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -77,7 +77,7 @@ head917d_base(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
head917d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) head917d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
static int static int
headc37d_or(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u8 depth; u8 depth;
int ret; int ret;
...@@ -64,7 +64,7 @@ headc37d_or(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -64,7 +64,7 @@ headc37d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
headc37d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -85,7 +85,7 @@ headc37d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -85,7 +85,7 @@ headc37d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
headc37d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -104,7 +104,7 @@ headc37d_dither(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -104,7 +104,7 @@ headc37d_dither(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
headc37d_curs_clr(struct nv50_head *head) headc37d_curs_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -122,7 +122,7 @@ headc37d_curs_clr(struct nv50_head *head) ...@@ -122,7 +122,7 @@ headc37d_curs_clr(struct nv50_head *head)
int int
headc37d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_curs_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -161,7 +161,7 @@ headc37d_curs_format(struct nv50_head *head, struct nv50_wndw_atom *asyw, ...@@ -161,7 +161,7 @@ headc37d_curs_format(struct nv50_head *head, struct nv50_wndw_atom *asyw,
static int static int
headc37d_olut_clr(struct nv50_head *head) headc37d_olut_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -175,7 +175,7 @@ headc37d_olut_clr(struct nv50_head *head) ...@@ -175,7 +175,7 @@ headc37d_olut_clr(struct nv50_head *head)
static int static int
headc37d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -209,7 +209,7 @@ headc37d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size) ...@@ -209,7 +209,7 @@ headc37d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)
static int static int
headc37d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
struct nv50_head_mode *m = &asyh->mode; struct nv50_head_mode *m = &asyh->mode;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -254,7 +254,7 @@ headc37d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -254,7 +254,7 @@ headc37d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
int int
headc37d_view(struct nv50_head *head, struct nv50_head_atom *asyh) headc37d_view(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
static int static int
headc57d_display_id(struct nv50_head *head, u32 display_id) headc57d_display_id(struct nv50_head *head, u32 display_id)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -43,7 +43,7 @@ headc57d_display_id(struct nv50_head *head, u32 display_id) ...@@ -43,7 +43,7 @@ headc57d_display_id(struct nv50_head *head, u32 display_id)
static int static int
headc57d_or(struct nv50_head *head, struct nv50_head_atom *asyh) headc57d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
u8 depth; u8 depth;
int ret; int ret;
...@@ -78,7 +78,7 @@ headc57d_or(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -78,7 +78,7 @@ headc57d_or(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
headc57d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) headc57d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -96,7 +96,7 @@ headc57d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh) ...@@ -96,7 +96,7 @@ headc57d_procamp(struct nv50_head *head, struct nv50_head_atom *asyh)
static int static int
headc57d_olut_clr(struct nv50_head *head) headc57d_olut_clr(struct nv50_head *head)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -110,7 +110,7 @@ headc57d_olut_clr(struct nv50_head *head) ...@@ -110,7 +110,7 @@ headc57d_olut_clr(struct nv50_head *head)
static int static int
headc57d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh) headc57d_olut_set(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
...@@ -201,7 +201,7 @@ headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size) ...@@ -201,7 +201,7 @@ headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size)
static int static int
headc57d_mode(struct nv50_head *head, struct nv50_head_atom *asyh) headc57d_mode(struct nv50_head *head, struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = nv50_disp(head->base.base.dev)->core->chan.push; struct nvif_push *push = &nv50_disp(head->base.base.dev)->core->chan.push;
struct nv50_head_mode *m = &asyh->mode; struct nv50_head_mode *m = &asyh->mode;
const int i = head->base.index; const int i = head->base.index;
int ret; int ret;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
int int
ovly507e_scale_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ovly507e_scale_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 4))) if ((ret = PUSH_WAIT(push, 4)))
...@@ -55,7 +55,7 @@ ovly507e_scale_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -55,7 +55,7 @@ ovly507e_scale_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
static int static int
ovly507e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ovly507e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 12))) if ((ret = PUSH_WAIT(push, 12)))
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
static int static int
ovly827e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ovly827e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 12))) if ((ret = PUSH_WAIT(push, 12)))
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static int static int
ovly907e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ovly907e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 12))) if ((ret = PUSH_WAIT(push, 12)))
......
...@@ -30,7 +30,7 @@ static int ...@@ -30,7 +30,7 @@ static int
pior507d_ctrl(struct nv50_core *core, int or, u32 ctrl, pior507d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh) struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if (asyh) { if (asyh) {
......
...@@ -30,7 +30,7 @@ static int ...@@ -30,7 +30,7 @@ static int
sor507d_ctrl(struct nv50_core *core, int or, u32 ctrl, sor507d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh) struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if (asyh) { if (asyh) {
......
...@@ -32,7 +32,7 @@ static int ...@@ -32,7 +32,7 @@ static int
sor907d_ctrl(struct nv50_core *core, int or, u32 ctrl, sor907d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh) struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
......
...@@ -29,7 +29,7 @@ static int ...@@ -29,7 +29,7 @@ static int
sorc37d_ctrl(struct nv50_core *core, int or, u32 ctrl, sorc37d_ctrl(struct nv50_core *core, int or, u32 ctrl,
struct nv50_head_atom *asyh) struct nv50_head_atom *asyh)
{ {
struct nvif_push *push = core->chan.push; struct nvif_push *push = &core->chan.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
static int static int
wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock) wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock)
{ {
struct nvif_push *push = wndw->wimm.push; struct nvif_push *push = &wndw->wimm.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -46,7 +46,7 @@ wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock) ...@@ -46,7 +46,7 @@ wimmc37b_update(struct nv50_wndw *wndw, u32 *interlock)
static int static int
wimmc37b_point(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wimmc37b_point(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wimm.push; struct nvif_push *push = &wndw->wimm.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
......
...@@ -39,7 +39,7 @@ wndwc37e_csc_clr(struct nv50_wndw *wndw) ...@@ -39,7 +39,7 @@ wndwc37e_csc_clr(struct nv50_wndw *wndw)
static int static int
wndwc37e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc37e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 13))) if ((ret = PUSH_WAIT(push, 13)))
...@@ -52,7 +52,7 @@ wndwc37e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -52,7 +52,7 @@ wndwc37e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
static int static int
wndwc37e_ilut_clr(struct nv50_wndw *wndw) wndwc37e_ilut_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -65,7 +65,7 @@ wndwc37e_ilut_clr(struct nv50_wndw *wndw) ...@@ -65,7 +65,7 @@ wndwc37e_ilut_clr(struct nv50_wndw *wndw)
static int static int
wndwc37e_ilut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc37e_ilut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 4))) if ((ret = PUSH_WAIT(push, 4)))
...@@ -94,7 +94,7 @@ wndwc37e_ilut(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw, int size) ...@@ -94,7 +94,7 @@ wndwc37e_ilut(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw, int size)
int int
wndwc37e_blend_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc37e_blend_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 8))) if ((ret = PUSH_WAIT(push, 8)))
...@@ -139,7 +139,7 @@ wndwc37e_blend_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -139,7 +139,7 @@ wndwc37e_blend_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
wndwc37e_image_clr(struct nv50_wndw *wndw) wndwc37e_image_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 4))) if ((ret = PUSH_WAIT(push, 4)))
...@@ -156,7 +156,7 @@ wndwc37e_image_clr(struct nv50_wndw *wndw) ...@@ -156,7 +156,7 @@ wndwc37e_image_clr(struct nv50_wndw *wndw)
static int static int
wndwc37e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc37e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 17))) if ((ret = PUSH_WAIT(push, 17)))
...@@ -209,7 +209,7 @@ wndwc37e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -209,7 +209,7 @@ wndwc37e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
wndwc37e_ntfy_clr(struct nv50_wndw *wndw) wndwc37e_ntfy_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -222,7 +222,7 @@ wndwc37e_ntfy_clr(struct nv50_wndw *wndw) ...@@ -222,7 +222,7 @@ wndwc37e_ntfy_clr(struct nv50_wndw *wndw)
int int
wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 3))) if ((ret = PUSH_WAIT(push, 3)))
...@@ -239,7 +239,7 @@ wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -239,7 +239,7 @@ wndwc37e_ntfy_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
wndwc37e_sema_clr(struct nv50_wndw *wndw) wndwc37e_sema_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -252,7 +252,7 @@ wndwc37e_sema_clr(struct nv50_wndw *wndw) ...@@ -252,7 +252,7 @@ wndwc37e_sema_clr(struct nv50_wndw *wndw)
int int
wndwc37e_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc37e_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 5))) if ((ret = PUSH_WAIT(push, 5)))
...@@ -268,7 +268,7 @@ wndwc37e_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -268,7 +268,7 @@ wndwc37e_sema_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
wndwc37e_update(struct nv50_wndw *wndw, u32 *interlock) wndwc37e_update(struct nv50_wndw *wndw, u32 *interlock)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 5))) if ((ret = PUSH_WAIT(push, 5)))
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
static int static int
wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 17))) if ((ret = PUSH_WAIT(push, 17)))
...@@ -81,7 +81,7 @@ wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -81,7 +81,7 @@ wndwc57e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
wndwc57e_csc_clr(struct nv50_wndw *wndw) wndwc57e_csc_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
const u32 identity[12] = { const u32 identity[12] = {
0x00010000, 0x00000000, 0x00000000, 0x00000000, 0x00010000, 0x00000000, 0x00000000, 0x00000000,
0x00000000, 0x00010000, 0x00000000, 0x00000000, 0x00000000, 0x00010000, 0x00000000, 0x00000000,
...@@ -99,7 +99,7 @@ wndwc57e_csc_clr(struct nv50_wndw *wndw) ...@@ -99,7 +99,7 @@ wndwc57e_csc_clr(struct nv50_wndw *wndw)
int int
wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 13))) if ((ret = PUSH_WAIT(push, 13)))
...@@ -112,7 +112,7 @@ wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) ...@@ -112,7 +112,7 @@ wndwc57e_csc_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
int int
wndwc57e_ilut_clr(struct nv50_wndw *wndw) wndwc57e_ilut_clr(struct nv50_wndw *wndw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 2))) if ((ret = PUSH_WAIT(push, 2)))
...@@ -125,7 +125,7 @@ wndwc57e_ilut_clr(struct nv50_wndw *wndw) ...@@ -125,7 +125,7 @@ wndwc57e_ilut_clr(struct nv50_wndw *wndw)
int int
wndwc57e_ilut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc57e_ilut_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 4))) if ((ret = PUSH_WAIT(push, 4)))
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static int static int
wndwc67e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw) wndwc67e_image_set(struct nv50_wndw *wndw, struct nv50_wndw_atom *asyw)
{ {
struct nvif_push *push = wndw->wndw.push; struct nvif_push *push = &wndw->wndw.push;
int ret; int ret;
if ((ret = PUSH_WAIT(push, 17))) if ((ret = PUSH_WAIT(push, 17)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment