/linux/drivers/gpu/drm/mediatek/ |
A D | mtk_disp_drv.h | 16 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 26 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 35 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 40 unsigned int dither_en, struct cmdq_pkt *cmdq_pkt); 52 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 65 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 70 struct cmdq_pkt *cmdq_pkt); 73 struct cmdq_pkt *cmdq_pkt); 75 struct cmdq_pkt *cmdq_pkt); 89 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); [all …]
|
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() 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() 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 139 mtk_ddp_write(cmdq_pkt, in mtk_dither_set_common() 155 unsigned int cfg, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set() argument 165 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_od_config() argument [all …]
|
A D | mtk_drm_ddp_comp.h | 41 struct cmdq_pkt; 47 unsigned int bpc, struct cmdq_pkt *cmdq_pkt); 61 struct cmdq_pkt *cmdq_pkt); 95 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_config() argument 98 comp->funcs->config(comp->dev, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config() 156 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_layer_config() argument 159 comp->funcs->layer_config(comp->dev, idx, state, cmdq_pkt); in mtk_ddp_comp_layer_config() 195 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value, 198 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value, 201 void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, unsigned int value,
|
A D | mtk_disp_ovl.c | 165 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ovl_config() argument 220 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_on() argument 227 mtk_ddp_write(cmdq_pkt, 0x1, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_on() 238 mtk_ddp_write(cmdq_pkt, gmc_value, in mtk_ovl_layer_on() 245 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_off() argument 249 mtk_ddp_write_mask(cmdq_pkt, 0, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_off() 251 mtk_ddp_write(cmdq_pkt, 0, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_off() 293 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_config() argument 305 mtk_ovl_layer_off(dev, idx, cmdq_pkt); in mtk_ovl_layer_config() 323 mtk_ddp_write_relaxed(cmdq_pkt, con, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config() [all …]
|
A 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()
|
A D | mtk_disp_rdma.c | 145 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_rdma_config() argument 152 mtk_ddp_write_mask(cmdq_pkt, width, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config() 154 mtk_ddp_write_mask(cmdq_pkt, height, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_config() 219 struct cmdq_pkt *cmdq_pkt) in mtk_rdma_layer_config() argument 232 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_ENABLE, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() 235 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_INT_MTX_BT601_to_RGB, in mtk_rdma_layer_config() 239 mtk_ddp_write_mask(cmdq_pkt, 0, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() 243 mtk_ddp_write_relaxed(cmdq_pkt, addr, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() 245 mtk_ddp_write_relaxed(cmdq_pkt, pitch, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() 247 mtk_ddp_write(cmdq_pkt, RDMA_MEM_GMC, &rdma->cmdq_reg, rdma->regs, in mtk_rdma_layer_config() [all …]
|
A 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()
|
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()
|
A D | mtk_disp_gamma.c | 87 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_gamma_config() argument 91 mtk_ddp_write(cmdq_pkt, h << 16 | w, &gamma->cmdq_reg, gamma->regs, in mtk_gamma_config() 95 DISP_GAMMA_CFG, GAMMA_DITHERING, cmdq_pkt); in mtk_gamma_config()
|
A D | mtk_drm_crtc.c | 362 struct cmdq_pkt *cmdq_handle) in mtk_crtc_ddp_config() 433 struct cmdq_pkt *cmdq_handle; in mtk_drm_crtc_update_config()
|
/linux/include/linux/soc/mediatek/ |
A D | mtk-cmdq.h | 17 struct cmdq_pkt; 73 void cmdq_pkt_destroy(struct cmdq_pkt *pkt); 96 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, 125 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, 182 int cmdq_pkt_wfe(struct cmdq_pkt *pkt, u16 event, bool clear); 191 int cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event); 200 int cmdq_pkt_set_event(struct cmdq_pkt *pkt, u16 event); 215 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, 232 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, 257 int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr); [all …]
|
/linux/drivers/soc/mediatek/ |
A D | mtk-cmdq-helper.c | 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() 191 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask() 317 int cmdq_pkt_clear_event(struct cmdq_pkt *pkt, u16 event) in cmdq_pkt_clear_event() 332 int cmdq_pkt_set_event(struct cmdq_pkt *pkt, u16 event) in cmdq_pkt_set_event() 347 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll() 363 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll_mask() 394 int cmdq_pkt_jump(struct cmdq_pkt *pkt, dma_addr_t addr) in cmdq_pkt_jump() 406 int cmdq_pkt_finalize(struct cmdq_pkt *pkt) in cmdq_pkt_finalize() [all …]
|
/linux/include/linux/mailbox/ |
A D | mtk-cmdq-mailbox.h | 71 struct cmdq_pkt *pkt; 81 struct cmdq_pkt { struct
|
/linux/drivers/mailbox/ |
A D | mtk-cmdq-mailbox.c | 69 struct cmdq_pkt *pkt; /* the packet sent from mailbox client */ 343 struct cmdq_pkt *pkt = (struct cmdq_pkt *)data; in cmdq_mbox_send_data()
|