Lines Matching refs:pm_id
72 static tBTM_STATUS btm_pm_snd_md_req(uint8_t pm_id, int link_ind,
142 tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda, in BTM_SetPowerMode() argument
149 if (pm_id >= BTM_MAX_PM_RECORDS) { in BTM_SetPowerMode()
150 pm_id = BTM_PM_SET_ONLY_ID; in BTM_SetPowerMode()
154 LOG(ERROR) << __func__ << ": pm_id " << unsigned(pm_id) in BTM_SetPowerMode()
159 VLOG(2) << __func__ << " pm_id " << pm_id << " BDA: " << remote_bda in BTM_SetPowerMode()
175 LOG(ERROR) << __func__ << ": pm_id " << unsigned(pm_id) << " mode " in BTM_SetPowerMode()
196 temp_pm_id = pm_id; in BTM_SetPowerMode()
197 if (pm_id == BTM_PM_SET_ONLY_ID) { in BTM_SetPowerMode()
202 if (((pm_id != BTM_PM_SET_ONLY_ID) && in BTM_SetPowerMode()
203 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET)) || in BTM_SetPowerMode()
204 ((pm_id == BTM_PM_SET_ONLY_ID) && in BTM_SetPowerMode()
232 return btm_pm_snd_md_req(pm_id, acl_ind, p_mode); in BTM_SetPowerMode()
497 static tBTM_PM_MODE btm_pm_get_set_mode(uint8_t pm_id, tBTM_PM_MCB* p_cb, in btm_pm_get_set_mode() argument
540 if ((pm_id == BTM_PM_SET_ONLY_ID) && in btm_pm_get_set_mode()
555 static tBTM_STATUS btm_pm_snd_md_req(uint8_t pm_id, int link_ind, in btm_pm_snd_md_req() argument
562 mode = btm_pm_get_set_mode(pm_id, p_cb, p_mode, &md_res); in btm_pm_snd_md_req()
596 btm_cb.pm_pend_id = pm_id; in btm_pm_snd_md_req()