Lines Matching refs:btr
115 struct below_the_range btr; member
489 state->btr.mid_point_in_us = in calc_freesync_range()
586 state->btr.btr_active = false; in reset_freesync_state_variables()
587 state->btr.frame_counter = 0; in reset_freesync_state_variables()
588 state->btr.frames_to_insert = 0; in reset_freesync_state_variables()
589 state->btr.inserted_frame_duration_in_us = 0; in reset_freesync_state_variables()
590 state->btr.program_btr = false; in reset_freesync_state_variables()
799 state->btr.btr_active) { in mod_freesync_handle_v_update()
808 if (state->btr.frames_to_insert == state->btr.frame_counter) { in mod_freesync_handle_v_update()
820 state->btr.inserted_frame_duration_in_us * in mod_freesync_handle_v_update()
833 if (state->btr.frame_counter > 0) in mod_freesync_handle_v_update()
834 state->btr.frame_counter--; in mod_freesync_handle_v_update()
837 if (state->btr.frame_counter == 0) in mod_freesync_handle_v_update()
1292 if (state->btr.btr_active) { in update_timestamps()
1294 state->btr.program_btr = true; in update_timestamps()
1295 state->btr.btr_active = false; in update_timestamps()
1296 state->btr.frame_counter = 0; in update_timestamps()
1314 if (!state->btr.btr_active && in update_timestamps()
1317 state->btr.program_btr = true; in update_timestamps()
1318 state->btr.btr_active = true; in update_timestamps()
1336 if (state->btr.btr_active) in update_timestamps()
1337 state->btr.program_btr = true; in update_timestamps()
1354 if (!state->btr.program_btr) in apply_below_the_range()
1357 state->btr.program_btr = false; in apply_below_the_range()
1366 if (!state->btr.btr_active) in apply_below_the_range()
1378 state->btr.mid_point_in_us- 1) / in apply_below_the_range()
1379 state->btr.mid_point_in_us; in apply_below_the_range()
1386 (state->btr.mid_point_in_us > in apply_below_the_range()
1388 (state->btr.mid_point_in_us - frame_time_in_us): in apply_below_the_range()
1389 (frame_time_in_us - state->btr.mid_point_in_us); in apply_below_the_range()
1396 state->btr.mid_point_in_us; in apply_below_the_range()
1403 (state->btr.mid_point_in_us > in apply_below_the_range()
1405 (state->btr.mid_point_in_us - frame_time_in_us): in apply_below_the_range()
1406 (frame_time_in_us - state->btr.mid_point_in_us); in apply_below_the_range()
1431 state->btr.inserted_frame_duration_in_us = in apply_below_the_range()
1433 state->btr.frames_to_insert = frames_to_insert; in apply_below_the_range()
1434 state->btr.frame_counter = frames_to_insert; in apply_below_the_range()
1547 *lfc_mid_point_in_us = state.btr.mid_point_in_us; in mod_freesync_get_settings()
1548 *inserted_frames = state.btr.frames_to_insert; in mod_freesync_get_settings()
1550 state.btr.inserted_frame_duration_in_us; in mod_freesync_get_settings()