Searched refs:nr_free (Results 1 – 11 of 11) sorted by relevance
/drivers/dma/mediatek/ |
D | mtk-hsdma.c | 188 atomic_t nr_free; member 344 atomic_set(&pc->nr_free, MTK_DMA_SIZE - 1); in mtk_hsdma_alloc_pchan() 429 reserved = min_t(u16, num_sgs, atomic_read(&pc->nr_free)); in mtk_hsdma_issue_pending_vdesc() 436 atomic_sub(reserved, &pc->nr_free); in mtk_hsdma_issue_pending_vdesc() 615 atomic_inc(&pc->nr_free); in mtk_hsdma_free_rooms_in_ring() 629 if (atomic_read(&pc->nr_free) >= MTK_DMA_SIZE - 1) in mtk_hsdma_free_rooms_in_ring()
|
/drivers/md/persistent-data/ |
D | dm-space-map-common.c | 268 idx.nr_free = cpu_to_le32(ll->entries_per_block); in sm_ll_extend() 361 if (le32_to_cpu(ie_disk.nr_free) == 0) in sm_ll_find_free_block() 490 le32_add_cpu(&ie_disk.nr_free, -1); in sm_ll_insert() 497 le32_add_cpu(&ie_disk.nr_free, 1); in sm_ll_insert() 671 le32_add_cpu(&ic->ie_disk.nr_free, -1); in sm_ll_inc_bitmap() 867 le32_add_cpu(&ic->ie_disk.nr_free, 1); in sm_ll_dec_bitmap()
|
D | dm-space-map-common.h | 34 __le32 nr_free; member
|
/drivers/hwtracing/stm/ |
D | core.c | 169 master->nr_free = stm->data->sw_nchannels; in stp_master_alloc() 193 if (WARN_ON_ONCE(master->nr_free < output->nr_chans)) in stm_output_claim() 199 master->nr_free -= output->nr_chans; in stm_output_claim() 213 master->nr_free += output->nr_chans; in stm_output_disclaim() 265 if (!master->nr_free) in stm_find_master_chan()
|
D | stm.h | 25 unsigned int nr_free; member
|
/drivers/net/ethernet/ |
D | jme.c | 577 atomic_set(&txring->nr_free, jme->tx_ring_size); in jme_setup_tx_resources() 638 atomic_set(&txring->nr_free, 0); in jme_free_tx_resources() 1406 atomic_read(&txring->nr_free) >= (jme->tx_wake_threshold))) { in jme_wake_queue_if_stopped() 1432 max = jme->tx_ring_size - atomic_read(&txring->nr_free); in jme_tx_clean_tasklet() 1485 atomic_add(cnt, &txring->nr_free); in jme_tx_clean_tasklet() 1942 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc() 1945 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc() 2171 if (unlikely(atomic_read(&txring->nr_free) < (MAX_SKB_FRAGS+2))) { in jme_stop_queue_if_full() 2175 if (atomic_read(&txring->nr_free) in jme_stop_queue_if_full()
|
D | jme.h | 374 atomic_t nr_free; member
|
/drivers/net/ethernet/natsemi/ |
D | ns83820.c | 1047 int nr_free, nr_frags; local 1069 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1070 nr_free -= 1; 1071 if (nr_free <= nr_frags) { 1089 nr_free -= nr_frags; 1090 if (nr_free < MIN_TX_DESC_FREE) {
|
/drivers/md/ |
D | dm-era-target.c | 1133 dm_block_t nr_free, nr_total; in metadata_get_stats() local 1135 r = dm_sm_get_nr_free(md->sm, &nr_free); in metadata_get_stats() 1147 s->used = nr_total - nr_free; in metadata_get_stats()
|
D | dm-cache-policy-smq.c | 1160 unsigned int nr_free; in free_target_met() local 1162 nr_free = from_cblock(mq->cache_size) - mq->cache_alloc.nr_allocated; in free_target_met() 1163 return (nr_free + btracker_nr_demotions_queued(mq->bg_work)) >= in free_target_met()
|
D | dm-thin.c | 1445 dm_block_t nr_free; in check_for_metadata_space() local 1447 r = dm_pool_get_free_metadata_block_count(pool->pmd, &nr_free); in check_for_metadata_space() 1450 else if (!nr_free) in check_for_metadata_space() 1462 dm_block_t nr_free; in check_for_data_space() local 1467 r = dm_pool_get_free_block_count(pool->pmd, &nr_free); in check_for_data_space() 1471 if (nr_free) { in check_for_data_space()
|