Searched refs:nr_free (Results 1 – 14 of 14) sorted by relevance
/linux-2.6.39/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 304 static int ttm_page_pool_free(struct ttm_page_pool *pool, unsigned nr_free) in ttm_page_pool_free() argument 310 npages_to_free = nr_free; in ttm_page_pool_free() 312 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_page_pool_free() 344 if (likely(nr_free != FREE_ALL_PAGES)) in ttm_page_pool_free() 345 nr_free -= freed_pages; in ttm_page_pool_free() 347 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_page_pool_free() 348 npages_to_free = nr_free; in ttm_page_pool_free() 355 if (nr_free) in ttm_page_pool_free() 372 nr_free -= freed_pages; in ttm_page_pool_free() 381 return nr_free; in ttm_page_pool_free() [all …]
|
/linux-2.6.39/kernel/ |
D | pid_namespace.c | 95 atomic_set(&ns->pidmap[0].nr_free, BITS_PER_PAGE - 1); in create_pid_namespace() 98 atomic_set(&ns->pidmap[i].nr_free, BITS_PER_PAGE); in create_pid_namespace()
|
D | pid.c | 122 atomic_inc(&map->nr_free); in free_pidmap() 195 if (likely(atomic_read(&map->nr_free))) { in alloc_pidmap() 198 atomic_dec(&map->nr_free); in alloc_pidmap() 566 atomic_dec(&init_pid_ns.pidmap[0].nr_free); in pidmap_init()
|
/linux-2.6.39/include/linux/ |
D | pid_namespace.h | 11 atomic_t nr_free; member
|
D | mmzone.h | 59 unsigned long nr_free; member
|
/linux-2.6.39/fs/ntfs/ |
D | super.c | 2445 s64 nr_free = vol->nr_clusters; in get_nr_free_clusters() local 2475 nr_free -= PAGE_CACHE_SIZE * 8; in get_nr_free_clusters() 2486 nr_free -= bitmap_weight(kaddr, in get_nr_free_clusters() 2497 nr_free += 64 - (vol->nr_clusters & 63); in get_nr_free_clusters() 2500 if (nr_free < 0) in get_nr_free_clusters() 2501 nr_free = 0; in get_nr_free_clusters() 2503 return nr_free; in get_nr_free_clusters() 2524 s64 nr_free, const pgoff_t max_index) in __get_nr_free_mft_records() argument 2546 nr_free -= PAGE_CACHE_SIZE * 8; in __get_nr_free_mft_records() 2557 nr_free -= bitmap_weight(kaddr, in __get_nr_free_mft_records() [all …]
|
/linux-2.6.39/drivers/net/ |
D | jme.c | 585 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources() 652 atomic_set(&txring->nr_free, 0); in jme_free_tx_resources() 1435 atomic_read(&txring->nr_free) >= (jme->tx_wake_threshold))) { in jme_wake_queue_if_stopped() 1462 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet() 1516 atomic_add(cnt, &txring->nr_free); in jme_tx_clean_tasklet() 1869 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1872 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 2085 if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { in jme_stop_queue_if_full() 2089 if (atomic_read(&txring->nr_free) in jme_stop_queue_if_full()
|
D | ns83820.c | 1086 int nr_free, nr_frags; local 1108 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1109 nr_free -= 1; 1110 if (nr_free <= nr_frags) { 1128 nr_free -= nr_frags; 1129 if (nr_free < MIN_TX_DESC_FREE) {
|
D | jme.h | 388 atomic_t nr_free; member
|
/linux-2.6.39/mm/ |
D | page_alloc.c | 518 zone->free_area[order].nr_free--; in __free_one_page() 550 zone->free_area[order].nr_free++; in __free_one_page() 746 area->nr_free++; in expand() 814 area->nr_free--; in __rmqueue_smallest() 939 area->nr_free--; in __rmqueue_fallback() 1265 zone->free_area[order].nr_free--; in split_free_page() 1484 free_pages -= z->free_area[o].nr_free << o; in __zone_watermark_ok() 2627 nr[order] = zone->free_area[order].nr_free; in __show_free_areas() 3452 zone->free_area[order].nr_free = 0; in zone_init_free_lists() 5611 zone->free_area[order].nr_free--; in __offline_isolated_pages()
|
D | vmstat.c | 557 blocks = zone->free_area[order].nr_free; in fill_contig_page_info() 670 seq_printf(m, "%6lu ", zone->free_area[order].nr_free); in frag_show_print()
|
D | compaction.c | 444 if (order >= pageblock_order && zone->free_area[order].nr_free) in compact_finished()
|
D | slub.c | 1745 unsigned long nr_free; in slab_out_of_memory() local 1750 nr_free = count_partial(n, count_free); in slab_out_of_memory() 1756 node, nr_slabs, nr_objs, nr_free); in slab_out_of_memory() 4885 unsigned long nr_free = 0; in s_show() local 4900 nr_free += count_partial(n, count_free); in s_show() 4903 nr_inuse = nr_objs - nr_free; in s_show()
|
/linux-2.6.39/arch/tile/mm/ |
D | pgtable.c | 75 int nr = zone->free_area[order].nr_free; in show_mem()
|