/linux-5.19.10/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.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 …]
|
/linux-5.19.10/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 77 if (!mthd) in nv50_disp_chan_mthd() 80 for (i = 0; (list = mthd->data[i].mthd) != NULL; i++) { in nv50_disp_chan_mthd() 81 u32 base = chan->head * mthd->addr; in nv50_disp_chan_mthd() 82 for (j = 0; j < mthd->data[i].nr; j++, base += list->addr) { in nv50_disp_chan_mthd() 83 const char *cname = mthd->name; in nv50_disp_chan_mthd() 87 if (mthd->addr) { 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,
|
/linux-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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-5.19.10/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() 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 …]
|
/linux-5.19.10/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-5.19.10/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | nv04.c | 144 const int mthd = (addr & 0x00001ffc); in nv04_fifo_swmthd() local 149 switch (mthd) { in nv04_fifo_swmthd() 159 handled = nvkm_sw_mthd(sw, chid, subc, mthd, data); in nv04_fifo_swmthd() 176 u32 mthd, data; in nv04_fifo_cache_error() local 187 mthd = nvkm_rd32(device, NV04_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_cache_error() 190 mthd = nvkm_rd32(device, NV40_PFIFO_CACHE1_METHOD(ptr)); in nv04_fifo_cache_error() 195 !nv04_fifo_swmthd(device, chid, mthd, data)) { in nv04_fifo_cache_error() 200 (mthd >> 13) & 7, mthd & 0x1ffc, data); in nv04_fifo_cache_error()
|
D | gpfifogv100.c | 129 u64 usermem, mthd; in gv100_fifo_gpfifo_new_() local 182 &chan->mthd); in gv100_fifo_gpfifo_new_() 186 mthd = nvkm_memory_bar2(chan->mthd); in gv100_fifo_gpfifo_new_() 187 if (mthd == ~0ULL) in gv100_fifo_gpfifo_new_() 206 nvkm_wo32(chan->base.inst, 0x220, lower_32_bits(mthd)); in gv100_fifo_gpfifo_new_() 207 nvkm_wo32(chan->base.inst, 0x224, upper_32_bits(mthd)); in gv100_fifo_gpfifo_new_()
|
D | ga102.c | 48 struct nvkm_memory *mthd; member 135 nvkm_memory_unref(&chan->mthd); in ga102_chan_dtor() 187 ret = nvkm_memory_new(device, NVKM_MEM_TARGET_INST, 0x1000, 0x1000, true, &chan->mthd); in ga102_chan_new() 209 nvkm_wo32(chan->inst, 0x220, lower_32_bits(nvkm_memory_bar2(chan->mthd))); in ga102_chan_new() 210 nvkm_wo32(chan->inst, 0x224, upper_32_bits(nvkm_memory_bar2(chan->mthd))); in ga102_chan_new() 275 ga102_fifo_info(struct nvkm_engine *engine, u64 mthd, u64 *data) in ga102_fifo_info() argument 277 switch (mthd) { in ga102_fifo_info()
|
/linux-5.19.10/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 139 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()
|
/linux-5.19.10/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,
|