• Home
  • Raw
  • Download

Lines Matching refs:pblk

22 static int pblk_map_page_data(struct pblk *pblk, unsigned int sentry,  in pblk_map_page_data()  argument
28 struct pblk_line *line = pblk_line_get_data(pblk); in pblk_map_page_data()
33 int nr_secs = pblk->min_write_pgs; in pblk_map_page_data()
45 line = pblk_line_replace_data(pblk); in pblk_map_page_data()
46 pblk_line_close_meta(pblk, prev_line); in pblk_map_page_data()
49 pblk_pipeline_stop(pblk); in pblk_map_page_data()
56 lba_list = emeta_to_lbas(pblk, emeta->buf); in pblk_map_page_data()
58 paddr = pblk_alloc_page(pblk, line, nr_secs); in pblk_map_page_data()
61 struct pblk_sec_meta *meta = pblk_get_meta(pblk, meta_list, i); in pblk_map_page_data()
65 ppa_list[i] = addr_to_gen_ppa(pblk, paddr, line->id); in pblk_map_page_data()
77 w_ctx = pblk_rb_w_ctx(&pblk->rwb, sentry + i); in pblk_map_page_data()
84 atomic64_inc(&pblk->pad_wa); in pblk_map_page_data()
88 __pblk_map_invalidate(pblk, line, paddr); in pblk_map_page_data()
92 pblk_down_rq(pblk, ppa_list[0], lun_bitmap); in pblk_map_page_data()
96 int pblk_map_rq(struct pblk *pblk, struct nvm_rq *rqd, unsigned int sentry, in pblk_map_rq() argument
100 void *meta_list = pblk_get_meta_for_writes(pblk, rqd); in pblk_map_rq()
104 int min = pblk->min_write_pgs; in pblk_map_rq()
110 meta_buffer = pblk_get_meta(pblk, meta_list, i); in pblk_map_rq()
112 ret = pblk_map_page_data(pblk, sentry + i, &ppa_list[i], in pblk_map_rq()
122 int pblk_map_erase_rq(struct pblk *pblk, struct nvm_rq *rqd, in pblk_map_erase_rq() argument
126 struct nvm_tgt_dev *dev = pblk->dev; in pblk_map_erase_rq()
128 struct pblk_line_meta *lm = &pblk->lm; in pblk_map_erase_rq()
129 void *meta_list = pblk_get_meta_for_writes(pblk, rqd); in pblk_map_erase_rq()
134 int min = pblk->min_write_pgs; in pblk_map_erase_rq()
141 meta_buffer = pblk_get_meta(pblk, meta_list, i); in pblk_map_erase_rq()
143 ret = pblk_map_page_data(pblk, sentry + i, &ppa_list[i], in pblk_map_erase_rq()
153 e_line = pblk_line_get_erase(pblk); in pblk_map_erase_rq()
155 return pblk_map_rq(pblk, rqd, sentry, lun_bitmap, in pblk_map_erase_rq()
170 return pblk_map_rq(pblk, rqd, sentry, lun_bitmap, in pblk_map_erase_rq()
176 d_line = pblk_line_get_data(pblk); in pblk_map_erase_rq()
181 e_line = pblk_line_get_erase(pblk); in pblk_map_erase_rq()
205 *erase_ppa = pblk->luns[bit].bppa; /* set ch and lun */ in pblk_map_erase_rq()