Home
last modified time | relevance | path

Searched refs:free_count (Results 1 – 21 of 21) 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.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/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.c509 area->free_count = nr_iovs; in io_zcrx_create_area()
604 if (WARN_ON_ONCE(area->free_count >= area->nia.num_niovs)) in io_zcrx_return_niov_freelist()
606 area->freelist[area->free_count++] = net_iov_idx(niov); in io_zcrx_return_niov_freelist()
615 if (unlikely(!area->free_count)) in zcrx_get_free_niov()
618 niov_idx = area->freelist[--area->free_count]; in zcrx_get_free_niov()
/linux/mm/
H A Dpage_alloc.c2765 batch = clamp_t(int, pcp->free_count, min_nr_free, max_nr_free); in nr_pcp_free()
2793 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2795 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2803 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local
2805 pcp->high = max(high - free_count, high_min); in nr_pcp_high()
2808 int need_high = pcp->free_count + batch; in nr_pcp_high()
2855 free_high = (pcp->free_count >= (batch + pcp->high_min / 2) && in free_frozen_page_commit()
2863 if (pcp->free_count < (batch << CONFIG_PCP_BATCH_SCALE_MAX)) in free_frozen_page_commit()
2864 pcp->free_count += (1 << order); in free_frozen_page_commit()
3370 pcp->free_count >>= 1; in rmqueue_pcplist()
/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.c1696 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map()
1803 if (unlikely(atomic_read(&ring->free_count) <= tx_num)) { in mtk_start_xmit()
1829 if (unlikely(atomic_read(&ring->free_count) <= ring->thresh)) in mtk_start_xmit()
2014 if (unlikely(atomic_read(&ring->free_count) <= 1 + nr_frags)) in mtk_xdp_submit_frame()
2071 atomic_sub(n_desc, &ring->free_count); in mtk_xdp_submit_frame()
2507 atomic_inc(&ring->free_count); in mtk_poll_tx_qdma()
2546 atomic_inc(&ring->free_count); in mtk_poll_tx_pdma()
2576 (atomic_read(&ring->free_count) > ring->thresh)) in mtk_poll_tx()
2713 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/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc.c2898 rsp->free_count = -1; in npc_mcam_alloc_entries()
3084 rsp->free_count = mcam->bmap_fcnt; in npc_mcam_alloc_entries()
3158 rsp->free_count = 0; in rvu_mbox_handler_npc_mcam_alloc_entry()
/linux/fs/ext4/
H A Dmballoc.c6924 ext4_grpblk_t next, count, free_count, last, origin_start; in ext4_try_to_trim_range() local
6938 free_count = 0; in ext4_try_to_trim_range()
6956 free_count += next - start; in ext4_try_to_trim_range()
6968 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()
/linux/drivers/net/wireless/intel/iwlegacy/
H A Ddebug.c873 rxq->free_count); in il_dbgfs_rx_queue_read()
H A Dcommon.c2624 rxq->free_count = 0; in il_rx_queue_alloc()
/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/mvpp2/
H A Dmvpp2_main.c2417 int used_count, int free_count) in mvpp2_rxq_status_update() argument
2422 u32 val = used_count | (free_count << MVPP2_RXQ_NUM_NEW_OFFSET); in mvpp2_rxq_status_update()