Lines Matching refs:msg

20 static void handle_init_ack_msg(struct vdec_vpu_ipi_init_ack *msg)  in handle_init_ack_msg()  argument
23 (unsigned long)msg->ap_inst_addr; in handle_init_ack_msg()
25 mtk_vcodec_debug(vpu, "+ ap_inst_addr = 0x%llx", msg->ap_inst_addr); in handle_init_ack_msg()
29 vpu->vsi = vpu_mapping_dm_addr(vpu->dev, msg->vpu_inst_addr); in handle_init_ack_msg()
30 vpu->inst_addr = msg->vpu_inst_addr; in handle_init_ack_msg()
41 struct vdec_vpu_ipi_ack *msg = data; in vpu_dec_ipi_handler() local
43 (unsigned long)msg->ap_inst_addr; in vpu_dec_ipi_handler()
45 mtk_vcodec_debug(vpu, "+ id=%X", msg->msg_id); in vpu_dec_ipi_handler()
47 if (msg->status == 0) { in vpu_dec_ipi_handler()
48 switch (msg->msg_id) { in vpu_dec_ipi_handler()
60 mtk_vcodec_err(vpu, "invalid msg=%X", msg->msg_id); in vpu_dec_ipi_handler()
65 mtk_vcodec_debug(vpu, "- id=%X", msg->msg_id); in vpu_dec_ipi_handler()
66 vpu->failure = msg->status; in vpu_dec_ipi_handler()
70 static int vcodec_vpu_send_msg(struct vdec_vpu_inst *vpu, void *msg, int len) in vcodec_vpu_send_msg() argument
74 mtk_vcodec_debug(vpu, "id=%X", *(uint32_t *)msg); in vcodec_vpu_send_msg()
79 err = vpu_ipi_send(vpu->dev, vpu->id, msg, len); in vcodec_vpu_send_msg()
82 vpu->id, *(uint32_t *)msg, err); in vcodec_vpu_send_msg()
91 struct vdec_ap_ipi_cmd msg; in vcodec_send_ap_ipi() local
96 memset(&msg, 0, sizeof(msg)); in vcodec_send_ap_ipi()
97 msg.msg_id = msg_id; in vcodec_send_ap_ipi()
98 msg.vpu_inst_addr = vpu->inst_addr; in vcodec_send_ap_ipi()
100 err = vcodec_vpu_send_msg(vpu, &msg, sizeof(msg)); in vcodec_send_ap_ipi()
107 struct vdec_ap_ipi_init msg; in vpu_dec_init() local
120 memset(&msg, 0, sizeof(msg)); in vpu_dec_init()
121 msg.msg_id = AP_IPIMSG_DEC_INIT; in vpu_dec_init()
122 msg.ap_inst_addr = (unsigned long)vpu; in vpu_dec_init()
126 err = vcodec_vpu_send_msg(vpu, (void *)&msg, sizeof(msg)); in vpu_dec_init()
133 struct vdec_ap_ipi_dec_start msg; in vpu_dec_start() local
139 if (len > ARRAY_SIZE(msg.data)) { in vpu_dec_start()
144 memset(&msg, 0, sizeof(msg)); in vpu_dec_start()
145 msg.msg_id = AP_IPIMSG_DEC_START; in vpu_dec_start()
146 msg.vpu_inst_addr = vpu->inst_addr; in vpu_dec_start()
149 msg.data[i] = data[i]; in vpu_dec_start()
151 err = vcodec_vpu_send_msg(vpu, (void *)&msg, sizeof(msg)); in vpu_dec_start()