Lines Matching refs:end_idx
312 int16_t start_idx, end_idx; in ar9003_aic_cal_post_process() local
318 end_idx = ar9003_aic_find_valid(cal_sram_valid, 1, i); in ar9003_aic_cal_post_process()
322 start_idx = end_idx; in ar9003_aic_cal_post_process()
323 end_idx = ar9003_aic_find_valid(cal_sram_valid, 1, start_idx); in ar9003_aic_cal_post_process()
325 if (end_idx < 0) { in ar9003_aic_cal_post_process()
332 aic_sram[end_idx].dir_path_gain_lin) * in ar9003_aic_cal_post_process()
333 (start_idx - i) + ((end_idx - i) >> 1)) / in ar9003_aic_cal_post_process()
334 (end_idx - i) + in ar9003_aic_cal_post_process()
338 aic_sram[end_idx].quad_path_gain_lin) * in ar9003_aic_cal_post_process()
339 (start_idx - i) + ((end_idx - i) >> 1)) / in ar9003_aic_cal_post_process()
340 (end_idx - i) + in ar9003_aic_cal_post_process()
344 if (end_idx < 0) { in ar9003_aic_cal_post_process()
346 end_idx = ar9003_aic_find_valid(cal_sram_valid, 0, start_idx); in ar9003_aic_cal_post_process()
348 if (end_idx < 0) { in ar9003_aic_cal_post_process()
355 aic_sram[end_idx].dir_path_gain_lin) * in ar9003_aic_cal_post_process()
356 (i - start_idx) + ((start_idx - end_idx) >> 1)) / in ar9003_aic_cal_post_process()
357 (start_idx - end_idx) + in ar9003_aic_cal_post_process()
361 aic_sram[end_idx].quad_path_gain_lin) * in ar9003_aic_cal_post_process()
362 (i - start_idx) + ((start_idx - end_idx) >> 1)) / in ar9003_aic_cal_post_process()
363 (start_idx - end_idx) + in ar9003_aic_cal_post_process()
369 (((end_idx - i) * aic_sram[start_idx].dir_path_gain_lin) + in ar9003_aic_cal_post_process()
370 ((i - start_idx) * aic_sram[end_idx].dir_path_gain_lin) + in ar9003_aic_cal_post_process()
371 ((end_idx - start_idx) >> 1)) / in ar9003_aic_cal_post_process()
372 (end_idx - start_idx); in ar9003_aic_cal_post_process()
374 (((end_idx - i) * aic_sram[start_idx].quad_path_gain_lin) + in ar9003_aic_cal_post_process()
375 ((i - start_idx) * aic_sram[end_idx].quad_path_gain_lin) + in ar9003_aic_cal_post_process()
376 ((end_idx - start_idx) >> 1))/ in ar9003_aic_cal_post_process()
377 (end_idx - start_idx); in ar9003_aic_cal_post_process()