Lines Matching refs:p_mode
82 static tBTM_STATUS btm_pm_snd_md_req( UINT8 pm_id, int link_ind, tBTM_PM_PWR_MD *p_mode );
179 tBTM_STATUS BTM_SetPowerMode (UINT8 pm_id, BD_ADDR remote_bda, tBTM_PM_PWR_MD *p_mode) in BTM_SetPowerMode() argument
190 if(p_mode == NULL) in BTM_SetPowerMode()
194 … (remote_bda[2]<<24)+(remote_bda[3]<<16)+(remote_bda[4]<<8)+remote_bda[5], p_mode->mode); in BTM_SetPowerMode()
197 mode = p_mode->mode & ~BTM_PM_MD_FORCE; in BTM_SetPowerMode()
218 …((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->inte… in BTM_SetPowerMode()
219 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) ) in BTM_SetPowerMode()
221 …etPowerMode: mode:0x%x interval %d max:%d, min:%d", p_mode->mode, p_cb->interval, p_mode->max, p_m… in BTM_SetPowerMode()
240 *(&p_cb->req_mode[temp_pm_id]) = *((tBTM_PM_PWR_MD *)p_mode); in BTM_SetPowerMode()
261 return btm_pm_snd_md_req(pm_id, acl_ind, p_mode); in BTM_SetPowerMode()
284 tBTM_STATUS BTM_ReadPowerMode (BD_ADDR remote_bda, tBTM_PM_MODE *p_mode) in BTM_ReadPowerMode() argument
291 *p_mode = btm_cb.pm_mode_db[acl_ind].state; in BTM_ReadPowerMode()
541 static tBTM_PM_MODE btm_pm_get_set_mode(UINT8 pm_id, tBTM_PM_MCB *p_cb, tBTM_PM_PWR_MD *p_mode, tBT… in btm_pm_get_set_mode() argument
546 if(p_mode != NULL && p_mode->mode & BTM_PM_MD_FORCE) in btm_pm_get_set_mode()
548 *p_res = *p_mode; in btm_pm_get_set_mode()
553 if(!p_mode) in btm_pm_get_set_mode()
581 if(p_mode) in btm_pm_get_set_mode()
582 *p_res = *((tBTM_PM_PWR_MD *)p_mode); in btm_pm_get_set_mode()
591 ((btm_pm_compare_modes(p_mode, p_md, p_res)) == NULL) ) in btm_pm_get_set_mode()
605 static tBTM_STATUS btm_pm_snd_md_req(UINT8 pm_id, int link_ind, tBTM_PM_PWR_MD *p_mode) in btm_pm_snd_md_req() argument
612 mode = btm_pm_get_set_mode(pm_id, p_cb, p_mode, &md_res); in btm_pm_snd_md_req()