• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/infiniband/hw/amso1100/

Lines Matching refs:wr

82 	struct c2wr_init_req wr;
85 memset(&wr, 0, sizeof(wr));
86 c2_wr_set_id(&wr, CCWR_INIT);
87 wr.hdr.context = 0;
88 wr.hint_count = cpu_to_be64(c2dev->hint_count_dma);
89 wr.q0_host_shared = cpu_to_be64(c2dev->req_vq.shared_dma);
90 wr.q1_host_shared = cpu_to_be64(c2dev->rep_vq.shared_dma);
91 wr.q1_host_msg_pool = cpu_to_be64(c2dev->rep_vq.host_dma);
92 wr.q2_host_shared = cpu_to_be64(c2dev->aeq.shared_dma);
93 wr.q2_host_msg_pool = cpu_to_be64(c2dev->aeq.host_dma);
96 err = vq_send_wr(c2dev, (union c2wr *) & wr);
106 struct c2wr_init_req wr;
108 memset(&wr, 0, sizeof(wr));
109 c2_wr_set_id(&wr, CCWR_TERM);
110 wr.hdr.context = 0;
113 vq_send_wr(c2dev, (union c2wr *) & wr);
125 struct c2wr_rnic_query_req wr;
133 c2_wr_set_id(&wr, CCWR_RNIC_QUERY);
134 wr.hdr.context = (unsigned long) vq_req;
135 wr.rnic_handle = c2dev->adapter_handle;
139 err = vq_send_wr(c2dev, (union c2wr *) &wr);
214 struct c2wr_rnic_setconfig_req *wr;
224 wr = kmalloc(c2dev->req_vq.msg_size, GFP_KERNEL);
225 if (!wr) {
230 c2_wr_set_id(wr, CCWR_RNIC_SETCONFIG);
231 wr->hdr.context = (unsigned long) vq_req;
232 wr->rnic_handle = c2dev->adapter_handle;
233 wr->option = cpu_to_be32(C2_CFG_ADD_ADDR);
239 memcpy(wr->data, &netaddr, len);
243 err = vq_send_wr(c2dev, (union c2wr *) wr);
264 kfree(wr);
276 struct c2wr_rnic_setconfig_req *wr;
286 wr = kmalloc(c2dev->req_vq.msg_size, GFP_KERNEL);
287 if (!wr) {
292 c2_wr_set_id(wr, CCWR_RNIC_SETCONFIG);
293 wr->hdr.context = (unsigned long) vq_req;
294 wr->rnic_handle = c2dev->adapter_handle;
295 wr->option = cpu_to_be32(C2_CFG_DEL_ADDR);
301 memcpy(wr->data, &netaddr, len);
305 err = vq_send_wr(c2dev, (union c2wr *) wr);
326 kfree(wr);
339 union c2wr wr;
348 memset(&wr, 0, sizeof(wr));
349 c2_wr_set_id(&wr, CCWR_RNIC_OPEN);
350 wr.rnic_open.req.hdr.context = (unsigned long) (vq_req);
351 wr.rnic_open.req.flags = cpu_to_be16(RNIC_PRIV_MODE);
352 wr.rnic_open.req.port_num = cpu_to_be16(0);
353 wr.rnic_open.req.user_context = (unsigned long) c2dev;
357 err = vq_send_wr(c2dev, &wr);
393 union c2wr wr;
402 memset(&wr, 0, sizeof(wr));
403 c2_wr_set_id(&wr, CCWR_RNIC_CLOSE);
404 wr.rnic_close.req.hdr.context = (unsigned long) vq_req;
405 wr.rnic_close.req.rnic_handle = c2dev->adapter_handle;
409 err = vq_send_wr(c2dev, &wr);