Lines Matching refs:cq
24 vnic_cq_fw_service(struct vnic_cq *cq, in vnic_cq_fw_service() argument
35 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service()
36 cq->ring.desc_size * cq->to_clean); in vnic_cq_fw_service()
39 while (color != cq->last_color) { in vnic_cq_fw_service()
41 if ((*q_service)(cq->vdev, cq->index, desc)) in vnic_cq_fw_service()
44 cq->to_clean++; in vnic_cq_fw_service()
45 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_fw_service()
46 cq->to_clean = 0; in vnic_cq_fw_service()
47 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_fw_service()
50 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service()
51 cq->ring.desc_size * cq->to_clean); in vnic_cq_fw_service()