Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/
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 …]
Dmlx5dr.h177 unsigned int *num_free; member
/linux-6.6.21/drivers/gpu/drm/virtio/
Dvirtgpu_trace.h22 __field(u32, num_free)
33 __entry->num_free = vq->num_free;
39 __entry->ctx_id, __entry->num_free, __entry->seqno)
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.6.21/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-6.6.21/drivers/fpga/
Dstratix10-soc.c75 uint num_free = 0; in s10_free_buffers() local
80 num_free++; in s10_free_buffers()
89 num_free++; in s10_free_buffers()
93 return num_free == NUM_SVC_BUFS; in s10_free_buffers()
102 uint num_free = 0; in s10_free_buffer_count() local
107 num_free++; in s10_free_buffer_count()
109 return num_free; in s10_free_buffer_count()
/linux-6.6.21/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()
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()
Dmthca_dev.h205 int *num_free; member
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/microchip/lan966x/
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.6.21/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-6.6.21/drivers/virtio/
Dvirtio_ring.c251 return (vq->indirect && total_sg > 1 && vq->vq.num_free); in virtqueue_use_indirect()
422 vq->vq.num_free = num; in virtqueue_init()
596 if (unlikely(vq->vq.num_free < descs_used)) { in virtqueue_add_split()
598 descs_used, vq->vq.num_free); in virtqueue_add_split()
670 vq->vq.num_free -= descs_used; in virtqueue_add_split()
780 vq->vq.num_free++; in detach_buf_split()
788 vq->vq.num_free++; in detach_buf_split()
995 BUG_ON(vq->vq.num_free != vq->split.vring.num); in virtqueue_detach_unused_buf_split()
1302 if (unlikely(vq->vq.num_free < 1)) { in virtqueue_add_indirect_packed()
1361 vq->vq.num_free -= 1; in virtqueue_add_indirect_packed()
[all …]
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
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()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
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()
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()
2901 int num_free; in ath11k_dp_rx_mon_status_bufs_replenish() local
2915 num_free = ath11k_hal_srng_src_num_free(ab, srng, true); in ath11k_dp_rx_mon_status_bufs_replenish()
2917 req_entries = min(num_free, req_entries); in ath11k_dp_rx_mon_status_bufs_replenish()
/linux-6.6.21/tools/virtio/linux/
Dvirtio.h26 unsigned int num_free; member
/linux-6.6.21/include/linux/
Dvirtio.h36 unsigned int num_free; member
/linux-6.6.21/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-6.6.21/drivers/scsi/
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.6.21/net/vmw_vsock/
Dvirtio_transport.c246 } while (vq->num_free); in virtio_vsock_rx_fill()
/linux-6.6.21/drivers/net/
Dvirtio_net.c825 if (sq->vq->num_free < 2+MAX_SKB_FRAGS) { in check_sq_full_and_disable()
833 if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) { in check_sq_full_and_disable()
1996 } while (rq->vq->num_free); in try_fill_recv()
2101 if (rq->vq->num_free > min((unsigned int)budget, virtqueue_get_vring_size(rq->vq)) / 2) { in virtnet_receive()
2146 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_cleantx()
2267 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_tx()
/linux-6.6.21/drivers/net/wireless/ath/wil6210/
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()
/linux-6.6.21/drivers/char/
Dvirtio_console.c495 ret = vq->num_free; in add_inbuf()
623 if (out_vq->num_free == 0) in __send_to_port()

12