Lines Matching refs:wait

349     if ((p_scb->wait & BTA_AV_WAIT_ROLE_SW_BITS) == 0) {  in bta_av_st_rc_timer()
353 p_scb->wait |= BTA_AV_WAIT_CHECK_RC; in bta_av_st_rc_timer()
766 APPL_TRACE_DEBUG("%s: wait:x%x", __func__, p_scb->wait); in bta_av_switch_role()
767 if (p_scb->wait & BTA_AV_WAIT_ROLE_SW_RES_START) in bta_av_switch_role()
768 p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RETRY; in bta_av_switch_role()
771 p_scb->wait &= in bta_av_switch_role()
777 p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_OPEN; in bta_av_switch_role()
792 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_RETRY; in bta_av_switch_role()
815 p_scb->wait, p_scb->role); in bta_av_role_res()
819 if (p_scb->wait & BTA_AV_WAIT_ROLE_SW_STARTED) { in bta_av_role_res()
820 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_BITS; in bta_av_role_res()
833 } else if (p_scb->wait & BTA_AV_WAIT_ROLE_SW_RES_START) in bta_av_role_res()
834 p_scb->wait |= BTA_AV_WAIT_ROLE_SW_FAILED; in bta_av_role_res()
836 if (p_scb->wait & BTA_AV_WAIT_ROLE_SW_RES_OPEN) { in bta_av_role_res()
838 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_BITS; in bta_av_role_res()
859 p_scb->q_tag, p_scb->wait); in bta_av_role_res()
863 APPL_TRACE_DEBUG("%s: wait:x%x, role:x%x", __func__, p_scb->wait, in bta_av_role_res()
911 p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_OPEN; in bta_av_do_disc_a2dp()
930 p_scb->wait |= BTA_AV_WAIT_ROLE_SW_RES_OPEN; in bta_av_do_disc_a2dp()
940 ok_continue, p_scb->wait, p_scb->q_tag); in bta_av_do_disc_a2dp()
944 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_BITS; in bta_av_do_disc_a2dp()
946 if (p_scb->wait & BTA_AV_WAIT_CHECK_RC) { in bta_av_do_disc_a2dp()
947 p_scb->wait &= ~BTA_AV_WAIT_CHECK_RC; in bta_av_do_disc_a2dp()
1034 p_scb->wait = 0; in bta_av_cleanup()
1257 p_scb->wait = BTA_AV_WAIT_ACP_CAPS_ON; in bta_av_setconfig_rsp()
1626 uint8_t old_wait = p_scb->wait; in bta_av_save_caps()
1630 p_scb->num_seps, p_scb->sep_info_idx, p_scb->wait); in bta_av_save_caps()
1649 p_scb->wait &= ~(BTA_AV_WAIT_ACP_CAPS_ON | BTA_AV_WAIT_ACP_CAPS_STARTED); in bta_av_save_caps()
1908 if (p_scb->wait == 0) { in bta_av_do_start()
2233 APPL_TRACE_DEBUG("%s: wait:x%x, role:x%x", __func__, p_scb->wait, in bta_av_start_ok()
2248 p_scb->wait &= ~(BTA_AV_WAIT_ACP_CAPS_ON); in bta_av_start_ok()
2250 p_scb->wait); in bta_av_start_ok()
2252 if (p_scb->wait & BTA_AV_WAIT_ROLE_SW_FAILED) { in bta_av_start_ok()
2254 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_FAILED; in bta_av_start_ok()
2258 APPL_TRACE_DEBUG("%s: wait:x%x", __func__, p_scb->wait); in bta_av_start_ok()
2261 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_BITS; in bta_av_start_ok()
2282 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_BITS; in bta_av_start_ok()
2285 if (p_scb->wait & in bta_av_start_ok()
2287 p_scb->wait |= BTA_AV_WAIT_ROLE_SW_STARTED; in bta_av_start_ok()
2291 if (p_scb->wait) { in bta_av_start_ok()
2293 p_scb->wait, p_scb->q_tag); in bta_av_start_ok()
2301 p_scb->wait &= ~BTA_AV_WAIT_ACP_CAPS_ON; in bta_av_start_ok()
2897 p_scb->use_rc, p_scb->wait, p_scb->role); in bta_av_open_rc()
2898 if ((p_scb->wait & BTA_AV_WAIT_ROLE_SW_BITS) && in bta_av_open_rc()
2910 p_scb->wait &= ~BTA_AV_WAIT_ROLE_SW_BITS; in bta_av_open_rc()
2927 if ((p_scb->wait & BTA_AV_WAIT_ROLE_SW_BITS) == 0) { in bta_av_open_rc()
2931 p_scb->wait |= BTA_AV_WAIT_CHECK_RC; in bta_av_open_rc()