Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_disp_drv.h17 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
27 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
36 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
41 unsigned int dither_en, struct cmdq_pkt *cmdq_pkt);
53 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
63 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
68 struct cmdq_pkt *cmdq_pkt);
69 void mtk_merge_start_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt);
70 void mtk_merge_stop_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt);
79 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
[all …]
Dmtk_disp_merge.c84 void mtk_merge_start_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_merge_start_cmdq() argument
89 mtk_ddp_write(cmdq_pkt, 0x0, &priv->cmdq_reg, priv->regs, in mtk_merge_start_cmdq()
92 mtk_ddp_write(cmdq_pkt, 1, &priv->cmdq_reg, priv->regs, in mtk_merge_start_cmdq()
96 void mtk_merge_stop_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_merge_stop_cmdq() argument
101 mtk_ddp_write(cmdq_pkt, 0x1, &priv->cmdq_reg, priv->regs, in mtk_merge_stop_cmdq()
104 mtk_ddp_write(cmdq_pkt, 0, &priv->cmdq_reg, priv->regs, in mtk_merge_stop_cmdq()
112 struct cmdq_pkt *cmdq_pkt) in mtk_merge_fifo_setting() argument
114 mtk_ddp_write(cmdq_pkt, ULTRA_EN | PREULTRA_EN, in mtk_merge_fifo_setting()
117 mtk_ddp_write_mask(cmdq_pkt, BUFFER_MODE, in mtk_merge_fifo_setting()
121 mtk_ddp_write_mask(cmdq_pkt, ULTRA_TH_LOW | ULTRA_TH_HIGH << 16, in mtk_merge_fifo_setting()
[all …]
Dmtk_mdp_rdma.c136 static void mtk_mdp_rdma_fifo_config(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_fifo_config() argument
140 mtk_ddp_write_mask(cmdq_pkt, FLD_EXT_ULTRA_EN | VAL_PRE_ULTRA_EN_ENABLE << 16 | in mtk_mdp_rdma_fifo_config()
148 void mtk_mdp_rdma_start(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_start() argument
152 mtk_ddp_write_mask(cmdq_pkt, FLD_ROT_ENABLE, &priv->cmdq_reg, in mtk_mdp_rdma_start()
156 void mtk_mdp_rdma_stop(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_stop() argument
160 mtk_ddp_write_mask(cmdq_pkt, 0, &priv->cmdq_reg, in mtk_mdp_rdma_stop()
162 mtk_ddp_write(cmdq_pkt, 1, &priv->cmdq_reg, priv->regs, MDP_RDMA_RESET); in mtk_mdp_rdma_stop()
163 mtk_ddp_write(cmdq_pkt, 0, &priv->cmdq_reg, priv->regs, MDP_RDMA_RESET); in mtk_mdp_rdma_stop()
167 struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_config() argument
175 mtk_mdp_rdma_fifo_config(dev, cmdq_pkt); in mtk_mdp_rdma_config()
[all …]
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 …]
Dmtk_drm_ddp_comp.h45 struct cmdq_pkt;
51 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
67 struct cmdq_pkt *cmdq_pkt);
100 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_config() argument
103 comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
174 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_layer_config() argument
177 comp->funcs->layer_config(comp->dev, idx, state, cmdq_pkt); in mtk_ddp_comp_layer_config()
213 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value,
216 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value,
219 void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value,
Dmtk_disp_ovl.c180 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ovl_config() argument
185 mtk_ddp_write_relaxed(cmdq_pkt, h << 16 | w, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_config()
187 mtk_ddp_write_relaxed(cmdq_pkt, 0x0, &ovl->cmdq_reg, ovl->regs, DISP_REG_OVL_ROI_BGCLR); in mtk_ovl_config()
189 mtk_ddp_write(cmdq_pkt, 0x1, &ovl->cmdq_reg, ovl->regs, DISP_REG_OVL_RST); in mtk_ovl_config()
190 mtk_ddp_write(cmdq_pkt, 0x0, &ovl->cmdq_reg, ovl->regs, DISP_REG_OVL_RST); in mtk_ovl_config()
235 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_on() argument
242 mtk_ddp_write(cmdq_pkt, 0x1, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_on()
253 mtk_ddp_write(cmdq_pkt, gmc_value, in mtk_ovl_layer_on()
255 mtk_ddp_write_mask(cmdq_pkt, BIT(idx), &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_on()
260 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_off() argument
[all …]
Dmtk_disp_rdma.c156 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_rdma_config() argument
163 mtk_ddp_write_mask(cmdq_pkt, width, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config()
165 mtk_ddp_write_mask(cmdq_pkt, height, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config()
183 mtk_ddp_write(cmdq_pkt, reg, &rdma->cmdq_reg, rdma->regs, DISP_REG_RDMA_FIFO_CON); in mtk_rdma_config()
230 struct cmdq_pkt *cmdq_pkt) in mtk_rdma_layer_config() argument
240 mtk_ddp_write_relaxed(cmdq_pkt, con, &rdma->cmdq_reg, rdma->regs, DISP_RDMA_MEM_CON); in mtk_rdma_layer_config()
243 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_ENABLE, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
246 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_INT_MTX_BT601_to_RGB, in mtk_rdma_layer_config()
250 mtk_ddp_write_mask(cmdq_pkt, 0, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
254 mtk_ddp_write_relaxed(cmdq_pkt, addr, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config()
[all …]
Dmtk_disp_ccorr.c64 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ccorr_config() argument
68 mtk_ddp_write(cmdq_pkt, w << 16 | h, &ccorr->cmdq_reg, ccorr->regs, in mtk_ccorr_config()
70 mtk_ddp_write(cmdq_pkt, CCORR_ENGINE_EN, &ccorr->cmdq_reg, ccorr->regs, in mtk_ccorr_config()
117 struct cmdq_pkt *cmdq_pkt = NULL; in mtk_ccorr_ctm_set() local
129 mtk_ddp_write(cmdq_pkt, coeffs[0] << 16 | coeffs[1], in mtk_ccorr_ctm_set()
131 mtk_ddp_write(cmdq_pkt, coeffs[2] << 16 | coeffs[3], in mtk_ccorr_ctm_set()
133 mtk_ddp_write(cmdq_pkt, coeffs[4] << 16 | coeffs[5], in mtk_ccorr_ctm_set()
135 mtk_ddp_write(cmdq_pkt, coeffs[6] << 16 | coeffs[7], in mtk_ccorr_ctm_set()
137 mtk_ddp_write(cmdq_pkt, coeffs[8] << 16, in mtk_ccorr_ctm_set()
Dmtk_disp_aal.c56 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_aal_config() argument
60 mtk_ddp_write(cmdq_pkt, w << 16 | h, &aal->cmdq_reg, aal->regs, DISP_AAL_SIZE); in mtk_aal_config()
61 mtk_ddp_write(cmdq_pkt, w << 16 | h, &aal->cmdq_reg, aal->regs, DISP_AAL_OUTPUT_SIZE); in mtk_aal_config()
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()
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()
Dmtk_drm_crtc.c54 struct cmdq_pkt cmdq_handle;
111 static int mtk_drm_cmdq_pkt_create(struct cmdq_client *client, struct cmdq_pkt *pkt, in mtk_drm_cmdq_pkt_create()
140 static void mtk_drm_cmdq_pkt_destroy(struct cmdq_pkt *pkt) in mtk_drm_cmdq_pkt_destroy()
461 struct cmdq_pkt *cmdq_handle) in mtk_crtc_ddp_config()
539 struct cmdq_pkt *cmdq_handle = &mtk_crtc->cmdq_handle; in mtk_drm_crtc_update_config()
/linux-6.1.9/include/linux/soc/mediatek/
Dmtk-cmdq.h17 struct cmdq_pkt;
67 struct cmdq_pkt *cmdq_pkt_create(struct cmdq_client *client, size_t size);
73 void cmdq_pkt_destroy(struct cmdq_pkt *pkt);
84 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
96 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
108 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low,
125 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
143 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
156 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
171 int cmdq_pkt_write_s_mask_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
[all …]
/linux-6.1.9/drivers/soc/mediatek/
Dmtk-cmdq-helper.c107 struct cmdq_pkt *cmdq_pkt_create(struct cmdq_client *client, size_t size) in cmdq_pkt_create()
109 struct cmdq_pkt *pkt; in cmdq_pkt_create()
140 void cmdq_pkt_destroy(struct cmdq_pkt *pkt) in cmdq_pkt_destroy()
151 static int cmdq_pkt_append_command(struct cmdq_pkt *pkt, in cmdq_pkt_append_command()
178 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write()
191 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask()
213 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, in cmdq_pkt_read_s()
228 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, in cmdq_pkt_write_s()
243 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, in cmdq_pkt_write_s_mask()
266 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, in cmdq_pkt_write_s_value()
[all …]
Dmtk-mutex.c684 struct cmdq_pkt *cmdq_pkt = (struct cmdq_pkt *)pkt; in mtk_mutex_enable_by_cmdq() local
693 cmdq_pkt_write(cmdq_pkt, mtx->cmdq_reg.subsys, in mtk_mutex_enable_by_cmdq()
/linux-6.1.9/include/linux/mailbox/
Dmtk-cmdq-mailbox.h70 struct cmdq_pkt *pkt;
73 struct cmdq_pkt { struct
/linux-6.1.9/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-cmdq.h29 struct cmdq_pkt pkt;
Dmtk-mdp3-cmdq.c248 static int mdp_cmdq_pkt_create(struct cmdq_client *client, struct cmdq_pkt *pkt, in mdp_cmdq_pkt_create()
275 static void mdp_cmdq_pkt_destroy(struct cmdq_pkt *pkt) in mdp_cmdq_pkt_destroy()
/linux-6.1.9/drivers/mailbox/
Dmtk-cmdq-mailbox.c69 struct cmdq_pkt *pkt; /* the packet sent from mailbox client */
338 struct cmdq_pkt *pkt = (struct cmdq_pkt *)data; in cmdq_mbox_send_data()