• Home
  • Raw
  • Download

Lines Matching refs:timer_idx

50                                           UINT8 timer_idx);
220 const UINT8 timer_idx = bta_pm_action_to_timer_idx(power_mode); in bta_dm_pm_stop_timer_by_mode() local
221 if (timer_idx == BTA_DM_PM_MODE_TIMER_MAX) in bta_dm_pm_stop_timer_by_mode()
228 if (bta_dm_cb.pm_timer[i].srvc_id[timer_idx] != BTA_ID_MAX) in bta_dm_pm_stop_timer_by_mode()
230 bta_dm_pm_stop_timer_by_index(&bta_dm_cb.pm_timer[i], timer_idx); in bta_dm_pm_stop_timer_by_mode()
237 bta_dm_cb.pm_timer[i].pm_action[timer_idx] = power_mode; in bta_dm_pm_stop_timer_by_mode()
283 static void bta_dm_pm_start_timer(tBTA_PM_TIMER *p_timer, UINT8 timer_idx, in bta_dm_pm_start_timer() argument
289 if (p_timer->srvc_id[timer_idx] == BTA_ID_MAX) in bta_dm_pm_start_timer()
292 if (p_timer->pm_action[timer_idx] < pm_action) in bta_dm_pm_start_timer()
293 p_timer->pm_action[timer_idx] = pm_action; in bta_dm_pm_start_timer()
295 p_timer->srvc_id[timer_idx] = srvc_id; in bta_dm_pm_start_timer()
297 alarm_set_on_queue(p_timer->timer[timer_idx], timeout_ms, in bta_dm_pm_start_timer()
298 bta_dm_pm_timer_cback, p_timer->timer[timer_idx], in bta_dm_pm_start_timer()
313 UINT8 timer_idx) in bta_dm_pm_stop_timer_by_index() argument
315 if ((p_timer == NULL) || (timer_idx >= BTA_DM_PM_MODE_TIMER_MAX)) in bta_dm_pm_stop_timer_by_index()
318 if (p_timer->srvc_id[timer_idx] == BTA_ID_MAX) in bta_dm_pm_stop_timer_by_index()
323 alarm_cancel(p_timer->timer[timer_idx]); in bta_dm_pm_stop_timer_by_index()
324 p_timer->srvc_id[timer_idx] = BTA_ID_MAX; in bta_dm_pm_stop_timer_by_index()
545 UINT8 timer_idx, available_timer = BTA_DM_PM_MODE_TIMER_MAX; in bta_dm_pm_set_mode() local
639 if ((timer_idx = bta_pm_action_to_timer_idx(pm_action)) != BTA_DM_PM_MODE_TIMER_MAX) in bta_dm_pm_set_mode()
641 remaining_ms = alarm_get_remaining_ms(bta_dm_cb.pm_timer[i].timer[timer_idx]); in bta_dm_pm_set_mode()
653 timer_idx); in bta_dm_pm_set_mode()
655 timer_idx, timeout_ms, in bta_dm_pm_set_mode()
676 if ((timer_idx = bta_pm_action_to_timer_idx(pm_action)) != BTA_DM_PM_MODE_TIMER_MAX) in bta_dm_pm_set_mode()
679 timer_idx, timeout_ms, in bta_dm_pm_set_mode()