Lines Matching defs:p_dev
44 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable);
163 tBTA_DM_PEER_DEVICE *p_dev;
168 p_dev = bta_dm_find_peer_device(peer_addr);
171 if ((p_dev) &&
178 bta_dm_pm_set_sniff_policy(p_dev, (status == BTA_SYS_SCO_OPEN));
197 /*p_dev = bta_dm_find_peer_device(peer_addr);*/
201 if((BTA_SYS_CONN_OPEN == status) && p_dev && (p_dev->info & BTA_DM_DI_USE_SSR))
273 if(p_dev)
275 p_dev->pm_mode_attempted = 0;
276 p_dev->pm_mode_failed = 0;
748 tBTA_DM_PEER_DEVICE *p_dev;
752 p_dev = bta_dm_find_peer_device(p_data->pm_status.bd_addr);
753 if(NULL == p_dev)
756 info = p_dev->info;
766 p_dev->info &= ~(BTA_DM_DI_INT_SNIFF|BTA_DM_DI_ACP_SNIFF|BTA_DM_DI_SET_SNIFF);
768 if(p_dev->pm_mode_attempted &(BTA_DM_PM_PARK | BTA_DM_PM_SNIFF))
770 p_dev->pm_mode_failed
771 |= ((BTA_DM_PM_PARK | BTA_DM_PM_SNIFF) & p_dev->pm_mode_attempted);
779 if(p_dev->prev_low)
782 bta_dm_pm_ssr(p_dev->peer_bdaddr);
784 p_dev->prev_low = BTM_PM_STS_ACTIVE;
797 if(p_dev->info & BTA_DM_DI_USE_SSR)
798 p_dev->prev_low = p_data->pm_status.status;
803 p_dev->info |= BTA_DM_DI_USE_SSR;
805 p_dev->info &= ~BTA_DM_DI_USE_SSR;
809 p_dev->info &= ~(BTA_DM_DI_SET_SNIFF|BTA_DM_DI_INT_SNIFF|BTA_DM_DI_ACP_SNIFF);
811 p_dev->info |= BTA_DM_DI_INT_SNIFF;
813 p_dev->info |= BTA_DM_DI_ACP_SNIFF;
817 p_dev->info &= ~BTA_DM_DI_SET_SNIFF;
858 tBTA_DM_PEER_DEVICE *p_dev = NULL;
865 p_dev = &bta_dm_cb.device_list.peer_device[i];
870 return p_dev;
943 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable)
947 if (!p_dev)
966 bta_dm_pm_active(p_dev->peer_bdaddr);
969 p_dev->link_policy = policy_setting;
970 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &policy_setting);