Lines Matching refs:head
55 u32 head; in qib_cq_enter() local
65 head = wc->head; in qib_cq_enter()
66 if (head >= (unsigned) cq->ibcq.cqe) { in qib_cq_enter()
67 head = cq->ibcq.cqe; in qib_cq_enter()
70 next = head + 1; 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()
157 if (tail == wc->head) in qib_poll_cq()
309 wc->head = 0; in qib_create_cq()
378 cq->queue->head != cq->queue->tail) in qib_req_notify_cq()
397 u32 head, tail, n; in qib_resize_cq() local
435 head = old_wc->head; in qib_resize_cq()
436 if (head > (u32) cq->ibcq.cqe) in qib_resize_cq()
437 head = (u32) cq->ibcq.cqe; in qib_resize_cq()
441 if (head < tail) in qib_resize_cq()
442 n = cq->ibcq.cqe + 1 + head - tail; in qib_resize_cq()
444 n = head - tail; in qib_resize_cq()
449 for (n = 0; tail != head; n++) { in qib_resize_cq()
460 wc->head = n; in qib_resize_cq()