Lines Matching refs:pm_action

122             bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION;  in bta_dm_disable_pm()
195 static UINT8 bta_pm_action_to_timer_idx(UINT8 pm_action) in bta_pm_action_to_timer_idx() argument
197 if (pm_action == BTA_DM_PM_SUSPEND) in bta_pm_action_to_timer_idx()
199 else if (pm_action == BTA_DM_PM_PARK) in bta_pm_action_to_timer_idx()
201 else if ((pm_action & BTA_DM_PM_SNIFF) == BTA_DM_PM_SNIFF) in bta_pm_action_to_timer_idx()
237 bta_dm_cb.pm_timer[i].pm_action[timer_idx] = power_mode; in bta_dm_pm_stop_timer_by_mode()
265 bta_dm_cb.pm_timer[i].pm_action[j] = BTA_DM_PM_NO_ACTION; in bta_dm_pm_stop_timer_by_srvc_id()
285 UINT8 pm_action) in bta_dm_pm_start_timer() argument
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()
533 tBTA_DM_PM_ACTION pm_action = BTA_DM_PM_NO_ACTION; in bta_dm_pm_set_mode() local
590 if(p_act0->power_mode >= pm_action) in bta_dm_pm_set_mode()
592 pm_action = p_act0->power_mode; in bta_dm_pm_set_mode()
606 if(p_act1->power_mode > pm_action) in bta_dm_pm_set_mode()
608 pm_action = p_act1->power_mode; in bta_dm_pm_set_mode()
615 if(pm_action & (BTA_DM_PM_PARK | BTA_DM_PM_SNIFF)) in bta_dm_pm_set_mode()
618 if(!(allowed_modes & pm_action)) in bta_dm_pm_set_mode()
622 pm_action = (allowed_modes & (BTA_DM_PM_PARK | BTA_DM_PM_SNIFF) & pref_modes); in bta_dm_pm_set_mode()
625 if(pm_action == BTA_DM_PM_NO_ACTION) in bta_dm_pm_set_mode()
639 if ((timer_idx = bta_pm_action_to_timer_idx(pm_action)) != BTA_DM_PM_MODE_TIMER_MAX) in bta_dm_pm_set_mode()
656 p_srvcs->id, pm_action); 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()
680 p_srvcs->id, pm_action); in bta_dm_pm_set_mode()
694 if (pm_req == BTA_DM_PM_EXECUTE && pm_request < pm_action) in bta_dm_pm_set_mode()
699 if(pm_action == BTA_DM_PM_PARK) in bta_dm_pm_set_mode()
704 else if(pm_action & BTA_DM_PM_SNIFF) in bta_dm_pm_set_mode()
710 bta_dm_pm_sniff(p_peer_device, (UINT8)(pm_action & 0x0F) ); in bta_dm_pm_set_mode()
717 else if(pm_action == BTA_DM_PM_ACTIVE) in bta_dm_pm_set_mode()
991 p_buf->pm_request = bta_dm_cb.pm_timer[i].pm_action[j]; in bta_dm_pm_timer_cback()