Home
last modified time | relevance | path

Searched refs:free_count (Results 1 – 25 of 29) 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.h568 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++;
961 ubi->free_count++;
1130 ubi->free_count++;
1604 ubi->free_count--;
1776 ubi->free_count++;
1825 ubi->free_count = 0;
1850 ubi->free_count++;
2095 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/tools/perf/util/
H A Dcapstone.c334 int i, count, free_count; in symbol__disassemble_capstone() local
382 free_count = count = perf_cs_disasm(handle, buf, buf_len, start, buf_len, &insn); in symbol__disassemble_capstone()
422 if (free_count > 0) in symbol__disassemble_capstone()
423 perf_cs_free(insn, free_count); in symbol__disassemble_capstone()
/linux/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/
H A Drx.c263 while (rxq->free_count) { in iwl_pcie_rxmq_restock()
274 rxq->free_count--; in iwl_pcie_rxmq_restock()
309 while ((iwl_rxq_space(rxq) > 0) && (rxq->free_count)) { in iwl_pcie_rxsq_restock()
325 rxq->free_count--; in iwl_pcie_rxsq_restock()
483 rxq->free_count++; in iwl_pcie_rxq_alloc_rbs()
646 rxq->free_count += RX_CLAIM_REQ_ALLOC; in iwl_pcie_rx_allocator_get()
994 rxq->free_count = 0; in iwl_pcie_rx_init_rxb_lists()
1437 rxq->free_count++; in iwl_pcie_rx_handle_rb()
1563 rxq->free_count++; in iwl_pcie_rx_handle()
/linux/io_uring/
H A Dzcrx.h35 u32 free_count; member
H A Dzcrx.c498 area->free_count = nr_iovs; in io_zcrx_create_area()
590 area->freelist[area->free_count++] = net_iov_idx(niov); in io_zcrx_return_niov_freelist()
884 niov_idx = area->freelist[--area->free_count]; in __io_zcrx_get_free_niov()
993 while (area->free_count && pp->alloc.count < PP_ALLOC_CACHE_REFILL) { in io_zcrx_refill_slow()
1228 if (area->free_count) in io_alloc_fallback_niov()
/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()
1229 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()
4300 rxq->free_count++; in il4965_rx_handle()
H A Ddebug.c873 rxq->free_count); in il_dbgfs_rx_queue_read()
/linux/mm/
H A Dpage_alloc.c2799 batch = clamp_t(int, pcp->free_count, min_nr_free, max_nr_free); in nr_pcp_free()
2827 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2829 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2837 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2839 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2842 int need_high = pcp->free_count + batch; in nr_pcp_high()
2889 free_high = (pcp->free_count >= (batch + pcp->high_min / 2) && in free_frozen_page_commit()
2897 if (pcp->free_count < (batch << CONFIG_PCP_BATCH_SCALE_MAX)) in free_frozen_page_commit()
2898 pcp->free_count += (1 << order); in free_frozen_page_commit()
3386 pcp->free_count >>= 1; in rmqueue_pcplist()
/linux/drivers/gpu/drm/i915/
H A Di915_gem.c1113 while (atomic_read(&i915->mm.free_count)) { in i915_gem_drain_freed_objects()
1310 GEM_BUG_ON(atomic_read(&dev_priv->mm.free_count)); in i915_gem_cleanup_early()
/linux/drivers/dma/
H A Dbcm-sba-raid.c453 u32 free_count = 0, alloced_count = 0; in sba_write_stats_in_seqfile() local
460 free_count++; in sba_write_stats_in_seqfile()
477 seq_printf(file, "free requests = %d\n", free_count); in sba_write_stats_in_seqfile()
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1674 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map()
1781 if (unlikely(atomic_read(&ring->free_count) <= tx_num)) { in mtk_start_xmit()
1807 if (unlikely(atomic_read(&ring->free_count) <= ring->thresh)) in mtk_start_xmit()
1992 if (unlikely(atomic_read(&ring->free_count) <= 1 + nr_frags)) in mtk_xdp_submit_frame()
2049 atomic_sub(n_desc, &ring->free_count); in mtk_xdp_submit_frame()
2485 atomic_inc(&ring->free_count); in mtk_poll_tx_qdma()
2524 atomic_inc(&ring->free_count); in mtk_poll_tx_pdma()
2554 (atomic_read(&ring->free_count) > ring->thresh)) in mtk_poll_tx()
2691 atomic_set(&ring->free_count, ring_size - 2); in mtk_tx_alloc()
H A Dmtk_eth_soc.h940 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.h756 short free_count; /* consecutive free count */ member
/linux/fs/ext4/
H A Dmballoc.c6930 ext4_grpblk_t next, count, free_count, last, origin_start; in ext4_try_to_trim_range() local
6944 free_count = 0; in ext4_try_to_trim_range()
6962 free_count += next - start; in ext4_try_to_trim_range()
6974 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()
/linux/drivers/net/wireless/intel/ipw2x00/
H A Dipw2200.c3409 rxq->free_count = 0; in ipw_rx_queue_reset()
5101 while ((ipw_rx_queue_space(rxq) > 0) && (rxq->free_count)) { in ipw_rx_queue_restock()
5110 rxq->free_count--; in ipw_rx_queue_restock()
5116 if (rxq->free_count <= RX_LOW_WATERMARK) in ipw_rx_queue_restock()
5158 rxq->free_count++; in ipw_rx_queue_replenish()
5219 rxq->free_count = 0; in ipw_rx_queue_alloc()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc.c2671 rsp->free_count = mcam->bmap_fcnt; in npc_mcam_alloc_entries()
2741 rsp->free_count = 0; in rvu_mbox_handler_npc_mcam_alloc_entry()

12