| /linux/drivers/bus/fsl-mc/ |
| H A D | fsl-mc-allocator.c | 59 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 …]
|
| /linux/drivers/mtd/ubi/ |
| H A D | fastmap-wl.c | 46 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 D | wl.c | 391 ubi->free_count--; in wl_get_wle() 699 ubi->free_count++; 733 ubi->free_count++; 942 ubi->free_count++; 1111 ubi->free_count++; 1586 ubi->free_count--; 1758 ubi->free_count++; 1807 ubi->free_count = 0; 1832 ubi->free_count++; 2077 ubi->free_count--; [all …]
|
| H A D | ubi.h | 625 int free_count; member
|
| /linux/tools/perf/util/ |
| H A D | capstone.c | 382 int i, count, free_count; in symbol__disassemble_capstone() 447 free_count = count = perf_cs_disasm(handle, buf, buf_len, start, buf_len, &insn); in symbol__disassemble_capstone_powerpc() 487 if (free_count > 0) in symbol__disassemble_capstone_powerpc() 488 perf_cs_free(insn, free_count); in symbol__disassemble_capstone_powerpc() 334 int i, count, free_count; symbol__disassemble_capstone() local
|
| /linux/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/ |
| H A D | rx.c | 263 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() 1442 rxq->free_count++; in iwl_pcie_rx_handle_rb() 1568 rxq->free_count++; in iwl_pcie_rx_handle()
|
| /linux/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_object.c | 308 GEM_BUG_ON(!atomic_read(&i915->mm.free_count)); in __i915_gem_free_object_rcu() 309 atomic_dec(&i915->mm.free_count); in __i915_gem_free_object_rcu() 460 atomic_inc(&i915->mm.free_count); in i915_gem_free_object()
|
| /linux/io_uring/ |
| H A D | zcrx.h | 40 u32 free_count; member
|
| H A D | zcrx.c | 576 area->free_count = nr_iovs; in __zcrx_create_area() 693 if (WARN_ON_ONCE(area->free_count >= area->nia.num_niovs)) in io_zcrx_return_niov_freelist() 695 area->freelist[area->free_count++] = net_iov_idx(niov); in io_zcrx_return_niov_freelist() 704 if (unlikely(!area->free_count)) in zcrx_get_free_niov() 707 niov_idx = area->freelist[--area->free_count]; in zcrx_get_free_niov()
|
| /linux/drivers/gpu/ |
| H A D | buddy.c | 1600 u64 free_count = mm->free_scoreboard[order]; in gpu_buddy_print() local 1603 u64 free = free_count * block_size; in gpu_buddy_print() 1608 order, free >> 10, used >> 10, free_count, used_count); in gpu_buddy_print() 1611 order, free >> 20, used >> 20, free_count, used_count); in gpu_buddy_print()
|
| /linux/mm/ |
| H A D | page_alloc.c | 2784 batch = clamp_t(int, pcp->free_count, min_nr_free, max_nr_free); in nr_pcp_free() 2812 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local 2814 pcp->high = max(high - free_count, high_min); in nr_pcp_high() 2822 int free_count = max_t(int, pcp->free_count, batch); in nr_pcp_high() local 2824 pcp->high = max(high - free_count, high_min); in nr_pcp_high() 2827 int need_high = pcp->free_count + batch; in nr_pcp_high() 2874 free_high = (pcp->free_count >= (batch + pcp->high_min / 2) && in free_frozen_page_commit() 2882 if (pcp->free_count < (batch << CONFIG_PCP_BATCH_SCALE_MAX)) in free_frozen_page_commit() 2883 pcp->free_count += (1 << order); in free_frozen_page_commit() 3389 pcp->free_count >>= 1; in rmqueue_pcplist()
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_eth_soc.c | 1697 atomic_sub(n_desc, &ring->free_count); in mtk_tx_map() 1804 if (unlikely(atomic_read(&ring->free_count) <= tx_num)) { in mtk_start_xmit() 1830 if (unlikely(atomic_read(&ring->free_count) <= ring->thresh)) in mtk_start_xmit() 2015 if (unlikely(atomic_read(&ring->free_count) <= 1 + nr_frags)) in mtk_xdp_submit_frame() 2072 atomic_sub(n_desc, &ring->free_count); in mtk_xdp_submit_frame() 2508 atomic_inc(&ring->free_count); in mtk_poll_tx_qdma() 2547 atomic_inc(&ring->free_count); in mtk_poll_tx_pdma() 2577 (atomic_read(&ring->free_count) > ring->thresh)) in mtk_poll_tx() 2714 atomic_set(&ring->free_count, ring_size - 2); in mtk_tx_alloc()
|
| H A D | mtk_eth_soc.h | 940 atomic_t free_count; member
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_hw.c | 2278 wq->free_count--; in _efct_hw_wq_write() 2294 wq->free_count += update_free_count; in hw_wq_submit_pending() 2296 while ((wq->free_count > 0) && (!list_empty(&wq->pending_list))) { in hw_wq_submit_pending() 2520 if (wq->free_count > 0) { in efct_hw_wq_write() 2535 while (wq->free_count > 0) { in efct_hw_wq_write()
|
| H A D | efct_hw_queues.c | 291 wq->free_count = wq->entry_count - 1; in efct_hw_new_wq()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | mac80211.c | 2603 int free_count = 0; in iwl_mld_count_free_link_ids() local 2607 free_count++; in iwl_mld_count_free_link_ids() 2610 return free_count; in iwl_mld_count_free_link_ids()
|
| /linux/include/linux/ |
| H A D | mmzone.h | 856 short free_count; /* consecutive free count */ member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npc.c | 3197 rsp->free_count = -1; in npc_mcam_alloc_entries() 3383 rsp->free_count = mcam->bmap_fcnt; in npc_mcam_alloc_entries() 3457 rsp->free_count = 0; in rvu_mbox_handler_npc_mcam_alloc_entry()
|
| H A D | mbox.h | 1585 u16 free_count; /* Number of entries available */ member
|
| /linux/fs/ext4/ |
| H A D | mballoc.c | 6925 ext4_grpblk_t next, count, free_count, last, origin_start; in ext4_try_to_trim_range() local 6939 free_count = 0; in ext4_try_to_trim_range() 6957 free_count += next - start; in ext4_try_to_trim_range() 6969 if ((e4b->bd_info->bb_free - free_count) < minblocks) in ext4_try_to_trim_range()
|
| /linux/drivers/net/wireless/intel/iwlegacy/ |
| H A D | debug.c | 873 rxq->free_count); in il_dbgfs_rx_queue_read()
|
| H A D | common.c | 2625 rxq->free_count = 0; in il_rx_queue_alloc()
|
| /linux/drivers/net/wireless/intel/ipw2x00/ |
| H A D | ipw2200.c | 3409 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 D | mvpp2_main.c | 2417 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()
|