Lines Matching refs:_ag
1759 struct bt_hfp_ag *_ag = &bt_hfp_ag_pool[i]; in bt_hfp_ag_connect() local
1761 if (_ag->rfcomm_dlc.session) { in bt_hfp_ag_connect()
1765 (void)memset(_ag, 0, sizeof(struct bt_hfp_ag)); in bt_hfp_ag_connect()
1767 sys_slist_init(&_ag->tx_pending); in bt_hfp_ag_connect()
1769 k_sem_init(&_ag->lock, 1, 1); in bt_hfp_ag_connect()
1771 _ag->rfcomm_dlc.ops = &ops; in bt_hfp_ag_connect()
1772 _ag->rfcomm_dlc.mtu = BT_HFP_MAX_MTU; in bt_hfp_ag_connect()
1775 _ag->ag_features = BT_HFP_AG_SUPPORTED_FEATURES; in bt_hfp_ag_connect()
1779 _ag->ag_features &= ~BT_HFP_AG_FEATURE_CODEC_NEG; in bt_hfp_ag_connect()
1782 _ag->hf_features = 0; in bt_hfp_ag_connect()
1783 _ag->hf_codec_ids = 0; in bt_hfp_ag_connect()
1785 _ag->acl_conn = conn; in bt_hfp_ag_connect()
1788 _ag->indicator_value[BT_HFP_AG_SERVICE_IND] = 0; in bt_hfp_ag_connect()
1789 _ag->indicator_value[BT_HFP_AG_CALL_IND] = 0; in bt_hfp_ag_connect()
1790 _ag->indicator_value[BT_HFP_AG_CALL_SETUP_IND] = 0; in bt_hfp_ag_connect()
1791 _ag->indicator_value[BT_HFP_AG_CALL_HELD_IND] = 0; in bt_hfp_ag_connect()
1792 _ag->indicator_value[BT_HFP_AG_SIGNAL_IND] = 0; in bt_hfp_ag_connect()
1793 _ag->indicator_value[BT_HFP_AG_ROAM_IND] = 0; in bt_hfp_ag_connect()
1794 _ag->indicator_value[BT_HFP_AG_BATTERY_IND] = 0; in bt_hfp_ag_connect()
1797 _ag->indicator = BIT(BT_HFP_AG_SERVICE_IND) | BIT(BT_HFP_AG_CALL_IND) | in bt_hfp_ag_connect()
1803 memcpy(_ag->operator, "UNKNOWN", sizeof("UNKNOWN")); in bt_hfp_ag_connect()
1806 _ag->selected_codec_id = BT_HFP_AG_CODEC_CVSD; in bt_hfp_ag_connect()
1809 k_work_init_delayable(&_ag->deferred_work, bt_ag_deferred_work); in bt_hfp_ag_connect()
1811 k_work_init_delayable(&_ag->ringing_work, bt_ag_ringing_work); in bt_hfp_ag_connect()
1813 k_work_init_delayable(&_ag->tx_work, bt_ag_tx_work); in bt_hfp_ag_connect()
1815 atomic_set_bit(_ag->flags, BT_HFP_AG_CODEC_CHANGED); in bt_hfp_ag_connect()
1817 *ag = _ag; in bt_hfp_ag_connect()