Lines Matching defs:mad_recv_wc
185 struct ib_mad_recv_wc *mad_recv_wc; /* Received MADs */
283 struct ib_mad_recv_wc *mad_recv_wc,
289 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc,
290 mad_recv_wc->recv_buf.grh, port->port_num);
294 m = ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index,
741 if (work->mad_recv_wc)
742 ib_free_recv_mad(work->mad_recv_wc);
1180 struct ib_mad_recv_wc *mad_recv_wc,
1189 ret = cm_alloc_response_msg(port, mad_recv_wc, &msg);
1194 rcv_msg = (struct cm_rej_msg *) mad_recv_wc->recv_buf.mad;
1277 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1396 ret = cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg);
1433 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1454 cm_issue_rej(work->port, work->mad_recv_wc,
1467 cm_issue_rej(work->port, work->mad_recv_wc,
1511 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad;
1519 cm_init_av_for_response(work->port, work->mad_recv_wc->wc,
1520 work->mad_recv_wc->recv_buf.grh,
1544 cm_process_routed_req(req_msg, work->mad_recv_wc->wc);
1733 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad;
1756 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad;
1764 ret = cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg);
1798 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad;
1837 cm_issue_rej(work->port, work->mad_recv_wc,
1917 rtu_msg = (struct cm_rtu_msg *)work->mad_recv_wc->recv_buf.mad;
2072 struct ib_mad_recv_wc *mad_recv_wc)
2079 ret = cm_alloc_response_msg(port, mad_recv_wc, &msg);
2083 dreq_msg = (struct cm_dreq_msg *) mad_recv_wc->recv_buf.mad;
2104 dreq_msg = (struct cm_dreq_msg *)work->mad_recv_wc->recv_buf.mad;
2110 cm_issue_drep(work->port, work->mad_recv_wc);
2131 if (cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg))
2173 drep_msg = (struct cm_drep_msg *)work->mad_recv_wc->recv_buf.mad;
2271 rej_msg = (struct cm_rej_msg *)work->mad_recv_wc->recv_buf.mad;
2319 rej_msg = (struct cm_rej_msg *)work->mad_recv_wc->recv_buf.mad;
2468 mra_msg = (struct cm_mra_msg *)work->mad_recv_wc->recv_buf.mad;
2652 lap_msg = (struct cm_lap_msg *)work->mad_recv_wc->recv_buf.mad;
2674 if (cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg))
2697 cm_init_av_for_response(work->port, work->mad_recv_wc->wc,
2698 work->mad_recv_wc->recv_buf.grh,
2789 apr_msg = (struct cm_apr_msg *)work->mad_recv_wc->recv_buf.mad;
2935 work->mad_recv_wc->recv_buf.mad;
2957 work->mad_recv_wc->recv_buf.mad;
2958 wc = work->mad_recv_wc->wc;
2961 cm_init_av_for_response(work->port, work->mad_recv_wc->wc,
2962 work->mad_recv_wc->recv_buf.grh,
3073 work->mad_recv_wc->recv_buf.mad;
3089 work->mad_recv_wc->recv_buf.mad;
3299 work->mad_recv_wc = NULL;
3345 struct ib_mad_recv_wc *mad_recv_wc)
3353 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) {
3355 paths = 1 + (((struct cm_req_msg *) mad_recv_wc->recv_buf.mad)->
3391 ib_free_recv_mad(mad_recv_wc);
3395 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id);
3402 ib_free_recv_mad(mad_recv_wc);
3408 work->mad_recv_wc = mad_recv_wc;