Searched refs:nr_free (Results 1 – 8 of 8) sorted by relevance
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 301 static int ttm_page_pool_free(struct ttm_page_pool *pool, unsigned nr_free) in ttm_page_pool_free() argument 307 npages_to_free = nr_free; in ttm_page_pool_free() 309 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_page_pool_free() 340 if (likely(nr_free != FREE_ALL_PAGES)) in ttm_page_pool_free() 341 nr_free -= freed_pages; in ttm_page_pool_free() 343 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_page_pool_free() 344 npages_to_free = nr_free; in ttm_page_pool_free() 351 if (nr_free) in ttm_page_pool_free() 368 nr_free -= freed_pages; in ttm_page_pool_free() 377 return nr_free; in ttm_page_pool_free() [all …]
|
D | ttm_page_alloc_dma.c | 414 static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free) in ttm_dma_page_pool_free() argument 421 npages_to_free = nr_free; in ttm_dma_page_pool_free() 423 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_dma_page_pool_free() 426 if (nr_free > 1) { in ttm_dma_page_pool_free() 429 npages_to_free, nr_free); in ttm_dma_page_pool_free() 469 if (likely(nr_free != FREE_ALL_PAGES)) in ttm_dma_page_pool_free() 470 nr_free -= freed_pages; in ttm_dma_page_pool_free() 472 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_dma_page_pool_free() 473 npages_to_free = nr_free; in ttm_dma_page_pool_free() 480 if (nr_free) in ttm_dma_page_pool_free() [all …]
|
/drivers/md/persistent-data/ |
D | dm-space-map-disk.c | 189 dm_block_t nr_free; in sm_disk_commit() local 192 r = sm_disk_get_nr_free(sm, &nr_free); in sm_disk_commit() 204 r = sm_disk_get_nr_free(sm, &nr_free); in sm_disk_commit()
|
D | dm-space-map-common.c | 261 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend() 338 if (le32_to_cpu(ie_disk.nr_free) == 0) in sm_ll_find_free_block() 437 le32_add_cpu(&ie_disk.nr_free, -1); in sm_ll_insert() 444 le32_add_cpu(&ie_disk.nr_free, 1); in sm_ll_insert()
|
D | dm-space-map-common.h | 34 __le32 nr_free; member
|
/drivers/net/ethernet/ |
D | jme.c | 584 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources() 651 atomic_set(&txring->nr_free, 0); in jme_free_tx_resources() 1438 atomic_read(&txring->nr_free) >= (jme->tx_wake_threshold))) { in jme_wake_queue_if_stopped() 1465 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet() 1519 atomic_add(cnt, &txring->nr_free); in jme_tx_clean_tasklet() 1981 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1984 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 2198 if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { in jme_stop_queue_if_full() 2202 if (atomic_read(&txring->nr_free) in jme_stop_queue_if_full()
|
D | jme.h | 388 atomic_t nr_free; member
|
/drivers/net/ethernet/natsemi/ |
D | ns83820.c | 1064 int nr_free, nr_frags; local 1086 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1087 nr_free -= 1; 1088 if (nr_free <= nr_frags) { 1106 nr_free -= nr_frags; 1107 if (nr_free < MIN_TX_DESC_FREE) {
|