Lines Matching refs:cq
60 static inline unsigned int svnic_cq_service(struct vnic_cq *cq, in svnic_cq_service() argument
71 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in svnic_cq_service()
72 cq->ring.desc_size * cq->to_clean); in svnic_cq_service()
76 while (color != cq->last_color) { in svnic_cq_service()
78 if ((*q_service)(cq->vdev, cq_desc, type, in svnic_cq_service()
82 cq->to_clean++; in svnic_cq_service()
83 if (cq->to_clean == cq->ring.desc_count) { in svnic_cq_service()
84 cq->to_clean = 0; in svnic_cq_service()
85 cq->last_color = cq->last_color ? 0 : 1; in svnic_cq_service()
88 cq_desc = (struct cq_desc *)((u8 *)cq->ring.descs + in svnic_cq_service()
89 cq->ring.desc_size * cq->to_clean); in svnic_cq_service()
101 void svnic_cq_free(struct vnic_cq *cq);
102 int svnic_cq_alloc(struct vnic_dev *vdev, struct vnic_cq *cq,
104 void svnic_cq_init(struct vnic_cq *cq, unsigned int flow_control_enable,
109 void svnic_cq_clean(struct vnic_cq *cq);