Home
last modified time | relevance | path

Searched refs:p_md1 (Results 1 – 1 of 1) sorted by relevance

/system/bt/stack/btm/
Dbtm_pm.cc431 static tBTM_PM_PWR_MD* btm_pm_compare_modes(const tBTM_PM_PWR_MD* p_md1, in btm_pm_compare_modes() argument
436 if (p_md1 == NULL) { in btm_pm_compare_modes()
443 if (p_md2->mode == BTM_PM_MD_ACTIVE || p_md1->mode == BTM_PM_MD_ACTIVE) { in btm_pm_compare_modes()
448 if (p_md1->mode & BTM_PM_MD_FORCE) { in btm_pm_compare_modes()
449 *p_res = *p_md1; in btm_pm_compare_modes()
460 res = (p_md1->mode - 1) * BTM_PM_NUM_SET_MODES + (p_md2->mode - 1); in btm_pm_compare_modes()
464 *p_res = *p_md1; in btm_pm_compare_modes()
472 p_res->mode = p_md1->mode; in btm_pm_compare_modes()
474 p_res->max = (p_md1->max < p_md2->max) ? (p_md1->max) : (p_md2->max); in btm_pm_compare_modes()
476 p_res->min = (p_md1->min > p_md2->min) ? (p_md1->min) : (p_md2->min); in btm_pm_compare_modes()
[all …]