Lines Matching refs:reply
41 * a reply message back to the control domain. The reply is either a result
299 ldma_message_header_t *reply = NULL;
377 &reply, &reply_dlen);
379 LDMA_DBG("%s: DATA hdl=%llx, handler stat=%d reply=%p rlen=%d",
380 agent->info->name, hdl, status, (void *)reply, reply_dlen);
384 * If the handler has provided a reply message, we use it directly.
385 * Otherwise, we build a reply depending on the status of the request.
386 * In that case, we re-use the request buffer to build the reply
389 if (reply == NULL) {
391 reply = request;
399 reply->msg_type = LDMA_MSG_RESULT;
400 reply->msg_info = 0;
408 reply->msg_type = LDMA_MSG_ERROR;
409 reply->msg_info =
419 LDMA_DBG("%s: DATA hdl=%llx, reply num=%llu type=0x%x info=0x%x "
420 "dlen=%d", agent->info->name, hdl, reply->msg_num,
421 reply->msg_type, reply->msg_info, reply_dlen);
423 if (ds_send_msg(hdl, reply, reply_len) != 0) {
424 LDMA_ERR("agent %s has failed to send reply for request %llu",
428 if (reply != request)
429 free(reply);