/linux/tools/cgroup/ |
A D | memcg_slabinfo.py | 86 nr_free = 0 92 nr_free += count_partial(n, count_free) 94 return {'active_objs': nr_objs - nr_free,
|
/linux/lib/ |
A D | assoc_array.c | 1464 int keylen, slot, nr_free, next_slot, i; in assoc_array_gc() local 1545 nr_free = 0; in assoc_array_gc() 1549 nr_free++; in assoc_array_gc() 1553 pr_devel("free=%d, leaves=%lu\n", nr_free, new_n->nr_leaves_on_branch); in assoc_array_gc() 1574 if (child->nr_leaves_on_branch <= nr_free + 1) { in assoc_array_gc() 1577 slot, child->nr_leaves_on_branch, nr_free + 1, in assoc_array_gc() 1586 nr_free++; in assoc_array_gc() 1598 nr_free--; in assoc_array_gc() 1603 slot, child->nr_leaves_on_branch, nr_free + 1, in assoc_array_gc() 1613 if (nr_free == ASSOC_ARRAY_FAN_OUT - 1) { in assoc_array_gc()
|
/linux/drivers/dma/mediatek/ |
A D | mtk-hsdma.c | 188 atomic_t nr_free; member 344 atomic_set(&pc->nr_free, MTK_DMA_SIZE - 1); in mtk_hsdma_alloc_pchan() 429 reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); in mtk_hsdma_issue_pending_vdesc() 436 atomic_sub(reserved, &pc->nr_free); in mtk_hsdma_issue_pending_vdesc() 615 atomic_inc(&pc->nr_free); in mtk_hsdma_free_rooms_in_ring() 629 if (atomic_read(&pc->nr_free) >= MTK_DMA_SIZE - 1) in mtk_hsdma_free_rooms_in_ring()
|
/linux/fs/ntfs/ |
A D | super.c | 2447 s64 nr_free = vol->nr_clusters; in get_nr_free_clusters() local 2477 nr_free -= PAGE_SIZE * 8; in get_nr_free_clusters() 2488 nr_free -= bitmap_weight(kaddr, in get_nr_free_clusters() 2502 if (nr_free < 0) in get_nr_free_clusters() 2503 nr_free = 0; in get_nr_free_clusters() 2505 return nr_free; in get_nr_free_clusters() 2548 nr_free -= PAGE_SIZE * 8; in __get_nr_free_mft_records() 2559 nr_free -= bitmap_weight(kaddr, in __get_nr_free_mft_records() 2567 if (nr_free < 0) in __get_nr_free_mft_records() 2568 nr_free = 0; in __get_nr_free_mft_records() [all …]
|
/linux/drivers/md/persistent-data/ |
A D | dm-space-map-common.c | 268 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend() 356 if (le32_to_cpu(ie_disk.nr_free) == 0) in sm_ll_find_free_block() 485 le32_add_cpu(&ie_disk.nr_free, -1); in sm_ll_insert() 492 le32_add_cpu(&ie_disk.nr_free, 1); in sm_ll_insert() 666 le32_add_cpu(&ic->ie_disk.nr_free, -1); in sm_ll_inc_bitmap() 862 le32_add_cpu(&ic->ie_disk.nr_free, 1); in sm_ll_dec_bitmap()
|
A D | dm-space-map-common.h | 34 __le32 nr_free; member
|
/linux/drivers/hwtracing/stm/ |
A D | stm.h | 25 unsigned int nr_free; member
|
A D | core.c | 169 master->nr_free = stm->data->sw_nchannels; in stp_master_alloc() 193 if (WARN_ON_ONCE(master->nr_free < output->nr_chans)) in stm_output_claim() 199 master->nr_free -= output->nr_chans; in stm_output_claim() 213 master->nr_free += output->nr_chans; in stm_output_disclaim() 265 if (!master->nr_free) in stm_find_master_chan()
|
/linux/drivers/net/ethernet/ |
A D | jme.c | 576 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources() 637 atomic_set(&txring->nr_free, 0); in jme_free_tx_resources() 1405 atomic_read(&txring->nr_free) >= (jme->tx_wake_threshold))) { in jme_wake_queue_if_stopped() 1431 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet() 1484 atomic_add(cnt, &txring->nr_free); in jme_tx_clean_tasklet() 1941 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1944 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 2170 if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { in jme_stop_queue_if_full() 2174 if (atomic_read(&txring->nr_free) in jme_stop_queue_if_full()
|
A D | jme.h | 374 atomic_t nr_free; member
|
/linux/mm/ |
A D | page_alloc.c | 967 area->nr_free++; in add_to_free_list() 977 area->nr_free++; in add_to_free_list_tail() 1872 unsigned long nr_free = 0; in deferred_free_pages() local 1876 deferred_free_range(pfn - nr_free, nr_free); in deferred_free_pages() 1877 nr_free = 0; in deferred_free_pages() 1879 deferred_free_range(pfn - nr_free, nr_free); in deferred_free_pages() 1880 nr_free = 1; in deferred_free_pages() 1882 nr_free++; in deferred_free_pages() 1886 deferred_free_range(pfn - nr_free, nr_free); in deferred_free_pages() 2731 if (area->nr_free == 0) in find_suitable_fallback() [all …]
|
A D | page_reporting.c | 148 budget = DIV_ROUND_UP(area->nr_free, PAGE_REPORTING_CAPACITY * 16); in page_reporting_cycle()
|
A D | vmstat.c | 1079 blocks = data_race(zone->free_area[order].nr_free); in fill_contig_page_info() 1458 seq_printf(m, "%6lu ", data_race(zone->free_area[order].nr_free)); in frag_show_print()
|
A D | slub.c | 2813 unsigned long nr_free; in slab_out_of_memory() local 2815 nr_free = count_partial(n, count_free); in slab_out_of_memory() 2820 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory() 6241 unsigned long nr_free = 0; in get_slabinfo() local 6248 nr_free += count_partial(n, count_free); in get_slabinfo() 6251 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo()
|
A D | compaction.c | 1430 if (!area->nr_free) in fast_isolate_freepages() 1795 if (!area->nr_free) in fast_find_migrateblock()
|
/linux/drivers/net/ethernet/natsemi/ |
A D | ns83820.c | 1047 int nr_free, nr_frags; local 1069 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1070 nr_free -= 1; 1071 if (nr_free <= nr_frags) { 1089 nr_free -= nr_frags; 1090 if (nr_free < MIN_TX_DESC_FREE) {
|
/linux/tools/tracing/latency/ |
A D | latency-collector.c | 807 int nr_free = QUEUE_SIZE - queue_len(q); in queue_nr_free() local 813 if (nr_free == 1) in queue_nr_free() 814 nr_free = 0; in queue_nr_free() 815 return nr_free; in queue_nr_free()
|
/linux/drivers/md/ |
A D | dm-era-target.c | 1133 dm_block_t nr_free, nr_total; in metadata_get_stats() local 1135 r = dm_sm_get_nr_free(md->sm, &nr_free); in metadata_get_stats() 1147 s->used = nr_total - nr_free; in metadata_get_stats()
|
A D | dm-cache-policy-smq.c | 1151 unsigned nr_free; in free_target_met() local 1153 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met() 1154 return (nr_free + btracker_nr_demotions_queued(mq->bg_work)) >= in free_target_met()
|
A D | dm-thin.c | 1456 dm_block_t nr_free; in check_for_metadata_space() local 1458 r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free); in check_for_metadata_space() 1461 else if (!nr_free) in check_for_metadata_space() 1473 dm_block_t nr_free; in check_for_data_space() local 1478 r = dm_pool_get_free_block_count(pool->pmd, &nr_free); in check_for_data_space() 1482 if (nr_free) { in check_for_data_space()
|
/linux/tools/perf/ |
A D | builtin-kmem.c | 287 int nr_free; member 900 pstat->nr_free++; in evsel__process_page_free_event() 908 pstat->nr_free++; in evsel__process_page_free_event()
|
/linux/tools/perf/util/ |
A D | symbol-elf.c | 2448 int nr_free = 0; in cleanup_sdt_note_list() local 2456 nr_free++; in cleanup_sdt_note_list() 2458 return nr_free; in cleanup_sdt_note_list()
|
/linux/include/linux/ |
A D | mmzone.h | 99 unsigned long nr_free; member
|
/linux/fs/f2fs/ |
A D | file.c | 558 int nr_free = 0, ofs = dn->ofs_in_node, len = count; in f2fs_truncate_data_blocks_range() local 605 nr_free++; in f2fs_truncate_data_blocks_range() 611 if (nr_free) { in f2fs_truncate_data_blocks_range() 620 dec_valid_block_count(sbi, dn->inode, nr_free); in f2fs_truncate_data_blocks_range() 626 dn->ofs_in_node, nr_free); in f2fs_truncate_data_blocks_range()
|