• Home
  • Raw
  • Download

Lines Matching refs:wq

85 static inline unsigned int svnic_wq_desc_avail(struct vnic_wq *wq)  in svnic_wq_desc_avail()  argument
88 return wq->ring.desc_avail; in svnic_wq_desc_avail()
91 static inline unsigned int svnic_wq_desc_used(struct vnic_wq *wq) in svnic_wq_desc_used() argument
94 return wq->ring.desc_count - wq->ring.desc_avail - 1; in svnic_wq_desc_used()
97 static inline void *svnic_wq_next_desc(struct vnic_wq *wq) in svnic_wq_next_desc() argument
99 return wq->to_use->desc; in svnic_wq_next_desc()
102 static inline void svnic_wq_post(struct vnic_wq *wq, in svnic_wq_post() argument
106 struct vnic_wq_buf *buf = wq->to_use; in svnic_wq_post()
121 iowrite32(buf->index, &wq->ctrl->posted_index); in svnic_wq_post()
123 wq->to_use = buf; in svnic_wq_post()
125 wq->ring.desc_avail--; in svnic_wq_post()
128 static inline void svnic_wq_service(struct vnic_wq *wq, in svnic_wq_service() argument
130 void (*buf_service)(struct vnic_wq *wq, in svnic_wq_service() argument
136 buf = wq->to_clean; in svnic_wq_service()
139 (*buf_service)(wq, cq_desc, buf, opaque); in svnic_wq_service()
141 wq->ring.desc_avail++; in svnic_wq_service()
143 wq->to_clean = buf->next; in svnic_wq_service()
148 buf = wq->to_clean; in svnic_wq_service()
152 void svnic_wq_free(struct vnic_wq *wq);
153 int svnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq,
155 int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq,
157 void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index,
162 void svnic_wq_init(struct vnic_wq *wq, unsigned int cq_index,
165 unsigned int svnic_wq_error_status(struct vnic_wq *wq);
166 void svnic_wq_enable(struct vnic_wq *wq);
167 int svnic_wq_disable(struct vnic_wq *wq);
168 void svnic_wq_clean(struct vnic_wq *wq,
169 void (*buf_clean)(struct vnic_wq *wq, struct vnic_wq_buf *buf));