/Linux-v6.1/drivers/media/platform/renesas/vsp1/ |
D | vsp1_drv.c | 3 * vsp1_drv.c -- R-Car VSP1 Driver 25 #include "vsp1.h" 49 struct vsp1_device *vsp1 = data; in vsp1_irq_handler() local 54 for (i = 0; i < vsp1->info->wpf_count; ++i) { in vsp1_irq_handler() 55 struct vsp1_rwpf *wpf = vsp1->wpf[i]; in vsp1_irq_handler() 60 status = vsp1_read(vsp1, VI6_WPF_IRQ_STA(i)); in vsp1_irq_handler() 61 vsp1_write(vsp1, VI6_WPF_IRQ_STA(i), ~status & mask); in vsp1_irq_handler() 80 * pad. Links that would be invalid according to the VSP1 hardware capabilities 90 static int vsp1_create_sink_links(struct vsp1_device *vsp1, in vsp1_create_sink_links() argument 98 list_for_each_entry(source, &vsp1->entities, list_dev) { in vsp1_create_sink_links() [all …]
|
D | vsp1_drm.c | 3 * vsp1_drm.c -- R-Car VSP1 DRM/KMS Interface 16 #include <media/vsp1.h> 18 #include "vsp1.h" 63 static int vsp1_du_insert_uif(struct vsp1_device *vsp1, in vsp1_du_insert_uif() argument 99 dev_dbg(vsp1->dev, "%s: set format %ux%u (%x) on UIF sink\n", in vsp1_du_insert_uif() 115 static int vsp1_du_pipeline_setup_rpf(struct vsp1_device *vsp1, in vsp1_du_pipeline_setup_rpf() argument 130 crop = &vsp1->drm->inputs[rpf->entity.index].crop; in vsp1_du_pipeline_setup_rpf() 145 dev_dbg(vsp1->dev, in vsp1_du_pipeline_setup_rpf() 161 dev_dbg(vsp1->dev, in vsp1_du_pipeline_setup_rpf() 177 dev_dbg(vsp1->dev, in vsp1_du_pipeline_setup_rpf() [all …]
|
D | Makefile | 2 vsp1-y := vsp1_drv.o vsp1_entity.o vsp1_pipe.o 3 vsp1-y += vsp1_dl.o vsp1_drm.o vsp1_video.o 4 vsp1-y += vsp1_rpf.o vsp1_rwpf.o vsp1_wpf.o 5 vsp1-y += vsp1_clu.o vsp1_hsit.o vsp1_lut.o 6 vsp1-y += vsp1_brx.o vsp1_sru.o vsp1_uds.o 7 vsp1-y += vsp1_hgo.o vsp1_hgt.o vsp1_histo.o 8 vsp1-y += vsp1_lif.o vsp1_uif.o 10 obj-$(CONFIG_VIDEO_RENESAS_VSP1) += vsp1.o
|
D | vsp1.h | 3 * vsp1.h -- R-Car VSP1 Driver 75 #define vsp1_feature(vsp1, f) ((vsp1)->info->features & (f)) argument 112 int vsp1_device_get(struct vsp1_device *vsp1); 113 void vsp1_device_put(struct vsp1_device *vsp1); 115 int vsp1_reset_wpf(struct vsp1_device *vsp1, unsigned int index); 117 static inline u32 vsp1_read(struct vsp1_device *vsp1, u32 reg) in vsp1_read() argument 119 return ioread32(vsp1->mmio + reg); in vsp1_read() 122 static inline void vsp1_write(struct vsp1_device *vsp1, u32 reg, u32 data) in vsp1_write() argument 124 iowrite32(data, vsp1->mmio + reg); in vsp1_write()
|
D | vsp1_dl.c | 3 * vsp1_dl.c -- R-Car VSP1 Display List 17 #include "vsp1.h" 128 * @vsp1: the VSP1 device 141 struct vsp1_device *vsp1; member 152 * @vsp1: the VSP1 device 165 struct vsp1_device *vsp1; member 207 * @vsp1: the VSP1 device 219 struct vsp1_device *vsp1; member 237 * @vsp1: The VSP1 device 248 vsp1_dl_body_pool_create(struct vsp1_device *vsp1, unsigned int num_bodies, in vsp1_dl_body_pool_create() argument [all …]
|
D | vsp1_wpf.c | 3 * vsp1_wpf.c -- R-Car VSP1 Write Pixel Formatter 14 #include "vsp1.h" 136 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_init_controls() local 144 } else if (vsp1_feature(vsp1, VSP1_HAS_WPF_HFLIP)) { in wpf_init_controls() 150 } else if (vsp1_feature(vsp1, VSP1_HAS_WPF_VFLIP)) { in wpf_init_controls() 180 dev_err(vsp1->dev, "wpf%u: failed to initialize controls\n", in wpf_init_controls() 195 struct vsp1_device *vsp1 = wpf->entity.vsp1; in wpf_s_stream() local 204 vsp1_write(vsp1, VI6_WPF_IRQ_ENB(wpf->entity.index), 0); in wpf_s_stream() 205 vsp1_write(vsp1, wpf->entity.index * VI6_WPF_OFFSET + in wpf_s_stream() 225 * VSP1 Entity Operations [all …]
|
D | vsp1_drm.h | 3 * vsp1_drm.h -- R-Car VSP1 DRM/KMS Interface 16 #include <media/vsp1.h> 22 * @pipe: the VSP1 pipeline used for display 51 * @pipe: the VSP1 DRM pipeline used for display 73 int vsp1_drm_init(struct vsp1_device *vsp1); 74 void vsp1_drm_cleanup(struct vsp1_device *vsp1);
|
D | vsp1_video.c | 3 * vsp1_video.c -- R-Car VSP1 Video Node 26 #include "vsp1.h" 118 info = vsp1_get_format_info(video->vsp1, pix->pixelformat); in __vsp1_video_try_format() 120 info = vsp1_get_format_info(video->vsp1, VSP1_VIDEO_DEF_FORMAT); in __vsp1_video_try_format() 175 * VSP1 Partition Algorithm support 254 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_setup_partitions() local 273 if (vsp1->info->gen == 3) { in vsp1_video_pipeline_setup_partitions() 378 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_run() local 415 dev_err(vsp1->dev, "Failed to obtain a dl list. Frame will be incomplete\n"); in vsp1_video_pipeline_run() 433 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_video_pipeline_frame_end() local [all …]
|
D | vsp1_video.h | 3 * vsp1_video.h -- R-Car VSP1 Video Node 33 struct vsp1_device *vsp1; member 54 void vsp1_video_suspend(struct vsp1_device *vsp1); 55 void vsp1_video_resume(struct vsp1_device *vsp1); 57 struct vsp1_video *vsp1_video_create(struct vsp1_device *vsp1,
|
D | vsp1_hgo.c | 3 * vsp1_hgo.c -- R-Car VSP1 Histogram Generator 1D 16 #include "vsp1.h" 28 return vsp1_read(hgo->histo.entity.vsp1, reg); in vsp1_hgo_read() 60 vsp1_write(hgo->histo.entity.vsp1, in vsp1_hgo_frame_end() 129 * VSP1 Entity Operations 188 struct vsp1_hgo *vsp1_hgo_create(struct vsp1_device *vsp1) in vsp1_hgo_create() argument 193 hgo = devm_kzalloc(vsp1->dev, sizeof(*hgo), GFP_KERNEL); in vsp1_hgo_create() 199 vsp1->info->gen == 3 ? 2 : 1); in vsp1_hgo_create() 202 if (vsp1->info->gen == 3) in vsp1_hgo_create() 213 ret = vsp1_histogram_init(vsp1, &hgo->histo, VSP1_ENTITY_HGO, "hgo", in vsp1_hgo_create()
|
D | vsp1_lif.c | 3 * vsp1_lif.c -- R-Car VSP1 LCD Controller Interface 15 #include "vsp1.h" 83 * VSP1 Entity Operations 100 switch (entity->vsp1->version & VI6_IP_VERSION_MODEL_MASK) { in lif_configure_stream() 139 if (vsp1_feature(entity->vsp1, VSP1_HAS_NON_ZERO_LBA)) in lif_configure_stream() 153 struct vsp1_lif *vsp1_lif_create(struct vsp1_device *vsp1, unsigned int index) in vsp1_lif_create() argument 158 lif = devm_kzalloc(vsp1->dev, sizeof(*lif), GFP_KERNEL); in vsp1_lif_create() 171 ret = vsp1_entity_init(vsp1, &lif->entity, "lif", 2, &lif_ops, in vsp1_lif_create()
|
D | vsp1_pipe.c | 3 * vsp1_pipe.c -- R-Car VSP1 Pipeline 18 #include "vsp1.h" 209 * @vsp1: the VSP1 device 215 const struct vsp1_format_info *vsp1_get_format_info(struct vsp1_device *vsp1, in vsp1_get_format_info() argument 221 if (vsp1->info->gen != 2) { in vsp1_get_format_info() 289 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_pipeline_run() local 292 vsp1_write(vsp1, VI6_CMD(pipe->output->entity.index), in vsp1_pipeline_run() 314 struct vsp1_device *vsp1 = pipe->output->entity.vsp1; in vsp1_pipeline_stop() local 324 ret = vsp1_reset_wpf(vsp1, pipe->output->entity.index); in vsp1_pipeline_stop() 344 vsp1_write(vsp1, entity->route->reg, in vsp1_pipeline_stop() [all …]
|
D | vsp1_dl.h | 3 * vsp1_dl.h -- R-Car VSP1 Display List 20 /* Keep these flags in sync with VSP1_DU_STATUS_* in include/media/vsp1.h. */ 52 void vsp1_dlm_setup(struct vsp1_device *vsp1); 54 struct vsp1_dl_manager *vsp1_dlm_create(struct vsp1_device *vsp1, 69 vsp1_dl_body_pool_create(struct vsp1_device *vsp1, unsigned int num_bodies,
|
D | vsp1_lut.c | 3 * vsp1_lut.c -- R-Car VSP1 Look-Up Table 15 #include "vsp1.h" 146 * VSP1 Entity Operations 198 struct vsp1_lut *vsp1_lut_create(struct vsp1_device *vsp1) in vsp1_lut_create() argument 203 lut = devm_kzalloc(vsp1->dev, sizeof(*lut), GFP_KERNEL); in vsp1_lut_create() 212 ret = vsp1_entity_init(vsp1, &lut->entity, "lut", 2, &lut_ops, in vsp1_lut_create() 222 lut->pool = vsp1_dl_body_pool_create(vsp1, 3, LUT_SIZE, 0); in vsp1_lut_create() 233 dev_err(vsp1->dev, "lut: failed to initialize controls\n"); in vsp1_lut_create()
|
D | vsp1_rwpf.h | 3 * vsp1_rwpf.h -- R-Car VSP1 Read and Write Pixel Formatters 18 #include "vsp1.h" 79 struct vsp1_rwpf *vsp1_rpf_create(struct vsp1_device *vsp1, unsigned int index); 80 struct vsp1_rwpf *vsp1_wpf_create(struct vsp1_device *vsp1, unsigned int index);
|
D | vsp1_rpf.c | 3 * vsp1_rpf.c -- R-Car VSP1 Read Pixel Formatter 14 #include "vsp1.h" 55 * VSP1 Entity Operations 158 if (entity->vsp1->info->gen == 3) { in rpf_configure_stream() 248 struct vsp1_device *vsp1 = rpf->entity.vsp1; in rpf_configure_partition() local 307 if (vsp1->info->gen == 3 && format->num_planes == 3 && in rpf_configure_partition() 344 struct vsp1_rwpf *vsp1_rpf_create(struct vsp1_device *vsp1, unsigned int index) in vsp1_rpf_create() argument 350 rpf = devm_kzalloc(vsp1->dev, sizeof(*rpf), GFP_KERNEL); in vsp1_rpf_create() 362 ret = vsp1_entity_init(vsp1, &rpf->entity, name, 2, &rpf_ops, in vsp1_rpf_create() 370 dev_err(vsp1->dev, "rpf%u: failed to initialize controls\n", in vsp1_rpf_create()
|
D | vsp1_clu.c | 3 * vsp1_clu.c -- R-Car VSP1 Cubic Look-Up Table 15 #include "vsp1.h" 170 * VSP1 Entity Operations 239 struct vsp1_clu *vsp1_clu_create(struct vsp1_device *vsp1) in vsp1_clu_create() argument 244 clu = devm_kzalloc(vsp1->dev, sizeof(*clu), GFP_KERNEL); in vsp1_clu_create() 253 ret = vsp1_entity_init(vsp1, &clu->entity, "clu", 2, &clu_ops, in vsp1_clu_create() 264 clu->pool = vsp1_dl_body_pool_create(clu->entity.vsp1, 3, CLU_SIZE + 1, in vsp1_clu_create() 277 dev_err(vsp1->dev, "clu: failed to initialize controls\n"); in vsp1_clu_create()
|
D | vsp1_hsit.c | 3 * vsp1_hsit.c -- R-Car VSP1 Hue Saturation value (Inverse) Transform 15 #include "vsp1.h" 129 * VSP1 Entity Operations 153 struct vsp1_hsit *vsp1_hsit_create(struct vsp1_device *vsp1, bool inverse) in vsp1_hsit_create() argument 158 hsit = devm_kzalloc(vsp1->dev, sizeof(*hsit), GFP_KERNEL); in vsp1_hsit_create() 171 ret = vsp1_entity_init(vsp1, &hsit->entity, inverse ? "hsi" : "hst", in vsp1_hsit_create()
|
D | vsp1_hgt.c | 3 * vsp1_hgt.c -- R-Car VSP1 Histogram Generator 2D 16 #include "vsp1.h" 28 return vsp1_read(hgt->histo.entity.vsp1, reg); in vsp1_hgt_read() 125 * VSP1 Entity Operations 187 struct vsp1_hgt *vsp1_hgt_create(struct vsp1_device *vsp1) in vsp1_hgt_create() argument 192 hgt = devm_kzalloc(vsp1->dev, sizeof(*hgt), GFP_KERNEL); in vsp1_hgt_create() 203 ret = vsp1_histogram_init(vsp1, &hgt->histo, VSP1_ENTITY_HGT, "hgt", in vsp1_hgt_create()
|
D | vsp1_pipe.h | 3 * vsp1_pipe.h -- R-Car VSP1 Pipeline 23 * struct vsp1_format_info - VSP1 video format description 26 * @hwfmt: VSP1 hardware format 84 * struct vsp1_pipeline - A VSP1 hardware pipeline 172 const struct vsp1_format_info *vsp1_get_format_info(struct vsp1_device *vsp1,
|
D | vsp1_uif.c | 3 * vsp1_uif.c -- R-Car VSP1 User Logic Interface 17 #include "vsp1.h" 31 return vsp1_read(uif->entity.vsp1, in vsp1_uif_read() 193 * VSP1 Entity Operations 243 struct vsp1_uif *vsp1_uif_create(struct vsp1_device *vsp1, unsigned int index) in vsp1_uif_create() argument 249 uif = devm_kzalloc(vsp1->dev, sizeof(*uif), GFP_KERNEL); in vsp1_uif_create() 262 ret = vsp1_entity_init(vsp1, &uif->entity, name, 2, &uif_ops, in vsp1_uif_create()
|
D | vsp1_brx.c | 3 * vsp1_brx.c -- R-Car VSP1 Blend ROP Unit (BRU and BRS) 15 #include "vsp1.h" 283 * VSP1 Entity Operations 409 struct vsp1_brx *vsp1_brx_create(struct vsp1_device *vsp1, in vsp1_brx_create() argument 417 brx = devm_kzalloc(vsp1->dev, sizeof(*brx), GFP_KERNEL); in vsp1_brx_create() 426 num_pads = vsp1->info->num_bru_inputs + 1; in vsp1_brx_create() 433 ret = vsp1_entity_init(vsp1, &brx->entity, name, num_pads, &brx_ops, in vsp1_brx_create() 448 dev_err(vsp1->dev, "%s: failed to initialize controls\n", name); in vsp1_brx_create()
|
/Linux-v6.1/Documentation/userspace-api/media/v4l/ |
D | pixfmt-meta-vsp1-hgo.rst | 3 .. _v4l2-meta-fmt-vsp1-hgo: 9 Renesas R-Car VSP1 1-D Histogram Data 15 This format describes histogram data generated by the Renesas R-Car VSP1 1-D 18 The VSP1 HGO is a histogram computation engine that can operate on RGB, YCrCb 44 .. flat-table:: VSP1 HGO Data - 64 Bins, Normal Mode (792 bytes) 95 .. flat-table:: VSP1 HGO Data - 64 Bins, Max Mode (264 bytes) 120 .. flat-table:: VSP1 HGO Data - 256 Bins, Normal Mode (1032 bytes) 145 .. flat-table:: VSP1 HGO Data - 256 Bins, Max Mode (1032 bytes)
|
D | pixfmt-meta-vsp1-hgt.rst | 3 .. _v4l2-meta-fmt-vsp1-hgt: 9 Renesas R-Car VSP1 2-D Histogram Data 15 This format describes histogram data generated by the Renesas R-Car VSP1 18 The VSP1 HGT is a histogram computation engine that operates on HSV 82 .. flat-table:: VSP1 HGT Data - (776 bytes)
|
/Linux-v6.1/Documentation/devicetree/bindings/media/ |
D | renesas,vsp1.yaml | 4 $id: http://devicetree.org/schemas/media/renesas,vsp1.yaml# 21 - renesas,vsp1 # R-Car Gen2 and RZ/G1 59 const: renesas,vsp1 93 # R8A7790 (R-Car H2) VSP1-S 100 compatible = "renesas,vsp1";
|