Home
last modified time | relevance | path

Searched refs:num_free (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.10/tools/virtio/ringtest/
Dring.c62 unsigned num_free; member
103 guest.num_free = ring_size; in alloc_ring()
116 if (!guest.num_free) in add_inbuf()
119 guest.num_free--; in add_inbuf()
159 guest.num_free++; in get_buf()
Dvirtio_ring_0_9.c44 unsigned short num_free; member
89 guest.num_free = ring_size; in alloc_ring()
107 if (!guest.num_free) in add_inbuf()
115 guest.num_free--; in add_inbuf()
192 guest.num_free++; in get_buf()
/Linux-v5.10/drivers/fpga/
Dstratix10-soc.c74 uint num_free = 0; in s10_free_buffers() local
79 num_free++; in s10_free_buffers()
88 num_free++; in s10_free_buffers()
92 return num_free == NUM_SVC_BUFS; in s10_free_buffers()
101 uint num_free = 0; in s10_free_buffer_count() local
106 num_free++; in s10_free_buffer_count()
108 return num_free; in s10_free_buffer_count()
/Linux-v5.10/drivers/infiniband/hw/mthca/
Dmthca_mr.c93 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 = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free, 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()
Dmthca_dev.h206 int *num_free; member
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/
Dmr.c55 if (buddy->num_free[o]) { in mlx4_buddy_alloc()
67 --buddy->num_free[o]; in mlx4_buddy_alloc()
73 ++buddy->num_free[o]; in mlx4_buddy_alloc()
91 --buddy->num_free[order]; in mlx4_buddy_free()
97 ++buddy->num_free[order]; in mlx4_buddy_free()
111 buddy->num_free = kcalloc(buddy->max_order + 1, sizeof(*buddy->num_free), in mlx4_buddy_init()
113 if (!buddy->bits || !buddy->num_free) in mlx4_buddy_init()
124 buddy->num_free[buddy->max_order] = 1; in mlx4_buddy_init()
134 kfree(buddy->num_free); in mlx4_buddy_init()
147 kfree(buddy->num_free); in mlx4_buddy_cleanup()
/Linux-v5.10/drivers/gpu/drm/via/
Dvia_dmablit.c517 blitq->num_free++; in via_dmablit_workqueue()
555 blitq->num_free = VIA_NUM_BLIT_SLOTS - 1; in via_init_dmablit()
682 DRM_DEBUG("Num free is %d\n", blitq->num_free); in via_dmablit_grab_slot()
684 while (blitq->num_free == 0) { in via_dmablit_grab_slot()
687 VIA_WAIT_ON(ret, blitq->busy_queue, HZ, blitq->num_free > 0); in via_dmablit_grab_slot()
694 blitq->num_free--; in via_dmablit_grab_slot()
710 blitq->num_free++; in via_dmablit_release_slot()
Dvia_dmablit.h68 unsigned num_free; member
/Linux-v5.10/drivers/virtio/
Dvirtio_ring.c212 return (vq->indirect && total_sg > 1 && vq->vq.num_free); in virtqueue_use_indirect()
467 if (vq->vq.num_free < descs_used) { in virtqueue_add_split()
469 descs_used, vq->vq.num_free); in virtqueue_add_split()
528 vq->vq.num_free -= descs_used; in virtqueue_add_split()
635 vq->vq.num_free++; in detach_buf_split()
644 vq->vq.num_free++; in detach_buf_split()
839 BUG_ON(vq->vq.num_free != vq->split.vring.num); in virtqueue_detach_unused_buf_split()
996 if (unlikely(vq->vq.num_free < 1)) { in virtqueue_add_indirect_packed()
1052 vq->vq.num_free -= 1; in virtqueue_add_indirect_packed()
1134 if (unlikely(vq->vq.num_free < descs_used)) { in virtqueue_add_packed()
[all …]
Dvirtio_balloon.c645 if (vq->num_free > 1) { in get_free_page_and_send()
/Linux-v5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_io.c55 free_db_area->num_free = HINIC_DB_MAX_AREAS; in init_db_area_idx()
67 free_db_area->num_free--; in get_db_area()
69 if (free_db_area->num_free < 0) { in get_db_area()
70 free_db_area->num_free++; in get_db_area()
100 free_db_area->num_free++; in return_db_area()
Dhinic_hw_io.h44 int num_free; member
/Linux-v5.10/drivers/net/wireless/ath/ath11k/
Ddbring.c80 int num_remain, req_entries, num_free; in ath11k_dbring_fill_bufs() local
88 num_free = ath11k_hal_srng_src_num_free(ar->ab, srng, true); in ath11k_dbring_fill_bufs()
89 req_entries = min(num_free, ring->bufs_max); in ath11k_dbring_fill_bufs()
Ddp_rx.c286 int num_free; in ath11k_dp_rxbufs_replenish() local
300 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rxbufs_replenish()
301 if (!req_entries && (num_free > (rx_ring->bufs_max * 3) / 4)) in ath11k_dp_rxbufs_replenish()
302 req_entries = num_free; in ath11k_dp_rxbufs_replenish()
304 req_entries = min(num_free, req_entries); in ath11k_dp_rxbufs_replenish()
2749 int num_free; in ath11k_dp_rx_mon_status_bufs_replenish() local
2763 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rx_mon_status_bufs_replenish()
2765 req_entries = min(num_free, req_entries); in ath11k_dp_rx_mon_status_bufs_replenish()
/Linux-v5.10/tools/virtio/linux/
Dvirtio.h23 unsigned int num_free; member
/Linux-v5.10/include/linux/
Dvirtio.h33 unsigned int num_free; member
/Linux-v5.10/drivers/net/caif/
Dcaif_virtio.c186 if (cfv->vq_tx->num_free <= cfv->watermark_tx) in cfv_release_used_buf()
540 if (unlikely(cfv->vq_tx->num_free <= num_present_cpus())) { in cfv_netdev_tx()
/Linux-v5.10/drivers/scsi/
Dqlogicpti.c972 int num_free = QLOGICPTI_REQ_QUEUE_LEN - REQ_QUEUE_DEPTH(in_ptr, out_ptr) - 64; in update_can_queue() local
973 host->can_queue = scsi_host_busy(host) + num_free; in update_can_queue()
974 host->sg_tablesize = QLOGICPTI_MAX_SG(num_free); in update_can_queue()
/Linux-v5.10/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c347 if (vq->num_free < elemcnt) { in virtio_gpu_queue_ctrl_sgs()
350 wait_event(vgdev->ctrlq.ack_queue, vq->num_free >= elemcnt); in virtio_gpu_queue_ctrl_sgs()
477 wait_event(vgdev->cursorq.ack_queue, vq->num_free >= outcnt); in virtio_gpu_queue_cursor()
/Linux-v5.10/drivers/net/
Dvirtio_net.c1258 } while (rq->vq->num_free); in try_fill_recv()
1362 if (rq->vq->num_free > min((unsigned int)budget, virtqueue_get_vring_size(rq->vq)) / 2) { in virtnet_receive()
1441 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_cleantx()
1526 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_tx()
1629 if (sq->vq->num_free < 2+MAX_SKB_FRAGS) { in start_xmit()
1635 if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) { in start_xmit()
/Linux-v5.10/net/vmw_vsock/
Dvirtio_transport.c280 } while (vq->num_free); in virtio_vsock_rx_fill()
/Linux-v5.10/drivers/net/wireless/ath/wil6210/
Ddebugfs.c1229 int num_free; in rx_buff_mgmt_show() local
1242 num_free = wil_print_rx_buff(s, &rbm->free); in rx_buff_mgmt_show()
1245 num_active + num_free); in rx_buff_mgmt_show()
/Linux-v5.10/drivers/char/
Dvirtio_console.c501 ret = vq->num_free; in add_inbuf()
629 if (out_vq->num_free == 0) in __send_to_port()
/Linux-v5.10/drivers/iommu/
Dvirtio-iommu.c969 size_t nr_evts = vq->num_free; in viommu_fill_evtq()
/Linux-v5.10/drivers/block/
Dvirtio_blk.c761 virtblk_queue_depth = vblk->vqs[0].vq->num_free; in virtblk_probe()

12