Lines Matching refs:msg

185 	uint8_t mbox_api_version = req->msg.args[0];  in mbox_handle_mbox_info()
282 io.req.offset = get_u16(&req->msg.args[0]); in mbox_handle_create_window()
372 io.req.v1.offset = get_u16(&req->msg.args[0]); in mbox_handle_dirty_window()
373 io.req.v1.size = get_u32(&req->msg.args[2]); in mbox_handle_dirty_window()
375 io.req.v2.offset = get_u16(&req->msg.args[0]); in mbox_handle_dirty_window()
376 io.req.v2.size = get_u16(&req->msg.args[2]); in mbox_handle_dirty_window()
401 io.req.offset = get_u16(&req->msg.args[0]); in mbox_handle_erase_window()
402 io.req.size = get_u16(&req->msg.args[2]); in mbox_handle_erase_window()
436 io.req.offset = get_u16(&req->msg.args[0]); in mbox_handle_flush_window()
437 io.req.size = get_u32(&req->msg.args[2]); in mbox_handle_flush_window()
461 io.req.flags = req->msg.args[0]; in mbox_handle_close_window()
478 io.req.flags = req->msg.args[0]; in mbox_handle_ack()
492 uint8_t cmd = req->msg.command; in check_req_valid()
493 uint8_t seq = req->msg.seq; in check_req_valid()
560 .command = req->msg.command, in handle_mbox_req()
561 .seq = req->msg.seq, in handle_mbox_req()
567 MSG_INFO("Received MBOX command: %u\n", req->msg.command); in handle_mbox_req()
574 handler = transport_mbox_handlers[req->msg.command - 1]; in handle_mbox_req()
578 req->msg.command); in handle_mbox_req()
584 context->prev_seq = req->msg.seq; in handle_mbox_req()
615 static int get_message(struct mbox_context *context, union mbox_regs *msg) in get_message() argument
619 rc = read(context->fds[MBOX_FD].fd, msg, sizeof(msg->raw)); in get_message()
623 } else if (rc < (ssize_t)sizeof(msg->raw)) { in get_message()
624 MSG_ERR("Short read: %d expecting %zu\n", rc, sizeof(msg->raw)); in get_message()
629 MSG_DBG("MBOX cmd: %u\n", msg->msg.command); in get_message()
630 MSG_DBG("MBOX seq: %u\n", msg->msg.seq); in get_message()
632 MSG_DBG("MBOX arg[%d]: 0x%.2x\n", i, msg->msg.args[i]); in get_message()