Lines Matching defs:buf
37 struct vnic_wq_buf *buf;
50 buf = wq->bufs[i];
52 buf->index = i * VNIC_WQ_BUF_BLK_ENTRIES + j;
53 buf->desc = (u8 *)wq->ring.descs +
54 wq->ring.desc_size * buf->index;
55 if (buf->index + 1 == count) {
56 buf->next = wq->bufs[0];
59 buf->next = wq->bufs[i + 1];
61 buf->next = buf + 1;
62 buf++;
211 void (*buf_clean)(struct vnic_wq *wq, struct vnic_wq_buf *buf))
213 struct vnic_wq_buf *buf;
217 buf = wq->to_clean;
221 (*buf_clean)(wq, buf);
223 buf = wq->to_clean = buf->next;