Lines Matching refs:tx_buf
76 struct ivpu_ipc_tx_buf *tx_buf;
80 tx_buf_vpu_addr = gen_pool_alloc(ipc->mm_tx, sizeof(*tx_buf));
83 sizeof(*tx_buf));
87 tx_buf = ivpu_to_cpu_addr(ipc->mem_tx, tx_buf_vpu_addr);
88 if (drm_WARN_ON(&vdev->drm, !tx_buf)) {
89 gen_pool_free(ipc->mm_tx, tx_buf_vpu_addr, sizeof(*tx_buf));
95 if (tx_buf->ipc.status != IVPU_IPC_HDR_FREE)
99 if (tx_buf->jsm.status != VPU_JSM_MSG_FREE)
103 memset(tx_buf, 0, sizeof(*tx_buf));
104 tx_buf->ipc.data_addr = jsm_vpu_addr;
106 tx_buf->ipc.data_size = sizeof(*req);
107 tx_buf->ipc.channel = cons->channel;
108 tx_buf->ipc.src_node = 0;
109 tx_buf->ipc.dst_node = 1;
110 tx_buf->ipc.status = IVPU_IPC_HDR_ALLOCATED;
111 tx_buf->jsm.type = req->type;
112 tx_buf->jsm.status = VPU_JSM_MSG_ALLOCATED;
113 tx_buf->jsm.payload = req->payload;
116 tx_buf->jsm.request_id = req->request_id;
122 ivpu_jsm_msg_dump(vdev, "TX", &tx_buf->jsm, jsm_vpu_addr);
123 ivpu_ipc_msg_dump(vdev, "TX", &tx_buf->ipc, tx_buf_vpu_addr);