Lines Matching defs:msg
115 struct ib_mad_send_buf *msg;
433 struct ib_mad_send_buf *msg;
435 msg = ib_create_send_mad(port->agent, 1, 0, 0, IB_MGMT_SA_HDR,
437 if (IS_ERR(msg))
445 msg->ah = ib_create_ah(port->agent->qp->pd, &ah_attr);
446 if (IS_ERR(msg->ah)) {
447 ib_free_send_mad(msg);
451 msg->timeout_ms = retry_timer;
452 msg->retries = 0;
453 msg->context[0] = port;
454 msg->context[1] = update;
455 return msg;
467 struct ib_mad_send_buf *msg)
469 struct ib_sa_mad *mad = msg->mad;
477 mad->mad_hdr.tid = form_tid(msg->mad_agent->hi_tid);
497 port->msg = get_sa_msg(port, update);
498 if (!port->msg)
501 format_path_req(port, update, port->msg);
503 ret = ib_post_send_mad(port->msg, NULL);
510 ib_destroy_ah(port->msg->ah);
511 ib_free_send_mad(port->msg);
716 ib_cancel_mad(port->agent, port->msg);
1081 struct ib_mad_send_buf *msg;
1084 msg = (struct ib_mad_send_buf *) (unsigned long) mad_recv_wc->wc->wr_id;
1085 port = msg->context[0];
1086 update = msg->context[1];
1105 struct ib_mad_send_buf *msg;
1110 msg = mad_send_wc->send_buf;
1111 port = msg->context[0];
1112 update = msg->context[1];
1122 msg->timeout_ms < SA_DB_MAX_RETRY_TIMER) {
1124 msg->timeout_ms <<= 1;
1125 ret = ib_post_send_mad(msg, NULL);
1138 ib_destroy_ah(msg->ah);
1139 ib_free_send_mad(msg);