Lines Matching refs:head
52 u32 head; in ipath_cq_enter() local
62 head = wc->head; in ipath_cq_enter()
63 if (head >= (unsigned) cq->ibcq.cqe) { in ipath_cq_enter()
64 head = cq->ibcq.cqe; in ipath_cq_enter()
67 next = head + 1; in ipath_cq_enter()
81 wc->uqueue[head].wr_id = entry->wr_id; in ipath_cq_enter()
82 wc->uqueue[head].status = entry->status; in ipath_cq_enter()
83 wc->uqueue[head].opcode = entry->opcode; in ipath_cq_enter()
84 wc->uqueue[head].vendor_err = entry->vendor_err; in ipath_cq_enter()
85 wc->uqueue[head].byte_len = entry->byte_len; in ipath_cq_enter()
86 wc->uqueue[head].ex.imm_data = (__u32 __force) entry->ex.imm_data; in ipath_cq_enter()
87 wc->uqueue[head].qp_num = entry->qp->qp_num; in ipath_cq_enter()
88 wc->uqueue[head].src_qp = entry->src_qp; in ipath_cq_enter()
89 wc->uqueue[head].wc_flags = entry->wc_flags; in ipath_cq_enter()
90 wc->uqueue[head].pkey_index = entry->pkey_index; in ipath_cq_enter()
91 wc->uqueue[head].slid = entry->slid; in ipath_cq_enter()
92 wc->uqueue[head].sl = entry->sl; in ipath_cq_enter()
93 wc->uqueue[head].dlid_path_bits = entry->dlid_path_bits; in ipath_cq_enter()
94 wc->uqueue[head].port_num = entry->port_num; in ipath_cq_enter()
98 wc->kqueue[head] = *entry; in ipath_cq_enter()
99 wc->head = next; in ipath_cq_enter()
150 if (tail == wc->head) in ipath_poll_cq()
288 wc->head = 0; in ipath_create_cq()
357 cq->queue->head != cq->queue->tail) in ipath_req_notify_cq()
376 u32 head, tail, n; in ipath_resize_cq() local
414 head = old_wc->head; in ipath_resize_cq()
415 if (head > (u32) cq->ibcq.cqe) in ipath_resize_cq()
416 head = (u32) cq->ibcq.cqe; in ipath_resize_cq()
420 if (head < tail) in ipath_resize_cq()
421 n = cq->ibcq.cqe + 1 + head - tail; in ipath_resize_cq()
423 n = head - tail; in ipath_resize_cq()
428 for (n = 0; tail != head; n++) { in ipath_resize_cq()
439 wc->head = n; in ipath_resize_cq()