Searched refs:nr_free (Results 1 – 12 of 12) sorted by relevance
/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc_dma.c | 419 static unsigned ttm_dma_page_pool_free(struct dma_pool *pool, unsigned nr_free, in ttm_dma_page_pool_free() argument 428 npages_to_free = nr_free; in ttm_dma_page_pool_free() 430 if (NUM_PAGES_TO_ALLOC < nr_free) in ttm_dma_page_pool_free() 433 if (nr_free > 1) { in ttm_dma_page_pool_free() 436 npages_to_free, nr_free); in ttm_dma_page_pool_free() 479 if (likely(nr_free != FREE_ALL_PAGES)) in ttm_dma_page_pool_free() 480 nr_free -= freed_pages; in ttm_dma_page_pool_free() 482 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_dma_page_pool_free() 483 npages_to_free = nr_free; in ttm_dma_page_pool_free() 490 if (nr_free) in ttm_dma_page_pool_free() [all …]
|
D | ttm_page_alloc.c | 302 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() 346 if (likely(nr_free != FREE_ALL_PAGES)) in ttm_page_pool_free() 347 nr_free -= freed_pages; in ttm_page_pool_free() 349 if (NUM_PAGES_TO_ALLOC >= nr_free) in ttm_page_pool_free() 350 npages_to_free = nr_free; in ttm_page_pool_free() 357 if (nr_free) in ttm_page_pool_free() 374 nr_free -= freed_pages; in ttm_page_pool_free() 384 return nr_free; in ttm_page_pool_free() [all …]
|
/drivers/md/persistent-data/ |
D | dm-space-map-disk.c | 188 dm_block_t nr_free; in sm_disk_commit() local 191 r = sm_disk_get_nr_free(sm, &nr_free); in sm_disk_commit() 203 r = sm_disk_get_nr_free(sm, &nr_free); in sm_disk_commit()
|
D | dm-space-map-common.c | 264 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend() 350 if (le32_to_cpu(ie_disk.nr_free) == 0) in sm_ll_find_free_block() 458 le32_add_cpu(&ie_disk.nr_free, -1); in sm_ll_mutate() 465 le32_add_cpu(&ie_disk.nr_free, 1); in sm_ll_mutate()
|
D | dm-space-map-common.h | 34 __le32 nr_free; member
|
/drivers/hwtracing/stm/ |
D | stm.h | 36 unsigned int nr_free; member
|
D | core.c | 184 master->nr_free = stm->data->sw_nchannels; in stp_master_alloc() 208 if (WARN_ON_ONCE(master->nr_free < output->nr_chans)) in stm_output_claim() 214 master->nr_free -= output->nr_chans; in stm_output_claim() 229 master->nr_free += output->nr_chans; in stm_output_disclaim() 277 if (!master->nr_free) in stm_find_master_chan()
|
/drivers/net/ethernet/ |
D | jme.c | 590 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources() 655 atomic_set(&txring->nr_free, 0); in jme_free_tx_resources() 1440 atomic_read(&txring->nr_free) >= (jme->tx_wake_threshold))) { in jme_wake_queue_if_stopped() 1467 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet() 1521 atomic_add(cnt, &txring->nr_free); in jme_tx_clean_tasklet() 1983 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1986 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 2227 if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { in jme_stop_queue_if_full() 2231 if (atomic_read(&txring->nr_free) in jme_stop_queue_if_full()
|
D | jme.h | 387 atomic_t nr_free; member
|
/drivers/net/ethernet/natsemi/ |
D | ns83820.c | 1063 int nr_free, nr_frags; local 1085 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1086 nr_free -= 1; 1087 if (nr_free <= nr_frags) { 1105 nr_free -= nr_frags; 1106 if (nr_free < MIN_TX_DESC_FREE) {
|
/drivers/md/ |
D | dm-era-target.c | 1115 dm_block_t nr_free, nr_total; in metadata_get_stats() local 1117 r = dm_sm_get_nr_free(md->sm, &nr_free); in metadata_get_stats() 1129 s->used = nr_total - nr_free; in metadata_get_stats()
|
D | dm-thin.c | 1390 dm_block_t nr_free; in check_for_space() local 1395 r = dm_pool_get_free_block_count(pool->pmd, &nr_free); in check_for_space() 1399 if (nr_free) in check_for_space()
|