Home
last modified time | relevance | path

Searched refs:mthd (Results 1 – 61 of 61) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c43 struct shadow *mthd = (void *)nv_object(bios)->oclass; in shadow_fetch() local
46 void *data = mthd->data; in shadow_fetch()
48 u32 read = mthd->func->read(data, start, limit - start, bios); in shadow_fetch()
92 shadow_image(struct nvkm_bios *bios, int idx, struct shadow *mthd) in shadow_image() argument
113 if (mthd->func->rw) in shadow_image()
126 score += shadow_image(bios, idx + 1, mthd); in shadow_image()
131 shadow_score(struct nvkm_bios *bios, struct shadow *mthd) in shadow_score() argument
135 nv_object(bios)->oclass = &mthd->base; in shadow_score()
136 score = shadow_image(bios, 0, mthd); in shadow_score()
143 shadow_method(struct nvkm_bios *bios, struct shadow *mthd, const char *name) in shadow_method() argument
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_dma.h111 BEGIN_NV04(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NV04() argument
113 OUT_RING(chan, 0x00000000 | (subc << 13) | (size << 18) | mthd); in BEGIN_NV04()
117 BEGIN_NI04(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NI04() argument
119 OUT_RING(chan, 0x40000000 | (subc << 13) | (size << 18) | mthd); in BEGIN_NI04()
123 BEGIN_NVC0(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NVC0() argument
125 OUT_RING(chan, 0x20000000 | (size << 16) | (subc << 13) | (mthd >> 2)); in BEGIN_NVC0()
129 BEGIN_NIC0(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NIC0() argument
131 OUT_RING(chan, 0x60000000 | (size << 16) | (subc << 13) | (mthd >> 2)); in BEGIN_NIC0()
135 BEGIN_IMC0(struct nouveau_channel *chan, int subc, int mthd, u16 data) in BEGIN_IMC0() argument
137 OUT_RING(chan, 0x80000000 | (data << 16) | (subc << 13) | (mthd >> 2)); in BEGIN_IMC0()
Dnouveau_bo.c1126 }, *mthd = _methods; in nouveau_bo_move_init() local
1133 if (mthd->engine) in nouveau_bo_move_init()
1141 mthd->oclass | (mthd->engine << 16), in nouveau_bo_move_init()
1142 mthd->oclass, NULL, 0, in nouveau_bo_move_init()
1145 ret = mthd->init(chan, drm->ttm.copy.handle); in nouveau_bo_move_init()
1151 drm->ttm.move = mthd->exec; in nouveau_bo_move_init()
1153 name = mthd->name; in nouveau_bo_move_init()
1156 } while ((++mthd)->exec); in nouveau_bo_move_init()
Dnv50_display.c1714 struct nv50_disp_mthd_v1 mthd; in nv50_audio_mode_set() member
1719 .base.mthd.version = 1, in nv50_audio_mode_set()
1720 .base.mthd.method = NV50_DISP_MTHD_V1_SOR_HDA_ELD, in nv50_audio_mode_set()
1721 .base.mthd.hasht = nv_encoder->dcb->hasht, in nv50_audio_mode_set()
1722 .base.mthd.hashm = (0xf0ff & nv_encoder->dcb->hashm) | in nv50_audio_mode_set()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Dg84.c34 .mthd = 0x0080,
46 .mthd = 0x0400,
116 .mthd = 0x0000,
161 .mthd = 0x0000,
267 .mthd.core = &g84_disp_core_mthd_chan,
268 .mthd.base = &g84_disp_base_mthd_chan,
269 .mthd.ovly = &g84_disp_ovly_mthd_chan,
270 .mthd.prev = 0x000004,
Dgk104.c34 .mthd = 0x0300,
131 .mthd = 0x0000,
263 .mthd.core = &gk104_disp_core_mthd_chan,
264 .mthd.base = &gf110_disp_base_mthd_chan,
265 .mthd.ovly = &gk104_disp_ovly_mthd_chan,
266 .mthd.prev = -0x020000,
Dgt200.c34 .mthd = 0x0000,
143 .mthd.core = &g84_disp_core_mthd_chan,
144 .mthd.base = &g84_disp_base_mthd_chan,
145 .mthd.ovly = &gt200_disp_ovly_mthd_chan,
146 .mthd.prev = 0x000004,
Dg94.c35 .mthd = 0x0040,
134 .mthd.core = &g94_disp_core_mthd_chan,
135 .mthd.base = &g84_disp_base_mthd_chan,
136 .mthd.ovly = &g84_disp_ovly_mthd_chan,
137 .mthd.prev = 0x000004,
Dgm107.c98 .mthd.core = &gk104_disp_core_mthd_chan,
99 .mthd.base = &gf110_disp_base_mthd_chan,
100 .mthd.ovly = &gk104_disp_ovly_mthd_chan,
101 .mthd.prev = -0x020000,
Dgt215.c99 .mthd.core = &g94_disp_core_mthd_chan,
100 .mthd.base = &g84_disp_base_mthd_chan,
101 .mthd.ovly = &g84_disp_ovly_mthd_chan,
102 .mthd.prev = 0x000004,
Dgk110.c98 .mthd.core = &gk104_disp_core_mthd_chan,
99 .mthd.base = &gf110_disp_base_mthd_chan,
100 .mthd.ovly = &gk104_disp_ovly_mthd_chan,
101 .mthd.prev = -0x020000,
Dgm204.c106 .mthd.core = &gk104_disp_core_mthd_chan,
107 .mthd.base = &gf110_disp_base_mthd_chan,
108 .mthd.ovly = &gk104_disp_ovly_mthd_chan,
109 .mthd.prev = -0x020000,
Dgf110.c154 .mthd = 0x0000,
167 .mthd = 0x0020,
180 .mthd = 0x0020,
193 .mthd = 0x0020,
206 .mthd = 0x0300,
366 .mthd = 0x0000,
416 .mthd = 0x0020,
460 .mthd = 0x0000,
744 .mthd = nv50_disp_main_mthd,
1110 nv50_disp_mthd_chan(priv, NV_DBG_DEBUG, 0, impl->mthd.core); in gf110_disp_intr_supervisor()
[all …]
Dnv50.c323 for (i = 0; list->data[i].mthd; i++) { in nv50_disp_mthd_list()
327 u32 mthd = list->data[i].mthd + (list->mthd * inst); in nv50_disp_mthd_list() local
337 mthd, prev, mods, name ? " // " : "", in nv50_disp_mthd_list()
355 for (i = 0; (list = chan->data[i].mthd) != NULL; i++) { in nv50_disp_mthd_chan()
375 nv50_disp_mthd_list(priv, debug, base, impl->mthd.prev, in nv50_disp_mthd_chan()
383 .mthd = 0x0000,
396 .mthd = 0x0080,
408 .mthd = 0x0040,
418 .mthd = 0x0040,
428 .mthd = 0x0400,
[all …]
Dnv04.c78 nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv04_disp_mthd() argument
90 mthd = args->v0.method; in nv04_disp_mthd()
98 switch (mthd) { in nv04_disp_mthd()
114 .mthd = nv04_disp_mthd,
Dnv50.h51 } mthd; member
129 u32 mthd; member
132 u32 mthd; member
144 const struct nv50_disp_mthd_list *mthd; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dmemx.c12 u32 mthd; member
24 if (memx->c.mthd) { in memx_out()
25 nv_wr32(pmu, 0x10a1c4, (memx->c.size << 16) | memx->c.mthd); in memx_out()
28 memx->c.mthd = 0; in memx_out()
34 memx_cmd(struct nvkm_memx *memx, u32 mthd, u32 size, u32 data[]) in memx_cmd() argument
37 (memx->c.mthd && memx->c.mthd != mthd)) in memx_cmd()
41 memx->c.mthd = mthd; in memx_cmd()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dnv04.c511 nv04_gr_mthd_set_operation(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_set_operation() argument
528 nv04_gr_mthd_surf3d_clip_h(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_surf3d_clip_h() argument
549 nv04_gr_mthd_surf3d_clip_v(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_surf3d_clip_v() argument
578 nv04_gr_mthd_bind_surf2d(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_bind_surf2d() argument
595 nv04_gr_mthd_bind_surf2d_swzsurf(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_bind_surf2d_swzsurf() argument
616 nv01_gr_mthd_bind_patt(struct nvkm_object *object, u32 mthd, in nv01_gr_mthd_bind_patt() argument
631 nv04_gr_mthd_bind_patt(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_bind_patt() argument
646 nv04_gr_mthd_bind_rop(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_bind_rop() argument
661 nv04_gr_mthd_bind_beta1(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_bind_beta1() argument
676 nv04_gr_mthd_bind_beta4(struct nvkm_object *object, u32 mthd, in nv04_gr_mthd_bind_beta4() argument
[all …]
Dnv50.c599 u32 mthd = (addr & 0x00001ffc); in nv50_gr_trap_handler() local
611 class, mthd, datah, datal, addr, r848); in nv50_gr_trap_handler()
626 u32 mthd = (addr & 0x00001ffc); in nv50_gr_trap_handler() local
636 class, mthd, data, addr); in nv50_gr_trap_handler()
795 u32 mthd = (addr & 0x00001ffc); in nv50_gr_intr() local
806 if (handle && !nv_call(handle->object, mthd, data)) in nv50_gr_intr()
839 subc, class, mthd, data); in nv50_gr_intr()
Dgf100.c213 gf100_fermi_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in gf100_fermi_mthd() argument
215 switch (mthd) { in gf100_fermi_mthd()
232 .mthd = gf100_fermi_mthd,
236 gf100_gr_set_shader_exceptions(struct nvkm_object *object, u32 mthd, in gf100_gr_set_shader_exceptions() argument
1077 u32 mthd = (addr & 0x00003ffc); in gf100_gr_ctxctl_isr() local
1082 subc, class, mthd, data); in gf100_gr_ctxctl_isr()
1116 u32 mthd = (addr & 0x00003ffc); in gf100_gr_intr() local
1142 if (!handle || nv_call(handle->object, mthd, data)) { in gf100_gr_intr()
1146 subc, class, mthd, data); in gf100_gr_intr()
1157 class, mthd, data); in gf100_gr_intr()
[all …]
Dctxgk20a.c50 .mthd = gk20a_grctx_pack_mthd,
Dctxgf117.c251 gf100_gr_mthd(priv, oclass->mthd); in gf117_grctx_generate_main()
274 .mthd = gf119_grctx_pack_mthd,
Dctxgk110b.c91 .mthd = gk110_grctx_pack_mthd,
Dctxgf104.c100 .mthd = gf100_grctx_pack_mthd,
Dctxgm206.c71 .mthd = gm204_grctx_pack_mthd,
Dnv10.c478 nv17_gr_mthd_lma_window(struct nvkm_object *object, u32 mthd, in nv17_gr_mthd_lma_window() argument
489 chan->lma_window[(mthd - 0x1638) / 4] = data; in nv17_gr_mthd_lma_window()
491 if (mthd != 0x1644) in nv17_gr_mthd_lma_window()
555 nv17_gr_mthd_lma_enable(struct nvkm_object *object, u32 mthd, in nv17_gr_mthd_lma_enable() argument
1164 u32 mthd = (addr & 0x00001ffc); in nv10_gr_intr() local
1179 if (handle && !nv_call(handle->object, mthd, data)) in nv10_gr_intr()
1204 chid, nvkm_client_name(chan), subc, class, mthd, in nv10_gr_intr()
Dctxgm204.c1017 gf100_gr_mthd(priv, oclass->mthd); in gm204_grctx_generate_main()
1042 .mthd = gm204_grctx_pack_mthd,
Dctxgf110.c351 .mthd = gf110_grctx_pack_mthd,
Dnv20.c201 u32 mthd = (addr & 0x00001ffc); in nv20_gr_intr() local
210 if (handle && !nv_call(handle->object, mthd, data)) in nv20_gr_intr()
229 chid, nvkm_client_name(engctx), subc, class, mthd, in nv20_gr_intr()
Dctxgf119.c519 .mthd = gf119_grctx_pack_mthd,
Dctxgk208.c552 .mthd = gk110_grctx_pack_mthd,
Dctxgk110.c830 .mthd = gk110_grctx_pack_mthd,
Dctxgk104.c986 gf100_gr_mthd(priv, oclass->mthd); in gk104_grctx_generate_main()
1012 .mthd = gk104_grctx_pack_mthd,
Dnv40.c297 u32 mthd = (addr & 0x00001ffc); in nv40_gr_intr() local
309 if (handle && !nv_call(handle->object, mthd, data)) in nv40_gr_intr()
333 class, mthd, data); in nv40_gr_intr()
Dctxgm107.c989 gf100_gr_mthd(priv, oclass->mthd); in gm107_grctx_generate_main()
1016 .mthd = gm107_grctx_pack_mthd,
Dctxgf108.c796 .mthd = gf108_grctx_pack_mthd,
Dctxgf100.h36 const struct gf100_gr_pack *mthd; member
Dctxgf100.c1259 gf100_gr_mthd(priv, oclass->mthd); in gf100_grctx_generate_main()
1382 .mthd = gf100_grctx_pack_mthd,
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
Dobject.h92 int (*mthd)(struct nvkm_object *, u32, void *, u32); member
118 nv_exec(void *obj, u32 mthd, void *data, u32 size) in nv_exec() argument
123 if (mthd >= method->start && mthd <= method->limit) in nv_exec()
124 return method->call(obj, mthd, data, size); in nv_exec()
132 nv_call(void *obj, u32 mthd, u32 data) in nv_call() argument
134 return nv_exec(obj, mthd, &data, sizeof(data)); in nv_call()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
Dnv31.c60 nv31_mpeg_mthd_dma(struct nvkm_object *object, u32 mthd, void *arg, u32 len) in nv31_mpeg_mthd_dma() argument
75 if (mthd == 0x0190) { in nv31_mpeg_mthd_dma()
81 if (mthd == 0x01a0) { in nv31_mpeg_mthd_dma()
202 u32 mthd = nv_rd32(priv, 0x00b234); in nv31_mpeg_intr() local
212 if (type == 0x00000020 && mthd == 0x0000) { in nv31_mpeg_intr()
219 if (handle && !nv_call(handle->object, mthd, data)) in nv31_mpeg_intr()
231 nvkm_client_name(engctx), stat, type, mthd, data); in nv31_mpeg_intr()
Dnv44.c104 u32 mthd = nv_rd32(priv, 0x00b234); in nv44_mpeg_intr() local
114 if (type == 0x00000020 && mthd == 0x0000) { in nv44_mpeg_intr()
121 if (handle && !nv_call(handle->object, mthd, data)) in nv44_mpeg_intr()
134 type, mthd, data); in nv44_mpeg_intr()
Dnv40.c33 nv40_mpeg_mthd_dma(struct nvkm_object *object, u32 mthd, void *arg, u32 len) in nv40_mpeg_mthd_dma() argument
48 if (mthd == 0x0190) { in nv40_mpeg_mthd_dma()
54 if (mthd == 0x01a0) { in nv40_mpeg_mthd_dma()
Dnv50.c128 u32 mthd = nv_rd32(priv, 0x00b234); in nv50_mpeg_intr() local
134 if (type == 0x00000020 && mthd == 0x0000) { in nv50_mpeg_intr()
142 stat, type, mthd, data); in nv50_mpeg_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sw/
Dgf100.c33 gf100_sw_mthd_vblsem_offset(struct nvkm_object *object, u32 mthd, in gf100_sw_mthd_vblsem_offset() argument
38 if (mthd == 0x0400) { in gf100_sw_mthd_vblsem_offset()
49 gf100_sw_mthd_mp_control(struct nvkm_object *object, u32 mthd, in gf100_sw_mthd_mp_control() argument
56 switch (mthd) { in gf100_sw_mthd_mp_control()
Dnv50.c39 nv50_sw_mthd_dma_vblsem(struct nvkm_object *object, u32 mthd, in nv50_sw_mthd_dma_vblsem() argument
61 nv50_sw_mthd_vblsem_offset(struct nvkm_object *object, u32 mthd, in nv50_sw_mthd_vblsem_offset() argument
70 nv50_sw_mthd_vblsem_value(struct nvkm_object *object, u32 mthd, in nv50_sw_mthd_vblsem_value() argument
79 nv50_sw_mthd_vblsem_release(struct nvkm_object *object, u32 mthd, in nv50_sw_mthd_vblsem_release() argument
92 nv50_sw_mthd_flip(struct nvkm_object *object, u32 mthd, void *args, u32 size) in nv50_sw_mthd_flip() argument
Dnv04.c40 nv04_sw_set_ref(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv04_sw_set_ref() argument
49 nv04_sw_flip(struct nvkm_object *object, u32 mthd, void *args, u32 size) in nv04_sw_flip() argument
Dnv10.c39 nv10_sw_flip(struct nvkm_object *object, u32 mthd, void *args, u32 size) in nv10_sw_flip() argument
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/
Dobject.c116 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument
120 struct nvif_ioctl_mthd_v0 mthd; in nvif_object_mthd() member
133 args->mthd.version = 0; in nvif_object_mthd()
134 args->mthd.method = mthd; in nvif_object_mthd()
136 memcpy(args->mthd.data, data, size); in nvif_object_mthd()
138 memcpy(data, args->mthd.data, size); in nvif_object_mthd()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dnv04.c362 const int mthd = addr & 0x1ffc; in nv04_fifo_swmthd() local
373 switch (mthd) { in nv04_fifo_swmthd()
396 if (!nv_call(bind->object, mthd, data)) in nv04_fifo_swmthd()
412 u32 mthd, data; in nv04_fifo_cache_error() local
423 mthd = nv_rd32(priv, NV04_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_cache_error()
426 mthd = nv_rd32(priv, NV40_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_cache_error()
430 if (!nv04_fifo_swmthd(priv, chid, mthd, data)) { in nv04_fifo_cache_error()
435 chid, client_name, (mthd >> 13) & 7, mthd & 0x1ffc, in nv04_fifo_cache_error()
Dgf100.c457 gf100_fifo_swmthd(struct gf100_fifo_priv *priv, u32 chid, u32 mthd, u32 data) in gf100_fifo_swmthd() argument
472 if (!mthd || !nv_call(bind->object, mthd, data)) in gf100_fifo_swmthd()
688 u32 mthd = (addr & 0x00003ffc); in gf100_fifo_intr_pbdma() local
692 if (!gf100_fifo_swmthd(priv, chid, mthd, data)) in gf100_fifo_intr_pbdma()
704 subc, mthd, data); in gf100_fifo_intr_pbdma()
Dgk104.c482 gk104_fifo_swmthd(struct gk104_fifo_priv *priv, u32 chid, u32 mthd, u32 data) in gk104_fifo_swmthd() argument
497 if (!mthd || !nv_call(bind->object, mthd, data)) in gk104_fifo_swmthd()
830 u32 mthd = (addr & 0x00003ffc); in gk104_fifo_intr_pbdma_0() local
834 if (!gk104_fifo_swmthd(priv, chid, mthd, data)) in gk104_fifo_intr_pbdma_0()
847 subc, mthd, data); in gk104_fifo_intr_pbdma_0()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dctrl.c169 nvkm_control_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_control_mthd() argument
171 switch (mthd) { in nvkm_control_mthd()
190 .mthd = nvkm_control_mthd,
Dbase.c153 nvkm_devobj_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_devobj_mthd() argument
155 switch (mthd) { in nvkm_devobj_mthd()
270 .mthd = nvkm_devobj_mthd,
507 .mthd = nvkm_devobj_mthd,
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sec/
Dg98.c87 u32 mthd = (addr & 0x07ff) << 2; in g98_sec_intr() local
100 subc, mthd, data); in g98_sec_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/ce/
Dgt215.c89 u32 mthd = (addr & 0x07ff) << 2; in gt215_ce_intr() local
102 mthd, data); in gt215_ce_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/core/
Dclient.c168 nvkm_client_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_client_mthd() argument
170 switch (mthd) { in nvkm_client_mthd()
195 .mthd = nvkm_client_mthd,
Dioctl.c215 if (ret = -ENODEV, ofuncs->mthd) in nvkm_ioctl_mthd()
216 ret = ofuncs->mthd(object, args->v0.method, data, size); in nvkm_ioctl_mthd()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/cipher/
Dg84.c116 u32 mthd = nv_rd32(priv, 0x102190); in g84_cipher_intr() local
129 mthd, data); in g84_cipher_intr()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/pm/
Dbase.c241 nvkm_perfctr_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_perfctr_mthd() argument
243 switch (mthd) { in nvkm_perfctr_mthd()
317 .mthd = nvkm_perfctr_mthd,
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/ce/fuc/
Dcom.fuc73 // mthd 0x0000, NAME
76 // mthd 0x0100, NOP
79 // mthd 0x0140, PM_TRIGGER
83 // mthd 0x0180-0x018c, DMA_
90 // mthd 0x0200-0x0218, SRC_TILE
99 // mthd 0x0220-0x0238, DST_TILE
108 // mthd 0x0300-0x0304, EXEC, WRCACHE_FLUSH
112 // mthd 0x030c-0x0340, various stuff
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/sec/fuc/
Dg98.fuc0s211 // mthd 0 and 0x100 [NAME, NOP]: ignore
229 // mthd 0x140: PM_TRIGGER
237 // mthd 0x180...: DMA_*