/linux-6.3-rc2/drivers/gpu/ipu-v3/ |
A D | ipu-common.c | 225 channel->ipu = ipu; in ipu_idmac_get() 237 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_put() local 265 struct ipu_soc *ipu = channel->ipu; in __ipu_idmac_reset_current_buffer() local 274 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_set_double_buffer() local 319 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_lock_enable() local 424 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_get_current_buffer() local 433 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_buffer_is_ready() local 457 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_select_buffer() local 475 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_clear_buffer() local 503 struct ipu_soc *ipu = channel->ipu; in ipu_idmac_enable_channel() local [all …]
|
A D | Makefile | 2 obj-$(CONFIG_IMX_IPUV3_CORE) += imx-ipu-v3.o 4 imx-ipu-v3-objs := ipu-common.o ipu-cpmem.o ipu-csi.o ipu-dc.o ipu-di.o \ 5 ipu-dp.o ipu-dmfc.o ipu-ic.o ipu-ic-csc.o \ 6 ipu-image-convert.o ipu-smfc.o ipu-vdi.o 9 imx-ipu-v3-objs += ipu-pre.o ipu-prg.o
|
A D | ipu-prv.h | 151 struct ipu_soc *ipu; member 204 return readl(ipu->idmac_reg + offset); in ipu_idmac_read() 210 writel(value, ipu->idmac_reg + offset); in ipu_idmac_write() 226 void ipu_ic_exit(struct ipu_soc *ipu); 230 void ipu_vdi_exit(struct ipu_soc *ipu); 237 void ipu_di_exit(struct ipu_soc *ipu, int id); 241 void ipu_dmfc_exit(struct ipu_soc *ipu); 244 void ipu_dp_exit(struct ipu_soc *ipu); 248 void ipu_dc_exit(struct ipu_soc *ipu); 251 void ipu_cpmem_exit(struct ipu_soc *ipu); [all …]
|
A D | ipu-ic.c | 158 struct ipu_soc *ipu; member 222 struct ipu_soc *ipu = priv->ipu; in calc_resize_coeffs() local 457 struct ipu_soc *ipu = priv->ipu; in ipu_ic_task_idma_init() local 661 struct ipu_ic_priv *priv = ipu->ic_priv; in ipu_ic_get() 707 ipu->ic_priv = priv; in ipu_ic_init() 719 priv->ipu = ipu; in ipu_ic_init() 731 void ipu_ic_exit(struct ipu_soc *ipu) in ipu_ic_exit() argument 738 struct ipu_soc *ipu = priv->ipu; in ipu_ic_dump() local 740 dev_dbg(ipu->dev, "IC_CONF = \t0x%08X\n", in ipu_ic_dump() 746 dev_dbg(ipu->dev, "IC_PP_RSC = \t0x%08X\n", in ipu_ic_dump() [all …]
|
A D | ipu-dmfc.c | 87 struct ipu_soc *ipu; member 93 struct ipu_soc *ipu; member 107 ipu_module_enable(priv->ipu, IPU_CONF_DMFC_EN); in ipu_dmfc_enable_channel() 126 ipu_module_disable(priv->ipu, IPU_CONF_DMFC_EN); in ipu_dmfc_disable_channel() 155 struct dmfc_channel *ipu_dmfc_get(struct ipu_soc *ipu, int ipu_channel) in ipu_dmfc_get() argument 157 struct ipu_dmfc_priv *priv = ipu->dmfc_priv; in ipu_dmfc_get() 172 int ipu_dmfc_init(struct ipu_soc *ipu, struct device *dev, unsigned long base, in ipu_dmfc_init() argument 187 priv->ipu = ipu; in ipu_dmfc_init() 190 ipu->dmfc_priv = priv; in ipu_dmfc_init() 194 priv->channels[i].ipu = ipu; in ipu_dmfc_init() [all …]
|
A D | ipu-dp.c | 61 struct ipu_soc *ipu; member 107 ipu_srm_dp_update(priv->ipu, true); in ipu_dp_set_global_alpha() 122 ipu_srm_dp_update(priv->ipu, true); in ipu_dp_set_window_pos() 221 ipu_srm_dp_update(priv->ipu, true); in ipu_dp_setup_channel() 229 int ipu_dp_enable(struct ipu_soc *ipu) in ipu_dp_enable() argument 261 ipu_srm_dp_update(priv->ipu, true); in ipu_dp_enable_channel() 292 ipu_srm_dp_update(priv->ipu, sync); in ipu_dp_disable_channel() 298 void ipu_dp_disable(struct ipu_soc *ipu) in ipu_dp_disable() argument 353 priv->ipu = ipu; in ipu_dp_init() 355 ipu->dp_priv = priv; in ipu_dp_init() [all …]
|
A D | ipu-cpmem.c | 27 struct ipu_soc *ipu; member 260 struct ipu_soc *ipu = ch->ipu; in ipu_cpmem_set_high_priority() local 263 if (ipu->ipu_type == IPUV3EX) in ipu_cpmem_set_high_priority() 624 struct ipu_soc *ipu = ch->ipu; in ipu_cpmem_set_separate_alpha() local 892 struct ipu_soc *ipu = ch->ipu; in ipu_cpmem_dump() local 907 dev_dbg(ipu->dev, "PFS 0x%x, ", in ipu_cpmem_dump() 909 dev_dbg(ipu->dev, "BPP 0x%x, ", in ipu_cpmem_dump() 914 dev_dbg(ipu->dev, "FW %d, ", in ipu_cpmem_dump() 916 dev_dbg(ipu->dev, "FH %d, ", in ipu_cpmem_dump() 960 ipu->cpmem_priv = cpmem; in ipu_cpmem_init() [all …]
|
A D | ipu-smfc.c | 26 struct ipu_soc *ipu; member 104 ipu_module_enable(priv->ipu, IPU_CONF_SMFC_EN); in ipu_smfc_enable() 124 ipu_module_disable(priv->ipu, IPU_CONF_SMFC_EN); in ipu_smfc_disable() 135 struct ipu_smfc *ipu_smfc_get(struct ipu_soc *ipu, unsigned int chno) in ipu_smfc_get() argument 137 struct ipu_smfc_priv *priv = ipu->smfc_priv; in ipu_smfc_get() 172 int ipu_smfc_init(struct ipu_soc *ipu, struct device *dev, in ipu_smfc_init() argument 182 ipu->smfc_priv = priv; in ipu_smfc_init() 184 priv->ipu = ipu; in ipu_smfc_init() 200 void ipu_smfc_exit(struct ipu_soc *ipu) in ipu_smfc_exit() argument
|
A D | ipu-vdi.c | 14 struct ipu_soc *ipu; member 171 ipu_module_enable(vdi->ipu, vdi->module); in ipu_vdi_enable() 189 ipu_module_disable(vdi->ipu, vdi->module); in ipu_vdi_disable() 198 struct ipu_vdi *ipu_vdi_get(struct ipu_soc *ipu) in ipu_vdi_get() argument 200 return ipu->vdi_priv; in ipu_vdi_get() 209 int ipu_vdi_init(struct ipu_soc *ipu, struct device *dev, in ipu_vdi_init() argument 218 ipu->vdi_priv = vdi; in ipu_vdi_init() 227 vdi->ipu = ipu; in ipu_vdi_init() 232 void ipu_vdi_exit(struct ipu_soc *ipu) in ipu_vdi_exit() argument
|
A D | ipu-csi.c | 29 struct ipu_soc *ipu; member 201 dev_err(csi->ipu->dev, in ipu_csi_set_testgen_mclk() 434 dev_dbg(csi->ipu->dev, "capture field swap\n"); in ipu_csi_set_bt_interlaced_codes() 501 dev_err(csi->ipu->dev, in ipu_csi_init_interface() 565 dev_err(csi->ipu->dev, in ipu_csi_is_interlaced() 737 ipu_module_enable(csi->ipu, csi->module); in ipu_csi_enable() 745 ipu_module_disable(csi->ipu, csi->module); in ipu_csi_disable() 759 csi = ipu->csi_priv[id]; in ipu_csi_get() 798 ipu->csi_priv[id] = csi; in ipu_csi_init() 810 csi->ipu = ipu; in ipu_csi_init() [all …]
|
A D | ipu-dc.c | 101 struct ipu_soc *ipu; member 231 void ipu_dc_enable(struct ipu_soc *ipu) in ipu_dc_enable() argument 233 struct ipu_dc_priv *priv = ipu->dc_priv; in ipu_dc_enable() 238 ipu_module_enable(priv->ipu, IPU_CONF_DC_EN); in ipu_dc_enable() 266 void ipu_dc_disable(struct ipu_soc *ipu) in ipu_dc_disable() argument 268 struct ipu_dc_priv *priv = ipu->dc_priv; in ipu_dc_disable() 274 ipu_module_disable(priv->ipu, IPU_CONF_DC_EN); in ipu_dc_disable() 310 struct ipu_dc_priv *priv = ipu->dc_priv; in ipu_dc_get() 359 priv->ipu = ipu; in ipu_dc_init() 380 ipu->dc_priv = priv; in ipu_dc_init() [all …]
|
A D | ipu-di.c | 25 struct ipu_soc *ipu; member 170 dev_err(di->ipu->dev, "DI%d counters out of range.\n", in ipu_di_sync_config() 529 dev_warn(di->ipu->dev, "failed to adjust videomode\n"); in ipu_di_adjust_videomode() 567 dev_dbg(di->ipu->dev, "disp %d: panel size = %d x %d\n", in ipu_di_init_sync_panel() 651 ipu_module_enable(di->ipu, di->module); in ipu_di_enable() 661 ipu_module_disable(di->ipu, di->module); in ipu_di_disable() 677 struct ipu_di *ipu_di_get(struct ipu_soc *ipu, int disp) in ipu_di_get() argument 684 di = ipu->di_priv[disp]; in ipu_di_get() 724 ipu->di_priv[id] = di; in ipu_di_init() 742 di->ipu = ipu; in ipu_di_init() [all …]
|
A D | ipu-image-convert.c | 226 struct ipu_soc *ipu; member 343 dev_dbg(priv->ipu->dev, in dump_format() 893 dev_dbg(priv->ipu->dev, in calc_tile_dimensions() 1489 ipu_dump(priv->ipu); in convert_start() 1527 dev_dbg(priv->ipu->dev, in run_next() 1563 dev_dbg(priv->ipu->dev, in empty_done_q() 1600 dev_dbg(priv->ipu->dev, in do_bh() 1881 dev_err(priv->ipu->dev, in get_ipu_resources() 2337 dev_dbg(priv->ipu->dev, in __ipu_image_convert_abort() 2348 dev_dbg(priv->ipu->dev, in __ipu_image_convert_abort() [all …]
|
A D | ipu-prg.c | 115 bool ipu_prg_present(struct ipu_soc *ipu) in ipu_prg_present() argument 117 if (ipu->prg_priv) in ipu_prg_present() 124 bool ipu_prg_format_supported(struct ipu_soc *ipu, uint32_t format, in ipu_prg_format_supported() argument 143 int ipu_prg_enable(struct ipu_soc *ipu) in ipu_prg_enable() argument 145 struct ipu_prg *prg = ipu->prg_priv; in ipu_prg_enable() 154 void ipu_prg_disable(struct ipu_soc *ipu) in ipu_prg_disable() argument 156 struct ipu_prg *prg = ipu->prg_priv; in ipu_prg_disable() 245 struct ipu_prg *prg = ipu_chan->ipu->prg_priv; in ipu_prg_channel_disable() 279 struct ipu_prg *prg = ipu_chan->ipu->prg_priv; in ipu_prg_channel_configure() 345 struct ipu_prg *prg = ipu_chan->ipu->prg_priv; in ipu_prg_channel_configure_pending()
|
/linux-6.3-rc2/drivers/gpu/drm/ingenic/ |
A D | ingenic-ipu.c | 244 ipu->soc_info->set_coefs(ipu, reg, ipu->sharpness, in ingenic_ipu_set_downscale_coefs() 278 ipu->soc_info->set_coefs(ipu, reg, ipu->sharpness, in ingenic_ipu_set_upscale_coefs() 380 regmap_write(ipu->map, JZ_REG_IPU_Y_ADDR, ipu->addr_y); in ingenic_ipu_plane_atomic_update() 381 regmap_write(ipu->map, JZ_REG_IPU_U_ADDR, ipu->addr_u); in ingenic_ipu_plane_atomic_update() 382 regmap_write(ipu->map, JZ_REG_IPU_V_ADDR, ipu->addr_v); in ingenic_ipu_plane_atomic_update() 772 regmap_write(ipu->map, JZ_REG_IPU_Y_ADDR, ipu->addr_y); in ingenic_ipu_irq_handler() 773 regmap_write(ipu->map, JZ_REG_IPU_U_ADDR, ipu->addr_u); in ingenic_ipu_irq_handler() 774 regmap_write(ipu->map, JZ_REG_IPU_V_ADDR, ipu->addr_v); in ingenic_ipu_irq_handler() 805 ipu = devm_kzalloc(dev, sizeof(*ipu), GFP_KERNEL); in ingenic_ipu_bind() 806 if (!ipu) in ingenic_ipu_bind() [all …]
|
/linux-6.3-rc2/drivers/dma/ipu/ |
A D | ipu_idmac.c | 70 static void dump_idmac_reg(struct ipu *ipu) in dump_idmac_reg() argument 604 struct ipu *ipu = to_ipu(idmac); in ipu_enable_channel() local 660 struct ipu *ipu = to_ipu(idmac); in ipu_init_channel_buffer() local 825 struct ipu *ipu = to_ipu(idmac); in idmac_tx_submit() local 956 struct ipu *ipu = to_ipu(idmac); in ipu_init_channel() local 1016 struct ipu *ipu = to_ipu(idmac); in ipu_uninit_channel() local 1075 struct ipu *ipu = to_ipu(idmac); in ipu_disable_channel() local 1305 struct ipu *ipu = from_tasklet(ipu, t, tasklet); in ipu_gc_tasklet() local 1382 struct ipu *ipu = to_ipu(idmac); in idmac_issue_pending() local 1402 struct ipu *ipu = to_ipu(idmac); in idmac_pause() local [all …]
|
A D | ipu_irq.c | 22 static u32 ipu_read_reg(struct ipu *ipu, unsigned long reg) in ipu_read_reg() argument 27 static void ipu_write_reg(struct ipu *ipu, u32 value, unsigned long reg) in ipu_write_reg() argument 44 struct ipu *ipu; member 73 struct ipu *ipu; member 268 struct ipu *ipu = irq_desc_get_handler_data(desc); in ipu_irq_handler() local 314 int __init ipu_irq_attach_irq(struct ipu *ipu, struct platform_device *dev) in ipu_irq_attach_irq() argument 324 irq_bank[i].ipu = ipu; in ipu_irq_attach_irq() 336 irq_map[i].ipu = ipu; in ipu_irq_attach_irq() 343 irq_set_chained_handler_and_data(ipu->irq_fn, ipu_irq_handler, ipu); in ipu_irq_attach_irq() 345 irq_set_chained_handler_and_data(ipu->irq_err, ipu_irq_handler, ipu); in ipu_irq_attach_irq() [all …]
|
A D | ipu_intern.h | 149 struct ipu { struct 166 extern int ipu_irq_attach_irq(struct ipu *ipu, struct platform_device *dev); argument 167 extern void ipu_irq_detach_irq(struct ipu *ipu, struct platform_device *dev);
|
/linux-6.3-rc2/Documentation/devicetree/bindings/display/ |
A D | ingenic,ipu.yaml | 4 $id: http://devicetree.org/schemas/display/ingenic,ipu.yaml# 16 - ingenic,jz4725b-ipu 17 - ingenic,jz4760-ipu 19 - const: ingenic,jz4770-ipu 20 - const: ingenic,jz4760-ipu 32 const: ipu 49 ipu@13080000 { 50 compatible = "ingenic,jz4770-ipu", "ingenic,jz4760-ipu"; 57 clock-names = "ipu";
|
/linux-6.3-rc2/include/video/ |
A D | imx-ipu-v3.h | 187 int ipu_map_irq(struct ipu_soc *ipu, int irq); 206 int ipu_get_num(struct ipu_soc *ipu); 209 void ipu_dump(struct ipu_soc *ipu); 291 void ipu_dc_enable(struct ipu_soc *ipu); 294 void ipu_dc_disable(struct ipu_soc *ipu); 329 int ipu_dp_enable(struct ipu_soc *ipu); 332 void ipu_dp_disable(struct ipu_soc *ipu); 344 bool ipu_prg_present(struct ipu_soc *ipu); 347 int ipu_prg_enable(struct ipu_soc *ipu); 348 void ipu_prg_disable(struct ipu_soc *ipu); [all …]
|
A D | imx-ipu-image-convert.h | 100 ipu_image_convert_prepare(struct ipu_soc *ipu, enum ipu_ic_task ic_task, 173 ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task, 193 int ipu_image_convert_sync(struct ipu_soc *ipu, enum ipu_ic_task ic_task,
|
/linux-6.3-rc2/drivers/staging/media/imx/ |
A D | imx-media-internal-sd.c | 36 struct ipu_soc *ipu, 196 struct ipu_soc *ipu; in imx_media_register_ipu_internal_subdevs() local 199 ipu = dev_get_drvdata(ipu_dev); in imx_media_register_ipu_internal_subdevs() 200 if (!ipu) { in imx_media_register_ipu_internal_subdevs() 205 ipu_id = ipu_get_num(ipu); in imx_media_register_ipu_internal_subdevs() 214 if (!imxmd->ipu[ipu_id]) in imx_media_register_ipu_internal_subdevs() 215 imxmd->ipu[ipu_id] = ipu; in imx_media_register_ipu_internal_subdevs() 231 sd = intsd->sync_register(&imxmd->v4l2_dev, ipu_dev, ipu, in imx_media_register_ipu_internal_subdevs()
|
A D | imx-ic-common.c | 23 struct ipu_soc *ipu, in imx_media_ic_register() argument 34 priv->ipu = ipu; in imx_media_ic_register() 60 priv->sd.grp_id, ipu_get_num(ipu)); in imx_media_ic_register()
|
/linux-6.3-rc2/drivers/gpu/drm/imx/ipuv3/ |
A D | ipuv3-crtc.c | 53 struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent); in ipu_crtc_atomic_enable() local 55 ipu_prg_enable(ipu); in ipu_crtc_atomic_enable() 56 ipu_dc_enable(ipu); in ipu_crtc_atomic_enable() 87 struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent); in ipu_crtc_atomic_disable() local 97 ipu_dc_disable(ipu); in ipu_crtc_atomic_disable() 98 ipu_prg_disable(ipu); in ipu_crtc_atomic_disable() 346 struct ipu_soc *ipu = dev_get_drvdata(ipu_crtc->dev->parent); in ipu_get_resources() local 349 ipu_crtc->dc = ipu_dc_get(ipu, pdata->dc); in ipu_get_resources() 357 ipu_crtc->di = ipu_di_get(ipu, pdata->di); in ipu_get_resources() 367 struct ipu_soc *ipu = dev_get_drvdata(dev->parent); in ipu_drm_bind() local [all …]
|
A D | ipuv3-plane.c | 256 ipu_dp_enable(ipu_plane->ipu); in ipu_plane_enable() 284 ipu_dp_disable(ipu_plane->ipu); in ipu_plane_disable() 285 if (ipu_prg_present(ipu_plane->ipu)) in ipu_plane_disable() 343 struct ipu_soc *ipu = to_ipu_plane(plane)->ipu; in ipu_plane_format_mod_supported() local 354 return ipu_prg_format_supported(ipu, format, modifier); in ipu_plane_format_mod_supported() 839 if (!ipu_prg_present(ipu_plane->ipu) || !available_pres) in ipu_planes_assign_pre() 842 if (!ipu_prg_format_supported(ipu_plane->ipu, in ipu_planes_assign_pre() 867 if (ipu_prg_present(ipu_plane->ipu) && available_pres && in ipu_planes_assign_pre() 868 ipu_prg_format_supported(ipu_plane->ipu, in ipu_planes_assign_pre() 903 if (ipu_prg_present(ipu)) in ipu_plane_init() [all …]
|