/Linux-v5.10/tools/virtio/ringtest/ |
D | ring.c | 62 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()
|
D | virtio_ring_0_9.c | 44 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/ |
D | stratix10-soc.c | 74 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/ |
D | mthca_mr.c | 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 = 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()
|
D | mthca_dev.h | 206 int *num_free; member
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 55 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/ |
D | via_dmablit.c | 517 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()
|
D | via_dmablit.h | 68 unsigned num_free; member
|
/Linux-v5.10/drivers/virtio/ |
D | virtio_ring.c | 212 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 …]
|
D | virtio_balloon.c | 645 if (vq->num_free > 1) { in get_free_page_and_send()
|
/Linux-v5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_io.c | 55 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()
|
D | hinic_hw_io.h | 44 int num_free; member
|
/Linux-v5.10/drivers/net/wireless/ath/ath11k/ |
D | dbring.c | 80 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()
|
D | dp_rx.c | 286 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/ |
D | virtio.h | 23 unsigned int num_free; member
|
/Linux-v5.10/include/linux/ |
D | virtio.h | 33 unsigned int num_free; member
|
/Linux-v5.10/drivers/net/caif/ |
D | caif_virtio.c | 186 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/ |
D | qlogicpti.c | 972 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/ |
D | virtgpu_vq.c | 347 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/ |
D | virtio_net.c | 1258 } 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/ |
D | virtio_transport.c | 280 } while (vq->num_free); in virtio_vsock_rx_fill()
|
/Linux-v5.10/drivers/net/wireless/ath/wil6210/ |
D | debugfs.c | 1229 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/ |
D | virtio_console.c | 501 ret = vq->num_free; in add_inbuf() 629 if (out_vq->num_free == 0) in __send_to_port()
|
/Linux-v5.10/drivers/iommu/ |
D | virtio-iommu.c | 969 size_t nr_evts = vq->num_free; in viommu_fill_evtq()
|
/Linux-v5.10/drivers/block/ |
D | virtio_blk.c | 761 virtblk_queue_depth = vblk->vqs[0].vq->num_free; in virtblk_probe()
|