Lines Matching refs:p_dev
56 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE* p_dev,
338 tBTA_DM_PEER_DEVICE* p_dev; in bta_dm_pm_cback() local
344 p_dev = bta_dm_find_peer_device(peer_addr); in bta_dm_pm_cback()
363 if ((BTA_SYS_CONN_OPEN == status) && p_dev && in bta_dm_pm_cback()
364 (p_dev->info & BTA_DM_DI_USE_SSR)) { in bta_dm_pm_cback()
445 if (p_dev) { in bta_dm_pm_cback()
446 p_dev->pm_mode_attempted = 0; in bta_dm_pm_cback()
447 p_dev->pm_mode_failed = 0; in bta_dm_pm_cback()
899 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); local
900 if (NULL == p_dev) return;
902 tBTA_DM_DEV_INFO info = p_dev->info;
910 p_dev->info &=
913 if (p_dev->pm_mode_attempted & (BTA_DM_PM_PARK | BTA_DM_PM_SNIFF)) {
914 p_dev->pm_mode_failed |=
915 ((BTA_DM_PM_PARK | BTA_DM_PM_SNIFF) & p_dev->pm_mode_attempted);
916 bta_dm_pm_stop_timer_by_mode(bd_addr, p_dev->pm_mode_attempted);
921 if (p_dev->prev_low) {
923 bta_dm_pm_ssr(p_dev->peer_bdaddr, BTA_DM_PM_SSR0);
925 p_dev->prev_low = BTM_PM_STS_ACTIVE;
940 if (p_dev->info & BTA_DM_DI_USE_SSR) p_dev->prev_low = status;
945 p_dev->info |= BTA_DM_DI_USE_SSR;
947 p_dev->info &= ~BTA_DM_DI_USE_SSR;
960 p_dev->info &=
963 p_dev->info |= BTA_DM_DI_INT_SNIFF;
965 p_dev->info |= BTA_DM_DI_ACP_SNIFF;
970 p_dev->info &= ~BTA_DM_DI_SET_SNIFF;
994 tBTA_DM_PEER_DEVICE* p_dev = NULL; local
998 p_dev = &bta_dm_cb.device_list.peer_device[i];
1002 return p_dev;
1094 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE* p_dev, argument
1098 if (!p_dev) return;
1111 if (bDisable) bta_dm_pm_active(p_dev->peer_bdaddr);
1114 p_dev->link_policy = policy_setting;
1115 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &policy_setting);