Lines Matching refs:cq
70 static inline unsigned int vnic_cq_service(struct vnic_cq *cq, in vnic_cq_service() argument
81 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
82 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
86 while (color != cq->last_color) { in vnic_cq_service()
88 if ((*q_service)(cq->vdev, cq_desc, type, in vnic_cq_service()
92 cq->to_clean++; in vnic_cq_service()
93 if (cq->to_clean == cq->ring.desc_count) { in vnic_cq_service()
94 cq->to_clean = 0; in vnic_cq_service()
95 cq->last_color = cq->last_color ? 0 : 1; in vnic_cq_service()
98 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in vnic_cq_service()
99 cq->ring.desc_size * cq->to_clean); in vnic_cq_service()
111 void vnic_cq_free(struct vnic_cq *cq);
112 int vnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq, unsigned int index,
114 void vnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable,
119 void vnic_cq_clean(struct vnic_cq *cq);