Lines Matching refs:vq_req
139 struct c2_vq_req *vq_req; in c2_qp_modify() local
150 vq_req = vq_req_alloc(c2dev); in c2_qp_modify()
151 if (!vq_req) in c2_qp_modify()
155 wr.hdr.context = (unsigned long) vq_req; in c2_qp_modify()
178 vq_req->cm_id = qp->cm_id; in c2_qp_modify()
179 vq_req->event = IW_CM_EVENT_CLOSE; in c2_qp_modify()
205 vq_req_get(c2dev, vq_req); in c2_qp_modify()
209 vq_req_put(c2dev, vq_req); in c2_qp_modify()
213 err = vq_wait_for_reply(c2dev, vq_req); in c2_qp_modify()
217 reply = (struct c2wr_qp_modify_rep *) (unsigned long) vq_req->reply_msg; in c2_qp_modify()
236 if (vq_req->event==IW_CM_EVENT_CLOSE && qp->cm_id) { in c2_qp_modify()
244 vq_req_free(c2dev, vq_req); in c2_qp_modify()
258 struct c2_vq_req *vq_req; in c2_qp_set_read_limits() local
261 vq_req = vq_req_alloc(c2dev); in c2_qp_set_read_limits()
262 if (!vq_req) in c2_qp_set_read_limits()
266 wr.hdr.context = (unsigned long) vq_req; in c2_qp_set_read_limits()
276 vq_req_get(c2dev, vq_req); in c2_qp_set_read_limits()
280 vq_req_put(c2dev, vq_req); in c2_qp_set_read_limits()
284 err = vq_wait_for_reply(c2dev, vq_req); in c2_qp_set_read_limits()
289 vq_req->reply_msg; in c2_qp_set_read_limits()
298 vq_req_free(c2dev, vq_req); in c2_qp_set_read_limits()
304 struct c2_vq_req *vq_req; in destroy_qp() local
313 vq_req = vq_req_alloc(c2dev); in destroy_qp()
314 if (!vq_req) { in destroy_qp()
322 wr.hdr.context = (unsigned long) vq_req; in destroy_qp()
329 vq_req_get(c2dev, vq_req); in destroy_qp()
336 vq_req->qp = qp; in destroy_qp()
337 vq_req->cm_id = qp->cm_id; in destroy_qp()
338 vq_req->event = IW_CM_EVENT_CLOSE; in destroy_qp()
347 vq_req_put(c2dev, vq_req); in destroy_qp()
354 err = vq_wait_for_reply(c2dev, vq_req); in destroy_qp()
362 reply = (struct c2wr_qp_destroy_rep *) (unsigned long) (vq_req->reply_msg); in destroy_qp()
377 vq_req_free(c2dev, vq_req); in destroy_qp()
421 struct c2_vq_req *vq_req; in c2_alloc_qp() local
451 vq_req = vq_req_alloc(c2dev); in c2_alloc_qp()
452 if (vq_req == NULL) { in c2_alloc_qp()
460 wr.hdr.context = (unsigned long) vq_req; in c2_alloc_qp()
479 vq_req_get(c2dev, vq_req); in c2_alloc_qp()
484 vq_req_put(c2dev, vq_req); in c2_alloc_qp()
489 err = vq_wait_for_reply(c2dev, vq_req); in c2_alloc_qp()
495 reply = (struct c2wr_qp_create_rep *) (unsigned long) (vq_req->reply_msg); in c2_alloc_qp()
553 vq_req_free(c2dev, vq_req); in c2_alloc_qp()
564 vq_req_free(c2dev, vq_req); in c2_alloc_qp()