Lines Matching refs:idx
813 int idx = ioc->autop_idx; in ioc_autop_idx() local
814 const struct ioc_params *p = &autop[idx]; in ioc_autop_idx()
827 if (idx < AUTOP_SSD_DFL) in ioc_autop_idx()
832 return idx; in ioc_autop_idx()
842 return idx + 1; in ioc_autop_idx()
851 return idx - 1; in ioc_autop_idx()
856 return idx; in ioc_autop_idx()
915 int idx; in ioc_refresh_params() local
919 idx = ioc_autop_idx(ioc); in ioc_refresh_params()
920 p = &autop[idx]; in ioc_refresh_params()
922 if (idx == ioc->autop_idx && !force) in ioc_refresh_params()
925 if (idx != ioc->autop_idx) in ioc_refresh_params()
928 ioc->autop_idx = idx; in ioc_refresh_params()
2378 int idx = min_t(int, abs(ioc->busy_level), in ioc_timer_fn() local
2380 u32 adj_pct = vrate_adj_pct[idx]; in ioc_timer_fn()