/linux-6.1.9/drivers/gpu/drm/mediatek/ |
D | mtk_disp_drv.h | 17 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 …]
|
D | mtk_disp_merge.c | 84 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 …]
|
D | mtk_mdp_rdma.c | 136 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 …]
|
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() 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 …]
|
D | mtk_drm_ddp_comp.h | 45 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,
|
D | mtk_disp_ovl.c | 180 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 …]
|
D | mtk_disp_rdma.c | 156 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 …]
|
D | mtk_disp_ccorr.c | 64 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()
|
D | mtk_disp_aal.c | 56 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()
|
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()
|
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()
|
D | mtk_drm_crtc.c | 54 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/ |
D | mtk-cmdq.h | 17 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/ |
D | mtk-cmdq-helper.c | 107 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 …]
|
D | mtk-mutex.c | 684 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/ |
D | mtk-cmdq-mailbox.h | 70 struct cmdq_pkt *pkt; 73 struct cmdq_pkt { struct
|
/linux-6.1.9/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-cmdq.h | 29 struct cmdq_pkt pkt;
|
D | mtk-mdp3-cmdq.c | 248 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/ |
D | mtk-cmdq-mailbox.c | 69 struct cmdq_pkt *pkt; /* the packet sent from mailbox client */ 338 struct cmdq_pkt *pkt = (struct cmdq_pkt *)data; in cmdq_mbox_send_data()
|