Searched refs:num_free (Results 1 – 9 of 9) sorted by relevance
86 unsigned int num_free; member145 vq->num_free--; in vring_add_indirect()176 if (vq->indirect && (out + in) > 1 && vq->num_free) { in virtqueue_add_buf_gfp()185 if (vq->num_free < out + in) { in virtqueue_add_buf_gfp()187 out + in, vq->num_free); in virtqueue_add_buf_gfp()198 vq->num_free -= out + in; in virtqueue_add_buf_gfp()233 return vq->num_free; in virtqueue_add_buf_gfp()275 vq->num_free++; in detach_buf()281 vq->num_free++; in detach_buf()379 BUG_ON(vq->num_free != vq->vring.num); in virtqueue_detach_unused_buf()[all …]
86 if (buddy->num_free[o]) { in mlx4_buddy_alloc()98 --buddy->num_free[o]; in mlx4_buddy_alloc()104 ++buddy->num_free[o]; in mlx4_buddy_alloc()122 --buddy->num_free[order]; in mlx4_buddy_free()128 ++buddy->num_free[order]; in mlx4_buddy_free()142 buddy->num_free = kzalloc((buddy->max_order + 1) * sizeof (int *), in mlx4_buddy_init()144 if (!buddy->bits || !buddy->num_free) in mlx4_buddy_init()156 buddy->num_free[buddy->max_order] = 1; in mlx4_buddy_init()166 kfree(buddy->num_free); in mlx4_buddy_init()179 kfree(buddy->num_free); in mlx4_buddy_cleanup()
115 unsigned int *num_free; member
520 blitq->num_free++; in via_dmablit_workqueue()558 blitq->num_free = VIA_NUM_BLIT_SLOTS - 1; in via_init_dmablit()686 DRM_DEBUG("Num free is %d\n", blitq->num_free); in via_dmablit_grab_slot()688 while (blitq->num_free == 0) { in via_dmablit_grab_slot()691 DRM_WAIT_ON(ret, blitq->busy_queue, DRM_HZ, blitq->num_free > 0); in via_dmablit_grab_slot()698 blitq->num_free--; in via_dmablit_grab_slot()714 blitq->num_free++; in via_dmablit_release_slot()
68 unsigned num_free; member
93 if (buddy->num_free[o]) { in mthca_buddy_alloc()105 --buddy->num_free[o]; in mthca_buddy_alloc()111 ++buddy->num_free[o]; in mthca_buddy_alloc()129 --buddy->num_free[order]; in mthca_buddy_free()135 ++buddy->num_free[order]; in mthca_buddy_free()149 buddy->num_free = kzalloc((buddy->max_order + 1) * sizeof (int *), in mthca_buddy_init()151 if (!buddy->bits || !buddy->num_free) in mthca_buddy_init()164 buddy->num_free[buddy->max_order] = 1; in mthca_buddy_init()174 kfree(buddy->num_free); in mthca_buddy_init()187 kfree(buddy->num_free); in mthca_buddy_cleanup()
206 int *num_free; member
962 int num_free = QLOGICPTI_REQ_QUEUE_LEN - REQ_QUEUE_DEPTH(in_ptr, out_ptr) - 64; in update_can_queue() local963 host->can_queue = host->host_busy + num_free; in update_can_queue()964 host->sg_tablesize = QLOGICPTI_MAX_SG(num_free); in update_can_queue()
4009 int num_free = num_free_tx_dma_buffers(info); in load_next_tx_holding_buffer() local4014 if (num_needed <= num_free) { in load_next_tx_holding_buffer()