Lines Matching refs:devcb
87 btm_cb.devcb.read_local_name_timer = alarm_new("btm.read_local_name_timer"); in btm_dev_init()
88 btm_cb.devcb.read_rssi_timer = alarm_new("btm.read_rssi_timer"); in btm_dev_init()
89 btm_cb.devcb.read_failed_contact_counter_timer = in btm_dev_init()
91 btm_cb.devcb.read_automatic_flush_timeout_timer = in btm_dev_init()
93 btm_cb.devcb.read_link_quality_timer = in btm_dev_init()
95 btm_cb.devcb.read_inq_tx_power_timer = in btm_dev_init()
97 btm_cb.devcb.qos_setup_timer = alarm_new("btm.qos_setup_timer"); in btm_dev_init()
98 btm_cb.devcb.read_tx_power_timer = alarm_new("btm.read_tx_power_timer"); in btm_dev_init()
127 if (btm_cb.devcb.p_rln_cmpl_cb) { in btm_db_reset()
128 p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_db_reset()
129 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_db_reset()
134 if (btm_cb.devcb.p_rssi_cmpl_cb) { in btm_db_reset()
135 p_cb = btm_cb.devcb.p_rssi_cmpl_cb; in btm_db_reset()
136 btm_cb.devcb.p_rssi_cmpl_cb = NULL; in btm_db_reset()
145 if (btm_cb.devcb.p_failed_contact_counter_cmpl_cb) { in btm_db_reset()
146 p_cb = btm_cb.devcb.p_failed_contact_counter_cmpl_cb; in btm_db_reset()
147 btm_cb.devcb.p_failed_contact_counter_cmpl_cb = NULL; in btm_db_reset()
156 if (btm_cb.devcb.p_automatic_flush_timeout_cmpl_cb) { in btm_db_reset()
157 p_cb = btm_cb.devcb.p_automatic_flush_timeout_cmpl_cb; in btm_db_reset()
158 btm_cb.devcb.p_automatic_flush_timeout_cmpl_cb = NULL; in btm_db_reset()
266 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_read_local_name_timeout()
267 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_read_local_name_timeout()
456 if (btm_cb.devcb.p_rln_cmpl_cb) return (BTM_NO_RESOURCES); in BTM_ReadLocalDeviceNameFromController()
459 btm_cb.devcb.p_rln_cmpl_cb = p_rln_cmpl_cback; in BTM_ReadLocalDeviceNameFromController()
462 alarm_set_on_mloop(btm_cb.devcb.read_local_name_timer, in BTM_ReadLocalDeviceNameFromController()
480 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_rln_cmpl_cb; in btm_read_local_name_complete()
483 alarm_cancel(btm_cb.devcb.read_local_name_timer); in btm_read_local_name_complete()
486 btm_cb.devcb.p_rln_cmpl_cb = NULL; in btm_read_local_name_complete()
508 if (!memcmp(btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN)) in BTM_SetDeviceClass()
511 memcpy(btm_cb.devcb.dev_class, dev_class, DEV_CLASS_LEN); in BTM_SetDeviceClass()
530 return ((uint8_t*)btm_cb.devcb.dev_class); in BTM_ReadDeviceClass()
548 tBTM_DEV_STATUS_CB* p_prev = btm_cb.devcb.p_dev_status_cb; in BTM_RegisterForDeviceStatusNotif()
550 btm_cb.devcb.p_dev_status_cb = p_cb; in BTM_RegisterForDeviceStatusNotif()
624 if (btm_cb.devcb.p_vend_spec_cb[i] == NULL) { in BTM_RegisterForVSEvents()
627 } else if (btm_cb.devcb.p_vend_spec_cb[i] == p_cb) { in BTM_RegisterForVSEvents()
630 btm_cb.devcb.p_vend_spec_cb[i] = NULL; in BTM_RegisterForVSEvents()
640 btm_cb.devcb.p_vend_spec_cb[free_idx] = p_cb; in BTM_RegisterForVSEvents()
671 if (btm_cb.devcb.p_vend_spec_cb[i]) in btm_vendor_specific_evt()
672 (*btm_cb.devcb.p_vend_spec_cb[i])(evt_len, p); in btm_vendor_specific_evt()
770 if (btm_cb.devcb.p_stored_link_key_cmpl_cb) return (BTM_BUSY); in BTM_DeleteStoredLinkKey()
777 btm_cb.devcb.p_stored_link_key_cmpl_cb = p_cb; in BTM_DeleteStoredLinkKey()
802 tBTM_CMPL_CB* p_cb = btm_cb.devcb.p_stored_link_key_cmpl_cb; in btm_delete_stored_link_key_complete()
806 btm_cb.devcb.p_stored_link_key_cmpl_cb = NULL; in btm_delete_stored_link_key_complete()
833 tBTM_DEV_STATUS_CB* p_cb = btm_cb.devcb.p_dev_status_cb; in btm_report_device_status()