Home | History | Annotate | Download | only in btm

Lines Matching full:p_mode

89 static tBTM_STATUS btm_pm_snd_md_req( UINT8 pm_id, int link_ind, tBTM_PM_PWR_MD *p_mode );
185 tBTM_STATUS BTM_SetPowerMode (UINT8 pm_id, BD_ADDR remote_bda, tBTM_PM_PWR_MD *p_mode)
197 if(p_mode == NULL)
201 (remote_bda[2]<<24)+(remote_bda[3]<<16)+(remote_bda[4]<<8)+remote_bda[5], p_mode->mode);
204 mode = p_mode->mode & ~BTM_PM_MD_FORCE;
225 ((p_mode->mode & BTM_PM_MD_FORCE) && (p_mode->max >= p_cb->interval) && (p_mode->min <= p_cb->interval)) ||
226 ((p_mode->mode & BTM_PM_MD_FORCE)==0 && (p_mode->max >= p_cb->interval)) )
228 BTM_TRACE_DEBUG4( "BTM_SetPowerMode: mode:0x%x interval %d max:%d, min:%d", p_mode->mode, p_cb->interval, p_mode->max, p_mode->min);
247 *(&p_cb->req_mode[temp_pm_id]) = *((tBTM_PM_PWR_MD *)p_mode);
270 return btm_pm_snd_md_req(pm_id, acl_ind, p_mode);
282 ** Output Param p_mode - address where the current mode is copied into.
293 tBTM_STATUS BTM_ReadPowerMode (BD_ADDR remote_bda, tBTM_PM_MODE *p_mode)
300 *p_mode = btm_cb.pm_mode_db[acl_ind].state;
514 static tBTM_PM_MODE btm_pm_get_set_mode(UINT8 pm_id, tBTM_PM_MCB *p_cb, tBTM_PM_PWR_MD *p_mode, tBTM_PM_PWR_MD *p_res)
519 if(p_mode != NULL && p_mode->mode & BTM_PM_MD_FORCE)
521 *p_res = *p_mode;
526 if(!p_mode)
554 if(p_mode)
555 *p_res = *((tBTM_PM_PWR_MD *)p_mode);
556 else /* p_mode is NULL when btm_pm_snd_md_req is called from btm_pm_proc_mode_change */
564 ((btm_pm_compare_modes(p_mode, p_md, p_res)) == NULL) )
578 static tBTM_STATUS btm_pm_snd_md_req(UINT8 pm_id, int link_ind, tBTM_PM_PWR_MD *p_mode)
585 mode = btm_pm_get_set_mode(pm_id, p_cb, p_mode, &md_res);
973 tBTM_STATUS BTM_SetPowerMode (UINT8 pm_id, BD_ADDR remote_bda, tBTM_PM_PWR_MD *p_mode)
978 tBTM_STATUS BTM_ReadPowerMode (BD_ADDR remote_bda, tBTM_PM_MODE *p_mode)