Lines Matching refs:srgn_idx
39 int srgn_idx);
146 static void ufshpb_iterate_rgn(struct ufshpb_lu *hpb, int rgn_idx, int srgn_idx, in ufshpb_iterate_rgn() argument
157 srgn = rgn->srgn_tbl + srgn_idx; in ufshpb_iterate_rgn()
204 ufshpb_update_active_info(hpb, rgn_idx, srgn_idx); in ufshpb_iterate_rgn()
207 "activate region %d-%d\n", rgn_idx, srgn_idx); in ufshpb_iterate_rgn()
214 if (++srgn_idx == hpb->srgns_per_rgn) { in ufshpb_iterate_rgn()
215 srgn_idx = 0; in ufshpb_iterate_rgn()
225 int srgn_idx, int srgn_offset, int cnt) in ufshpb_test_ppn_dirty() argument
234 srgn = rgn->srgn_tbl + srgn_idx; in ufshpb_test_ppn_dirty()
252 srgn->rgn_idx, srgn->srgn_idx); in ufshpb_test_ppn_dirty()
266 if (++srgn_idx == hpb->srgns_per_rgn) { in ufshpb_test_ppn_dirty()
267 srgn_idx = 0; in ufshpb_test_ppn_dirty()
314 int *srgn_idx, int *offset) in ufshpb_get_pos_from_lpn() argument
320 *srgn_idx = rgn_offset >> hpb->entries_per_srgn_shift; in ufshpb_get_pos_from_lpn()
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()
384 srgn = rgn->srgn_tbl + srgn_idx; 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()
505 map_req->rb.srgn_idx = srgn->srgn_idx; in ufshpb_get_map_req()
537 srgn->rgn_idx, srgn->srgn_idx); in ufshpb_clear_dirty_bitmap()
553 int srgn_idx) in ufshpb_update_active_info() argument
559 srgn = rgn->srgn_tbl + srgn_idx; in ufshpb_update_active_info()
573 int srgn_idx; in ufshpb_update_inactive_info() local
577 for_each_sub_region(rgn, srgn_idx, srgn) in ufshpb_update_inactive_info()
600 srgn->rgn_idx, srgn->srgn_idx); in ufshpb_activate_subregion()
610 srgn->rgn_idx, srgn->srgn_idx); in ufshpb_activate_subregion()
632 map_req->rb.srgn_idx; in ufshpb_map_req_compl_fn()
653 int srgn_idx, int srgn_mem_size) in ufshpb_set_read_buf_cmd() argument
659 put_unaligned_be16(srgn_idx, &cdb[4]); in ufshpb_set_read_buf_cmd()
701 map_req->rb.rgn_idx, map_req->rb.srgn_idx); in ufshpb_execute_map_req()
718 map_req->rb.srgn_idx, mem_size); in ufshpb_execute_map_req()
787 int srgn_idx; in ufshpb_check_srgns_issue_state() local
789 for_each_sub_region(rgn, srgn_idx, srgn) in ufshpb_check_srgns_issue_state()
940 int srgn_idx; in __ufshpb_evict_region() local
948 for_each_sub_region(rgn, srgn_idx, srgn) in __ufshpb_evict_region()
1033 rgn->rgn_idx, srgn->srgn_idx); in ufshpb_issue_map_req()
1048 __func__, ret, srgn->rgn_idx, srgn->srgn_idx); in ufshpb_issue_map_req()
1399 int srgn_idx; in ufshpb_add_pending_evict_list() local
1404 for_each_sub_region(rgn, srgn_idx, srgn) in ufshpb_add_pending_evict_list()
1437 ret, rgn->rgn_idx, srgn->srgn_idx); in ufshpb_run_active_subregion_list()
1447 rgn->rgn_idx, srgn->srgn_idx); in ufshpb_run_active_subregion_list()
1493 int srgn_idx; in ufshpb_normalization_work_handler() local
1497 for (srgn_idx = 0; srgn_idx < hpb->srgns_per_rgn; srgn_idx++) { in ufshpb_normalization_work_handler()
1498 struct ufshpb_subregion *srgn = rgn->srgn_tbl + srgn_idx; in ufshpb_normalization_work_handler()
1538 int srgn_idx, i; in ufshpb_init_pinned_active_region() local
1541 for_each_sub_region(rgn, srgn_idx, srgn) { in ufshpb_init_pinned_active_region()
1558 for (i = 0; i < srgn_idx; i++) { in ufshpb_init_pinned_active_region()
1568 int srgn_idx; in ufshpb_init_subregion_tbl() local
1571 for_each_sub_region(rgn, srgn_idx, srgn) { in ufshpb_init_subregion_tbl()
1575 srgn->srgn_idx = srgn_idx; in ufshpb_init_subregion_tbl()
1710 int srgn_idx; in ufshpb_destroy_subregion_tbl() local
1713 for_each_sub_region(rgn, srgn_idx, srgn) in ufshpb_destroy_subregion_tbl()