Lines Matching refs:wc

53 	struct qib_cq_wc *wc;  in qib_cq_enter()  local
64 wc = cq->queue; in qib_cq_enter()
65 head = wc->head; in qib_cq_enter()
71 if (unlikely(next == wc->tail)) { in qib_cq_enter()
84 wc->uqueue[head].wr_id = entry->wr_id; in qib_cq_enter()
85 wc->uqueue[head].status = entry->status; in qib_cq_enter()
86 wc->uqueue[head].opcode = entry->opcode; in qib_cq_enter()
87 wc->uqueue[head].vendor_err = entry->vendor_err; in qib_cq_enter()
88 wc->uqueue[head].byte_len = entry->byte_len; in qib_cq_enter()
89 wc->uqueue[head].ex.imm_data = in qib_cq_enter()
91 wc->uqueue[head].qp_num = entry->qp->qp_num; in qib_cq_enter()
92 wc->uqueue[head].src_qp = entry->src_qp; in qib_cq_enter()
93 wc->uqueue[head].wc_flags = entry->wc_flags; in qib_cq_enter()
94 wc->uqueue[head].pkey_index = entry->pkey_index; in qib_cq_enter()
95 wc->uqueue[head].slid = entry->slid; in qib_cq_enter()
96 wc->uqueue[head].sl = entry->sl; in qib_cq_enter()
97 wc->uqueue[head].dlid_path_bits = entry->dlid_path_bits; in qib_cq_enter()
98 wc->uqueue[head].port_num = entry->port_num; in qib_cq_enter()
102 wc->kqueue[head] = *entry; in qib_cq_enter()
103 wc->head = next; in qib_cq_enter()
139 struct qib_cq_wc *wc; in qib_poll_cq() local
152 wc = cq->queue; in qib_poll_cq()
153 tail = wc->tail; in qib_poll_cq()
157 if (tail == wc->head) in qib_poll_cq()
160 *entry = wc->kqueue[tail]; in qib_poll_cq()
166 wc->tail = tail; in qib_poll_cq()
223 struct qib_cq_wc *wc; in qib_create_cq() local
249 sz = sizeof(*wc); in qib_create_cq()
254 wc = vmalloc_user(sz); in qib_create_cq()
255 if (!wc) { in qib_create_cq()
267 cq->ip = qib_create_mmap_info(dev, sz, context, wc); in qib_create_cq()
309 wc->head = 0; in qib_create_cq()
310 wc->tail = 0; in qib_create_cq()
311 cq->queue = wc; in qib_create_cq()
320 vfree(wc); in qib_create_cq()
396 struct qib_cq_wc *wc; in qib_resize_cq() local
409 sz = sizeof(*wc); in qib_resize_cq()
414 wc = vmalloc_user(sz); in qib_resize_cq()
415 if (!wc) { in qib_resize_cq()
451 wc->uqueue[n] = old_wc->uqueue[tail]; in qib_resize_cq()
453 wc->kqueue[n] = old_wc->kqueue[tail]; in qib_resize_cq()
460 wc->head = n; in qib_resize_cq()
461 wc->tail = 0; in qib_resize_cq()
462 cq->queue = wc; in qib_resize_cq()
471 qib_update_mmap_info(dev, ip, sz, wc); in qib_resize_cq()
496 vfree(wc); in qib_resize_cq()