Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/soc/mediatek/
Dmtk-cmdq.h18 struct cmdq_pkt;
75 struct cmdq_pkt *cmdq_pkt_create(struct cmdq_client *client, size_t size);
81 void cmdq_pkt_destroy(struct cmdq_pkt *pkt);
92 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
104 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
116 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low,
133 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
151 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx,
164 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
179 int cmdq_pkt_write_s_mask_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx,
[all …]
/Linux-v5.10/drivers/gpu/drm/mediatek/
Dmtk_drm_ddp_comp.c89 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write() argument
93 if (cmdq_pkt) in mtk_ddp_write()
94 cmdq_pkt_write(cmdq_pkt, comp->subsys, in mtk_ddp_write()
101 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value, in mtk_ddp_write_relaxed() argument
106 if (cmdq_pkt) in mtk_ddp_write_relaxed()
107 cmdq_pkt_write(cmdq_pkt, comp->subsys, in mtk_ddp_write_relaxed()
114 void mtk_ddp_write_mask(struct cmdq_pkt *cmdq_pkt, in mtk_ddp_write_mask() argument
121 if (cmdq_pkt) { in mtk_ddp_write_mask()
122 cmdq_pkt_write_mask(cmdq_pkt, comp->subsys, in mtk_ddp_write_mask()
136 unsigned int CFG, struct cmdq_pkt *cmdq_pkt) in mtk_dither_set() argument
[all …]
Dmtk_drm_ddp_comp.h72 struct cmdq_pkt;
76 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
88 struct cmdq_pkt *cmdq_pkt);
111 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_config() argument
114 comp->funcs->config(comp, w, h, vrefresh, bpc, cmdq_pkt); in mtk_ddp_comp_config()
171 struct cmdq_pkt *cmdq_pkt) in mtk_ddp_comp_layer_config() argument
174 comp->funcs->layer_config(comp, idx, state, cmdq_pkt); in mtk_ddp_comp_layer_config()
213 unsigned int CFG, struct cmdq_pkt *cmdq_pkt);
215 void mtk_ddp_write(struct cmdq_pkt *cmdq_pkt, unsigned int value,
217 void mtk_ddp_write_relaxed(struct cmdq_pkt *cmdq_pkt, unsigned int value,
[all …]
Dmtk_disp_ovl.c128 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_ovl_config() argument
131 mtk_ddp_write_relaxed(cmdq_pkt, h << 16 | w, comp, in mtk_ovl_config()
133 mtk_ddp_write_relaxed(cmdq_pkt, 0x0, comp, DISP_REG_OVL_ROI_BGCLR); in mtk_ovl_config()
135 mtk_ddp_write(cmdq_pkt, 0x1, comp, DISP_REG_OVL_RST); in mtk_ovl_config()
136 mtk_ddp_write(cmdq_pkt, 0x0, comp, DISP_REG_OVL_RST); in mtk_ovl_config()
181 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_on() argument
188 mtk_ddp_write(cmdq_pkt, 0x1, comp, in mtk_ovl_layer_on()
199 mtk_ddp_write(cmdq_pkt, gmc_value, in mtk_ovl_layer_on()
201 mtk_ddp_write_mask(cmdq_pkt, BIT(idx), comp, in mtk_ovl_layer_on()
206 struct cmdq_pkt *cmdq_pkt) in mtk_ovl_layer_off() argument
[all …]
Dmtk_disp_rdma.c129 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_rdma_config() argument
135 mtk_ddp_write_mask(cmdq_pkt, width, comp, in mtk_rdma_config()
137 mtk_ddp_write_mask(cmdq_pkt, height, comp, in mtk_rdma_config()
150 mtk_ddp_write(cmdq_pkt, reg, comp, DISP_REG_RDMA_FIFO_CON); in mtk_rdma_config()
197 struct cmdq_pkt *cmdq_pkt) in mtk_rdma_layer_config() argument
207 mtk_ddp_write_relaxed(cmdq_pkt, con, comp, DISP_RDMA_MEM_CON); in mtk_rdma_layer_config()
210 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_ENABLE, comp, in mtk_rdma_layer_config()
213 mtk_ddp_write_mask(cmdq_pkt, RDMA_MATRIX_INT_MTX_BT601_to_RGB, in mtk_rdma_layer_config()
217 mtk_ddp_write_mask(cmdq_pkt, 0, comp, in mtk_rdma_layer_config()
221 mtk_ddp_write_relaxed(cmdq_pkt, addr, comp, DISP_RDMA_MEM_START_ADDR); in mtk_rdma_layer_config()
[all …]
Dmtk_disp_color.c49 unsigned int bpc, struct cmdq_pkt *cmdq_pkt) in mtk_color_config() argument
53 mtk_ddp_write(cmdq_pkt, w, comp, DISP_COLOR_WIDTH(color)); in mtk_color_config()
54 mtk_ddp_write(cmdq_pkt, h, comp, DISP_COLOR_HEIGHT(color)); in mtk_color_config()
Dmtk_drm_crtc.c376 struct cmdq_pkt *cmdq_handle) in mtk_crtc_ddp_config()
446 struct cmdq_pkt *cmdq_handle; in mtk_drm_crtc_hw_config()
/Linux-v5.10/drivers/soc/mediatek/
Dmtk-cmdq-helper.c125 struct cmdq_pkt *cmdq_pkt_create(struct cmdq_client *client, size_t size) in cmdq_pkt_create()
127 struct cmdq_pkt *pkt; in cmdq_pkt_create()
158 void cmdq_pkt_destroy(struct cmdq_pkt *pkt) in cmdq_pkt_destroy()
169 static int cmdq_pkt_append_command(struct cmdq_pkt *pkt, in cmdq_pkt_append_command()
196 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write()
209 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask()
231 int cmdq_pkt_read_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, u16 addr_low, in cmdq_pkt_read_s()
246 int cmdq_pkt_write_s(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, in cmdq_pkt_write_s()
261 int cmdq_pkt_write_s_mask(struct cmdq_pkt *pkt, u16 high_addr_reg_idx, in cmdq_pkt_write_s_mask()
284 int cmdq_pkt_write_s_value(struct cmdq_pkt *pkt, u8 high_addr_reg_idx, in cmdq_pkt_write_s_value()
[all …]
/Linux-v5.10/include/linux/mailbox/
Dmtk-cmdq-mailbox.h85 struct cmdq_pkt { struct
/Linux-v5.10/drivers/mailbox/
Dmtk-cmdq-mailbox.c66 struct cmdq_pkt *pkt; /* the packet sent from mailbox client */
331 struct cmdq_pkt *pkt = (struct cmdq_pkt *)data; in cmdq_mbox_send_data()