Lines Matching refs:lru_info
800 struct victim_select_info *lru_info = &hpb->lru_info; in ufshpb_read_to_handler() local
811 list_for_each_entry_safe(rgn, next_rgn, &lru_info->lh_lru_rgn, in ufshpb_read_to_handler()
845 static void ufshpb_add_lru_info(struct victim_select_info *lru_info, in ufshpb_add_lru_info() argument
849 list_add_tail(&rgn->list_lru_rgn, &lru_info->lh_lru_rgn); in ufshpb_add_lru_info()
850 atomic_inc(&lru_info->active_cnt); in ufshpb_add_lru_info()
860 static void ufshpb_hit_lru_info(struct victim_select_info *lru_info, in ufshpb_hit_lru_info() argument
863 list_move_tail(&rgn->list_lru_rgn, &lru_info->lh_lru_rgn); in ufshpb_hit_lru_info()
868 struct victim_select_info *lru_info = &hpb->lru_info; in ufshpb_victim_lru_info() local
871 list_for_each_entry(rgn, &lru_info->lh_lru_rgn, list_lru_rgn) { in ufshpb_victim_lru_info()
895 static void ufshpb_cleanup_lru_info(struct victim_select_info *lru_info, in ufshpb_cleanup_lru_info() argument
900 atomic_dec(&lru_info->active_cnt); in ufshpb_cleanup_lru_info()
938 struct victim_select_info *lru_info; in __ufshpb_evict_region() local
942 lru_info = &hpb->lru_info; in __ufshpb_evict_region()
946 ufshpb_cleanup_lru_info(lru_info, rgn); in __ufshpb_evict_region()
1066 struct victim_select_info *lru_info = &hpb->lru_info; in ufshpb_add_region() local
1077 ufshpb_hit_lru_info(lru_info, rgn); in ufshpb_add_region()
1082 if (atomic_read(&lru_info->active_cnt) == in ufshpb_add_region()
1083 lru_info->max_lru_active_cnt) { in ufshpb_add_region()
1113 atomic_read(&lru_info->active_cnt), in ufshpb_add_region()
1136 ufshpb_add_lru_info(lru_info, rgn); in ufshpb_add_region()
1251 struct victim_select_info *lru_info = &hpb->lru_info; in ufshpb_set_regions_update() local
1257 list_for_each_entry(rgn, &lru_info->lh_lru_rgn, list_lru_rgn) in ufshpb_set_regions_update()
1287 struct victim_select_info *lru_info = &hpb->lru_info; in ufshpb_dev_reset_handler() local
1290 list_for_each_entry(rgn, &lru_info->lh_lru_rgn, list_lru_rgn) in ufshpb_dev_reset_handler()
1612 hpb->lru_info.max_lru_active_cnt = in ufshpb_lu_parameter_init()
2154 INIT_LIST_HEAD(&hpb->lru_info.lh_lru_rgn); in ufshpb_lu_hpb_init()