Lines Matching refs:num_free
217 return (vq->indirect && total_sg > 1 && vq->vq.num_free); in virtqueue_use_indirect()
530 if (vq->vq.num_free < descs_used) { in virtqueue_add_split()
532 descs_used, vq->vq.num_free); in virtqueue_add_split()
598 vq->vq.num_free -= descs_used; in virtqueue_add_split()
707 vq->vq.num_free++; in detach_buf_split()
715 vq->vq.num_free++; in detach_buf_split()
912 BUG_ON(vq->vq.num_free != vq->split.vring.num); in virtqueue_detach_unused_buf_split()
1071 if (unlikely(vq->vq.num_free < 1)) { in virtqueue_add_indirect_packed()
1127 vq->vq.num_free -= 1; in virtqueue_add_indirect_packed()
1215 if (unlikely(vq->vq.num_free < descs_used)) { in virtqueue_add_packed()
1217 descs_used, vq->vq.num_free); in virtqueue_add_packed()
1268 vq->vq.num_free -= descs_used; in virtqueue_add_packed()
1379 vq->vq.num_free += state->num; in detach_buf_packed()
1569 bufs = (vq->packed.vring.num - vq->vq.num_free) * 3 / 4; in virtqueue_enable_cb_delayed_packed()
1631 BUG_ON(vq->vq.num_free != vq->packed.vring.num); in virtqueue_detach_unused_buf_packed()
1703 vq->vq.num_free = num; in vring_create_virtqueue_packed()
2192 vq->vq.num_free = vring.num; in __vring_new_virtqueue()