Lines Matching full:p_dev
48 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable);
347 tBTA_DM_PEER_DEVICE *p_dev;
356 p_dev = bta_dm_find_peer_device(peer_addr);
373 /*p_dev = bta_dm_find_peer_device(peer_addr);*/
377 if((BTA_SYS_CONN_OPEN == status) && p_dev && (p_dev->info & BTA_DM_DI_USE_SSR))
460 if(p_dev)
462 p_dev->pm_mode_attempted = 0;
463 p_dev->pm_mode_failed = 0;
1011 tBTA_DM_PEER_DEVICE *p_dev = bta_dm_find_peer_device(p_data->pm_status.bd_addr);
1012 if (NULL == p_dev)
1015 tBTA_DM_DEV_INFO info = p_dev->info;
1025 p_dev->info &= ~(BTA_DM_DI_INT_SNIFF|BTA_DM_DI_ACP_SNIFF|BTA_DM_DI_SET_SNIFF);
1027 if(p_dev->pm_mode_attempted &(BTA_DM_PM_PARK | BTA_DM_PM_SNIFF))
1029 p_dev->pm_mode_failed
1030 |= ((BTA_DM_PM_PARK | BTA_DM_PM_SNIFF) & p_dev->pm_mode_attempted);
1031 bta_dm_pm_stop_timer_by_mode(p_data->pm_status.bd_addr, p_dev->pm_mode_attempted);
1038 if(p_dev->prev_low)
1041 bta_dm_pm_ssr(p_dev->peer_bdaddr);
1043 p_dev->prev_low = BTM_PM_STS_ACTIVE;
1057 if(p_dev->info & BTA_DM_DI_USE_SSR)
1058 p_dev->prev_low = p_data->pm_status.status;
1063 p_dev->info |= BTA_DM_DI_USE_SSR;
1065 p_dev->info &= ~BTA_DM_DI_USE_SSR;
1081 p_dev->info &= ~(BTA_DM_DI_SET_SNIFF | BTA_DM_DI_INT_SNIFF | BTA_DM_DI_ACP_SNIFF);
1083 p_dev->info |= BTA_DM_DI_INT_SNIFF;
1085 p_dev->info |= BTA_DM_DI_ACP_SNIFF;
1090 p_dev->info &= ~BTA_DM_DI_SET_SNIFF;
1128 tBTA_DM_PEER_DEVICE *p_dev = NULL;
1134 p_dev = &bta_dm_cb.device_list.peer_device[i];
1139 return p_dev;
1235 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable)
1239 if (!p_dev)
1258 bta_dm_pm_active(p_dev->peer_bdaddr);
1261 p_dev->link_policy = policy_setting;
1262 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &policy_setting);