Lines Matching refs:btm_cb

81     memset (&btm_cb.devcb, 0, sizeof (tBTM_DEVCB));  in btm_dev_init()
86 memset(btm_cb.cfg.bd_name, 0, sizeof(tBTM_LOC_BD_NAME)); in btm_dev_init()
89 btm_cb.devcb.read_local_name_timer = in btm_dev_init()
91 btm_cb.devcb.read_rssi_timer = alarm_new("btm.read_rssi_timer"); in btm_dev_init()
92 btm_cb.devcb.read_link_quality_timer = in btm_dev_init()
94 btm_cb.devcb.read_inq_tx_power_timer = in btm_dev_init()
96 btm_cb.devcb.qos_setup_timer = alarm_new("btm.qos_setup_timer"); in btm_dev_init()
97 btm_cb.devcb.read_tx_power_timer = alarm_new("btm.read_tx_power_timer"); in btm_dev_init()
99 btm_cb.btm_acl_pkt_types_supported = BTM_ACL_PKT_TYPES_MASK_DH1 + BTM_ACL_PKT_TYPES_MASK_DM1 + in btm_dev_init()
103 btm_cb.btm_sco_pkt_types_supported = BTM_SCO_PKT_TYPES_MASK_HV1 + in btm_dev_init()
130 if (btm_cb.devcb.p_rln_cmpl_cb) in btm_db_reset()
132 p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_db_reset()
133 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_db_reset()
139 if (btm_cb.devcb.p_rssi_cmpl_cb) in btm_db_reset()
141 p_cb = btm_cb.devcb.p_rssi_cmpl_cb; in btm_db_reset()
142 btm_cb.devcb.p_rssi_cmpl_cb = NULL; in btm_db_reset()
164 list_foreach(btm_cb.sec_dev_rec, set_sec_state_idle, NULL); in reset_complete()
167 btm_cb.btm_inq_vars.inq_counter = 1; in reset_complete()
168 btm_cb.btm_inq_vars.inq_scan_window = HCI_DEF_INQUIRYSCAN_WINDOW; in reset_complete()
169 btm_cb.btm_inq_vars.inq_scan_period = HCI_DEF_INQUIRYSCAN_INTERVAL; in reset_complete()
170 btm_cb.btm_inq_vars.inq_scan_type = HCI_DEF_SCAN_TYPE; in reset_complete()
172 btm_cb.btm_inq_vars.page_scan_window = HCI_DEF_PAGESCAN_WINDOW; in reset_complete()
173 btm_cb.btm_inq_vars.page_scan_period = HCI_DEF_PAGESCAN_INTERVAL; in reset_complete()
174 btm_cb.btm_inq_vars.page_scan_type = HCI_DEF_SCAN_TYPE; in reset_complete()
177 btm_cb.ble_ctr_cb.conn_state = BLE_CONN_IDLE; in reset_complete()
178 btm_cb.ble_ctr_cb.bg_conn_type = BTM_BLE_CONN_NONE; in reset_complete()
179 btm_cb.ble_ctr_cb.p_select_cback = NULL; in reset_complete()
205 BTM_SetPinType (btm_cb.cfg.pin_type, btm_cb.cfg.pin_code, btm_cb.cfg.pin_code_len); in reset_complete()
254 tBTM_CMPL_CB *p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_read_local_name_timeout()
255 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_read_local_name_timeout()
278 btm_cb.btm_acl_pkt_types_supported = (BTM_ACL_PKT_TYPES_MASK_DH1 + in btm_decode_ext_features_page()
282 btm_cb.btm_acl_pkt_types_supported |= (BTM_ACL_PKT_TYPES_MASK_DH3 + in btm_decode_ext_features_page()
286 btm_cb.btm_acl_pkt_types_supported |= (BTM_ACL_PKT_TYPES_MASK_DH5 + in btm_decode_ext_features_page()
292 btm_cb.btm_acl_pkt_types_supported |= (BTM_ACL_PKT_TYPES_MASK_NO_2_DH1 + in btm_decode_ext_features_page()
299 btm_cb.btm_acl_pkt_types_supported |= (BTM_ACL_PKT_TYPES_MASK_NO_3_DH1 + in btm_decode_ext_features_page()
309 btm_cb.btm_acl_pkt_types_supported |= (BTM_ACL_PKT_TYPES_MASK_NO_2_DH3 + in btm_decode_ext_features_page()
313 btm_cb.btm_acl_pkt_types_supported |= (BTM_ACL_PKT_TYPES_MASK_NO_2_DH5 + in btm_decode_ext_features_page()
318 btm_cb.btm_acl_pkt_types_supported); in btm_decode_ext_features_page()
321 btm_cb.btm_sco_pkt_types_supported = 0; in btm_decode_ext_features_page()
323 btm_cb.sco_cb.esco_supported = FALSE; in btm_decode_ext_features_page()
327 btm_cb.btm_sco_pkt_types_supported = BTM_SCO_PKT_TYPES_MASK_HV1; in btm_decode_ext_features_page()
330 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_HV2; in btm_decode_ext_features_page()
333 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_HV3; in btm_decode_ext_features_page()
337 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_EV3; in btm_decode_ext_features_page()
340 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_EV4; in btm_decode_ext_features_page()
343 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_EV5; in btm_decode_ext_features_page()
345 if (btm_cb.btm_sco_pkt_types_supported & BTM_ESCO_LINK_ONLY_MASK) in btm_decode_ext_features_page()
347 btm_cb.sco_cb.esco_supported = TRUE; in btm_decode_ext_features_page()
353 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_NO_2_EV5; in btm_decode_ext_features_page()
357 btm_cb.btm_sco_pkt_types_supported |= (BTM_SCO_PKT_TYPES_MASK_NO_2_EV3 + in btm_decode_ext_features_page()
364 btm_cb.btm_sco_pkt_types_supported |= BTM_SCO_PKT_TYPES_MASK_NO_3_EV5; in btm_decode_ext_features_page()
368 btm_cb.btm_sco_pkt_types_supported |= (BTM_SCO_PKT_TYPES_MASK_NO_3_EV3 + in btm_decode_ext_features_page()
375 btm_cb.btm_sco_pkt_types_supported); in btm_decode_ext_features_page()
379 btm_cb.btm_def_link_policy |= HCI_ENABLE_MASTER_SLAVE_SWITCH; in btm_decode_ext_features_page()
381 btm_cb.btm_def_link_policy &= ~HCI_ENABLE_MASTER_SLAVE_SWITCH; in btm_decode_ext_features_page()
384 btm_cb.btm_def_link_policy |= HCI_ENABLE_HOLD_MODE; in btm_decode_ext_features_page()
386 btm_cb.btm_def_link_policy &= ~HCI_ENABLE_HOLD_MODE; in btm_decode_ext_features_page()
389 btm_cb.btm_def_link_policy |= HCI_ENABLE_SNIFF_MODE; in btm_decode_ext_features_page()
391 btm_cb.btm_def_link_policy &= ~HCI_ENABLE_SNIFF_MODE; in btm_decode_ext_features_page()
394 btm_cb.btm_def_link_policy |= HCI_ENABLE_PARK_MODE; in btm_decode_ext_features_page()
396 btm_cb.btm_def_link_policy &= ~HCI_ENABLE_PARK_MODE; in btm_decode_ext_features_page()
456 p = (UINT8 *)btm_cb.cfg.bd_name; in BTM_SetLocalDeviceName()
458 strlcpy(btm_cb.cfg.bd_name, p_name, BTM_MAX_LOC_BD_NAME_LEN); in BTM_SetLocalDeviceName()
487 *p_name = btm_cb.cfg.bd_name; in BTM_ReadLocalDeviceName()
509 if (btm_cb.devcb.p_rln_cmpl_cb) in BTM_ReadLocalDeviceNameFromController()
513 btm_cb.devcb.p_rln_cmpl_cb = p_rln_cmpl_cback; in BTM_ReadLocalDeviceNameFromController()
516 alarm_set_on_queue(btm_cb.devcb.read_local_name_timer, in BTM_ReadLocalDeviceNameFromController()
536 tBTM_CMPL_CB *p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_read_local_name_complete()
540 alarm_cancel(btm_cb.devcb.read_local_name_timer); in btm_read_local_name_complete()
543 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_read_local_name_complete()
567 if(!memcmp (btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN)) in BTM_SetDeviceClass()
570 memcpy (btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN); in BTM_SetDeviceClass()
593 return ((UINT8 *)btm_cb.devcb.dev_class); in BTM_ReadDeviceClass()
629 tBTM_DEV_STATUS_CB *p_prev = btm_cb.devcb.p_dev_status_cb; in BTM_RegisterForDeviceStatusNotif()
631 btm_cb.devcb.p_dev_status_cb = p_cb; in BTM_RegisterForDeviceStatusNotif()
720 if (btm_cb.devcb.p_vend_spec_cb[i] == NULL) in BTM_RegisterForVSEvents()
725 else if (btm_cb.devcb.p_vend_spec_cb[i] == p_cb) in BTM_RegisterForVSEvents()
730 btm_cb.devcb.p_vend_spec_cb[i] = NULL; in BTM_RegisterForVSEvents()
742 btm_cb.devcb.p_vend_spec_cb[free_idx] = p_cb; in BTM_RegisterForVSEvents()
777 if (btm_cb.devcb.p_vend_spec_cb[i]) in btm_vendor_specific_evt()
778 (*btm_cb.devcb.p_vend_spec_cb[i])(evt_len, p); in btm_vendor_specific_evt()
907 if (btm_cb.devcb.p_stored_link_key_cmpl_cb) in BTM_DeleteStoredLinkKey()
923 btm_cb.devcb.p_stored_link_key_cmpl_cb = p_cb; in BTM_DeleteStoredLinkKey()
944 tBTM_CMPL_CB *p_cb = btm_cb.devcb.p_stored_link_key_cmpl_cb; in btm_delete_stored_link_key_complete()
948 btm_cb.devcb.p_stored_link_key_cmpl_cb = NULL; in btm_delete_stored_link_key_complete()
977 tBTM_DEV_STATUS_CB *p_cb = btm_cb.devcb.p_dev_status_cb; in btm_report_device_status()