Lines Matching refs:srgn_offset
147 int srgn_offset, int cnt, bool set_dirty) in ufshpb_iterate_rgn() argument
164 if ((srgn_offset + cnt) > bitmap_len) in ufshpb_iterate_rgn()
165 set_bit_len = bitmap_len - srgn_offset; in ufshpb_iterate_rgn()
173 bitmap_set(srgn->mctx->ppn_dirty, srgn_offset, in ufshpb_iterate_rgn()
213 srgn_offset = 0; in ufshpb_iterate_rgn()
225 int srgn_idx, int srgn_offset, int cnt) in ufshpb_test_ppn_dirty() argument
256 if ((srgn_offset + cnt) > bitmap_len) in ufshpb_test_ppn_dirty()
257 bit_len = bitmap_len - srgn_offset; in ufshpb_test_ppn_dirty()
261 if (find_next_bit(srgn->mctx->ppn_dirty, bit_len + srgn_offset, in ufshpb_test_ppn_dirty()
262 srgn_offset) < bit_len + srgn_offset) in ufshpb_test_ppn_dirty()
265 srgn_offset = 0; in ufshpb_test_ppn_dirty()
355 int transfer_len, rgn_idx, srgn_idx, srgn_offset; in ufshpb_prep() local
382 ufshpb_get_pos_from_lpn(hpb, lpn, &rgn_idx, &srgn_idx, &srgn_offset); in ufshpb_prep()
388 ufshpb_iterate_rgn(hpb, rgn_idx, srgn_idx, srgn_offset, in ufshpb_prep()
401 ufshpb_iterate_rgn(hpb, rgn_idx, srgn_idx, srgn_offset, in ufshpb_prep()
410 if (ufshpb_test_ppn_dirty(hpb, rgn_idx, srgn_idx, srgn_offset, in ufshpb_prep()
417 err = ufshpb_fill_ppn_from_page(hpb, srgn->mctx, srgn_offset, 1, &ppn); in ufshpb_prep()