/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_buddy.c | 24 buddy->num_free = kcalloc(buddy->max_order + 1, in mlx5dr_buddy_init() 25 sizeof(*buddy->num_free), in mlx5dr_buddy_init() 28 if (!buddy->bitmap || !buddy->num_free) in mlx5dr_buddy_init() 47 buddy->num_free[buddy->max_order] = 1; in mlx5dr_buddy_init() 56 kfree(buddy->num_free); in mlx5dr_buddy_init() 70 kfree(buddy->num_free); in mlx5dr_buddy_cleanup() 83 if (!buddy->num_free[order_iter]) in dr_buddy_find_free_seg() 133 --buddy->num_free[order_iter]; in mlx5dr_buddy_alloc_mem() 143 ++buddy->num_free[order_iter]; in mlx5dr_buddy_alloc_mem() 162 --buddy->num_free[order]; in mlx5dr_buddy_free_mem() [all …]
|
D | mlx5dr.h | 161 unsigned int *num_free; member
|
/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()
|
/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() 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()
|
D | mthca_dev.h | 205 int *num_free; member
|
/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()
|
D | mlx4.h | 253 unsigned int *num_free; member
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_taprio.c | 272 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()
|
/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
|
/drivers/virtio/ |
D | virtio_ring.c | 239 return (vq->indirect && total_sg > 1 && vq->vq.num_free); in virtqueue_use_indirect() 398 vq->vq.num_free = num; in virtqueue_init() 569 if (unlikely(vq->vq.num_free < descs_used)) { in virtqueue_add_split() 571 descs_used, vq->vq.num_free); in virtqueue_add_split() 637 vq->vq.num_free -= descs_used; in virtqueue_add_split() 746 vq->vq.num_free++; in detach_buf_split() 754 vq->vq.num_free++; in detach_buf_split() 959 BUG_ON(vq->vq.num_free != vq->split.vring.num); in virtqueue_detach_unused_buf_split() 1257 if (unlikely(vq->vq.num_free < 1)) { in virtqueue_add_indirect_packed() 1313 vq->vq.num_free -= 1; in virtqueue_add_indirect_packed() [all …]
|
D | virtio_balloon.c | 650 if (vq->num_free > 1) { in get_free_page_and_send()
|
/drivers/net/wireless/ath/ath11k/ |
D | dbring.c | 111 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()
|
D | dp_rx.c | 351 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()
|
/drivers/gpu/drm/via/ |
D | via_dri1.c | 125 unsigned num_free; member 1936 blitq->num_free++; in via_dmablit_workqueue() 1972 blitq->num_free = VIA_NUM_BLIT_SLOTS - 1; in via_init_dmablit() 2096 DRM_DEBUG("Num free is %d\n", blitq->num_free); in via_dmablit_grab_slot() 2098 while (blitq->num_free == 0) { in via_dmablit_grab_slot() 2101 VIA_WAIT_ON(ret, blitq->busy_queue, HZ, blitq->num_free > 0); in via_dmablit_grab_slot() 2108 blitq->num_free--; in via_dmablit_grab_slot() 2123 blitq->num_free++; in via_dmablit_release_slot()
|
/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()
|
/drivers/scsi/ |
D | qlogicpti.c | 973 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()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_vq.c | 334 if (vq->num_free < elemcnt) { in virtio_gpu_queue_ctrl_sgs() 337 wait_event(vgdev->ctrlq.ack_queue, vq->num_free >= elemcnt); in virtio_gpu_queue_ctrl_sgs() 464 wait_event(vgdev->cursorq.ack_queue, vq->num_free >= outcnt); in virtio_gpu_queue_cursor()
|
/drivers/net/ |
D | virtio_net.c | 1469 } while (rq->vq->num_free); in try_fill_recv() 1573 if (rq->vq->num_free > min((unsigned int)budget, virtqueue_get_vring_size(rq->vq)) / 2) { in virtnet_receive() 1662 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_cleantx() 1783 if (sq->vq->num_free >= 2 + MAX_SKB_FRAGS) in virtnet_poll_tx() 1910 if (sq->vq->num_free < 2+MAX_SKB_FRAGS) { in start_xmit() 1918 if (sq->vq->num_free >= 2+MAX_SKB_FRAGS) { in start_xmit()
|
/drivers/net/wireless/ath/wil6210/ |
D | debugfs.c | 1223 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()
|
/drivers/char/ |
D | virtio_console.c | 502 ret = vq->num_free; in add_inbuf() 630 if (out_vq->num_free == 0) in __send_to_port()
|
/drivers/iommu/ |
D | virtio-iommu.c | 1085 size_t nr_evts = vq->num_free; in viommu_fill_evtq()
|
/drivers/block/ |
D | virtio_blk.c | 947 queue_depth = vblk->vqs[0].vq->num_free; in virtblk_probe()
|