/openbmc/linux/include/linux/soc/mediatek/ |
H A D | mtk-cmdq.h | 17 struct cmdq_pkt; 75 void cmdq_pkt_destroy(struct cmdq_pkt *pkt); 98 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, 193 int cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event); 202 int cmdq_pkt_set_event(struct cmdq_pkt *pkt, u16 event); 217 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, 234 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, 259 int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr); 267 int cmdq_pkt_finalize(struct cmdq_pkt *pkt); 280 int cmdq_pkt_flush_async(struct cmdq_pkt *pkt); [all …]
|
H A D | mtk-mmsys.h | 90 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 D | mtk_disp_drv.h | 19 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); 70 struct cmdq_pkt *cmdq_pkt); 81 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 86 struct cmdq_pkt *cmdq_pkt); 89 struct cmdq_pkt *cmdq_pkt); 91 struct cmdq_pkt *cmdq_pkt); 117 struct cmdq_pkt *cmdq_pkt); 139 struct cmdq_pkt *cmdq_pkt); [all …]
|
H A D | mtk_disp_merge.c | 83 void mtk_merge_start_cmdq(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_merge_start_cmdq() argument 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 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() 131 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_merge_config() argument 138 struct cmdq_pkt *cmdq_pkt) in mtk_merge_advance_config() argument [all …]
|
H A D | mtk_mdp_rdma.c | 149 static void mtk_mdp_rdma_fifo_config(struct device *dev, struct cmdq_pkt *cmdq_pkt) in mtk_mdp_rdma_fifo_config() argument 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() 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() 196 mtk_ddp_write_mask(cmdq_pkt, FLD_OUTPUT_ARGB, &priv->cmdq_reg, in mtk_mdp_rdma_config() 199 mtk_ddp_write_mask(cmdq_pkt, 0, &priv->cmdq_reg, priv->regs, in mtk_mdp_rdma_config() 202 mtk_ddp_write_mask(cmdq_pkt, cfg->addr0, &priv->cmdq_reg, priv->regs, in mtk_mdp_rdma_config() [all …]
|
H A D | mtk_drm_ddp_comp.c | 69 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() 87 if (cmdq_pkt) 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() 130 unsigned int dither_en, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set_common() argument 156 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dither_config() argument 182 unsigned int cfg, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set() argument 192 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_dsc_config() argument 222 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_od_config() argument [all …]
|
H A D | mtk_ethdr.c | 148 struct cmdq_pkt *cmdq_pkt) in mtk_ethdr_layer_config() argument 187 MIXER_INX_MODE_BYPASS, align_width / 2 - 1, cmdq_pkt); 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() 218 mtk_ddp_write(cmdq_pkt, HDR_GFX_FE_0204_BYPASS_ALL, &gfx_fe0->cmdq_base, in mtk_ethdr_config() 221 mtk_ddp_write(cmdq_pkt, HDR_GFX_FE_0204_BYPASS_ALL, &gfx_fe1->cmdq_base, in mtk_ethdr_config() 224 mtk_ddp_write(cmdq_pkt, HDR_VDO_BE_0204_BYPASS_ALL, &vdo_be->cmdq_base, in mtk_ethdr_config() 240 mtk_ddp_write(cmdq_pkt, OUTPUT_NO_RND | SOURCE_RGB_SEL | BACKGROUND_RELAY, in mtk_ethdr_config() 245 mtk_mmsys_hdr_config(priv->mmsys_dev, w / 2, h, cmdq_pkt); in mtk_ethdr_config() [all …]
|
H A D | mtk_disp_ovl.c | 238 static void mtk_ovl_set_afbc(struct mtk_disp_ovl *ovl, struct cmdq_pkt *cmdq_pkt, in mtk_ovl_set_afbc() argument 247 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_set_bit_depth() argument 272 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ovl_config() argument 333 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_on() argument 351 mtk_ddp_write(cmdq_pkt, gmc_value, in mtk_ovl_layer_on() 358 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_off() argument 408 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_config() argument 433 mtk_ovl_layer_off(dev, idx, cmdq_pkt); in mtk_ovl_layer_config() 476 mtk_ddp_write_relaxed(cmdq_pkt, in mtk_ovl_layer_config() 482 mtk_ddp_write_relaxed(cmdq_pkt, in mtk_ovl_layer_config() [all …]
|
H A D | mtk_drm_ddp_comp.h | 47 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 D | mtk_disp_ccorr.c | 59 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 D | mtk_disp_rdma.c | 186 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() 260 struct cmdq_pkt *cmdq_pkt) in mtk_rdma_layer_config() argument 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() 286 mtk_ddp_write_relaxed(cmdq_pkt, pitch, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() 288 mtk_ddp_write(cmdq_pkt, RDMA_MEM_GMC, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() [all …]
|
H A D | mtk_disp_ovl_adaptor.c | 88 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() 136 pending->height, cmdq_pkt); in mtk_ovl_adaptor_layer_config() 152 mtk_merge_start_cmdq(merge, cmdq_pkt); in mtk_ovl_adaptor_layer_config() 154 mtk_mdp_rdma_start(rdma_l, cmdq_pkt); in mtk_ovl_adaptor_layer_config() 156 mtk_mdp_rdma_start(rdma_r, cmdq_pkt); in mtk_ovl_adaptor_layer_config() 158 mtk_mdp_rdma_stop(rdma_r, cmdq_pkt); in mtk_ovl_adaptor_layer_config() 165 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ovl_adaptor_config() argument [all …]
|
H A D | mtk_ethdr.h | 15 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 18 struct cmdq_pkt *cmdq_pkt);
|
H A D | mtk_disp_aal.c | 51 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 D | mtk_disp_color.c | 62 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 D | mtk_disp_gamma.c | 104 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 D | mtk_drm_crtc.c | 55 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 D | mtk-mmsys.c | 141 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_update_bits() argument 146 if (mmsys->cmdq_base.size && cmdq_pkt) { in mtk_mmsys_update_bits() 190 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_merge_async_config() argument 198 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_hdr_config() argument 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() 220 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_mixer_in_channel_swap() argument 254 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_vpp_rsz_merge_config() argument 275 struct cmdq_pkt *cmdq_pkt) in mtk_mmsys_vpp_rsz_dcm_config() argument [all …]
|
H A D | mtk-cmdq-helper.c | 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() 193 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask() 319 int cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event) in cmdq_pkt_clear_event() 334 int cmdq_pkt_set_event(struct cmdq_pkt *pkt, u16 event) in cmdq_pkt_set_event() 349 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll() 365 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll_mask() 396 int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) in cmdq_pkt_jump() 408 int cmdq_pkt_finalize(struct cmdq_pkt *pkt) in cmdq_pkt_finalize() [all …]
|
H A D | mtk-mutex.c | 873 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 D | mtk-cmdq-mailbox.h | 70 struct cmdq_pkt *pkt; 73 struct cmdq_pkt { struct
|
/openbmc/linux/drivers/media/platform/mediatek/mdp3/ |
H A D | mtk-mdp3-cmdq.h | 29 struct cmdq_pkt pkt;
|
H A D | mtk-mdp3-cmdq.c | 290 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 D | mtk-cmdq-mailbox.c | 71 struct cmdq_pkt *pkt; /* the packet sent from mailbox client */ 367 struct cmdq_pkt *pkt = (struct cmdq_pkt *)data; in cmdq_mbox_send_data()
|