Searched refs:emeta_buf (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/lightnvm/ |
D | pblk-core.c | 765 void *emeta_buf) in pblk_line_emeta_read() argument 831 ret = pblk_submit_io_sync(pblk, &rqd, emeta_buf); in pblk_line_emeta_read() 845 emeta_buf += rq_len; in pblk_line_emeta_read() 959 struct line_emeta *emeta_buf = emeta->buf; in pblk_line_init_metadata() local 1016 memcpy(&emeta_buf->header, &smeta_buf->header, in pblk_line_init_metadata() 1019 emeta_buf->header.version_major = EMETA_VERSION_MAJOR; in pblk_line_init_metadata() 1020 emeta_buf->header.version_minor = EMETA_VERSION_MINOR; in pblk_line_init_metadata() 1021 emeta_buf->header.crc = cpu_to_le32( in pblk_line_init_metadata() 1022 pblk_calc_meta_header_crc(pblk, &emeta_buf->header)); in pblk_line_init_metadata() 1024 emeta_buf->seq_nr = cpu_to_le64(line->seq_nr); in pblk_line_init_metadata() [all …]
|
D | pblk-gc.c | 134 struct line_emeta *emeta_buf; in get_lba_list_from_emeta() local 140 emeta_buf = kvmalloc(lm->emeta_len[0], GFP_KERNEL); in get_lba_list_from_emeta() 141 if (!emeta_buf) in get_lba_list_from_emeta() 144 ret = pblk_line_emeta_read(pblk, line, emeta_buf); in get_lba_list_from_emeta() 148 kvfree(emeta_buf); in get_lba_list_from_emeta() 158 ret = pblk_recov_check_emeta(pblk, emeta_buf); in get_lba_list_from_emeta() 162 kvfree(emeta_buf); in get_lba_list_from_emeta() 169 memcpy(lba_list, emeta_to_lbas(pblk, emeta_buf), lba_list_size); in get_lba_list_from_emeta() 171 kvfree(emeta_buf); in get_lba_list_from_emeta()
|
D | pblk-recovery.c | 24 int pblk_recov_check_emeta(struct pblk *pblk, struct line_emeta *emeta_buf) in pblk_recov_check_emeta() argument 28 crc = pblk_calc_emeta_crc(pblk, emeta_buf); in pblk_recov_check_emeta() 29 if (le32_to_cpu(emeta_buf->crc) != crc) in pblk_recov_check_emeta() 32 if (le32_to_cpu(emeta_buf->header.identifier) != PBLK_MAGIC) in pblk_recov_check_emeta() 44 struct line_emeta *emeta_buf = emeta->buf; in pblk_recov_l2p_from_emeta() local 50 lba_list = emeta_to_lbas(pblk, emeta_buf); in pblk_recov_l2p_from_emeta() 56 nr_valid_lbas = le64_to_cpu(emeta_buf->nr_valid_lbas); in pblk_recov_l2p_from_emeta()
|
D | pblk.h | 806 void *emeta_buf);
|