Home
last modified time | relevance | path

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

/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,
/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()
/linux/scripts/gdb/linux/
H A Dslab.py300 nr_free = 0
307 nr_free = count_free(cache_node['partial'])
310 active_objs = nr_objs - nr_free
/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
/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
/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) {
/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()
/linux/mm/
H A Dpage_reporting.c180 budget = DIV_ROUND_UP(area->nr_free, PAGE_REPORTING_CAPACITY * 16); in page_reporting_cycle()
H A Dshow_mem.c370 nr[order] = area->nr_free; in show_free_areas()
H A Dvmstat.c1089 blocks = data_race(zone->free_area[order].nr_free); in fill_contig_page_info()
1532 seq_printf(m, "%6lu ", data_race(zone->free_area[order].nr_free)); in frag_show_print()
H A Dslub.c3534 unsigned long nr_free; in slab_out_of_memory() local
3536 nr_free = count_partial_free_approx(n); in slab_out_of_memory()
3541 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory()
7428 unsigned long nr_free = 0; in get_slabinfo() local
7435 nr_free += count_partial_free_approx(n); in get_slabinfo()
7438 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo()
H A Dcompaction.c1589 if (!area->nr_free) in fast_isolate_freepages()
2021 if (!area->nr_free) in fast_find_migrateblock()
H A Dpage_alloc.c662 area->nr_free++; in __add_to_free_list()
700 zone->free_area[order].nr_free--; in __del_page_from_free_list()
1986 if (area->nr_free == 0) in find_suitable_fallback()
3161 if (!area->nr_free) in __zone_watermark_ok()
H A Dmm_init.c1400 zone->free_area[order].nr_free = 0; in zone_init_free_lists()
/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()
/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()
/linux/tools/perf/util/
H A Dsymbol-elf.c2954 int nr_free = 0; in cleanup_sdt_note_list()
2962 nr_free++; in cleanup_sdt_note_list()
2964 return nr_free; in cleanup_sdt_note_list()
2955 int nr_free = 0; cleanup_sdt_note_list() local
/linux/include/linux/
H A Dmmzone.h119 unsigned long nr_free; member