Lines Matching refs:recv_wc
131 struct ib_mad_recv_wc *recv_wc) in ack_recv() argument
136 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
137 msg = ib_create_send_mad(&rmpp_recv->agent->agent, recv_wc->wc->src_qp, in ack_recv()
138 recv_wc->wc->pkey_index, 1, hdr_len, in ack_recv()
144 format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv); in ack_recv()
152 struct ib_mad_recv_wc *recv_wc) in alloc_response_msg() argument
158 ah = ib_create_ah_from_wc(agent->qp->pd, recv_wc->wc, in alloc_response_msg()
159 recv_wc->recv_buf.grh, agent->port_num); in alloc_response_msg()
163 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
164 msg = ib_create_send_mad(agent, recv_wc->wc->src_qp, in alloc_response_msg()
165 recv_wc->wc->pkey_index, 1, in alloc_response_msg()
179 struct ib_mad_recv_wc *recv_wc) in ack_ds_ack() argument
185 msg = alloc_response_msg(&agent->agent, recv_wc); in ack_ds_ack()
190 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack()
213 struct ib_mad_recv_wc *recv_wc, u8 rmpp_status) in nack_recv() argument
219 msg = alloc_response_msg(&agent->agent, recv_wc); in nack_recv()
224 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv()