Home
last modified time | relevance | path

Searched refs:blk_per_line (Results 1 – 7 of 7) sorted by relevance

/Linux-v4.19/drivers/lightnvm/
Dpblk-map.c167 bitmap_weight(d_line->blk_bitmap, lm->blk_per_line)) { in pblk_map_erase_rq()
172 lm->blk_per_line, bit + 1); in pblk_map_erase_rq()
173 if (bit >= lm->blk_per_line) in pblk_map_erase_rq()
Dpblk-core.c773 bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); in pblk_line_smeta_start()
774 if (bit >= lm->blk_per_line) in pblk_line_smeta_start()
933 bit = find_next_zero_bit(line->erase_bitmap, lm->blk_per_line, in pblk_line_erase()
935 if (bit >= lm->blk_per_line) { in pblk_line_erase()
1005 nr_blk_line = lm->blk_per_line - in pblk_line_init_metadata()
1006 bitmap_weight(line->blk_bitmap, lm->blk_per_line); in pblk_line_init_metadata()
1107 while ((bit = find_next_bit(line->blk_bitmap, lm->blk_per_line, in pblk_line_init_bb()
1108 bit + 1)) < lm->blk_per_line) { in pblk_line_init_bb()
1118 bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); in pblk_line_init_bb()
1174 for (i = 0; i < lm->blk_per_line; i++) { in pblk_prepare_new_line()
[all …]
Dpblk-rl.c216 int min_blocks = lm->blk_per_line * PBLK_GC_RSV_LINE; in pblk_rl_init()
225 rl->high = pblk->op_blks - blk_meta - lm->blk_per_line; in pblk_rl_init()
Dpblk-init.c712 for (i = 0; i < lm->blk_per_line; i++) { in pblk_setup_line_meta_12()
754 for (i = 0; i < lm->blk_per_line; i++) { in pblk_setup_line_meta_20()
812 chk_in_line = lm->blk_per_line - nr_bad_chks; in pblk_setup_line_meta()
813 if (nr_bad_chks < 0 || nr_bad_chks > lm->blk_per_line || in pblk_setup_line_meta()
840 line->chks = kmalloc_array(lm->blk_per_line, in pblk_alloc_line_meta()
989 lm->blk_per_line = geo->all_luns; in pblk_line_meta_init()
1032 if (lm->min_blk_line > lm->blk_per_line) { in pblk_line_meta_init()
1034 lm->blk_per_line); in pblk_line_meta_init()
Dpblk-recovery.c93 int nr_bb = bitmap_weight(line->blk_bitmap, lm->blk_per_line); in pblk_calc_sec_in_line()
791 smeta_blk = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); in pblk_line_was_written()
792 if (smeta_blk >= lm->blk_per_line) in pblk_line_was_written()
Dpblk-sysfs.c276 geo->all_luns, lm->blk_per_line, lm->sec_per_line); in pblk_sysfs_lines()
323 lm->blk_per_line, in pblk_sysfs_lines_info()
Dpblk.h569 unsigned int blk_per_line; /* Number of blocks in a full line */ member