Home
last modified time | relevance | path

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

12

/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()
H A Dwl.c412 ubi->free_count--; in wl_get_wle()
718 ubi->free_count++;
752 ubi->free_count++;
954 ubi->free_count++;
1123 ubi->free_count++;
1597 ubi->free_count--;
1769 ubi->free_count++;
1818 ubi->free_count = 0;
1843 ubi->free_count++;
2088 ubi->free_count--;
[all …]
H A Dubi.h609 int free_count; member
/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/fs/reiserfs/
H A Dresize.c165 bitmap[i].free_count = sb_blocksize(sb) * 8 - 1; in reiserfs_resize()
195 info->free_count += s->s_blocksize * 8 - block_r; in reiserfs_resize()
216 info->free_count -= s->s_blocksize * 8 - block_r_new; in reiserfs_resize()
H A Dbitmap.c170 if (bi->free_count < min) { in scan_bitmap_block()
257 bi->free_count -= (end - *beg); in scan_bitmap_block()
311 if (info->free_count == UINT_MAX) { in block_group_used()
316 if (info->free_count > ((s->s_blocksize << 3) * 60 / 100)) { in block_group_used()
388 || SB_AP_BITMAP(s)[bm].free_count > in scan_bitmap()
451 apbi[nr].free_count++; in _reiserfs_free_block()
1404 info->free_count = 0; in reiserfs_cache_bitmap_metadata()
1409 info->free_count += BITS_PER_LONG; in reiserfs_cache_bitmap_metadata()
1411 info->free_count += BITS_PER_LONG - hweight_long(*cur); in reiserfs_cache_bitmap_metadata()
1447 if (info->free_count == UINT_MAX) in reiserfs_read_bitmap_block()
/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Drx.c262 while (rxq->free_count) { in iwl_pcie_rxmq_restock()
273 rxq->free_count--; in iwl_pcie_rxmq_restock()
308 while ((iwl_rxq_space(rxq) > 0) && (rxq->free_count)) { in iwl_pcie_rxsq_restock()
324 rxq->free_count--; in iwl_pcie_rxsq_restock()
482 rxq->free_count++; in iwl_pcie_rxq_alloc_rbs()
645 rxq->free_count += RX_CLAIM_REQ_ALLOC; in iwl_pcie_rx_allocator_get()
997 rxq->free_count = 0; in iwl_pcie_rx_init_rxb_lists()
1440 rxq->free_count++; in iwl_pcie_rx_handle_rb()
1566 rxq->free_count++; in iwl_pcie_rx_handle()
H A Dinternal.h153 u32 free_count; member
/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.c2521 batch = clamp_t(int, pcp->free_count, min_nr_free, max_nr_free); in nr_pcp_free()
2549 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2551 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2559 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2561 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2564 int need_high = pcp->free_count + batch; in nr_pcp_high()
2601 free_high = (pcp->free_count >= batch && in free_unref_page_commit()
2609 if (pcp->free_count < (batch << CONFIG_PCP_BATCH_SCALE_MAX)) in free_unref_page_commit()
2610 pcp->free_count += (1 << order); in free_unref_page_commit()
3023 pcp->free_count >>= 1; in rmqueue_pcplist()
[all …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A D3945-mac.c935 while (il_rx_queue_space(rxq) > 0 && rxq->free_count) { in il3945_rx_queue_restock()
946 rxq->free_count--; in il3945_rx_queue_restock()
951 if (rxq->free_count <= RX_LOW_WATERMARK) in il3945_rx_queue_restock()
992 if (rxq->free_count > RX_LOW_WATERMARK) in il3945_rx_allocate()
1003 if (rxq->free_count <= RX_LOW_WATERMARK && in il3945_rx_allocate()
1007 priority, rxq->free_count); in il3945_rx_allocate()
1043 rxq->free_count++; in il3945_rx_allocate()
1077 rxq->free_count = 0; in il3945_rx_queue_reset()
1267 rxq->free_count++; in il3945_rx_handle()
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/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_drv.h155 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/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/include/linux/
H A Dmmzone.h696 short free_count; /* consecutive free count */ member
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2200.h712 u32 free_count; /* Number of pre-allocated buffers in rx_free */ member

12