Home
last modified time | relevance | path

Searched refs:free_blocks (Results 1 – 9 of 9) sorted by relevance

/drivers/lightnvm/
Dpblk-rl.c100 return atomic_read(&rl->free_blocks); in pblk_rl_nr_free_blks()
109 unsigned long free_blocks) in __pblk_rl_update_rates() argument
115 if (free_blocks >= rl->high) { in __pblk_rl_update_rates()
128 } else if (free_blocks < rl->high) { in __pblk_rl_update_rates()
130 int user_windows = free_blocks >> shift; in __pblk_rl_update_rates()
136 if (free_blocks <= rl->rsv_blocks) { in __pblk_rl_update_rates()
162 int free_blocks; in pblk_rl_free_lines_inc() local
164 atomic_add(blk_in_line, &rl->free_blocks); in pblk_rl_free_lines_inc()
165 free_blocks = atomic_add_return(blk_in_line, &rl->free_user_blocks); in pblk_rl_free_lines_inc()
167 __pblk_rl_update_rates(rl, free_blocks); in pblk_rl_free_lines_inc()
[all …]
Dpblk-sysfs.c53 int free_blocks, free_user_blocks, total_blocks; in pblk_sysfs_rate_limiter() local
57 free_blocks = pblk_rl_nr_free_blks(&pblk->rl); in pblk_sysfs_rate_limiter()
77 free_blocks, in pblk_sysfs_rate_limiter()
Dpblk.h296 atomic_t free_blocks; /* Total number of free blocks (+ OP) */ member
Dpblk-init.c703 atomic_set(&pblk->rl.free_blocks, nr_free_chks); in pblk_set_provision()
/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c32 sizeof((wqs)->free_blocks[0]))
250 *page_idx = wqs->free_blocks[pos].page_idx; in wqs_next_block()
251 *block_idx = wqs->free_blocks[pos].block_idx; in wqs_next_block()
253 wqs->free_blocks[pos].page_idx = -1; in wqs_next_block()
254 wqs->free_blocks[pos].block_idx = -1; in wqs_next_block()
270 wqs->free_blocks[pos].page_idx = page_idx; in wqs_return_block()
271 wqs->free_blocks[pos].block_idx = block_idx; in wqs_return_block()
284 wqs->free_blocks[pos].page_idx = page_idx; in init_wqs_blocks_arr()
285 wqs->free_blocks[pos].block_idx = blk_idx; in init_wqs_blocks_arr()
334 wqs->free_blocks = devm_kzalloc(&pdev->dev, WQS_FREE_BLOCKS_SIZE(wqs), in hinic_wqs_alloc()
[all …]
Dhinic_hw_wq.h59 struct hinic_free_block *free_blocks; member
/drivers/md/
Ddm-thin.c1510 static void check_low_water_mark(struct pool *pool, dm_block_t free_blocks) in check_low_water_mark() argument
1512 if (free_blocks <= pool->low_water_blocks && !pool->low_water_triggered) { in check_low_water_mark()
1525 dm_block_t free_blocks; in alloc_data_block() local
1531 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1537 check_low_water_mark(pool, free_blocks); in alloc_data_block()
1539 if (!free_blocks) { in alloc_data_block()
1548 r = dm_pool_get_free_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1554 if (!free_blocks) { in alloc_data_block()
1569 r = dm_pool_get_free_metadata_block_count(pool->pmd, &free_blocks); in alloc_data_block()
1575 if (!free_blocks) { in alloc_data_block()
/drivers/block/
Dpktcdvd.c1579 if (ti.free_blocks) in pkt_get_last_written()
1580 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in pkt_get_last_written()
/drivers/cdrom/
Dcdrom.c2882 if (ti.free_blocks) in cdrom_get_last_written()
2883 *last_written -= (be32_to_cpu(ti.free_blocks) + 7); in cdrom_get_last_written()