Home
last modified time | relevance | path

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

/drivers/lightnvm/
Dpblk-map.c187 bitmap_weight(d_line->blk_bitmap, lm->blk_per_line)) { in pblk_map_erase_rq()
192 lm->blk_per_line, bit + 1); in pblk_map_erase_rq()
193 if (bit >= lm->blk_per_line) in pblk_map_erase_rq()
Dpblk-recovery.c119 int nr_bb = bitmap_weight(line->blk_bitmap, lm->blk_per_line); in pblk_sec_in_open_line()
124 for (i = 0; i < lm->blk_per_line; i++) { in pblk_sec_in_open_line()
134 if (lm->blk_per_line - nr_bb != valid_chunks) in pblk_sec_in_open_line()
322 int blk_in_line = lm->blk_per_line; in pblk_line_wps_are_unbalanced()
624 smeta_blk = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); in pblk_line_was_written()
625 if (smeta_blk >= lm->blk_per_line) in pblk_line_was_written()
644 for (i = 0; i < lm->blk_per_line; i++) in pblk_line_is_open()
Dpblk-core.c670 bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); in pblk_line_smeta_start()
671 if (bit >= lm->blk_per_line) in pblk_line_smeta_start()
894 bit = find_next_zero_bit(line->erase_bitmap, lm->blk_per_line, in pblk_line_erase()
896 if (bit >= lm->blk_per_line) { in pblk_line_erase()
966 nr_blk_line = lm->blk_per_line - in pblk_line_init_metadata()
967 bitmap_weight(line->blk_bitmap, lm->blk_per_line); in pblk_line_init_metadata()
1073 while ((bit = find_next_bit(line->blk_bitmap, lm->blk_per_line, in pblk_line_init_bb()
1074 bit + 1)) < lm->blk_per_line) { in pblk_line_init_bb()
1084 bit = find_first_zero_bit(line->blk_bitmap, lm->blk_per_line); in pblk_line_init_bb()
1141 for (i = 0; i < lm->blk_per_line; i++) { in pblk_prepare_new_line()
[all …]
Dpblk-init.c717 for (i = 0; i < lm->blk_per_line; i++) { in pblk_setup_line_meta_chk()
773 chk_in_line = lm->blk_per_line - nr_bad_chks; in pblk_setup_line_meta()
774 if (nr_bad_chks < 0 || nr_bad_chks > lm->blk_per_line || in pblk_setup_line_meta()
801 line->chks = kmalloc_array(lm->blk_per_line, in pblk_alloc_line_meta()
947 lm->blk_per_line = geo->all_luns; in pblk_line_meta_init()
990 if (lm->min_blk_line > lm->blk_per_line) { in pblk_line_meta_init()
992 lm->blk_per_line); in pblk_line_meta_init()
Dpblk-rl.c224 rl->high = pblk->op_blks - blk_meta - lm->blk_per_line; in pblk_rl_init()
Dpblk-sysfs.c283 geo->all_luns, lm->blk_per_line, lm->sec_per_line); in pblk_sysfs_lines()
330 lm->blk_per_line, in pblk_sysfs_lines_info()
Dpblk.h562 unsigned int blk_per_line; /* Number of blocks in a full line */ member
1337 return DIV_ROUND_UP(100, pblk->op) * lm->blk_per_line; in pblk_get_min_chks()