Lines Matching defs:buf
92 struct vnic_wq_buf *buf = wq->to_use;
94 buf->sop = sop;
95 buf->os_buf = eop ? os_buf : NULL;
96 buf->dma_addr = dma_addr;
97 buf->len = len;
99 buf = buf->next;
107 iowrite32(buf->index, &wq->ctrl->posted_index);
109 wq->to_use = buf;
117 struct cq_desc *cq_desc, struct vnic_wq_buf *buf, void *opaque),
120 struct vnic_wq_buf *buf;
122 buf = wq->to_clean;
125 (*buf_service)(wq, cq_desc, buf, opaque);
129 wq->to_clean = buf->next;
131 if (buf->index == completed_index)
134 buf = wq->to_clean;
155 void (*buf_clean)(struct vnic_wq *wq, struct vnic_wq_buf *buf));