Home
last modified time | relevance | path

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

123

/Linux-v5.15/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-v5.15/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-v5.15/drivers/media/platform/mtk-mdp/
Dmtk_mdp_core.c55 static void mtk_mdp_clock_on(struct mtk_mdp_dev *mdp) in mtk_mdp_clock_on() argument
57 struct device *dev = &mdp->pdev->dev; in mtk_mdp_clock_on()
60 list_for_each_entry(comp_node, &mdp->comp_list, node) in mtk_mdp_clock_on()
64 static void mtk_mdp_clock_off(struct mtk_mdp_dev *mdp) in mtk_mdp_clock_off() argument
66 struct device *dev = &mdp->pdev->dev; in mtk_mdp_clock_off()
69 list_for_each_entry(comp_node, &mdp->comp_list, node) in mtk_mdp_clock_off()
75 struct mtk_mdp_dev *mdp = in mtk_mdp_wdt_worker() local
81 list_for_each_entry(ctx, &mdp->ctx_list, list) { in mtk_mdp_wdt_worker()
89 struct mtk_mdp_dev *mdp = priv; in mtk_mdp_reset_handler() local
91 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()
Dmtk_mdp_core.h224 void mtk_mdp_register_component(struct mtk_mdp_dev *mdp,
227 void mtk_mdp_unregister_component(struct mtk_mdp_dev *mdp,
/Linux-v5.15/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.h52 u8 mdp; member
84 void (*setup_split_pipe)(struct dpu_hw_mdp *mdp,
92 void (*setup_traffic_shaper)(struct dpu_hw_mdp *mdp,
102 bool (*setup_clk_force_ctrl)(struct dpu_hw_mdp *mdp,
110 void (*get_danger_status)(struct dpu_hw_mdp *mdp,
118 void (*setup_vsync_source)(struct dpu_hw_mdp *mdp,
126 void (*get_safe_status)(struct dpu_hw_mdp *mdp,
133 void (*intf_audio_select)(struct dpu_hw_mdp *mdp);
158 void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp);
Ddpu_vbif.c152 struct dpu_hw_mdp *mdp; in dpu_vbif_set_ot_limit() local
157 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_ot_limit()
165 if (!vbif || !mdp) { in dpu_vbif_set_ot_limit()
167 vbif != NULL, mdp != NULL); in dpu_vbif_set_ot_limit()
171 if (!mdp->ops.setup_clk_force_ctrl || in dpu_vbif_set_ot_limit()
188 forced_on = mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, true); in dpu_vbif_set_ot_limit()
201 mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, false); in dpu_vbif_set_ot_limit()
208 struct dpu_hw_mdp *mdp; in dpu_vbif_set_qos_remap() local
217 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_qos_remap()
232 if (!vbif->ops.set_qos_remap || !mdp->ops.setup_clk_force_ctrl) { in dpu_vbif_set_qos_remap()
[all …]
Ddpu_hw_sspp.c305 ctx->mdp->highest_bank_bit << 18); in dpu_hw_sspp_setup_format()
313 fast_clear | (ctx->mdp->ubwc_swizzle) | in dpu_hw_sspp_setup_format()
314 (ctx->mdp->highest_bank_bit << 4)); in dpu_hw_sspp_setup_format()
318 BIT(30) | (ctx->mdp->ubwc_swizzle) | in dpu_hw_sspp_setup_format()
319 (ctx->mdp->highest_bank_bit << 4)); in dpu_hw_sspp_setup_format()
731 hw_pipe->mdp = &catalog->mdp[0]; in dpu_hw_sspp_init()
Ddpu_hw_lm.h65 const struct dpu_mdp_cfg *mdp; member
/Linux-v5.15/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"
36 compatible = "mediatek,mt8173-mdp-rdma";
37 "mediatek,mt8173-mdp";
[all …]
/Linux-v5.15/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 = {
842 .mdp = {
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/iommu/
Dmsm,iommu-v0.txt41 Example: mdp iommu and its bus master
59 mdp: qcom,mdp@5100000 {
60 compatible = "qcom,mdp";
Dqcom,iommu.txt113 mdp: mdp@1a01000 {
/Linux-v5.15/scripts/selinux/
Dinstall_policy.sh39 cd mdp
40 ./mdp -m policy.conf file_contexts
DMakefile2 subdir-y := mdp genheaders
/Linux-v5.15/Documentation/admin-guide/LSM/
DSELinux.rst12 testing, you can do using ``mdp`` provided under
19 2. Type ``make`` to compile ``mdp``.
/Linux-v5.15/arch/arm64/boot/dts/mediatek/
Dmt8173.dtsi46 mdp-rdma0 = &mdp_rdma0;
47 mdp-rdma1 = &mdp_rdma1;
48 mdp-rsz0 = &mdp_rsz0;
49 mdp-rsz1 = &mdp_rsz1;
50 mdp-rsz2 = &mdp_rsz2;
51 mdp-wdma0 = &mdp_wdma0;
52 mdp-wrot0 = &mdp_wrot0;
53 mdp-wrot1 = &mdp_wrot1;
1005 compatible = "mediatek,mt8173-mdp-rdma",
1006 "mediatek,mt8173-mdp";
[all …]
/Linux-v5.15/scripts/selinux/mdp/
D.gitignore2 mdp
DMakefile2 hostprogs-always-y += mdp
/Linux-v5.15/Documentation/devicetree/bindings/display/msm/
Dmdp4.txt66 mdp: mdp@5100000 {
Dmdp5.txt111 mdp: mdp@1a01000 {

123