Lines Matching refs:p_res
467 …_PWR_MD * btm_pm_compare_modes(tBTM_PM_PWR_MD *p_md1, tBTM_PM_PWR_MD *p_md2, tBTM_PM_PWR_MD *p_res) in btm_pm_compare_modes() argument
473 *p_res = *p_md2; in btm_pm_compare_modes()
474 p_res->mode &= ~BTM_PM_MD_FORCE; in btm_pm_compare_modes()
487 *p_res = *p_md1; in btm_pm_compare_modes()
488 p_res->mode &= ~BTM_PM_MD_FORCE; in btm_pm_compare_modes()
489 return p_res; in btm_pm_compare_modes()
494 *p_res = *p_md2; in btm_pm_compare_modes()
495 p_res->mode &= ~BTM_PM_MD_FORCE; in btm_pm_compare_modes()
496 return p_res; in btm_pm_compare_modes()
504 *p_res = *p_md1; in btm_pm_compare_modes()
508 *p_res = *p_md2; in btm_pm_compare_modes()
512 p_res->mode = p_md1->mode; in btm_pm_compare_modes()
514 p_res->max = (p_md1->max < p_md2->max)? (p_md1->max) : (p_md2->max); in btm_pm_compare_modes()
516 p_res->min = (p_md1->min > p_md2->min)? (p_md1->min) : (p_md2->min); in btm_pm_compare_modes()
519 if( p_res->max < p_res->min) in btm_pm_compare_modes()
522 if(p_res->mode == BTM_PM_MD_SNIFF) in btm_pm_compare_modes()
525 … p_res->attempt = (p_md1->attempt > p_md2->attempt)? (p_md1->attempt) : (p_md2->attempt); in btm_pm_compare_modes()
526 … p_res->timeout = (p_md1->timeout > p_md2->timeout)? (p_md1->timeout) : (p_md2->timeout); in btm_pm_compare_modes()
528 return p_res; in btm_pm_compare_modes()
541 … 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) in btm_pm_get_set_mode() argument
548 *p_res = *p_mode; in btm_pm_get_set_mode()
549 p_res->mode &= ~BTM_PM_MD_FORCE; in btm_pm_get_set_mode()
550 return p_res->mode; in btm_pm_get_set_mode()
571 if( (btm_pm_compare_modes(p_md, &p_cb->req_mode[xx], p_res)) == NULL) in btm_pm_get_set_mode()
573 p_md = p_res; 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()
595 return p_res->mode; in btm_pm_get_set_mode()