Lines Matching refs:cmdq_pkt

238 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
340 mtk_ddp_write(cmdq_pkt, 0x1, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_on()
351 mtk_ddp_write(cmdq_pkt, gmc_value, in mtk_ovl_layer_on()
353 mtk_ddp_write_mask(cmdq_pkt, BIT(idx), &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_on()
358 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_off() argument
362 mtk_ddp_write_mask(cmdq_pkt, 0, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_off()
364 mtk_ddp_write(cmdq_pkt, 0, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_off()
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()
460 mtk_ovl_set_afbc(ovl, cmdq_pkt, idx, is_afbc); in mtk_ovl_layer_config()
462 mtk_ddp_write_relaxed(cmdq_pkt, con, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config()
464 mtk_ddp_write_relaxed(cmdq_pkt, overlay_pitch.split_pitch.lsb | ignore_pixel_alpha, in mtk_ovl_layer_config()
466 mtk_ddp_write_relaxed(cmdq_pkt, src_size, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config()
468 mtk_ddp_write_relaxed(cmdq_pkt, offset, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config()
470 mtk_ddp_write_relaxed(cmdq_pkt, addr, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config()
474 mtk_ddp_write_relaxed(cmdq_pkt, hdr_addr, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config()
476 mtk_ddp_write_relaxed(cmdq_pkt, in mtk_ovl_layer_config()
479 mtk_ddp_write_relaxed(cmdq_pkt, hdr_pitch, &ovl->cmdq_reg, ovl->regs, in mtk_ovl_layer_config()
482 mtk_ddp_write_relaxed(cmdq_pkt, in mtk_ovl_layer_config()
487 mtk_ovl_set_bit_depth(dev, idx, fmt, cmdq_pkt); in mtk_ovl_layer_config()
488 mtk_ovl_layer_on(dev, idx, cmdq_pkt); in mtk_ovl_layer_config()