Home
last modified time | relevance | path

Searched refs:nr_free (Results 1 – 25 of 27) sorted by relevance

12

/openbmc/linux/tools/cgroup/
H A Dmemcg_slabinfo.py86 nr_free = 0
92 nr_free += count_partial(n, count_free)
94 return {'active_objs': nr_objs - nr_free,
/openbmc/linux/lib/
H A Dassoc_array.c1465 int keylen, slot, nr_free, next_slot, i; in assoc_array_gc() local
1547 nr_free = 0; in assoc_array_gc()
1551 nr_free++; in assoc_array_gc()
1555 pr_devel("free=%d, leaves=%lu\n", nr_free, new_n->nr_leaves_on_branch); in assoc_array_gc()
1577 if (child->nr_leaves_on_branch <= nr_free + 1) { in assoc_array_gc()
1580 slot, child->nr_leaves_on_branch, nr_free + 1, in assoc_array_gc()
1589 nr_free++; in assoc_array_gc()
1601 nr_free--; in assoc_array_gc()
1606 slot, child->nr_leaves_on_branch, nr_free + 1, in assoc_array_gc()
1621 if (nr_free == ASSOC_ARRAY_FAN_OUT - 1) { in assoc_array_gc()
/openbmc/linux/drivers/dma/mediatek/
H A Dmtk-hsdma.c187 atomic_t nr_free; member
343 atomic_set(&pc->nr_free, MTK_DMA_SIZE - 1); in mtk_hsdma_alloc_pchan()
428 reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); in mtk_hsdma_issue_pending_vdesc()
435 atomic_sub(reserved, &pc->nr_free); in mtk_hsdma_issue_pending_vdesc()
614 atomic_inc(&pc->nr_free); in mtk_hsdma_free_rooms_in_ring()
628 if (atomic_read(&pc->nr_free) >= MTK_DMA_SIZE - 1) in mtk_hsdma_free_rooms_in_ring()
/openbmc/linux/scripts/gdb/linux/
H A Dslab.py301 nr_free = 0
308 nr_free = count_free(cache_node['partial'])
311 active_objs = nr_objs - nr_free
/openbmc/linux/mm/
H A Dmm_init.c1389 zone->free_area[order].nr_free = 0; in zone_init_free_lists()
2028 unsigned long nr_free = 0; in deferred_free_pages() local
2032 deferred_free_range(pfn - nr_free, nr_free); in deferred_free_pages()
2033 nr_free = 0; in deferred_free_pages()
2035 deferred_free_range(pfn - nr_free, nr_free); in deferred_free_pages()
2036 nr_free = 1; in deferred_free_pages()
2038 nr_free++; in deferred_free_pages()
2042 deferred_free_range(pfn - nr_free, nr_free); in deferred_free_pages()
H A Dpage_reporting.c180 budget = DIV_ROUND_UP(area->nr_free, PAGE_REPORTING_CAPACITY * 16); in page_reporting_cycle()
H A Dshow_mem.c373 nr[order] = area->nr_free; in show_free_areas()
H A Dvmstat.c1067 blocks = data_race(zone->free_area[order].nr_free); in fill_contig_page_info()
1479 seq_printf(m, "%6lu ", data_race(zone->free_area[order].nr_free)); in frag_show_print()
H A Dslub.c3006 unsigned long nr_free; in slab_out_of_memory() local
3008 nr_free = count_partial(n, count_free); in slab_out_of_memory()
3013 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory()
6500 unsigned long nr_free = 0; in get_slabinfo() local
6507 nr_free += count_partial(n, count_free); in get_slabinfo()
6510 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo()
H A Dpage_alloc.c671 area->nr_free++; in add_to_free_list()
681 area->nr_free++; in add_to_free_list_tail()
707 zone->free_area[order].nr_free--; in del_page_from_free_list()
1858 if (area->nr_free == 0) in find_suitable_fallback()
2898 if (!area->nr_free) in __zone_watermark_ok()
/openbmc/linux/fs/ntfs/
H A Dsuper.c2456 s64 nr_free = vol->nr_clusters; in get_nr_free_clusters() local
2486 nr_free -= PAGE_SIZE * 8; in get_nr_free_clusters()
2497 nr_free -= bitmap_weight(kaddr, in get_nr_free_clusters()
2511 if (nr_free < 0) in get_nr_free_clusters()
2512 nr_free = 0; in get_nr_free_clusters()
2514 return nr_free; in get_nr_free_clusters()
2557 nr_free -= PAGE_SIZE * 8; in __get_nr_free_mft_records()
2568 nr_free -= bitmap_weight(kaddr, in __get_nr_free_mft_records()
2576 if (nr_free < 0) in __get_nr_free_mft_records()
2577 nr_free = 0; in __get_nr_free_mft_records()
[all …]
/openbmc/linux/drivers/hwtracing/stm/
H A Dstm.h25 unsigned int nr_free; member
H A Dcore.c169 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()
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-space-map-common.c269 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend()
362 if (le32_to_cpu(ie_disk.nr_free) == 0) in sm_ll_find_free_block()
491 le32_add_cpu(&ie_disk.nr_free, -1); in sm_ll_insert()
498 le32_add_cpu(&ie_disk.nr_free, 1); in sm_ll_insert()
673 le32_add_cpu(&ic->ie_disk.nr_free, -1); in sm_ll_inc_bitmap()
869 le32_add_cpu(&ic->ie_disk.nr_free, 1); in sm_ll_dec_bitmap()
H A Ddm-space-map-common.h35 __le32 nr_free; member
/openbmc/linux/drivers/net/ethernet/
H A Djme.c577 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources()
638 atomic_set(&txring->nr_free, 0); in jme_free_tx_resources()
1404 atomic_read(&txring->nr_free) >= (jme->tx_wake_threshold))) { in jme_wake_queue_if_stopped()
1430 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet()
1483 atomic_add(cnt, &txring->nr_free); in jme_tx_clean_tasklet()
1940 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc()
1943 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc()
2169 if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { in jme_stop_queue_if_full()
2173 if (atomic_read(&txring->nr_free) in jme_stop_queue_if_full()
H A Djme.h374 atomic_t nr_free; member
/openbmc/linux/tools/tracing/latency/
H A Dlatency-collector.c807 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()
/openbmc/linux/drivers/net/ethernet/natsemi/
H A Dns83820.c1047 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) {
/openbmc/linux/drivers/md/
H A Ddm-era-target.c1148 dm_block_t nr_free, nr_total; in metadata_get_stats() local
1150 r = dm_sm_get_nr_free(md->sm, &nr_free); in metadata_get_stats()
1162 s->used = nr_total - nr_free; in metadata_get_stats()
H A Ddm-cache-policy-smq.c1162 unsigned int nr_free; in free_target_met() local
1164 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met()
1165 return (nr_free + btracker_nr_demotions_queued(mq->bg_work)) >= in free_target_met()
H A Ddm-thin.c1451 dm_block_t nr_free; in check_for_metadata_space() local
1453 r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free); in check_for_metadata_space()
1456 else if (!nr_free) in check_for_metadata_space()
1468 dm_block_t nr_free; in check_for_data_space() local
1473 r = dm_pool_get_free_block_count(pool->pmd, &nr_free); in check_for_data_space()
1477 if (nr_free) { in check_for_data_space()
/openbmc/linux/tools/perf/
H A Dbuiltin-kmem.c300 int nr_free; member
922 pstat->nr_free++; in evsel__process_page_free_event()
930 pstat->nr_free++; in evsel__process_page_free_event()
/openbmc/linux/tools/perf/util/
H A Dsymbol-elf.c2882 int nr_free = 0; in cleanup_sdt_note_list() local
2890 nr_free++; in cleanup_sdt_note_list()
2892 return nr_free; in cleanup_sdt_note_list()
/openbmc/linux/fs/f2fs/
H A Dfile.c603 int nr_free = 0, ofs = dn->ofs_in_node, len = count; in f2fs_truncate_data_blocks_range() local
641 nr_free++; in f2fs_truncate_data_blocks_range()
647 if (nr_free) { in f2fs_truncate_data_blocks_range()
657 dec_valid_block_count(sbi, dn->inode, nr_free); in f2fs_truncate_data_blocks_range()
663 dn->ofs_in_node, nr_free); in f2fs_truncate_data_blocks_range()

12