Home
last modified time | relevance | path

Searched refs:cmdq_pkt (Results 1 – 24 of 24) sorted by relevance

/openbmc/linux/include/linux/soc/mediatek/
H A Dmtk-cmdq.h17 struct cmdq_pkt;
69 struct cmdq_pkt *cmdq_pkt_create(struct cmdq_client *client, size_t size);
75 void cmdq_pkt_destroy(struct cmdq_pkt *pkt);
86 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
98 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
110 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low,
127 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
145 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
158 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
173 int cmdq_pkt_write_s_mask_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
[all …]
H A Dmtk-mmsys.h90 int height, struct cmdq_pkt *cmdq_pkt);
93 struct cmdq_pkt *cmdq_pkt);
96 u8 mode, u32 biwidth, struct cmdq_pkt *cmdq_pkt);
99 struct cmdq_pkt *cmdq_pkt);
102 struct cmdq_pkt *cmdq_pkt);
105 struct cmdq_pkt *cmdq_pkt);
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_disp_drv.h19 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
29 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
38 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
43 unsigned int dither_en, struct cmdq_pkt *cmdq_pkt);
55 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
65 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
70 struct cmdq_pkt *cmdq_pkt);
71 void mtk_merge_start_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt);
72 void mtk_merge_stop_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt);
81 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
[all …]
H A Dmtk_disp_merge.c83 void mtk_merge_start_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_merge_start_cmdq() argument
88 mtk_ddp_write(cmdq_pkt, 0x0, &priv->cmdq_reg, priv->regs, in mtk_merge_start_cmdq()
91 mtk_ddp_write(cmdq_pkt, 1, &priv->cmdq_reg, priv->regs, in mtk_merge_start_cmdq()
95 void mtk_merge_stop_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_merge_stop_cmdq() argument
100 mtk_ddp_write(cmdq_pkt, 0x1, &priv->cmdq_reg, priv->regs, in mtk_merge_stop_cmdq()
103 mtk_ddp_write(cmdq_pkt, 0, &priv->cmdq_reg, priv->regs, in mtk_merge_stop_cmdq()
106 if (!cmdq_pkt && priv->async_clk) in mtk_merge_stop_cmdq()
111 struct cmdq_pkt *cmdq_pkt) in mtk_merge_fifo_setting() argument
113 mtk_ddp_write(cmdq_pkt, ULTRA_EN | PREULTRA_EN, in mtk_merge_fifo_setting()
116 mtk_ddp_write_mask(cmdq_pkt, BUFFER_MODE, in mtk_merge_fifo_setting()
[all …]
H A Dmtk_mdp_rdma.c149 static void mtk_mdp_rdma_fifo_config(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_fifo_config() argument
153 mtk_ddp_write_mask(cmdq_pkt, FLD_EXT_ULTRA_EN | VAL_PRE_ULTRA_EN_ENABLE << 16 | in mtk_mdp_rdma_fifo_config()
161 void mtk_mdp_rdma_start(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_start() argument
165 mtk_ddp_write_mask(cmdq_pkt, FLD_ROT_ENABLE, &priv->cmdq_reg, in mtk_mdp_rdma_start()
169 void mtk_mdp_rdma_stop(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_stop() argument
173 mtk_ddp_write_mask(cmdq_pkt, 0, &priv->cmdq_reg, in mtk_mdp_rdma_stop()
175 mtk_ddp_write(cmdq_pkt, 1, &priv->cmdq_reg, priv->regs, MDP_RDMA_RESET); in mtk_mdp_rdma_stop()
176 mtk_ddp_write(cmdq_pkt, 0, &priv->cmdq_reg, priv->regs, MDP_RDMA_RESET); in mtk_mdp_rdma_stop()
180 struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_config() argument
188 mtk_mdp_rdma_fifo_config(dev, cmdq_pkt); in mtk_mdp_rdma_config()
[all …]
H A Dmtk_drm_ddp_comp.c69 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write() argument
74 if (cmdq_pkt) in mtk_ddp_write()
75 cmdq_pkt_write(cmdq_pkt, cmdq_reg->subsys, in mtk_ddp_write()
82 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write_relaxed() argument
87 if (cmdq_pkt) in mtk_ddp_write_relaxed()
88 cmdq_pkt_write(cmdq_pkt, cmdq_reg->subsys, in mtk_ddp_write_relaxed()
95 void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write_mask() argument
100 if (cmdq_pkt) { in mtk_ddp_write_mask()
101 cmdq_pkt_write_mask(cmdq_pkt, cmdq_reg->subsys, in mtk_ddp_write_mask()
130 unsigned int dither_en, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set_common() argument
[all …]
H A Dmtk_ethdr.c148 struct cmdq_pkt *cmdq_pkt) in mtk_ethdr_layer_config() argument
169 mtk_ddp_write(cmdq_pkt, 0, &mixer->cmdq_base, mixer->regs, MIX_L_SRC_SIZE(idx)); in mtk_ethdr_layer_config()
187 MIXER_INX_MODE_BYPASS, align_width / 2 - 1, cmdq_pkt); in mtk_ethdr_layer_config()
189 mtk_ddp_write(cmdq_pkt, pending->height << 16 | align_width, &mixer->cmdq_base, in mtk_ethdr_layer_config()
191 mtk_ddp_write(cmdq_pkt, offset, &mixer->cmdq_base, mixer->regs, MIX_L_SRC_OFFSET(idx)); in mtk_ethdr_layer_config()
192 mtk_ddp_write_mask(cmdq_pkt, alpha_con, &mixer->cmdq_base, mixer->regs, MIX_L_SRC_CON(idx), in mtk_ethdr_layer_config()
194 mtk_ddp_write_mask(cmdq_pkt, BIT(idx), &mixer->cmdq_base, mixer->regs, MIX_SRC_CON, in mtk_ethdr_layer_config()
200 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ethdr_config() argument
212 mtk_ddp_write(cmdq_pkt, HDR_VDO_FE_0804_BYPASS_ALL, &vdo_fe0->cmdq_base, in mtk_ethdr_config()
215 mtk_ddp_write(cmdq_pkt, HDR_VDO_FE_0804_BYPASS_ALL, &vdo_fe1->cmdq_base, in mtk_ethdr_config()
[all …]
H A Dmtk_disp_ovl.c238 static void mtk_ovl_set_afbc(struct mtk_disp_ovl *ovl, struct cmdq_pkt *cmdq_pkt, in mtk_ovl_set_afbc() argument
241 mtk_ddp_write_mask(cmdq_pkt, enabled ? OVL_LAYER_AFBC_EN(idx) : 0, in mtk_ovl_set_afbc()
247 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_set_bit_depth() argument
266 mtk_ddp_write(cmdq_pkt, reg, &ovl->cmdq_reg, in mtk_ovl_set_bit_depth()
272 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ovl_config() argument
277 mtk_ddp_write_relaxed(cmdq_pkt, h << 16 | w, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_config()
284 mtk_ddp_write_relaxed(cmdq_pkt, OVL_COLOR_ALPHA, &ovl->cmdq_reg, in mtk_ovl_config()
287 mtk_ddp_write(cmdq_pkt, 0x1, &ovl->cmdq_reg, ovl->regs, DISP_REG_OVL_RST); in mtk_ovl_config()
288 mtk_ddp_write(cmdq_pkt, 0x0, &ovl->cmdq_reg, ovl->regs, DISP_REG_OVL_RST); in mtk_ovl_config()
333 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_on() argument
[all …]
H A Dmtk_drm_ddp_comp.h47 struct cmdq_pkt;
53 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
69 struct cmdq_pkt *cmdq_pkt);
109 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_config() argument
112 comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
183 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_layer_config() argument
186 comp->funcs->layer_config(comp->dev, idx, state, cmdq_pkt); in mtk_ddp_comp_layer_config()
285 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value,
288 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value,
291 void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value,
H A Dmtk_disp_ccorr.c59 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ccorr_config() argument
63 mtk_ddp_write(cmdq_pkt, w << 16 | h, &ccorr->cmdq_reg, ccorr->regs, in mtk_ccorr_config()
65 mtk_ddp_write(cmdq_pkt, CCORR_ENGINE_EN, &ccorr->cmdq_reg, ccorr->regs, in mtk_ccorr_config()
112 struct cmdq_pkt *cmdq_pkt = NULL; in mtk_ccorr_ctm_set() local
124 mtk_ddp_write(cmdq_pkt, coeffs[0] << 16 | coeffs[1], in mtk_ccorr_ctm_set()
126 mtk_ddp_write(cmdq_pkt, coeffs[2] << 16 | coeffs[3], in mtk_ccorr_ctm_set()
128 mtk_ddp_write(cmdq_pkt, coeffs[4] << 16 | coeffs[5], in mtk_ccorr_ctm_set()
130 mtk_ddp_write(cmdq_pkt, coeffs[6] << 16 | coeffs[7], in mtk_ccorr_ctm_set()
132 mtk_ddp_write(cmdq_pkt, coeffs[8] << 16, in mtk_ccorr_ctm_set()
H A Dmtk_disp_rdma.c186 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_rdma_config() argument
193 mtk_ddp_write_mask(cmdq_pkt, width, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config()
195 mtk_ddp_write_mask(cmdq_pkt, height, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config()
213 mtk_ddp_write(cmdq_pkt, reg, &rdma->cmdq_reg, rdma->regs, DISP_REG_RDMA_FIFO_CON); in mtk_rdma_config()
260 struct cmdq_pkt *cmdq_pkt) in mtk_rdma_layer_config() argument
270 mtk_ddp_write_relaxed(cmdq_pkt, con, &rdma->cmdq_reg, rdma->regs, DISP_RDMA_MEM_CON); in mtk_rdma_layer_config()
273 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_ENABLE, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
276 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_INT_MTX_BT601_to_RGB, in mtk_rdma_layer_config()
280 mtk_ddp_write_mask(cmdq_pkt, 0, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
284 mtk_ddp_write_relaxed(cmdq_pkt, addr, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
[all …]
H A Dmtk_disp_ovl_adaptor.c88 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_adaptor_layer_config() argument
115 mtk_merge_stop_cmdq(merge, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
116 mtk_mdp_rdma_stop(rdma_l, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
117 mtk_mdp_rdma_stop(rdma_r, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
118 mtk_ethdr_layer_config(ethdr, idx, state, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
134 mtk_merge_advance_config(merge, l_w, r_w, pending->height, 0, 0, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
136 pending->height, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
144 mtk_mdp_rdma_config(rdma_l, &rdma_config, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
149 mtk_mdp_rdma_config(rdma_r, &rdma_config, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
152 mtk_merge_start_cmdq(merge, cmdq_pkt); in mtk_ovl_adaptor_layer_config()
[all …]
H A Dmtk_ethdr.h15 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
18 struct cmdq_pkt *cmdq_pkt);
H A Dmtk_disp_aal.c51 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_aal_config() argument
55 mtk_ddp_write(cmdq_pkt, w << 16 | h, &aal->cmdq_reg, aal->regs, DISP_AAL_SIZE); in mtk_aal_config()
56 mtk_ddp_write(cmdq_pkt, w << 16 | h, &aal->cmdq_reg, aal->regs, DISP_AAL_OUTPUT_SIZE); in mtk_aal_config()
H A Dmtk_disp_color.c62 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_color_config() argument
66 mtk_ddp_write(cmdq_pkt, w, &color->cmdq_reg, color->regs, DISP_COLOR_WIDTH(color)); in mtk_color_config()
67 mtk_ddp_write(cmdq_pkt, h, &color->cmdq_reg, color->regs, DISP_COLOR_HEIGHT(color)); in mtk_color_config()
H A Dmtk_disp_gamma.c104 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_gamma_config() argument
108 mtk_ddp_write(cmdq_pkt, h << 16 | w, &gamma->cmdq_reg, gamma->regs, in mtk_gamma_config()
112 DISP_GAMMA_CFG, GAMMA_DITHERING, cmdq_pkt); in mtk_gamma_config()
H A Dmtk_drm_crtc.c55 struct cmdq_pkt cmdq_handle;
122 static int mtk_drm_cmdq_pkt_create(struct cmdq_client *client, struct cmdq_pkt *pkt, in mtk_drm_cmdq_pkt_create()
149 static void mtk_drm_cmdq_pkt_destroy(struct cmdq_pkt *pkt) in mtk_drm_cmdq_pkt_destroy()
493 struct cmdq_pkt *cmdq_handle) in mtk_crtc_ddp_config()
571 struct cmdq_pkt *cmdq_handle = &mtk_crtc->cmdq_handle; in mtk_drm_crtc_update_config()
/openbmc/linux/drivers/soc/mediatek/
H A Dmtk-mmsys.c141 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_update_bits() argument
146 if (mmsys->cmdq_base.size && cmdq_pkt) { in mtk_mmsys_update_bits()
147 ret = cmdq_pkt_write_mask(cmdq_pkt, mmsys->cmdq_base.subsys, in mtk_mmsys_update_bits()
190 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_merge_async_config() argument
193 ~0, height << 16 | width, cmdq_pkt); in mtk_mmsys_merge_async_config()
198 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_hdr_config() argument
201 be_height << 16 | be_width, cmdq_pkt); in mtk_mmsys_hdr_config()
206 u8 mode, u32 biwidth, struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_mixer_in_config() argument
211 alpha << 16 | alpha, cmdq_pkt); in mtk_mmsys_mixer_in_config()
213 alpha_sel << (19 + idx), cmdq_pkt); in mtk_mmsys_mixer_in_config()
[all …]
H A Dmtk-cmdq-helper.c109 struct cmdq_pkt *cmdq_pkt_create(struct cmdq_client *client, size_t size) in cmdq_pkt_create()
111 struct cmdq_pkt *pkt; in cmdq_pkt_create()
142 void cmdq_pkt_destroy(struct cmdq_pkt *pkt) in cmdq_pkt_destroy()
153 static int cmdq_pkt_append_command(struct cmdq_pkt *pkt, in cmdq_pkt_append_command()
180 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write()
193 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask()
215 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, in cmdq_pkt_read_s()
230 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, in cmdq_pkt_write_s()
245 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, in cmdq_pkt_write_s_mask()
268 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, in cmdq_pkt_write_s_value()
[all …]
H A Dmtk-mutex.c873 struct cmdq_pkt *cmdq_pkt = (struct cmdq_pkt *)pkt; in mtk_mutex_enable_by_cmdq() local
882 cmdq_pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, in mtk_mutex_enable_by_cmdq()
/openbmc/linux/include/linux/mailbox/
H A Dmtk-cmdq-mailbox.h70 struct cmdq_pkt *pkt;
73 struct cmdq_pkt { struct
/openbmc/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-cmdq.h29 struct cmdq_pkt pkt;
H A Dmtk-mdp3-cmdq.c290 static int mdp_cmdq_pkt_create(struct cmdq_client *client, struct cmdq_pkt *pkt, in mdp_cmdq_pkt_create()
317 static void mdp_cmdq_pkt_destroy(struct cmdq_pkt *pkt) in mdp_cmdq_pkt_destroy()
/openbmc/linux/drivers/mailbox/
H A Dmtk-cmdq-mailbox.c71 struct cmdq_pkt *pkt; /* the packet sent from mailbox client */
367 struct cmdq_pkt *pkt = (struct cmdq_pkt *)data; in cmdq_mbox_send_data()