Home
last modified time | relevance | path

Searched refs:mdp (Results 1 – 25 of 79) sorted by relevance

1234

/linux-6.1.9/drivers/pwm/
Dpwm-mtk-disp.c59 static void mtk_disp_pwm_update_bits(struct mtk_disp_pwm *mdp, u32 offset, in mtk_disp_pwm_update_bits() argument
62 void __iomem *address = mdp->base + offset; in mtk_disp_pwm_update_bits()
74 struct mtk_disp_pwm *mdp = to_mtk_disp_pwm(chip); in mtk_disp_pwm_apply() local
83 mtk_disp_pwm_update_bits(mdp, DISP_PWM_EN, mdp->data->enable_mask, in mtk_disp_pwm_apply()
86 if (mdp->enabled) { in mtk_disp_pwm_apply()
87 clk_disable_unprepare(mdp->clk_mm); in mtk_disp_pwm_apply()
88 clk_disable_unprepare(mdp->clk_main); in mtk_disp_pwm_apply()
91 mdp->enabled = false; in mtk_disp_pwm_apply()
95 if (!mdp->enabled) { in mtk_disp_pwm_apply()
96 err = clk_prepare_enable(mdp->clk_main); in mtk_disp_pwm_apply()
[all …]
/linux-6.1.9/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-core.c115 int mdp_vpu_get_locked(struct mdp_dev *mdp) in mdp_vpu_get_locked() argument
119 if (mdp->vpu_count++ == 0) { in mdp_vpu_get_locked()
120 ret = rproc_boot(mdp->rproc_handle); in mdp_vpu_get_locked()
122 dev_err(&mdp->pdev->dev, in mdp_vpu_get_locked()
126 ret = mdp_vpu_register(mdp); in mdp_vpu_get_locked()
128 dev_err(&mdp->pdev->dev, in mdp_vpu_get_locked()
132 ret = mdp_vpu_dev_init(&mdp->vpu, mdp->scp, &mdp->vpu_lock); in mdp_vpu_get_locked()
134 dev_err(&mdp->pdev->dev, in mdp_vpu_get_locked()
142 mdp_vpu_unregister(mdp); in mdp_vpu_get_locked()
145 mdp->vpu_count--; in mdp_vpu_get_locked()
[all …]
Dmtk-mdp3-cmdq.c128 static int mdp_path_ctx_init(struct mdp_dev *mdp, struct mdp_path *path) in mdp_path_ctx_init() argument
137 ret = mdp_comp_ctx_config(mdp, &path->comps[index], in mdp_path_ctx_init()
206 static int mdp_path_config(struct mdp_dev *mdp, struct mdp_cmdq_cmd *cmd, in mdp_path_config() argument
288 struct mdp_dev *mdp; in mdp_auto_release_work() local
291 mdp = cmd->mdp; in mdp_auto_release_work()
293 mtk_mutex_unprepare(mdp->mdp_mutex[MDP_PIPE_RDMA0]); in mdp_auto_release_work()
294 mdp_comp_clocks_off(&mdp->pdev->dev, cmd->comps, in mdp_auto_release_work()
297 atomic_dec(&mdp->job_count); in mdp_auto_release_work()
298 wake_up(&mdp->callback_wq); in mdp_auto_release_work()
311 struct mdp_dev *mdp; in mdp_handle_cmdq_callback() local
[all …]
Dmtk-mdp3-m2m.c554 struct mdp_dev *mdp = video_get_drvdata(vdev); in mdp_m2m_open() local
556 struct device *dev = &mdp->pdev->dev; in mdp_m2m_open()
564 if (mutex_lock_interruptible(&mdp->m2m_lock)) { in mdp_m2m_open()
569 ctx->id = ida_alloc(&mdp->mdp_ida, GFP_KERNEL); in mdp_m2m_open()
570 ctx->mdp_dev = mdp; in mdp_m2m_open()
583 ctx->m2m_ctx = v4l2_m2m_ctx_init(mdp->m2m_dev, ctx, mdp_m2m_queue_init); in mdp_m2m_open()
598 mutex_unlock(&mdp->m2m_lock); in mdp_m2m_open()
620 mutex_unlock(&mdp->m2m_lock); in mdp_m2m_open()
630 struct mdp_dev *mdp = video_drvdata(file); in mdp_m2m_release() local
631 struct device *dev = &mdp->pdev->dev; in mdp_m2m_release()
[all …]
Dmtk-mdp3-vpu.c76 struct mdp_dev *mdp = vpu_to_mdp(ctx->vpu_dev); in mdp_vpu_ipi_handle_frame_ack() local
78 dev_err(&mdp->pdev->dev, "VPU MDP failure:%d\n", param->state); in mdp_vpu_ipi_handle_frame_ack()
84 int mdp_vpu_register(struct mdp_dev *mdp) in mdp_vpu_register() argument
87 struct mtk_scp *scp = mdp->scp; in mdp_vpu_register()
88 struct device *dev = &mdp->pdev->dev; in mdp_vpu_register()
119 void mdp_vpu_unregister(struct mdp_dev *mdp) in mdp_vpu_unregister() argument
121 scp_ipi_unregister(mdp->scp, SCP_IPI_MDP_INIT); in mdp_vpu_unregister()
122 scp_ipi_unregister(mdp->scp, SCP_IPI_MDP_DEINIT); in mdp_vpu_unregister()
123 scp_ipi_unregister(mdp->scp, SCP_IPI_MDP_FRAME); in mdp_vpu_unregister()
129 struct mdp_dev *mdp = vpu_to_mdp(vpu); in mdp_vpu_sendmsg() local
[all …]
Dmtk-mdp3-comp.c787 static void __mdp_comp_init(struct mdp_dev *mdp, struct device_node *node, in __mdp_comp_init() argument
799 comp->mdp_dev = mdp; in __mdp_comp_init()
804 static int mdp_comp_init(struct mdp_dev *mdp, struct device_node *node, in mdp_comp_init() argument
807 struct device *dev = &mdp->pdev->dev; in mdp_comp_init()
822 __mdp_comp_init(mdp, node, comp); in mdp_comp_init()
868 static struct mdp_comp *mdp_comp_create(struct mdp_dev *mdp, in mdp_comp_create() argument
872 struct device *dev = &mdp->pdev->dev; in mdp_comp_create()
876 if (mdp->comp[id]) in mdp_comp_create()
883 ret = mdp_comp_init(mdp, node, comp, id); in mdp_comp_create()
888 mdp->comp[id] = comp; in mdp_comp_create()
[all …]
Dmtk-mdp3-core.h88 int mdp_vpu_get_locked(struct mdp_dev *mdp);
89 void mdp_vpu_put_locked(struct mdp_dev *mdp);
90 int mdp_vpu_register(struct mdp_dev *mdp);
91 void mdp_vpu_unregister(struct mdp_dev *mdp);
Dmtk-mdp3-cmdq.h31 struct mdp_dev *mdp; member
41 int mdp_cmdq_send(struct mdp_dev *mdp, struct mdp_cmdq_param *param);
Dmtk-mdp3-m2m.h44 int mdp_m2m_device_register(struct mdp_dev *mdp);
45 void mdp_m2m_device_unregister(struct mdp_dev *mdp);
Dmtk-mdp3-comp.h176 int mdp_comp_config(struct mdp_dev *mdp);
177 void mdp_comp_destroy(struct mdp_dev *mdp);
182 int mdp_comp_ctx_config(struct mdp_dev *mdp, struct mdp_comp_ctx *ctx,
/linux-6.1.9/drivers/net/ethernet/renesas/
Dsh_eth.c351 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_write() local
352 u16 offset = mdp->reg_offset[enum_index]; in sh_eth_write()
357 iowrite32(data, mdp->addr + offset); in sh_eth_write()
362 struct sh_eth_private *mdp = netdev_priv(ndev); in sh_eth_read() local
363 u16 offset = mdp->reg_offset[enum_index]; in sh_eth_read()
368 return ioread32(mdp->addr + offset); in sh_eth_read()
378 static u16 sh_eth_tsu_get_offset(struct sh_eth_private *mdp, int enum_index) in sh_eth_tsu_get_offset() argument
380 return mdp->reg_offset[enum_index]; in sh_eth_tsu_get_offset()
383 static void sh_eth_tsu_write(struct sh_eth_private *mdp, u32 data, in sh_eth_tsu_write() argument
386 u16 offset = sh_eth_tsu_get_offset(mdp, enum_index); in sh_eth_tsu_write()
[all …]
/linux-6.1.9/drivers/media/platform/mediatek/mdp/
Dmtk_mdp_core.c54 static void mtk_mdp_clock_on(struct mtk_mdp_dev *mdp) in mtk_mdp_clock_on() argument
56 struct device *dev = &mdp->pdev->dev; in mtk_mdp_clock_on()
59 list_for_each_entry(comp_node, &mdp->comp_list, node) in mtk_mdp_clock_on()
63 static void mtk_mdp_clock_off(struct mtk_mdp_dev *mdp) in mtk_mdp_clock_off() argument
65 struct device *dev = &mdp->pdev->dev; in mtk_mdp_clock_off()
68 list_for_each_entry(comp_node, &mdp->comp_list, node) in mtk_mdp_clock_off()
74 struct mtk_mdp_dev *mdp = in mtk_mdp_wdt_worker() local
80 list_for_each_entry(ctx, &mdp->ctx_list, list) { in mtk_mdp_wdt_worker()
88 struct mtk_mdp_dev *mdp = priv; in mtk_mdp_reset_handler() local
90 queue_work(mdp->wdt_wq, &mdp->wdt_work); in mtk_mdp_reset_handler()
[all …]
Dmtk_mdp_m2m.c176 struct mtk_mdp_dev *mdp = ctx->mdp_dev; in mtk_mdp_try_fmt_mplane() local
177 struct mtk_mdp_variant *variant = mdp->variant; in mtk_mdp_try_fmt_mplane()
279 struct mtk_mdp_dev *mdp = ctx->mdp_dev; in mtk_mdp_try_crop() local
280 struct mtk_mdp_variant *variant = mdp->variant; in mtk_mdp_try_crop()
473 struct mtk_mdp_dev *mdp = priv; in mtk_mdp_process_done() local
477 ctx = v4l2_m2m_get_curr_priv(mdp->m2m_dev); in mtk_mdp_process_done()
498 struct mtk_mdp_dev *mdp = ctx->mdp_dev; in mtk_mdp_m2m_worker() local
503 dev_err(&mdp->pdev->dev, "ctx is in error state"); in mtk_mdp_m2m_worker()
523 dev_err(&mdp->pdev->dev, "processing failed: %d", ret); in mtk_mdp_m2m_worker()
530 mtk_mdp_process_done(mdp, buf_state); in mtk_mdp_m2m_worker()
[all …]
DMakefile2 mtk-mdp-y += mtk_mdp_core.o
3 mtk-mdp-y += mtk_mdp_comp.o
4 mtk-mdp-y += mtk_mdp_m2m.o
5 mtk-mdp-y += mtk_mdp_regs.o
6 mtk-mdp-y += mtk_mdp_vpu.o
8 obj-$(CONFIG_VIDEO_MEDIATEK_MDP) += mtk-mdp.o
Dmtk_mdp_m2m.h11 int mtk_mdp_register_m2m_device(struct mtk_mdp_dev *mdp);
12 void mtk_mdp_unregister_m2m_device(struct mtk_mdp_dev *mdp);
Dmtk_mdp_vpu.c63 struct mtk_mdp_dev *mdp = platform_get_drvdata(pdev); in mtk_mdp_vpu_register() local
66 err = vpu_ipi_register(mdp->vpu_dev, IPI_MDP, in mtk_mdp_vpu_register()
69 dev_err(&mdp->pdev->dev, in mtk_mdp_vpu_register()
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_hw_top.c53 static void dpu_hw_setup_split_pipe(struct dpu_hw_mdp *mdp, in dpu_hw_setup_split_pipe() argument
60 if (!mdp || !cfg) in dpu_hw_setup_split_pipe()
63 c = &mdp->hw; in dpu_hw_setup_split_pipe()
91 static bool dpu_hw_setup_clk_force_ctrl(struct dpu_hw_mdp *mdp, in dpu_hw_setup_clk_force_ctrl() argument
99 if (!mdp) in dpu_hw_setup_clk_force_ctrl()
102 c = &mdp->hw; in dpu_hw_setup_clk_force_ctrl()
107 reg_off = mdp->caps->clk_ctrls[clk_ctrl].reg_off; in dpu_hw_setup_clk_force_ctrl()
108 bit_off = mdp->caps->clk_ctrls[clk_ctrl].bit_off; in dpu_hw_setup_clk_force_ctrl()
125 static void dpu_hw_get_danger_status(struct dpu_hw_mdp *mdp, in dpu_hw_get_danger_status() argument
131 if (!mdp || !status) in dpu_hw_get_danger_status()
[all …]
Ddpu_hw_top.h51 u8 mdp; member
83 void (*setup_split_pipe)(struct dpu_hw_mdp *mdp,
91 void (*setup_traffic_shaper)(struct dpu_hw_mdp *mdp,
101 bool (*setup_clk_force_ctrl)(struct dpu_hw_mdp *mdp,
109 void (*get_danger_status)(struct dpu_hw_mdp *mdp,
117 void (*setup_vsync_source)(struct dpu_hw_mdp *mdp,
125 void (*get_safe_status)(struct dpu_hw_mdp *mdp,
132 void (*intf_audio_select)(struct dpu_hw_mdp *mdp);
157 void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp);
Ddpu_vbif.c172 struct dpu_hw_mdp *mdp; in dpu_vbif_set_ot_limit() local
177 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_ot_limit()
180 if (!vbif || !mdp) { in dpu_vbif_set_ot_limit()
182 vbif != NULL, mdp != NULL); in dpu_vbif_set_ot_limit()
186 if (!mdp->ops.setup_clk_force_ctrl || in dpu_vbif_set_ot_limit()
203 forced_on = mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, true); in dpu_vbif_set_ot_limit()
216 mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, false); in dpu_vbif_set_ot_limit()
223 struct dpu_hw_mdp *mdp; in dpu_vbif_set_qos_remap() local
232 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_qos_remap()
241 if (!vbif->ops.set_qos_remap || !mdp->ops.setup_clk_force_ctrl) { in dpu_vbif_set_qos_remap()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/media/
Dmediatek-mdp.txt6 - compatible: "mediatek,mt8173-mdp"
12 "mediatek,mt8173-mdp-rdma" - read DMA
13 "mediatek,mt8173-mdp-rsz" - resizer
14 "mediatek,mt8173-mdp-wdma" - write DMA
15 "mediatek,mt8173-mdp-wrot" - write DMA with rotation
24 "mediatek,mt8173-mdp-rdma"
25 "mediatek,mt8173-mdp-wdma"
26 "mediatek,mt8173-mdp-wrot"
33 compatible = "mediatek,mt8173-mdp-rdma";
34 "mediatek,mt8173-mdp";
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_cfg.c19 .mdp = {
108 .mdp = {
195 .mdp = {
295 .mdp = {
367 .mdp = {
447 .mdp = {
547 .mdp = {
660 .mdp = {
757 .mdp = {
850 .mdp = {
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/iommu/
Dmsm,iommu-v0.txt41 Example: mdp iommu and its bus master
59 mdp: qcom,mdp@5100000 {
60 compatible = "qcom,mdp";
/linux-6.1.9/scripts/selinux/
Dinstall_policy.sh38 cd mdp
39 ./mdp -m policy.conf file_contexts
/linux-6.1.9/Documentation/admin-guide/LSM/
DSELinux.rst12 testing, you can do using ``mdp`` provided under
19 2. Type ``make`` to compile ``mdp``.
/linux-6.1.9/arch/arm64/boot/dts/mediatek/
Dmt8173.dtsi39 mdp-rdma0 = &mdp_rdma0;
40 mdp-rdma1 = &mdp_rdma1;
41 mdp-rsz0 = &mdp_rsz0;
42 mdp-rsz1 = &mdp_rsz1;
43 mdp-rsz2 = &mdp_rsz2;
44 mdp-wdma0 = &mdp_wdma0;
45 mdp-wrot0 = &mdp_wrot0;
46 mdp-wrot1 = &mdp_wrot1;
1002 compatible = "mediatek,mt8173-mdp-rdma",
1003 "mediatek,mt8173-mdp";
[all …]

1234