| /linux/tools/cgroup/ |
| H 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/ |
| H A D | assoc_array.c | 1463 int keylen, slot, nr_free, next_slot, i; in assoc_array_gc() local 1544 nr_free = 0; in assoc_array_gc() 1548 nr_free++; in assoc_array_gc() 1552 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() 1618 if (nr_free == ASSOC_ARRAY_FAN_OUT - 1) { in assoc_array_gc()
|
| /linux/drivers/dma/mediatek/ |
| H A D | mtk-hsdma.c | 187 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()
|
| /linux/scripts/gdb/linux/ |
| H A D | slab.py | 300 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 D | dm-space-map-common.h | 35 __le32 nr_free; member
|
| /linux/drivers/net/ethernet/ |
| H A D | jme.c | 577 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 D | jme.h | 374 atomic_t nr_free; member
|
| /linux/drivers/net/ethernet/natsemi/ |
| H A D | ns83820.c | 1046 int nr_free, nr_frags; local 1068 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1069 nr_free -= 1; 1070 if (nr_free <= nr_frags) { 1088 nr_free -= nr_frags; 1089 if (nr_free < MIN_TX_DESC_FREE) {
|
| /linux/tools/tracing/latency/ |
| H 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/ |
| H A D | dm-era-target.c | 1148 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 D | dm-thin.c | 1447 dm_block_t nr_free; in check_for_metadata_space() local 1449 r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free); in check_for_metadata_space() 1452 else if (!nr_free) in check_for_metadata_space() 1464 dm_block_t nr_free; in check_for_data_space() local 1469 r = dm_pool_get_free_block_count(pool->pmd, &nr_free); in check_for_data_space() 1473 if (nr_free) { in check_for_data_space()
|
| /linux/tools/perf/ |
| H A D | builtin-kmem.c | 300 int nr_free; member 924 pstat->nr_free++; in evsel__process_page_free_event() 932 pstat->nr_free++; in evsel__process_page_free_event()
|
| /linux/tools/perf/util/ |
| H A D | symbol-elf.c | 2905 int nr_free = 0; in cleanup_sdt_note_list() 2913 nr_free++; in cleanup_sdt_note_list() 2915 return nr_free; 2903 int nr_free = 0; cleanup_sdt_note_list() local
|
| /linux/mm/ |
| H A D | slub.c | 4282 unsigned long nr_free; in slab_out_of_memory() local 4284 nr_free = count_partial_free_approx(n); in slab_out_of_memory() 4289 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory() 9919 unsigned long nr_free = 0; in get_slabinfo() local 9926 nr_free += count_partial_free_approx(n); in get_slabinfo() 9929 sinfo->active_objs = nr_objs - nr_free; in get_slabinfo()
|
| H A D | page_alloc.c | 803 area->nr_free++; in __add_to_free_list() 854 zone->free_area[order].nr_free--; in __del_page_from_free_list() 2260 if (area->nr_free == 0) in find_suitable_fallback() 3642 if (!area->nr_free) in __zone_watermark_ok()
|
| H A D | mm_init.c | 1424 zone->free_area[order].nr_free = 0; in zone_init_free_lists()
|