Home
last modified time | relevance | path

Searched refs:mad_recv_wc (Results 1 – 7 of 7) sorted by relevance

/drivers/infiniband/core/
Dmad_rmpp.c281 struct ib_mad_recv_wc *mad_recv_wc) in create_rmpp_recv() argument
291 mad_recv_wc->wc, in create_rmpp_recv()
292 mad_recv_wc->recv_buf.grh, in create_rmpp_recv()
305 rmpp_recv->rmpp_wc = mad_recv_wc; in create_rmpp_recv()
306 rmpp_recv->cur_seg_buf = &mad_recv_wc->recv_buf; in create_rmpp_recv()
312 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv()
314 rmpp_recv->src_qp = mad_recv_wc->wc->src_qp; in create_rmpp_recv()
315 rmpp_recv->slid = mad_recv_wc->wc->slid; in create_rmpp_recv()
327 struct ib_mad_recv_wc *mad_recv_wc) in find_rmpp_recv() argument
330 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in find_rmpp_recv()
[all …]
Dcm.c186 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()
[all …]
Duser_mad.c208 struct ib_mad_recv_wc *mad_recv_wc) in recv_handler() argument
213 if (mad_recv_wc->wc->status != IB_WC_SUCCESS) in recv_handler()
220 packet->length = mad_recv_wc->mad_len; in recv_handler()
221 packet->recv_wc = mad_recv_wc; in recv_handler()
224 packet->mad.hdr.length = hdr_size(file) + mad_recv_wc->mad_len; in recv_handler()
225 packet->mad.hdr.qpn = cpu_to_be32(mad_recv_wc->wc->src_qp); in recv_handler()
226 packet->mad.hdr.lid = cpu_to_be16(mad_recv_wc->wc->slid); in recv_handler()
227 packet->mad.hdr.sl = mad_recv_wc->wc->sl; in recv_handler()
228 packet->mad.hdr.path_bits = mad_recv_wc->wc->dlid_path_bits; in recv_handler()
229 packet->mad.hdr.pkey_index = mad_recv_wc->wc->pkey_index; in recv_handler()
[all …]
Dmad.c630 struct ib_mad_recv_wc *mad_recv_wc, in snoop_recv() argument
647 mad_recv_wc); in snoop_recv()
1156 void ib_free_recv_mad(struct ib_mad_recv_wc *mad_recv_wc) in ib_free_recv_mad() argument
1164 list_splice_init(&mad_recv_wc->rmpp_list, &free_list); in ib_free_recv_mad()
1168 mad_recv_wc = container_of(mad_recv_buf, struct ib_mad_recv_wc, in ib_free_recv_mad()
1170 mad_priv_hdr = container_of(mad_recv_wc, in ib_free_recv_mad()
1798 struct ib_mad_recv_wc *mad_recv_wc) in ib_mad_complete_recv() argument
1804 INIT_LIST_HEAD(&mad_recv_wc->rmpp_list); in ib_mad_complete_recv()
1805 list_add(&mad_recv_wc->recv_buf.list, &mad_recv_wc->rmpp_list); in ib_mad_complete_recv()
1807 mad_recv_wc = ib_process_rmpp_recv_wc(mad_agent_priv, in ib_mad_complete_recv()
[all …]
Dmad_rmpp.h47 struct ib_mad_recv_wc *mad_recv_wc);
Dsa_query.c1115 struct ib_mad_recv_wc *mad_recv_wc) in recv_handler() argument
1120 mad_buf = (void *) (unsigned long) mad_recv_wc->wc->wr_id; in recv_handler()
1124 if (mad_recv_wc->wc->status == IB_WC_SUCCESS) in recv_handler()
1126 mad_recv_wc->recv_buf.mad->mad_hdr.status ? in recv_handler()
1128 (struct ib_sa_mad *) mad_recv_wc->recv_buf.mad); in recv_handler()
1133 ib_free_recv_mad(mad_recv_wc); in recv_handler()
Dmad_priv.h220 struct ib_mad_recv_wc *mad_recv_wc);