• Home
  • Raw
  • Download

Lines Matching refs:mid_min

2267 				int *right_edge, int *mid_min)  in get_window_mid_index()  argument
2274 *mid_min = left_edge[0] - right_edge[0]; in get_window_mid_index()
2278 if (mid < *mid_min) { in get_window_mid_index()
2279 *mid_min = mid; in get_window_mid_index()
2290 if (*mid_min > 0) in get_window_mid_index()
2291 (*mid_min)++; in get_window_mid_index()
2292 *mid_min = *mid_min / 2; in get_window_mid_index()
2295 __func__, __LINE__, *mid_min, min_index); in get_window_mid_index()
2314 const int mid_min, const int orig_mid_min, in center_dq_windows() argument
2338 (orig_mid_min - mid_min); in center_dq_windows()
2366 left_edge[i] - shift_dq + (-mid_min), in center_dq_windows()
2367 right_edge[i] + shift_dq - (-mid_min)); in center_dq_windows()
2370 if (left_edge[i] - shift_dq + (-mid_min) < *dq_margin) in center_dq_windows()
2371 *dq_margin = left_edge[i] - shift_dq + (-mid_min); in center_dq_windows()
2373 if (right_edge[i] + shift_dq - (-mid_min) < *dqs_margin) in center_dq_windows()
2374 *dqs_margin = right_edge[i] + shift_dq - (-mid_min); in center_dq_windows()
2402 int32_t orig_mid_min, mid_min; in rw_mgr_mem_calibrate_vfifo_center() local
2463 min_index = get_window_mid_index(0, left_edge, right_edge, &mid_min); in rw_mgr_mem_calibrate_vfifo_center()
2466 orig_mid_min = mid_min; in rw_mgr_mem_calibrate_vfifo_center()
2467 new_dqs = start_dqs - mid_min; in rw_mgr_mem_calibrate_vfifo_center()
2473 mid_min = start_dqs - new_dqs; in rw_mgr_mem_calibrate_vfifo_center()
2475 mid_min, new_dqs); in rw_mgr_mem_calibrate_vfifo_center()
2478 if (start_dqs_en - mid_min > iocfg->dqs_en_delay_max) in rw_mgr_mem_calibrate_vfifo_center()
2479 mid_min += start_dqs_en - mid_min - in rw_mgr_mem_calibrate_vfifo_center()
2481 else if (start_dqs_en - mid_min < 0) in rw_mgr_mem_calibrate_vfifo_center()
2482 mid_min += start_dqs_en - mid_min; in rw_mgr_mem_calibrate_vfifo_center()
2484 new_dqs = start_dqs - mid_min; in rw_mgr_mem_calibrate_vfifo_center()
2490 new_dqs, mid_min); in rw_mgr_mem_calibrate_vfifo_center()
2493 center_dq_windows(0, left_edge, right_edge, mid_min, orig_mid_min, in rw_mgr_mem_calibrate_vfifo_center()
2498 final_dqs_en = start_dqs_en - mid_min; in rw_mgr_mem_calibrate_vfifo_center()
2956 int mid_min, orig_mid_min; in rw_mgr_mem_calibrate_writes_center() local
3003 min_index = get_window_mid_index(1, left_edge, right_edge, &mid_min); in rw_mgr_mem_calibrate_writes_center()
3006 orig_mid_min = mid_min; in rw_mgr_mem_calibrate_writes_center()
3008 mid_min = 0; in rw_mgr_mem_calibrate_writes_center()
3011 __func__, __LINE__, start_dqs, new_dqs, mid_min); in rw_mgr_mem_calibrate_writes_center()
3014 center_dq_windows(1, left_edge, right_edge, mid_min, orig_mid_min, in rw_mgr_mem_calibrate_writes_center()