Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/drivers/pwm/
A Dpwm-mtk-disp.c83 mtk_disp_pwm_update_bits(mdp, DISP_PWM_EN, mdp->data->enable_mask, in mtk_disp_pwm_apply()
141 mtk_disp_pwm_update_bits(mdp, mdp->data->con0, in mtk_disp_pwm_apply()
144 mtk_disp_pwm_update_bits(mdp, mdp->data->con1, in mtk_disp_pwm_apply()
149 mtk_disp_pwm_update_bits(mdp, mdp->data->commit, in mtk_disp_pwm_apply()
152 mtk_disp_pwm_update_bits(mdp, mdp->data->commit, in mtk_disp_pwm_apply()
160 mtk_disp_pwm_update_bits(mdp, mdp->data->bls_debug, in mtk_disp_pwm_apply()
163 mtk_disp_pwm_update_bits(mdp, mdp->data->con0, in mtk_disp_pwm_apply()
198 con0 = readl(mdp->base + mdp->data->con0); in mtk_disp_pwm_get_state()
199 con1 = readl(mdp->base + mdp->data->con1); in mtk_disp_pwm_get_state()
230 mdp = devm_kzalloc(&pdev->dev, sizeof(*mdp), GFP_KERNEL); in mtk_disp_pwm_probe()
[all …]
/linux-6.3-rc2/drivers/media/platform/mediatek/mdp3/
A Dmtk-mdp3-core.c132 ret = mdp_vpu_dev_init(&mdp->vpu, mdp->scp, &mdp->vpu_lock); in mdp_vpu_get_locked()
145 mdp->vpu_count--; in mdp_vpu_get_locked()
162 scp_put(mdp->scp); in mdp_video_device_release()
177 kfree(mdp); in mdp_video_device_release()
187 mdp = kzalloc(sizeof(*mdp), GFP_KERNEL); in mdp_probe()
188 if (!mdp) { in mdp_probe()
193 mdp->pdev = pdev; in mdp_probe()
223 if (!mdp->job_wq) { in mdp_probe()
244 mdp->rproc_handle = scp_get_rproc(mdp->scp); in mdp_probe()
283 scp_put(mdp->scp); in mdp_probe()
[all …]
A Dmtk-mdp3-cmdq.c288 struct mdp_dev *mdp; in mdp_auto_release_work() local
291 mdp = cmd->mdp; 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
321 mdp = cmd->mdp; in mdp_handle_cmdq_callback()
322 dev = &mdp->pdev->dev; in mdp_handle_cmdq_callback()
343 wake_up(&mdp->callback_wq); in mdp_handle_cmdq_callback()
361 atomic_inc(&mdp->job_count); in mdp_cmdq_send()
396 path->mdp_dev = mdp; in mdp_cmdq_send()
[all …]
A Dmtk-mdp3-m2m.c570 ctx->mdp_dev = mdp; in mdp_m2m_open()
598 mutex_unlock(&mdp->m2m_lock); in mdp_m2m_open()
633 mutex_lock(&mdp->m2m_lock); in mdp_m2m_release()
637 mdp_vpu_put_locked(mdp); in mdp_m2m_release()
671 if (!mdp->m2m_vdev) { in mdp_m2m_device_register()
681 mdp->m2m_vdev->lock = &mdp->m2m_lock; in mdp_m2m_device_register()
683 mdp->m2m_vdev->v4l2_dev = &mdp->v4l2_dev; in mdp_m2m_device_register()
684 snprintf(mdp->m2m_vdev->name, sizeof(mdp->m2m_vdev->name), "%s:m2m", in mdp_m2m_device_register()
686 video_set_drvdata(mdp->m2m_vdev, mdp); in mdp_m2m_device_register()
689 if (IS_ERR(mdp->m2m_dev)) { in mdp_m2m_device_register()
[all …]
A Dmtk-mdp3-vpu.c76 struct mdp_dev *mdp = vpu_to_mdp(ctx->vpu_dev); in mdp_vpu_ipi_handle_frame_ack() local
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
129 struct mdp_dev *mdp = vpu_to_mdp(vpu); in mdp_vpu_sendmsg() local
134 dev_dbg(&mdp->pdev->dev, "vpu scp is NULL"); in mdp_vpu_sendmsg()
163 struct mdp_dev *mdp = vpu_to_mdp(vpu); in mdp_vpu_dev_init() local
184 dev_err(&mdp->pdev->dev, in mdp_vpu_dev_init()
191 dev_dbg(&mdp->pdev->dev, in mdp_vpu_dev_init()
[all …]
A Dmtk-mdp3-comp.c799 comp->mdp_dev = mdp; in __mdp_comp_init()
822 __mdp_comp_init(mdp, node, comp); in mdp_comp_init()
876 if (mdp->comp[id]) in mdp_comp_create()
888 mdp->comp[id] = comp; in mdp_comp_create()
889 mdp->comp[id]->mdp_dev = mdp; in mdp_comp_create()
943 if (mdp->comp[i]) { in mdp_comp_destroy()
945 mdp_comp_deinit(mdp->comp[i]); in mdp_comp_destroy()
946 devm_kfree(mdp->comp[i]->comp_dev, mdp->comp[i]); in mdp_comp_destroy()
947 mdp->comp[i] = NULL; in mdp_comp_destroy()
1013 ret = mdp_comp_sub_create(mdp); in mdp_comp_config()
[all …]
A 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);
A Dmtk-mdp3-cmdq.h31 struct mdp_dev *mdp; member
41 int mdp_cmdq_send(struct mdp_dev *mdp, struct mdp_cmdq_param *param);
A Dmtk-mdp3-m2m.h44 int mdp_m2m_device_register(struct mdp_dev *mdp);
45 void mdp_m2m_device_unregister(struct mdp_dev *mdp);
/linux-6.3-rc2/drivers/media/platform/mediatek/mdp/
A Dmtk_mdp_core.c90 queue_work(mdp->wdt_wq, &mdp->wdt_work); in mtk_mdp_reset_handler()
107 struct mtk_mdp_dev *mdp; in mtk_mdp_probe() local
113 mdp = devm_kzalloc(dev, sizeof(*mdp), GFP_KERNEL); in mtk_mdp_probe()
114 if (!mdp) in mtk_mdp_probe()
117 mdp->id = pdev->id; in mtk_mdp_probe()
118 mdp->pdev = pdev; in mtk_mdp_probe()
122 mutex_init(&mdp->lock); in mtk_mdp_probe()
169 if (!mdp->job_wq) { in mtk_mdp_probe()
176 if (!mdp->wdt_wq) { in mtk_mdp_probe()
197 ret = vpu_wdt_reg_handler(mdp->vpu_dev, mtk_mdp_reset_handler, mdp, in mtk_mdp_probe()
[all …]
A Dmtk_mdp_m2m.c1080 ctx->mdp_dev = mdp; in mtk_mdp_m2m_open()
1109 mutex_unlock(&mdp->lock); in mtk_mdp_m2m_open()
1126 mdp->ctx_num--; in mtk_mdp_m2m_open()
1146 mutex_lock(&mdp->lock); in mtk_mdp_m2m_release()
1152 mdp->ctx_num--; in mtk_mdp_m2m_release()
1183 if (!mdp->vdev) { in mtk_mdp_register_m2m_device()
1192 mdp->vdev->lock = &mdp->lock; in mtk_mdp_register_m2m_device()
1194 mdp->vdev->v4l2_dev = &mdp->v4l2_dev; in mtk_mdp_register_m2m_device()
1195 snprintf(mdp->vdev->name, sizeof(mdp->vdev->name), "%s:m2m", in mtk_mdp_register_m2m_device()
1197 video_set_drvdata(mdp->vdev, mdp); in mtk_mdp_register_m2m_device()
[all …]
A 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
A 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);
A 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.3-rc2/drivers/net/ethernet/renesas/
A Dsh_eth.c1241 for (; mdp->cur_tx - mdp->dirty_tx > 0; mdp->dirty_tx++) { in sh_eth_tx_free()
1242 entry = mdp->dirty_tx % mdp->num_tx_ring; in sh_eth_tx_free()
1415 mdp->rx_skbuff = kcalloc(mdp->num_rx_ring, sizeof(*mdp->rx_skbuff), in sh_eth_ring_init()
1420 mdp->tx_skbuff = kcalloc(mdp->num_tx_ring, sizeof(*mdp->tx_skbuff), in sh_eth_ring_init()
1592 int boguscnt = (mdp->dirty_rx + mdp->num_rx_ring) - mdp->cur_rx; in sh_eth_rx()
1672 for (; mdp->cur_rx - mdp->dirty_rx > 0; mdp->dirty_rx++) { in sh_eth_rx()
1673 entry = mdp->dirty_rx % mdp->num_rx_ring; in sh_eth_rx()
1951 if (mdp->cd->no_psr || mdp->no_ether_link) in sh_eth_adjust_link()
2017 mdp->mii_bus->id, mdp->phy_id); in sh_eth_phy_init()
2504 if ((mdp->cur_tx - mdp->dirty_tx) >= (mdp->num_tx_ring - 4)) { in sh_eth_start_xmit()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/dpu1/
A Ddpu_hw_top.c38 c = &mdp->hw; in dpu_hw_setup_split_pipe()
74 if (!mdp) in dpu_hw_setup_clk_force_ctrl()
77 c = &mdp->hw; in dpu_hw_setup_clk_force_ctrl()
109 c = &mdp->hw; in dpu_hw_get_danger_status()
230 if (!mdp) in dpu_hw_intf_audio_select()
262 if (mdp == m->mdp[i].id) { in _top_offset()
282 mdp = kzalloc(sizeof(*mdp), GFP_KERNEL); in dpu_hw_mdptop_init()
283 if (!mdp) in dpu_hw_mdptop_init()
297 _setup_mdp_ops(&mdp->ops, mdp->caps->features); in dpu_hw_mdptop_init()
299 return mdp; in dpu_hw_mdptop_init()
[all …]
A 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);
A 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()
254 forced_on = mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, true); in dpu_vbif_set_qos_remap()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/media/
A Dmediatek-mdp.txt6 - compatible: "mediatek,mt8173-mdp"
12 "mediatek,mt8173-mdp-rdma" - read DMA
13 "mediatek,mt8173-mdp-rsz" - resizer
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";
53 compatible = "mediatek,mt8173-mdp-rsz";
60 compatible = "mediatek,mt8173-mdp-rsz";
[all …]
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/mdp5/
A 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.3-rc2/Documentation/devicetree/bindings/iommu/
A Dmsm,iommu-v0.txt41 Example: mdp iommu and its bus master
59 mdp: qcom,mdp@5100000 {
60 compatible = "qcom,mdp";
/linux-6.3-rc2/Documentation/devicetree/bindings/display/msm/
A Dqcom,sdm845-dpu.yaml20 - description: Address offset and size for mdp register set
25 - const: mdp
63 reg-names = "mdp", "vbif";
A Dqcom,sc7180-dpu.yaml20 - description: Address offset and size for mdp register set
25 - const: mdp
66 reg-names = "mdp", "vbif";
A Dqcom,sm8150-dpu.yaml20 - description: Address offset and size for mdp register set
25 - const: mdp
56 reg-names = "mdp", "vbif";
A Dqcom,sm8250-dpu.yaml20 - description: Address offset and size for mdp register set
25 - const: mdp
63 reg-names = "mdp", "vbif";

Completed in 44 milliseconds

12345