Lines Matching refs:pm_id
104 static tBTM_STATUS btm_pm_snd_md_req(uint16_t handle, uint8_t pm_id,
181 tBTM_STATUS BTM_SetPowerMode(uint8_t pm_id, const RawAddress& remote_bda, in BTM_SetPowerMode() argument
183 if (pm_id >= BTM_MAX_PM_RECORDS) { in BTM_SetPowerMode()
184 pm_id = BTM_PM_SET_ONLY_ID; in BTM_SetPowerMode()
188 LOG_ERROR("pm_id: %u, p_mode is null for %s", unsigned(pm_id), in BTM_SetPowerMode()
226 LOG_ERROR("pm_id %u mode %u is not supported for %s", pm_id, mode, in BTM_SetPowerMode()
248 int temp_pm_id = pm_id; in BTM_SetPowerMode()
249 if (pm_id == BTM_PM_SET_ONLY_ID) { in BTM_SetPowerMode()
254 if (((pm_id != BTM_PM_SET_ONLY_ID) && (pm_reg_db.mask & BTM_PM_REG_SET)) || in BTM_SetPowerMode()
255 ((pm_id == BTM_PM_SET_ONLY_ID) && (pm_pend_link != 0))) { in BTM_SetPowerMode()
283 return btm_pm_snd_md_req(p_cb->handle_, pm_id, p_cb->handle_, p_mode); in BTM_SetPowerMode()
474 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
509 if ((pm_id == BTM_PM_SET_ONLY_ID) && in btm_pm_get_set_mode()
524 static tBTM_STATUS btm_pm_snd_md_req(uint16_t handle, uint8_t pm_id, in btm_pm_snd_md_req() argument
534 mode = btm_pm_get_set_mode(pm_id, p_cb, p_mode, &md_res); in btm_pm_snd_md_req()
542 pm_id, link_ind, power_mode_text(mode).c_str(), mode); in btm_pm_snd_md_req()
574 pm_pend_id = pm_id; in btm_pm_snd_md_req()