Lines Matching refs:cq
58 static inline unsigned int vnic_cq_service(struct vnic_cq *cq,
69 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs +
70 cq->ring.desc_size * cq->to_clean);
74 while (color != cq->last_color) {
76 if ((*q_service)(cq->vdev, cq_desc, type,
80 cq->to_clean++;
81 if (cq->to_clean == cq->ring.desc_count) {
82 cq->to_clean = 0;
83 cq->last_color = cq->last_color ? 0 : 1;
86 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs +
87 cq->ring.desc_size * cq->to_clean);
99 void vnic_cq_free(struct vnic_cq *cq);
100 int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index,
102 void vnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable,
107 void vnic_cq_clean(struct vnic_cq *cq);