int xdna_send_msg_wait(struct amdxdna_dev *xdna, struct mailbox_channel *chann, struct xdna_mailbox_msg *msg)
{ struct xdna_notify *hdl = msg->handle; int ret;
ret = xdna_mailbox_send_msg(chann, msg, TX_TIMEOUT); if (ret) {
XDNA_ERR(xdna, "Send message failed, ret %d", ret); return ret;
}
ret = wait_for_completion_timeout(&hdl->comp,
msecs_to_jiffies(RX_TIMEOUT)); if (!ret) {
XDNA_ERR(xdna, "Wait for completion timeout"); return -ETIME;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.