Lines Matching refs:bta_dm_cb
78 BTM_PmRegister((BTM_PM_REG_SET | BTM_PM_REG_NOTIF), &bta_dm_cb.pm_id,
101 BTM_PmRegister( BTM_PM_DEREG, &bta_dm_cb.pm_id, NULL);
106 if(bta_dm_cb.pm_timer[i].in_use)
109 bta_sys_stop_timer(&bta_dm_cb.pm_timer[i].timer);
110 bta_dm_cb.pm_timer[i].in_use = FALSE;
132 if(bta_dm_cb.pm_timer[i].in_use && !bdcmp(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr))
135 bta_sys_stop_timer(&bta_dm_cb.pm_timer[i].timer);
136 bta_dm_cb.pm_timer[i].in_use = FALSE;
339 if(!bta_dm_cb.device_list.count)
430 if(!bta_dm_cb.pm_timer[i].in_use)
432 bta_dm_cb.pm_timer[i].in_use = TRUE;
433 bdcpy(bta_dm_cb.pm_timer[i].peer_bdaddr, peer_addr);
434 bta_dm_cb.pm_timer[i].timer.p_cback = bta_dm_pm_timer_cback;
435 bta_sys_start_timer(&bta_dm_cb.pm_timer[i].timer, 0, timeout);
506 BTM_SetPowerMode (bta_dm_cb.pm_id, peer_addr, &p_bta_dm_pm_md[BTA_DM_PM_PARK_IDX]);
549 status = BTM_SetPowerMode (bta_dm_cb.pm_id, p_peer_dev->peer_bdaddr, &pwr_md);
655 BTM_SetPowerMode (bta_dm_cb.pm_id, peer_addr, &pm);
706 if(bta_dm_cb.pm_timer[i].in_use)
709 if(&bta_dm_cb.pm_timer[i].timer == (TIMER_LIST_ENT*) p_tle)
712 bta_dm_cb.pm_timer[i].in_use = FALSE;
730 bdcpy(p_buf->bd_addr, bta_dm_cb.pm_timer[i].peer_bdaddr);
861 for(i=0; i<bta_dm_cb.device_list.count; i++)
863 if(!bdcmp( bta_dm_cb.device_list.peer_device[i].peer_bdaddr, peer_addr))
865 p_dev = &bta_dm_cb.device_list.peer_device[i];
952 policy_setting = bta_dm_cb.cur_policy &
961 policy_setting= bta_dm_cb.cur_policy;