Home
last modified time | relevance | path

Searched refs:nr_free (Results 1 – 12 of 12) sorted by relevance

/drivers/gpu/drm/ttm/
Dttm_page_alloc_dma.c419 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 …]
Dttm_page_alloc.c302 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/
Ddm-space-map-disk.c188 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()
Ddm-space-map-common.c264 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()
Ddm-space-map-common.h34 __le32 nr_free; member
/drivers/hwtracing/stm/
Dstm.h36 unsigned int nr_free; member
Dcore.c184 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/
Djme.c590 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()
Djme.h387 atomic_t nr_free; member
/drivers/net/ethernet/natsemi/
Dns83820.c1063 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/
Ddm-era-target.c1115 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()
Ddm-thin.c1390 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()