Lines Matching refs:cq
72 static inline unsigned int vnic_cq_service(struct vnic_cq *cq, in vnic_cq_service() argument
83 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
84 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
88 while (color != cq->last_color) { in vnic_cq_service()
90 if ((*q_service)(cq->vdev, cq_desc, type, in vnic_cq_service()
94 cq->to_clean++; in vnic_cq_service()
95 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service()
96 cq->to_clean = 0; in vnic_cq_service()
97 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_service()
100 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
101 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
113 void vnic_cq_free(struct vnic_cq *cq);
114 int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index,
116 void vnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable,
121 void vnic_cq_clean(struct vnic_cq *cq);