/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | gp102.c | 91 .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()
|
D | g84.c | 117 .mthd = 0x0000, 159 .mthd = &g84_disp_ovly_mthd, 164 .mthd = 0x0000, 209 .mthd = &g84_disp_base_mthd, 214 .mthd = 0x0080, 226 .mthd = 0x0400, 296 .mthd = &g84_disp_core_mthd,
|
D | uoutp.c | 52 nvkm_uoutp_mthd_noacquire(struct nvkm_outp *outp, u32 mthd, void *argv, u32 argc) in nvkm_uoutp_mthd_noacquire() argument 54 switch (mthd) { in nvkm_uoutp_mthd_noacquire() 64 nvkm_uoutp_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_uoutp_mthd() argument 72 ret = nvkm_uoutp_mthd_noacquire(outp, mthd, argv, argc); in nvkm_uoutp_mthd() 96 .mthd = nvkm_uoutp_mthd,
|
D | chan.h | 10 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
|
D | rootnv04.c | 33 nv04_disp_mthd(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv04_disp_mthd() argument 46 mthd = args->v0.method; in nv04_disp_mthd() 54 switch (mthd) { in nv04_disp_mthd()
|
D | nv50.c | 424 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 …]
|
D | udisp.c | 56 nvkm_udisp_mthd(struct nvkm_object *object, u32 mthd, void *argv, u32 argc) in nvkm_udisp_mthd() argument 61 return nv50_disp_root_mthd_(object, mthd, argv, argc); in nvkm_udisp_mthd() 63 return nv04_disp_mthd(object, mthd, argv, argc); in nvkm_udisp_mthd() 81 .mthd = nvkm_udisp_mthd,
|
D | rootnv50.c | 36 nv50_disp_root_mthd_(struct nvkm_object *object, u32 mthd, void *data, u32 size) in nv50_disp_root_mthd_() argument 48 if (mthd != NV50_DISP_MTHD) in nv50_disp_root_mthd_() 55 mthd = args->v0.method; in nv50_disp_root_mthd_() 63 mthd = args->v1.method; in nv50_disp_root_mthd_() 85 switch (mthd) { in nv50_disp_root_mthd_() 93 switch (mthd * !!outp) { in nv50_disp_root_mthd_()
|
D | gk104.c | 110 .mthd = 0x0000, 178 .mthd = &gk104_disp_ovly_mthd, 183 .mthd = 0x0300, 280 .mthd = &gk104_disp_core_mthd,
|
/linux-6.1.9/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-6.1.9/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-6.1.9/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 | 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-6.1.9/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-6.1.9/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,
|