Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Ddr_buddy.c22 buddy->num_free = kcalloc(buddy->max_order + 1, in mlx5dr_buddy_init()
23 sizeof(*buddy->num_free), in mlx5dr_buddy_init()
26 if (!buddy->bitmap || !buddy->num_free) in mlx5dr_buddy_init()
45 buddy->num_free[buddy->max_order] = 1; in mlx5dr_buddy_init()
54 kfree(buddy->num_free); in mlx5dr_buddy_init()
68 kfree(buddy->num_free); in mlx5dr_buddy_cleanup()
81 if (!buddy->num_free[order_iter]) in dr_buddy_find_free_seg()
131 --buddy->num_free[order_iter]; in mlx5dr_buddy_alloc_mem()
141 ++buddy->num_free[order_iter]; in mlx5dr_buddy_alloc_mem()
160 --buddy->num_free[order]; in mlx5dr_buddy_free_mem()
[all …]
A Dmlx5dr.h174 unsigned int *num_free; member
/linux-6.3-rc2/drivers/gpu/drm/virtio/
A Dvirtgpu_trace.h22 __field(u32, num_free)
33 __entry->num_free = vq->num_free;
39 __entry->ctx_id, __entry->num_free, __entry->seqno)
A Dvirtgpu_vq.c338 if (vq->num_free < elemcnt) { in virtio_gpu_queue_ctrl_sgs()
341 wait_event(vgdev->ctrlq.ack_queue, vq->num_free >= elemcnt); in virtio_gpu_queue_ctrl_sgs()
469 wait_event(vgdev->cursorq.ack_queue, vq->num_free >= outcnt); in virtio_gpu_queue_cursor()
/linux-6.3-rc2/tools/virtio/ringtest/
A 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()
A 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-6.3-rc2/drivers/fpga/
A 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-6.3-rc2/drivers/infiniband/hw/mthca/
A 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()
162 buddy->num_free[buddy->max_order] = 1; in mthca_buddy_init()
172 kfree(buddy->num_free); in mthca_buddy_init()
185 kfree(buddy->num_free); in mthca_buddy_cleanup()
A Dmthca_dev.h205 int *num_free; member
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A 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-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_taprio.c272 u32 num_free, state, list; in lan966x_taprio_gcl_free_get() local
277 num_free = LAN966X_TAPRIO_NUM_GCL; in lan966x_taprio_gcl_free_get()
294 num_free--; in lan966x_taprio_gcl_free_get()
305 return num_free; in lan966x_taprio_gcl_free_get()
/linux-6.3-rc2/drivers/net/ethernet/huawei/hinic/
A 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()
A Dhinic_hw_io.h44 int num_free; member
/linux-6.3-rc2/drivers/virtio/
A Dvirtio_ring.c404 vq->vq.num_free = num; in virtqueue_init()
575 if (unlikely(vq->vq.num_free < descs_used)) { in virtqueue_add_split()
577 descs_used, vq->vq.num_free); in virtqueue_add_split()
643 vq->vq.num_free -= descs_used; in virtqueue_add_split()
752 vq->vq.num_free++; in detach_buf_split()
760 vq->vq.num_free++; in detach_buf_split()
1261 if (unlikely(vq->vq.num_free < 1)) { in virtqueue_add_indirect_packed()
1317 vq->vq.num_free -= 1; in virtqueue_add_indirect_packed()
1409 descs_used, vq->vq.num_free); in virtqueue_add_packed()
1460 vq->vq.num_free -= descs_used; in virtqueue_add_packed()
[all …]
/linux-6.3-rc2/drivers/net/wireless/ath/ath12k/
A Ddbring.c82 int num_remain, req_entries, num_free; in ath12k_dbring_fill_bufs() local
90 num_free = ath12k_hal_srng_src_num_free(ab, srng, true); in ath12k_dbring_fill_bufs()
91 req_entries = min(num_free, ring->bufs_max); in ath12k_dbring_fill_bufs()
A Ddp_rx.c267 int num_free; in ath12k_dp_rx_bufs_replenish() local
283 num_free = ath12k_hal_srng_src_num_free(ab, srng, true); in ath12k_dp_rx_bufs_replenish()
284 if (!req_entries && (num_free > (rx_ring->bufs_max * 3) / 4)) in ath12k_dp_rx_bufs_replenish()
285 req_entries = num_free; in ath12k_dp_rx_bufs_replenish()
287 req_entries = min(num_free, req_entries); in ath12k_dp_rx_bufs_replenish()
/linux-6.3-rc2/drivers/net/wireless/ath/ath11k/
A Ddbring.c111 int num_remain, req_entries, num_free; in ath11k_dbring_fill_bufs() local
119 num_free = ath11k_hal_srng_src_num_free(ar->ab, srng, true); in ath11k_dbring_fill_bufs()
120 req_entries = min(num_free, ring->bufs_max); in ath11k_dbring_fill_bufs()
A Ddp_rx.c351 int num_free; in ath11k_dp_rxbufs_replenish() local
365 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rxbufs_replenish()
366 if (!req_entries && (num_free > (rx_ring->bufs_max * 3) / 4)) in ath11k_dp_rxbufs_replenish()
367 req_entries = num_free; in ath11k_dp_rxbufs_replenish()
369 req_entries = min(num_free, req_entries); in ath11k_dp_rxbufs_replenish()
2892 int num_free; in ath11k_dp_rx_mon_status_bufs_replenish() local
2906 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rx_mon_status_bufs_replenish()
2908 req_entries = min(num_free, req_entries); in ath11k_dp_rx_mon_status_bufs_replenish()
/linux-6.3-rc2/tools/virtio/linux/
A Dvirtio.h26 unsigned int num_free; member
/linux-6.3-rc2/include/linux/
A Dvirtio.h35 unsigned int num_free; member
/linux-6.3-rc2/drivers/net/caif/
A 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-6.3-rc2/drivers/scsi/
A Dqlogicpti.c973 int num_free = QLOGICPTI_REQ_QUEUE_LEN - REQ_QUEUE_DEPTH(in_ptr, out_ptr) - 64; in update_can_queue() local
974 host->can_queue = scsi_host_busy(host) + num_free; in update_can_queue()
975 host->sg_tablesize = QLOGICPTI_MAX_SG(num_free); in update_can_queue()
/linux-6.3-rc2/drivers/net/
A Dvirtio_net.c1591 } while (rq->vq->num_free); in try_fill_recv()
1695 if (rq->vq->num_free > min((unsigned int)budget, virtqueue_get_vring_size(rq->vq)) / 2) { in virtnet_receive()
1784 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_cleantx()
1875 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_tx()
2002 if (sq->vq->num_free < 2+MAX_SKB_FRAGS) { in start_xmit()
2010 if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) { in start_xmit()
/linux-6.3-rc2/net/vmw_vsock/
A Dvirtio_transport.c246 } while (vq->num_free); in virtio_vsock_rx_fill()
/linux-6.3-rc2/drivers/net/wireless/ath/wil6210/
A Ddebugfs.c1223 int num_free; in rx_buff_mgmt_show() local
1236 num_free = wil_print_rx_buff(s, &rbm->free); in rx_buff_mgmt_show()
1239 num_active + num_free); in rx_buff_mgmt_show()

Completed in 87 milliseconds

12