Home
last modified time | relevance | path

Searched refs:free_count (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/bus/fsl-mc/
H A Dfsl-mc-allocator.c59 if (res_pool->free_count < 0 || in fsl_mc_resource_pool_add_device()
60 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_pool_add_device()
79 res_pool->free_count++; in fsl_mc_resource_pool_add_device()
127 if (res_pool->free_count <= 0 || in fsl_mc_resource_pool_remove_device()
128 res_pool->free_count > res_pool->max_count) { in fsl_mc_resource_pool_remove_device()
146 res_pool->free_count--; in fsl_mc_resource_pool_remove_device()
217 if (res_pool->free_count <= 0 || in fsl_mc_resource_allocate()
218 res_pool->free_count > res_pool->max_count) in fsl_mc_resource_allocate()
223 res_pool->free_count--; in fsl_mc_resource_allocate()
242 if (res_pool->free_count < 0 || in fsl_mc_resource_free()
[all …]
H A Dfsl-mc-private.h572 int free_count; member
/linux/drivers/mtd/ubi/
H A Dfastmap-wl.c46 ubi->free_count++; in return_unused_peb()
95 ubi->free_count--; in ubi_wl_get_fm_peb()
125 free = ubi->free_count; in wait_free_pebs_for_pool()
157 return ubi->free_count - fm_used; in left_free_count()
209 ubi->free_count++; in ubi_refill_pools_and_lock()
245 ubi->free_count--; in ubi_refill_pools_and_lock()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dpagealloc.c64 unsigned int free_count; member
158 nfp->free_count = MLX5_NUM_4K_IN_PAGE; in insert_page()
243 fp->free_count--; in alloc_4k()
244 if (!fp->free_count) in alloc_4k()
283 fwp->free_count++; in free_4k()
285 if (fwp->free_count == MLX5_NUM_4K_IN_PAGE) in free_4k()
286 free_fwp(dev, fwp, fwp->free_count != 1); in free_4k()
287 else if (fwp->free_count == 1) in free_4k()
452 npages += (MLX5_NUM_4K_IN_PAGE - fwp->free_count); in release_all_pages()
453 free_fwp(dev, fwp, fwp->free_count); in release_all_pages()
/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_object.c306 GEM_BUG_ON(!atomic_read(&i915->mm.free_count)); in __i915_gem_free_object_rcu()
307 atomic_dec(&i915->mm.free_count); in __i915_gem_free_object_rcu()
458 atomic_inc(&i915->mm.free_count); in i915_gem_free_object()
/linux/drivers/net/ethernet/smsc/
H A Depic100.c950 int entry, free_count; in epic_start_xmit() local
962 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit()
969 if (free_count < TX_QUEUE_LEN/2) {/* Typical path */ in epic_start_xmit()
971 } else if (free_count == TX_QUEUE_LEN/2) { in epic_start_xmit()
973 } else if (free_count < TX_QUEUE_LEN - 1) { in epic_start_xmit()
/linux/mm/
H A Dpage_alloc.c2543 batch = clamp_t(int, pcp->free_count, min_nr_free, max_nr_free); in nr_pcp_free()
2571 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2573 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2581 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2583 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2586 int need_high = pcp->free_count + batch; in nr_pcp_high()
2623 free_high = (pcp->free_count >= batch && in free_frozen_page_commit()
2631 if (pcp->free_count < (batch << CONFIG_PCP_BATCH_SCALE_MAX)) in free_frozen_page_commit()
2632 pcp->free_count += (1 << order); in free_frozen_page_commit()
3044 pcp->free_count >>= 1; in rmqueue_pcplist()
[all …]
/linux/tools/perf/util/
H A Ddisasm.c1631 int i, count, free_count; in symbol__disassemble_capstone() local
1668 free_count = count = cs_disasm(handle, buf, len, start, len, &insn); in symbol__disassemble_capstone()
1708 if (free_count > 0) in symbol__disassemble_capstone()
1709 cs_free(insn, free_count); in symbol__disassemble_capstone()
/linux/drivers/gpu/drm/i915/
H A Di915_gem.c1113 while (atomic_read(&i915->mm.free_count)) { in i915_gem_drain_freed_objects()
1308 GEM_BUG_ON(atomic_read(&dev_priv->mm.free_count)); in i915_gem_cleanup_early()
H A Di915_debugfs.c279 atomic_read(&i915->mm.free_count), in i915_gem_object_info()
H A Di915_drv.h147 atomic_t free_count; member
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1518 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map()
1618 if (unlikely(atomic_read(&ring->free_count) <= tx_num)) { in mtk_start_xmit()
1644 if (unlikely(atomic_read(&ring->free_count) <= ring->thresh)) in mtk_start_xmit()
1828 if (unlikely(atomic_read(&ring->free_count) <= 1 + nr_frags)) in mtk_xdp_submit_frame()
1885 atomic_sub(n_desc, &ring->free_count); in mtk_xdp_submit_frame()
2314 atomic_inc(&ring->free_count); in mtk_poll_tx_qdma()
2353 atomic_inc(&ring->free_count); in mtk_poll_tx_pdma()
2383 (atomic_read(&ring->free_count) > ring->thresh)) in mtk_poll_tx()
2528 atomic_set(&ring->free_count, ring_size - 2); in mtk_tx_alloc()
H A Dmtk_eth_soc.h894 atomic_t free_count; member
/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965-mac.c114 rxq->free_count = 0; in il4965_rx_queue_reset()
259 while (il_rx_queue_space(rxq) > 0 && rxq->free_count) { in il4965_rx_queue_restock()
274 rxq->free_count--; in il4965_rx_queue_restock()
279 if (rxq->free_count <= RX_LOW_WATERMARK) in il4965_rx_queue_restock()
319 if (rxq->free_count > RX_LOW_WATERMARK) in il4965_rx_allocate()
332 if (rxq->free_count <= RX_LOW_WATERMARK && in il4965_rx_allocate()
338 rxq->free_count); in il4965_rx_allocate()
374 rxq->free_count++; in il4965_rx_allocate()
4297 rxq->free_count++; in il4965_rx_handle()
H A Ddebug.c873 rxq->free_count); in il_dbgfs_rx_queue_read()
/linux/drivers/scsi/elx/efct/
H A Defct_hw.c2276 wq->free_count--; in _efct_hw_wq_write()
2292 wq->free_count += update_free_count; in hw_wq_submit_pending()
2294 while ((wq->free_count > 0) && (!list_empty(&wq->pending_list))) { in hw_wq_submit_pending()
2518 if (wq->free_count > 0) { in efct_hw_wq_write()
2533 while (wq->free_count > 0) { in efct_hw_wq_write()
H A Defct_hw.h526 u32 free_count; member
H A Defct_hw_queues.c291 wq->free_count = wq->entry_count - 1; in efct_hw_new_wq()
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Dinternal.h153 u32 free_count; member
/linux/fs/ext4/
H A Dmballoc.c6794 ext4_grpblk_t next, count, free_count, last, origin_start; in ext4_try_to_trim_range() local
6808 free_count = 0; in ext4_try_to_trim_range()
6826 free_count += next - start; in ext4_try_to_trim_range()
6838 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()