Lines Matching refs:wr

46 	struct c2wr_qp_connect_req *wr;	/* variable size needs a malloc. */  in c2_llp_connect()  local
81 wr = kmalloc(c2dev->req_vq.msg_size, GFP_KERNEL); in c2_llp_connect()
82 if (!wr) { in c2_llp_connect()
93 c2_wr_set_id(wr, CCWR_QP_CONNECT); in c2_llp_connect()
94 wr->hdr.context = 0; in c2_llp_connect()
95 wr->rnic_handle = c2dev->adapter_handle; in c2_llp_connect()
96 wr->qp_handle = qp->adapter_handle; in c2_llp_connect()
98 wr->remote_addr = raddr->sin_addr.s_addr; in c2_llp_connect()
99 wr->remote_port = raddr->sin_port; in c2_llp_connect()
106 wr->private_data_length = in c2_llp_connect()
108 memcpy(&wr->private_data[0], iw_param->private_data, in c2_llp_connect()
111 wr->private_data_length = 0; in c2_llp_connect()
117 err = vq_send_wr(c2dev, (union c2wr *) wr); in c2_llp_connect()
121 kfree(wr); in c2_llp_connect()
138 struct c2wr_ep_listen_create_req wr; in c2_llp_service_create() local
161 c2_wr_set_id(&wr, CCWR_EP_LISTEN_CREATE); in c2_llp_service_create()
162 wr.hdr.context = (u64) (unsigned long) vq_req; in c2_llp_service_create()
163 wr.rnic_handle = c2dev->adapter_handle; in c2_llp_service_create()
164 wr.local_addr = laddr->sin_addr.s_addr; in c2_llp_service_create()
165 wr.local_port = laddr->sin_port; in c2_llp_service_create()
166 wr.backlog = cpu_to_be32(backlog); in c2_llp_service_create()
167 wr.user_context = (u64) (unsigned long) cm_id; in c2_llp_service_create()
177 err = vq_send_wr(c2dev, (union c2wr *) & wr); in c2_llp_service_create()
228 struct c2wr_ep_listen_destroy_req wr; in c2_llp_service_destroy() local
247 c2_wr_set_id(&wr, CCWR_EP_LISTEN_DESTROY); in c2_llp_service_destroy()
248 wr.hdr.context = (unsigned long) vq_req; in c2_llp_service_destroy()
249 wr.rnic_handle = c2dev->adapter_handle; in c2_llp_service_destroy()
250 wr.ep_handle = (u32)(unsigned long)cm_id->provider_data; in c2_llp_service_destroy()
260 err = vq_send_wr(c2dev, (union c2wr *) & wr); in c2_llp_service_destroy()
296 struct c2wr_cr_accept_req *wr; /* variable length WR */ in c2_llp_accept() local
321 wr = kmalloc(c2dev->req_vq.msg_size, GFP_KERNEL); in c2_llp_accept()
322 if (!wr) { in c2_llp_accept()
328 c2_wr_set_id(wr, CCWR_CR_ACCEPT); in c2_llp_accept()
329 wr->hdr.context = (unsigned long) vq_req; in c2_llp_accept()
330 wr->rnic_handle = c2dev->adapter_handle; in c2_llp_accept()
331 wr->ep_handle = (u32) (unsigned long) cm_id->provider_data; in c2_llp_accept()
332 wr->qp_handle = qp->adapter_handle; in c2_llp_accept()
348 wr->private_data_length = cpu_to_be32(iw_param->private_data_len); in c2_llp_accept()
349 memcpy(&wr->private_data[0], in c2_llp_accept()
352 wr->private_data_length = 0; in c2_llp_accept()
358 err = vq_send_wr(c2dev, (union c2wr *) wr); in c2_llp_accept()
382 kfree(wr); in c2_llp_accept()
400 struct c2wr_cr_reject_req wr; in c2_llp_reject() local
417 c2_wr_set_id(&wr, CCWR_CR_REJECT); in c2_llp_reject()
418 wr.hdr.context = (unsigned long) vq_req; in c2_llp_reject()
419 wr.rnic_handle = c2dev->adapter_handle; in c2_llp_reject()
420 wr.ep_handle = (u32) (unsigned long) cm_id->provider_data; in c2_llp_reject()
430 err = vq_send_wr(c2dev, (union c2wr *) & wr); in c2_llp_reject()