/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | shadow.c | 39 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.size)) { in shadow_image() 85 if (!mthd->func->ignore_checksum && in shadow_image() 89 if (!mthd->func->require_checksum) { in shadow_image() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_dma.h | 109 BEGIN_NV04(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NV04() argument 111 OUT_RING(chan, 0x00000000 | (subc << 13) | (size << 18) | mthd); in BEGIN_NV04() 115 BEGIN_NI04(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NI04() argument 117 OUT_RING(chan, 0x40000000 | (subc << 13) | (size << 18) | mthd); in BEGIN_NI04() 121 BEGIN_NVC0(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NVC0() argument 123 OUT_RING(chan, 0x20000000 | (size << 16) | (subc << 13) | (mthd >> 2)); in BEGIN_NVC0() 127 BEGIN_NIC0(struct nouveau_channel *chan, int subc, int mthd, int size) in BEGIN_NIC0() argument 129 OUT_RING(chan, 0x60000000 | (size << 16) | (subc << 13) | (mthd >> 2)); in BEGIN_NIC0() 133 BEGIN_IMC0(struct nouveau_channel *chan, int subc, int mthd, u16 data) in BEGIN_IMC0() argument 135 OUT_RING(chan, 0x80000000 | (data << 16) | (subc << 13) | (mthd >> 2)); in BEGIN_IMC0()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/sw/ |
D | nvsw.c | 30 nvkm_nvsw_mthd_(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_nvsw_mthd_() argument 33 if (nvsw->func->mthd) in nvkm_nvsw_mthd_() 34 return nvsw->func->mthd(nvsw, mthd, data, size); in nvkm_nvsw_mthd_() 39 nvkm_nvsw_ntfy_(struct nvkm_object *object, u32 mthd, in nvkm_nvsw_ntfy_() argument 43 switch (mthd) { in nvkm_nvsw_ntfy_() 55 .mthd = nvkm_nvsw_mthd_,
|
D | nv04.c | 60 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,
|
D | chan.c | 33 nvkm_sw_chan_mthd(struct nvkm_sw_chan *chan, int subc, u32 mthd, u32 data) in nvkm_sw_chan_mthd() argument 35 switch (mthd) { in nvkm_sw_chan_mthd() 42 if (chan->func->mthd) in nvkm_sw_chan_mthd() 43 return chan->func->mthd(chan, subc, mthd, data); in nvkm_sw_chan_mthd()
|
D | chan.h | 22 bool (*mthd)(struct nvkm_sw_chan *, int subc, u32 mthd, u32 data); member 28 bool nvkm_sw_chan_mthd(struct nvkm_sw_chan *, int subc, u32 mthd, u32 data);
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | channv50.c | 45 for (i = 0; list->data[i].mthd; i++) { in nv50_disp_mthd_list() 49 u32 mthd = list->data[i].mthd + (list->mthd * inst); in nv50_disp_mthd_list() local 60 mthd, prev, mods, name ? " // " : "", in nv50_disp_mthd_list() 71 const struct nv50_disp_chan_mthd *mthd = chan->mthd; in nv50_disp_chan_mthd() local 78 for (i = 0; (list = mthd->data[i].mthd) != NULL; i++) { in nv50_disp_chan_mthd() 79 u32 base = chan->head * mthd->addr; in nv50_disp_chan_mthd() 80 for (j = 0; j < mthd->data[i].nr; j++, base += list->addr) { in nv50_disp_chan_mthd() 81 const char *cname = mthd->name; in nv50_disp_chan_mthd() 85 if (mthd->addr) { in nv50_disp_chan_mthd() 87 mthd->name, chan->chid.user); in nv50_disp_chan_mthd() [all …]
|
D | corenv50.c | 34 const struct nv50_disp_chan_mthd *mthd, in nv50_disp_core_new_() argument 55 return nv50_disp_dmac_new_(func, mthd, disp, chid, 0, in nv50_disp_core_new_() 61 .mthd = 0x0000, 74 .mthd = 0x0080, 86 .mthd = 0x0040, 96 .mthd = 0x0040, 106 .mthd = 0x0400,
|
D | coregf119.c | 30 .mthd = 0x0000, 43 .mthd = 0x0020, 56 .mthd = 0x0020, 69 .mthd = 0x0020, 82 .mthd = 0x0300,
|
D | gp102.c | 35 u32 mthd = nvkm_rd32(device, 0x6111f0 + (chid * 12)); in gp102_disp_intr_error() local 40 chid, (mthd & 0x0000ffc), data, mthd, unkn); in gp102_disp_intr_error() 43 switch (mthd & 0xffc) { in gp102_disp_intr_error()
|
D | basenv50.c | 34 const struct nv50_disp_chan_mthd *mthd, in nv50_disp_base_new_() argument 58 return nv50_disp_dmac_new_(func, mthd, disp, chid + head, in nv50_disp_base_new_() 64 .mthd = 0x0000, 89 .mthd = 0x0400,
|
D | rootnv04.c | 40 nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv04_disp_mthd() argument 53 mthd = args->v0.method; in nv04_disp_mthd() 61 switch (mthd) { in nv04_disp_mthd() 73 .mthd = nv04_disp_mthd,
|
D | coregv100.c | 28 .mthd = 0x0000, 44 .mthd = 0x0020, 57 .mthd = 0x0080, 71 .mthd = 0x0400,
|
D | ovlynv50.c | 34 const struct nv50_disp_chan_mthd *mthd, in nv50_disp_ovly_new_() argument 58 return nv50_disp_dmac_new_(func, mthd, disp, chid + head, in nv50_disp_ovly_new_() 64 .mthd = 0x0000,
|
D | wndwgv100.c | 31 .mthd = 0x0000, 150 const struct nv50_disp_chan_mthd *mthd, in gv100_disp_wndw_new_() argument 174 return nv50_disp_dmac_new_(func, mthd, disp, chid + wndw, in gv100_disp_wndw_new_()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | nv04.c | 758 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 …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/ |
D | memx.c | 11 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()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
D | nv31.c | 125 nv31_mpeg_mthd_dma(struct nvkm_device *device, u32 mthd, u32 data) in nv31_mpeg_mthd_dma() argument 143 if (mthd == 0x0190) { in nv31_mpeg_mthd_dma() 150 if (mthd == 0x01a0) { in nv31_mpeg_mthd_dma() 169 nv31_mpeg_mthd(struct nv31_mpeg *mpeg, u32 mthd, u32 data) in nv31_mpeg_mthd() argument 172 switch (mthd) { in nv31_mpeg_mthd() 176 return mpeg->func->mthd_dma(device, mthd, data); in nv31_mpeg_mthd() 191 u32 mthd = nvkm_rd32(device, 0x00b234); in nv31_mpeg_intr() local 200 if (type == 0x00000020 && mthd == 0x0000) { in nv31_mpeg_intr() 206 if (nv31_mpeg_mthd(mpeg, mthd, data)) in nv31_mpeg_intr() 218 "unknown", stat, type, mthd, data); in nv31_mpeg_intr()
|
D | nv44.c | 129 nv44_mpeg_mthd(struct nvkm_device *device, u32 mthd, u32 data) in nv44_mpeg_mthd() argument 131 switch (mthd) { in nv44_mpeg_mthd() 135 return nv40_mpeg_mthd_dma(device, mthd, data); in nv44_mpeg_mthd() 153 u32 mthd = nvkm_rd32(device, 0x00b234); in nv44_mpeg_intr() local 169 if (type == 0x00000020 && mthd == 0x0000) { in nv44_mpeg_intr() 175 if (nv44_mpeg_mthd(subdev->device, mthd, data)) in nv44_mpeg_intr() 187 stat, type, mthd, data); in nv44_mpeg_intr()
|
D | nv40.c | 31 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()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/device/ |
D | user.c | 43 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() 70 switch (args->mthd) { in nvkm_udevice_info_v1() 97 args->mthd = NV_DEVICE_INFO_INVALID; in nvkm_udevice_info_v1() 217 nvkm_udevice_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nvkm_udevice_mthd() argument 220 nvif_ioctl(object, "device mthd %08x\n", mthd); in nvkm_udevice_mthd() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/include/nvkm/core/ |
D | object.h | 32 int (*mthd)(struct nvkm_object *, u32 mthd, void *data, u32 size); member 33 int (*ntfy)(struct nvkm_object *, u32 mthd, struct nvkm_event **); 59 int nvkm_object_mthd(struct nvkm_object *, u32 mthd, void *data, u32 size); 60 int nvkm_object_ntfy(struct nvkm_object *, u32 mthd, struct nvkm_event **);
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | nv04.c | 112 const int mthd = (addr & 0x00001ffc); in nv04_fifo_swmthd() local 117 switch (mthd) { in nv04_fifo_swmthd() 125 handled = nvkm_sw_mthd(sw, chid, subc, mthd, data); in nv04_fifo_swmthd() 142 u32 mthd, data; in nv04_fifo_cache_error() local 153 mthd = nvkm_rd32(device, NV04_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_cache_error() 156 mthd = nvkm_rd32(device, NV40_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_cache_error() 161 !nv04_fifo_swmthd(device, chid, mthd, data)) { in nv04_fifo_cache_error() 166 (mthd >> 13) & 7, mthd & 0x1ffc, data); in nv04_fifo_cache_error()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 140 nvif_object_mthd(struct nvif_object *object, u32 mthd, void *data, u32 size) in nvif_object_mthd() argument 144 struct nvif_ioctl_mthd_v0 mthd; in nvif_object_mthd() member 157 args->mthd.version = 0; in nvif_object_mthd() 158 args->mthd.method = mthd; in nvif_object_mthd() 160 memcpy(args->mthd.data, data, size); in nvif_object_mthd() 162 memcpy(data, args->mthd.data, size); in nvif_object_mthd()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/core/ |
D | oproxy.c | 27 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() 179 .mthd = nvkm_oproxy_mthd,
|