Home
last modified time | relevance | path

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

1234

/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dshadow.c39 shadow_fetch(struct nvkm_bios *bios, struct shadow *mthd, u32 upto) in shadow_fetch() argument
43 void *data = mthd->data; in shadow_fetch()
45 u32 read = mthd->func->read(data, start, limit - start, bios); in shadow_fetch()
52 shadow_image(struct nvkm_bios *bios, int idx, u32 offset, struct shadow *mthd) in shadow_image() argument
58 if (mthd->func->no_pcir) { in shadow_image()
61 image.size = mthd->func->size(mthd->data); in shadow_image()
64 if (!shadow_fetch(bios, mthd, offset + 0x1000)) { in shadow_image()
78 if (!shadow_fetch(bios, mthd, image.base + image.size)) { in shadow_image()
85 if (!mthd->func->ignore_checksum && in shadow_image()
89 if (!mthd->func->require_checksum) { in shadow_image()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dnv04.c758 nv03_gr_mthd_gdi(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) in nv03_gr_mthd_gdi() argument
761 switch (mthd) { in nv03_gr_mthd_gdi()
774 nv04_gr_mthd_gdi(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) in nv04_gr_mthd_gdi() argument
777 switch (mthd) { in nv04_gr_mthd_gdi()
791 nv01_gr_mthd_blit(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) in nv01_gr_mthd_blit() argument
794 switch (mthd) { in nv01_gr_mthd_blit()
810 nv04_gr_mthd_blit(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) in nv04_gr_mthd_blit() argument
813 switch (mthd) { in nv04_gr_mthd_blit()
829 nv04_gr_mthd_iifc(struct nvkm_device *device, u32 inst, u32 mthd, u32 data) in nv04_gr_mthd_iifc() argument
832 switch (mthd) { in nv04_gr_mthd_iifc()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
H A Dmemx.c11 u32 mthd; member
23 if (memx->c.mthd) { in memx_out()
24 nvkm_wr32(device, 0x10a1c4, (memx->c.size << 16) | memx->c.mthd); in memx_out()
27 memx->c.mthd = 0; in memx_out()
33 memx_cmd(struct nvkm_memx *memx, u32 mthd, u32 size, u32 data[]) in memx_cmd() argument
36 (memx->c.mthd && memx->c.mthd != mthd)) in memx_cmd()
40 memx->c.mthd = mthd; in memx_cmd()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/sw/
H A Dnv04.c60 nv04_nvsw_mthd(struct nvkm_nvsw *nvsw, u32 mthd, void *data, u32 size) in nv04_nvsw_mthd() argument
62 switch (mthd) { in nv04_nvsw_mthd()
73 .mthd = nv04_nvsw_mthd,
88 nv04_sw_chan_mthd(struct nvkm_sw_chan *base, int subc, u32 mthd, u32 data) in nv04_sw_chan_mthd() argument
92 switch (mthd) { in nv04_sw_chan_mthd()
105 .mthd = nv04_sw_chan_mthd,
H A Dnvsw.c44 nvkm_nvsw_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_nvsw_mthd() argument
48 if (nvsw->func->mthd) in nvkm_nvsw_mthd()
49 return nvsw->func->mthd(nvsw, mthd, data, size); in nvkm_nvsw_mthd()
56 .mthd = nvkm_nvsw_mthd,
H A Dchan.c32 nvkm_sw_chan_mthd(struct nvkm_sw_chan *chan, int subc, u32 mthd, u32 data) in nvkm_sw_chan_mthd() argument
34 switch (mthd) { in nvkm_sw_chan_mthd()
41 if (chan->func->mthd) in nvkm_sw_chan_mthd()
42 return chan->func->mthd(chan, subc, mthd, data); in nvkm_sw_chan_mthd()
H A Dchan.h23 bool (*mthd)(struct nvkm_sw_chan *, int subc, u32 mthd, u32 data); member
29 bool nvkm_sw_chan_mthd(struct nvkm_sw_chan *, int subc, u32 mthd, u32 data);
H A Dnvsw.h14 int (*mthd)(struct nvkm_nvsw *, u32 mthd, void *data, u32 size); member
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/
H A Dnv31.c124 nv31_mpeg_mthd_dma(struct nvkm_device *device, u32 mthd, u32 data) in nv31_mpeg_mthd_dma() argument
142 if (mthd == 0x0190) { in nv31_mpeg_mthd_dma()
149 if (mthd == 0x01a0) { in nv31_mpeg_mthd_dma()
168 nv31_mpeg_mthd(struct nv31_mpeg *mpeg, u32 mthd, u32 data) in nv31_mpeg_mthd() argument
171 switch (mthd) { in nv31_mpeg_mthd()
175 return mpeg->func->mthd_dma(device, mthd, data); in nv31_mpeg_mthd()
190 u32 mthd = nvkm_rd32(device, 0x00b234); in nv31_mpeg_intr() local
199 if (type == 0x00000020 && mthd == 0x0000) { in nv31_mpeg_intr()
205 if (nv31_mpeg_mthd(mpeg, mthd, data)) in nv31_mpeg_intr()
217 "unknown", stat, type, mthd, data); in nv31_mpeg_intr()
H A Dnv44.c128 nv44_mpeg_mthd(struct nvkm_device *device, u32 mthd, u32 data) in nv44_mpeg_mthd() argument
130 switch (mthd) { in nv44_mpeg_mthd()
134 return nv40_mpeg_mthd_dma(device, mthd, data); in nv44_mpeg_mthd()
152 u32 mthd = nvkm_rd32(device, 0x00b234); in nv44_mpeg_intr() local
168 if (type == 0x00000020 && mthd == 0x0000) { in nv44_mpeg_intr()
174 if (nv44_mpeg_mthd(subdev->device, mthd, data)) in nv44_mpeg_intr()
186 stat, type, mthd, data); in nv44_mpeg_intr()
H A Dnv40.c31 nv40_mpeg_mthd_dma(struct nvkm_device *device, u32 mthd, u32 data) in nv40_mpeg_mthd_dma() argument
50 if (mthd == 0x0190) { in nv40_mpeg_mthd_dma()
56 if (mthd == 0x01a0) { in nv40_mpeg_mthd_dma()
H A Dnv50.c67 u32 mthd = nvkm_rd32(device, 0x00b234); in nv50_mpeg_intr() local
73 if (type == 0x00000020 && mthd == 0x0000) { in nv50_mpeg_intr()
81 stat, type, mthd, data); in nv50_mpeg_intr()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dgp102.c91 .mthd = &gk104_disp_ovly_mthd,
99 .mthd = &gf119_disp_base_mthd,
144 .mthd = &gk104_disp_core_mthd,
152 u32 mthd = nvkm_rd32(device, 0x6111f0 + (chid * 12)); in gp102_disp_intr_error() local
157 chid, (mthd & 0x0000ffc), data, mthd, unkn); in gp102_disp_intr_error()
160 switch (mthd & 0xffc) { in gp102_disp_intr_error()
H A Dg84.c138 .mthd = 0x0000,
180 .mthd = &g84_disp_ovly_mthd,
185 .mthd = 0x0000,
230 .mthd = &g84_disp_base_mthd,
235 .mthd = 0x0080,
247 .mthd = 0x0400,
317 .mthd = &g84_disp_core_mthd,
H A Dchan.h10 const struct nvkm_disp_chan_mthd *mthd; member
67 const struct nvkm_disp_chan_mthd *mthd; member
94 u32 mthd; member
97 u32 mthd; member
110 const struct nvkm_disp_mthd_list *mthd; member
H A Dnv50.c424 for (i = 0; list->data[i].mthd; i++) { in nv50_disp_mthd_list()
428 u32 mthd = list->data[i].mthd + (list->mthd * inst); in nv50_disp_mthd_list() local
439 mthd, prev, mods, name ? " // " : "", in nv50_disp_mthd_list()
450 const struct nvkm_disp_chan_mthd *mthd = chan->mthd; in nv50_disp_chan_mthd() local
456 if (!mthd) in nv50_disp_chan_mthd()
459 for (i = 0; (list = mthd->data[i].mthd) != NULL; i++) { in nv50_disp_chan_mthd()
460 u32 base = chan->head * mthd->addr; in nv50_disp_chan_mthd()
461 for (j = 0; j < mthd->data[i].nr; j++, base += list->addr) { in nv50_disp_chan_mthd()
462 const char *cname = mthd->name; in nv50_disp_chan_mthd()
466 if (mthd->addr) { in nv50_disp_chan_mthd()
[all …]
H A Duoutp.c279 nvkm_uoutp_mthd_acquired(struct nvkm_outp *outp, u32 mthd, void *argv, u32 argc) in nvkm_uoutp_mthd_acquired() argument
281 switch (mthd) { in nvkm_uoutp_mthd_acquired()
295 nvkm_uoutp_mthd_noacquire(struct nvkm_outp *outp, u32 mthd, void *argv, u32 argc) in nvkm_uoutp_mthd_noacquire() argument
297 switch (mthd) { in nvkm_uoutp_mthd_noacquire()
309 nvkm_uoutp_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_uoutp_mthd() argument
317 ret = nvkm_uoutp_mthd_noacquire(outp, mthd, argv, argc); in nvkm_uoutp_mthd()
322 ret = nvkm_uoutp_mthd_acquired(outp, mthd, argv, argc); in nvkm_uoutp_mthd()
346 .mthd = nvkm_uoutp_mthd,
H A Dgk104.c131 .mthd = 0x0000,
199 .mthd = &gk104_disp_ovly_mthd,
204 .mthd = 0x0300,
301 .mthd = &gk104_disp_core_mthd,
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Duser.c43 nvkm_udevice_info_subdev(struct nvkm_device *device, u64 mthd, u64 *data) in nvkm_udevice_info_subdev() argument
48 switch (mthd & NV_DEVICE_INFO_UNIT) { in nvkm_udevice_info_subdev()
56 return nvkm_subdev_info(subdev, mthd, data); in nvkm_udevice_info_subdev()
64 if (args->mthd & NV_DEVICE_INFO_UNIT) { in nvkm_udevice_info_v1()
65 if (nvkm_udevice_info_subdev(device, args->mthd, &args->data)) in nvkm_udevice_info_v1()
66 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1()
69 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1()
189 nvkm_udevice_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_udevice_mthd() argument
192 nvif_ioctl(object, "device mthd %08x\n", mthd); in nvkm_udevice_mthd()
193 switch (mthd) { in nvkm_udevice_mthd()
[all …]
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvkm/core/
H A Dobject.h33 int (*mthd)(struct nvkm_object *, u32 mthd, void *data, u32 size); member
34 int (*ntfy)(struct nvkm_object *, u32 mthd, struct nvkm_event **);
61 int nvkm_object_mthd(struct nvkm_object *, u32 mthd, void *data, u32 size);
62 int nvkm_object_ntfy(struct nvkm_object *, u32 mthd, struct nvkm_event **);
/openbmc/linux/drivers/gpu/drm/nouveau/nvif/
H A Dobject.c139 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument
143 struct nvif_ioctl_mthd_v0 mthd; in nvif_object_mthd() member
156 args->mthd.version = 0; in nvif_object_mthd()
157 args->mthd.method = mthd; in nvif_object_mthd()
159 memcpy(args->mthd.data, data, size); in nvif_object_mthd()
161 memcpy(data, args->mthd.data, size); in nvif_object_mthd()
H A Dfifo.c44 a->v.runlists.mthd = NV_DEVICE_HOST_RUNLISTS; in nvif_fifo_runlists()
46 a->v.runlist[i].mthd = NV_DEVICE_HOST_RUNLIST_ENGINES; in nvif_fifo_runlists()
63 if (a->v.runlist[i].mthd != NV_DEVICE_INFO_INVALID) in nvif_fifo_runlists()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/core/
H A Doproxy.c27 nvkm_oproxy_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_oproxy_mthd() argument
29 return nvkm_object_mthd(nvkm_oproxy(object)->object, mthd, data, size); in nvkm_oproxy_mthd()
33 nvkm_oproxy_ntfy(struct nvkm_object *object, u32 mthd, in nvkm_oproxy_ntfy() argument
36 return nvkm_object_ntfy(nvkm_oproxy(object)->object, mthd, pevent); in nvkm_oproxy_ntfy()
196 .mthd = nvkm_oproxy_mthd,
H A Dobject.c102 nvkm_object_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_object_mthd() argument
104 if (likely(object->func->mthd)) in nvkm_object_mthd()
105 return object->func->mthd(object, mthd, data, size); in nvkm_object_mthd()
110 nvkm_object_ntfy(struct nvkm_object *object, u32 mthd, in nvkm_object_ntfy() argument
114 return object->func->ntfy(object, mthd, pevent); in nvkm_object_ntfy()
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
H A Dnv04.c278 const int mthd = (addr & 0x00001ffc); in nv04_fifo_swmthd() local
283 switch (mthd) { in nv04_fifo_swmthd()
293 handled = nvkm_sw_mthd(sw, chid, subc, mthd, data); in nv04_fifo_swmthd()
310 u32 mthd, data; in nv04_fifo_intr_cache_error() local
321 mthd = nvkm_rd32(device, NV04_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_intr_cache_error()
324 mthd = nvkm_rd32(device, NV40_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_intr_cache_error()
329 !nv04_fifo_swmthd(device, chid, mthd, data)) { in nv04_fifo_intr_cache_error()
334 (mthd >> 13) & 7, mthd & 0x1ffc, data); in nv04_fifo_intr_cache_error()

1234