Searched refs:emeta (Results 1 – 6 of 6) sorted by relevance
/Linux-v5.10/drivers/lightnvm/ |
D | pblk-recovery.c | 43 struct pblk_emeta *emeta = line->emeta; in pblk_recov_l2p_from_emeta() local 44 struct line_emeta *emeta_buf = emeta->buf; in pblk_recov_l2p_from_emeta() 183 __le64 *lba_list = emeta_to_lbas(pblk, line->emeta->buf); in pblk_recov_pad_line() 383 lba_list = emeta_to_lbas(pblk, line->emeta->buf); in pblk_recov_scan_oob() 568 struct line_emeta *emeta) in pblk_recov_check_line_version() argument 570 struct line_header *header = &emeta->header; in pblk_recov_check_line_version() 588 struct line_emeta *emeta) in pblk_recov_wa_counters() argument 591 struct line_header *header = &emeta->header; in pblk_recov_wa_counters() 592 struct wa_counters *wa = emeta_to_wa(lm, emeta); in pblk_recov_wa_counters() 657 struct pblk_emeta *emeta; in pblk_recov_l2p() local [all …]
|
D | pblk-write.c | 120 lba_list = emeta_to_lbas(pblk, line->emeta->buf); in pblk_map_remaining() 277 struct pblk_emeta *emeta = line->emeta; in pblk_end_io_write_meta() local 292 sync = atomic_add_return(rqd->nr_ppas, &emeta->sync); in pblk_end_io_write_meta() 293 if (sync == emeta->nr_entries) in pblk_end_io_write_meta() 373 struct pblk_emeta *emeta = meta_line->emeta; in pblk_submit_meta_io() local 391 data = ((void *)emeta->buf) + emeta->mem; in pblk_submit_meta_io() 407 emeta->mem += rq_len; in pblk_submit_meta_io() 408 if (emeta->mem >= lm->emeta_len[0]) in pblk_submit_meta_io() 482 if (meta_line->emeta->mem >= lm->emeta_len[0]) { in pblk_should_submit_meta_io()
|
D | pblk-map.c | 29 struct pblk_emeta *emeta; in pblk_map_page_data() local 55 emeta = line->emeta; in pblk_map_page_data() 56 lba_list = emeta_to_lbas(pblk, emeta->buf); in pblk_map_page_data()
|
D | pblk-core.c | 723 __le64 *lba_list = emeta_to_lbas(pblk, line->emeta->buf); in pblk_line_smeta_write() 939 line->emeta = l_mg->eline_meta[meta_line]; in pblk_line_setup_metadata() 942 memset(line->emeta->buf, 0, lm->emeta_len[0]); in pblk_line_setup_metadata() 944 line->emeta->mem = 0; in pblk_line_setup_metadata() 945 atomic_set(&line->emeta->sync, 0); in pblk_line_setup_metadata() 958 struct pblk_emeta *emeta = line->emeta; in pblk_line_init_metadata() local 959 struct line_emeta *emeta_buf = emeta->buf; in pblk_line_init_metadata() 1005 cur->emeta->buf->next_id = cpu_to_le32(line->id); in pblk_line_init_metadata() 1253 line->emeta = NULL; in pblk_line_recov_close() 1263 line->emeta = NULL; in pblk_line_reinit() [all …]
|
D | pblk.h | 449 struct pblk_emeta *emeta; /* End medatada */ member 879 int pblk_recov_check_emeta(struct pblk *pblk, struct line_emeta *emeta); 934 static inline void *emeta_to_bb(struct line_emeta *emeta) in emeta_to_bb() argument 936 return emeta->bb_bitmap; in emeta_to_bb() 940 struct line_emeta *emeta) in emeta_to_wa() argument 942 return emeta->bb_bitmap + lm->blk_bitmap_len; in emeta_to_wa() 945 static inline void *emeta_to_lbas(struct pblk *pblk, struct line_emeta *emeta) in emeta_to_lbas() argument 947 return ((void *)emeta + pblk->lm.emeta_len[1]); in emeta_to_lbas() 950 static inline void *emeta_to_vsc(struct pblk *pblk, struct line_emeta *emeta) in emeta_to_vsc() argument 952 return (emeta_to_lbas(pblk, emeta) + pblk->lm.emeta_len[2]); in emeta_to_vsc() [all …]
|
D | pblk-init.c | 892 struct pblk_emeta *emeta; in pblk_line_mg_init() local 894 emeta = kmalloc(sizeof(struct pblk_emeta), GFP_KERNEL); in pblk_line_mg_init() 895 if (!emeta) in pblk_line_mg_init() 898 emeta->buf = kvmalloc(lm->emeta_len[0], GFP_KERNEL); in pblk_line_mg_init() 899 if (!emeta->buf) { in pblk_line_mg_init() 900 kfree(emeta); in pblk_line_mg_init() 904 emeta->nr_entries = lm->emeta_sec[0]; in pblk_line_mg_init() 905 l_mg->eline_meta[i] = emeta; in pblk_line_mg_init()
|