Lines Matching refs:mad_recv_wc
186 struct ib_mad_recv_wc *mad_recv_wc; /* Received MADs */ member
284 struct ib_mad_recv_wc *mad_recv_wc, in cm_alloc_response_msg() argument
290 ah = ib_create_ah_from_wc(port->mad_agent->qp->pd, mad_recv_wc->wc, in cm_alloc_response_msg()
291 mad_recv_wc->recv_buf.grh, port->port_num); in cm_alloc_response_msg()
295 m = ib_create_send_mad(port->mad_agent, 1, mad_recv_wc->wc->pkey_index, in cm_alloc_response_msg()
743 if (work->mad_recv_wc) in cm_free_work()
744 ib_free_recv_mad(work->mad_recv_wc); in cm_free_work()
1189 struct ib_mad_recv_wc *mad_recv_wc, in cm_issue_rej() argument
1198 ret = cm_alloc_response_msg(port, mad_recv_wc, &msg); in cm_issue_rej()
1203 rcv_msg = (struct cm_rej_msg *) mad_recv_wc->recv_buf.mad; in cm_issue_rej()
1286 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_req_event()
1405 ret = cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg); in cm_dup_req_handler()
1442 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad; in cm_match_req()
1463 cm_issue_rej(work->port, work->mad_recv_wc, in cm_match_req()
1476 cm_issue_rej(work->port, work->mad_recv_wc, in cm_match_req()
1525 req_msg = (struct cm_req_msg *)work->mad_recv_wc->recv_buf.mad; in cm_req_handler()
1533 cm_init_av_for_response(work->port, work->mad_recv_wc->wc, in cm_req_handler()
1534 work->mad_recv_wc->recv_buf.grh, in cm_req_handler()
1558 cm_process_routed_req(req_msg, work->mad_recv_wc->wc); in cm_req_handler()
1753 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rep_event()
1776 rep_msg = (struct cm_rep_msg *) work->mad_recv_wc->recv_buf.mad; in cm_dup_rep_handler()
1784 ret = cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg); in cm_dup_rep_handler()
1818 rep_msg = (struct cm_rep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rep_handler()
1857 cm_issue_rej(work->port, work->mad_recv_wc, in cm_rep_handler()
1937 rtu_msg = (struct cm_rtu_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rtu_handler()
2096 struct ib_mad_recv_wc *mad_recv_wc) in cm_issue_drep() argument
2103 ret = cm_alloc_response_msg(port, mad_recv_wc, &msg); in cm_issue_drep()
2107 dreq_msg = (struct cm_dreq_msg *) mad_recv_wc->recv_buf.mad; in cm_issue_drep()
2128 dreq_msg = (struct cm_dreq_msg *)work->mad_recv_wc->recv_buf.mad; in cm_dreq_handler()
2134 cm_issue_drep(work->port, work->mad_recv_wc); in cm_dreq_handler()
2159 if (cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg)) in cm_dreq_handler()
2201 drep_msg = (struct cm_drep_msg *)work->mad_recv_wc->recv_buf.mad; in cm_drep_handler()
2299 rej_msg = (struct cm_rej_msg *)work->mad_recv_wc->recv_buf.mad; in cm_format_rej_event()
2347 rej_msg = (struct cm_rej_msg *)work->mad_recv_wc->recv_buf.mad; in cm_rej_handler()
2505 mra_msg = (struct cm_mra_msg *)work->mad_recv_wc->recv_buf.mad; in cm_mra_handler()
2689 lap_msg = (struct cm_lap_msg *)work->mad_recv_wc->recv_buf.mad; in cm_lap_handler()
2711 if (cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg)) in cm_lap_handler()
2734 cm_init_av_for_response(work->port, work->mad_recv_wc->wc, in cm_lap_handler()
2735 work->mad_recv_wc->recv_buf.grh, in cm_lap_handler()
2826 apr_msg = (struct cm_apr_msg *)work->mad_recv_wc->recv_buf.mad; in cm_apr_handler()
2972 work->mad_recv_wc->recv_buf.mad; in cm_format_sidr_req_event()
2994 work->mad_recv_wc->recv_buf.mad; in cm_sidr_req_handler()
2995 wc = work->mad_recv_wc->wc; in cm_sidr_req_handler()
2998 cm_init_av_for_response(work->port, work->mad_recv_wc->wc, in cm_sidr_req_handler()
2999 work->mad_recv_wc->recv_buf.grh, in cm_sidr_req_handler()
3111 work->mad_recv_wc->recv_buf.mad; in cm_format_sidr_rep_event()
3127 work->mad_recv_wc->recv_buf.mad; in cm_sidr_rep_handler()
3337 work->mad_recv_wc = NULL; in cm_establish()
3383 struct ib_mad_recv_wc *mad_recv_wc) in cm_recv_handler() argument
3391 switch (mad_recv_wc->recv_buf.mad->mad_hdr.attr_id) { in cm_recv_handler()
3393 paths = 1 + (((struct cm_req_msg *) mad_recv_wc->recv_buf.mad)-> in cm_recv_handler()
3429 ib_free_recv_mad(mad_recv_wc); in cm_recv_handler()
3433 attr_id = be16_to_cpu(mad_recv_wc->recv_buf.mad->mad_hdr.attr_id); in cm_recv_handler()
3440 ib_free_recv_mad(mad_recv_wc); in cm_recv_handler()
3446 work->mad_recv_wc = mad_recv_wc; in cm_recv_handler()