Lines Matching refs:right_edge
2034 int *left_edge, int *right_edge, const u32 use_read_test) in search_left_edge() argument
2075 right_edge[i] = -(d + 1); in search_left_edge()
2092 i, right_edge[i]); in search_left_edge()
2100 (right_edge[i] != delay_max + 1)) { in search_left_edge()
2101 right_edge[i] = delay_max + 1; in search_left_edge()
2104 __func__, __LINE__, i, right_edge[i]); in search_left_edge()
2120 (right_edge[i] != delay_max + 1)) in search_left_edge()
2145 int *left_edge, int *right_edge, const u32 use_read_test) in search_right_edge() argument
2185 if (right_edge[i] == delay_max + 1 && in search_right_edge()
2187 right_edge[i] = -1; in search_right_edge()
2200 right_edge[i] = d; in search_right_edge()
2209 if (right_edge[i] == delay_max + 1) in search_right_edge()
2218 if (right_edge[i] == delay_max + 1 && in search_right_edge()
2220 right_edge[i] = -1; in search_right_edge()
2227 else if (right_edge[i] == delay_max + 1) in search_right_edge()
2238 right_edge[i]); in search_right_edge()
2248 i, right_edge[i]); in search_right_edge()
2250 (right_edge[i] == dqs_max + 1)) in search_right_edge()
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()
2277 mid = left_edge[i] - right_edge[i]; in get_window_mid_index()
2313 static void center_dq_windows(const int write, int *left_edge, int *right_edge, in center_dq_windows() argument
2336 shift_dq = (left_edge[i] - right_edge[i] - in center_dq_windows()
2337 (left_edge[min_index] - right_edge[min_index]))/2 + in center_dq_windows()
2367 right_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()
2401 int32_t right_edge[rwcfg->mem_dq_per_read_dqs]; in rw_mgr_mem_calibrate_vfifo_center() local
2419 right_edge[i] = iocfg->io_in_delay_max + 1; in rw_mgr_mem_calibrate_vfifo_center()
2425 left_edge, right_edge, use_read_test); in rw_mgr_mem_calibrate_vfifo_center()
2432 left_edge, right_edge, use_read_test); in rw_mgr_mem_calibrate_vfifo_center()
2448 __func__, __LINE__, i, left_edge[i], right_edge[i]); in rw_mgr_mem_calibrate_vfifo_center()
2463 min_index = get_window_mid_index(0, left_edge, right_edge, &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()
2954 int right_edge[rwcfg->mem_dq_per_write_dqs]; in rw_mgr_mem_calibrate_writes_center() local
2984 right_edge[i] = iocfg->io_out1_delay_max + 1; in rw_mgr_mem_calibrate_writes_center()
2990 left_edge, right_edge, 0); in rw_mgr_mem_calibrate_writes_center()
2996 left_edge, right_edge, 0); in rw_mgr_mem_calibrate_writes_center()
3003 min_index = get_window_mid_index(1, left_edge, right_edge, &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()
3029 right_edge[0] = iocfg->io_out1_delay_max + 1; in rw_mgr_mem_calibrate_writes_center()
3054 right_edge[0] = end_best; in rw_mgr_mem_calibrate_writes_center()
3057 __func__, __LINE__, left_edge[0], right_edge[0]); in rw_mgr_mem_calibrate_writes_center()
3065 mid = (left_edge[0] - right_edge[0]) / 2; in rw_mgr_mem_calibrate_writes_center()
3082 __func__, __LINE__, left_edge[0], right_edge[0], in rw_mgr_mem_calibrate_writes_center()