Home
last modified time | relevance | path

Searched refs:freed_pages (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/ttm/
Dttm_page_alloc.c286 unsigned freed_pages) in ttm_pool_update_free_locked() argument
288 pool->npages -= freed_pages; in ttm_pool_update_free_locked()
289 pool->nfrees += freed_pages; in ttm_pool_update_free_locked()
306 unsigned freed_pages = 0, in ttm_page_pool_free() local
323 if (freed_pages >= npages_to_free) in ttm_page_pool_free()
326 pages_to_free[freed_pages++] = p; in ttm_page_pool_free()
328 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_page_pool_free()
332 ttm_pool_update_free_locked(pool, freed_pages); in ttm_page_pool_free()
339 ttm_pages_put(pages_to_free, freed_pages); in ttm_page_pool_free()
341 nr_free -= freed_pages; in ttm_page_pool_free()
[all …]
Dttm_page_alloc_dma.c369 unsigned freed_pages) in ttm_pool_update_free_locked() argument
371 pool->npages_free -= freed_pages; in ttm_pool_update_free_locked()
372 pool->nfrees += freed_pages; in ttm_pool_update_free_locked()
420 unsigned freed_pages = 0, in ttm_dma_page_pool_free() local
447 if (freed_pages >= npages_to_free) in ttm_dma_page_pool_free()
453 pages_to_free[freed_pages++] = dma_p->p; in ttm_dma_page_pool_free()
455 if (freed_pages >= NUM_PAGES_TO_ALLOC) { in ttm_dma_page_pool_free()
457 ttm_pool_update_free_locked(pool, freed_pages); in ttm_dma_page_pool_free()
465 freed_pages); in ttm_dma_page_pool_free()
470 nr_free -= freed_pages; in ttm_dma_page_pool_free()
[all …]
/drivers/net/wireless/iwmc3200wifi/
Dtx.c121 int freed_pages; in iwm_tx_credit_inc() local
129 freed_pages = total_freed_pages - pool->total_freed_pages; in iwm_tx_credit_inc()
130 IWM_DBG_TX(iwm, DBG, "Free %d pages for pool[%d]\n", freed_pages, id); in iwm_tx_credit_inc()
132 if (!freed_pages) { in iwm_tx_credit_inc()
135 } else if (freed_pages < 0) in iwm_tx_credit_inc()
136 freed_pages += IWM_UMAC_PAGE_ALLOC_WRAP + 1; in iwm_tx_credit_inc()
140 spool_pages = min(spool_pages, freed_pages); in iwm_tx_credit_inc()
144 pool->alloc_pages -= freed_pages; in iwm_tx_credit_inc()