• Home
  • Raw
  • Download

Lines Matching refs:btm_cb

115     btm_cb.pm_reg_db[*p_pm_id].mask = BTM_PM_REC_NOT_USED;  in BTM_PmRegister()
121 if (btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED) { in BTM_PmRegister()
125 btm_cb.pm_reg_db[xx].cback = p_cb; in BTM_PmRegister()
127 btm_cb.pm_reg_db[xx].mask = mask; in BTM_PmRegister()
174 p_cb = &(btm_cb.pm_mode_db[acl_ind]); in BTM_SetPowerMode()
209 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET)) || in BTM_SetPowerMode()
211 (btm_cb.pm_pend_link != MAX_L2CAP_LINKS))) { in BTM_SetPowerMode()
217 btm_cb.pm_reg_db[temp_pm_id].mask |= BTM_PM_REG_SET; in BTM_SetPowerMode()
224 btm_cb.pm_pend_link); in BTM_SetPowerMode()
228 (btm_cb.pm_pend_link != MAX_L2CAP_LINKS)) { in BTM_SetPowerMode()
230 if (acl_ind != btm_cb.pm_pend_link) { in BTM_SetPowerMode()
268 *p_mode = btm_cb.pm_mode_db[acl_ind].state; in BTM_ReadPowerMode()
299 *pmState = btm_cb.pm_mode_db[acl_ind].state; in btm_read_power_mode_state()
330 if (BTM_PM_STS_ACTIVE == btm_cb.pm_mode_db[acl_ind].state || in BTM_SetSsrParams()
331 BTM_PM_STS_SNIFF == btm_cb.pm_mode_db[acl_ind].state) { in BTM_SetSsrParams()
332 btsnd_hcic_sniff_sub_rate(btm_cb.acl_db[acl_ind].hci_handle, max_lat, in BTM_SetSsrParams()
336 p_cb = &btm_cb.pm_mode_db[acl_ind]; in BTM_SetSsrParams()
360 if ((btm_cb.pm_pend_id != BTM_PM_SET_ONLY_ID) && in btm_pm_reset()
361 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF)) { in btm_pm_reset()
362 cb = btm_cb.pm_reg_db[btm_cb.pm_pend_id].cback; in btm_pm_reset()
367 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED; in btm_pm_reset()
370 if (cb != NULL && btm_cb.pm_pend_link < MAX_L2CAP_LINKS) in btm_pm_reset()
371 (*cb)(btm_cb.acl_db[btm_cb.pm_pend_link].remote_addr, BTM_PM_STS_ERROR, in btm_pm_reset()
375 btm_cb.pm_pend_link = MAX_L2CAP_LINKS; in btm_pm_reset()
389 tBTM_PM_MCB* p_db = &btm_cb.pm_mode_db[ind]; /* per ACL link */ in btm_pm_sm_alloc()
408 tACL_CONN* p = &btm_cb.acl_db[0]; in btm_pm_find_acl_ind()
416 btm_cb.pm_mode_db[xx].state); in btm_pm_find_acl_ind()
522 if (btm_cb.pm_reg_db[xx].mask & BTM_PM_REG_SET) { in btm_pm_get_set_mode()
565 tBTM_PM_MCB* p_cb = &btm_cb.pm_mode_db[link_ind]; in btm_pm_snd_md_req()
593 btsnd_hcic_sniff_sub_rate(btm_cb.acl_db[link_ind].hci_handle, p_cb->max_lat, in btm_pm_snd_md_req()
599 btm_cb.pm_pend_link = MAX_L2CAP_LINKS; in btm_pm_snd_md_req()
602 btm_cb.pm_pend_id = pm_id; in btm_pm_snd_md_req()
615 btsnd_hcic_exit_sniff_mode(btm_cb.acl_db[link_ind].hci_handle); in btm_pm_snd_md_req()
616 btm_cb.pm_pend_link = link_ind; in btm_pm_snd_md_req()
619 btsnd_hcic_exit_park_mode(btm_cb.acl_db[link_ind].hci_handle); in btm_pm_snd_md_req()
620 btm_cb.pm_pend_link = link_ind; in btm_pm_snd_md_req()
629 btsnd_hcic_hold_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
631 btm_cb.pm_pend_link = link_ind; in btm_pm_snd_md_req()
635 btsnd_hcic_sniff_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
637 btm_cb.pm_pend_link = link_ind; in btm_pm_snd_md_req()
641 btsnd_hcic_park_mode(btm_cb.acl_db[link_ind].hci_handle, md_res.max, in btm_pm_snd_md_req()
643 btm_cb.pm_pend_link = link_ind; in btm_pm_snd_md_req()
650 if (btm_cb.pm_pend_link == MAX_L2CAP_LINKS) { in btm_pm_snd_md_req()
653 BTM_TRACE_DEBUG("pm_pend_link: %d", btm_cb.pm_pend_link); in btm_pm_snd_md_req()
675 if (btm_cb.pm_mode_db[xx].state & BTM_PM_STORED_MASK) { in btm_pm_check_stored()
676 btm_cb.pm_mode_db[xx].state &= ~BTM_PM_STORED_MASK; in btm_pm_check_stored()
700 if (btm_cb.pm_pend_link >= MAX_L2CAP_LINKS) return; in btm_pm_proc_cmd_status()
702 p_cb = &btm_cb.pm_mode_db[btm_cb.pm_pend_link]; in btm_pm_proc_cmd_status()
716 if ((btm_cb.pm_pend_id != BTM_PM_SET_ONLY_ID) && in btm_pm_proc_cmd_status()
717 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF)) { in btm_pm_proc_cmd_status()
718 (*btm_cb.pm_reg_db[btm_cb.pm_pend_id].cback)( in btm_pm_proc_cmd_status()
719 btm_cb.acl_db[btm_cb.pm_pend_link].remote_addr, pm_status, 0, status); in btm_pm_proc_cmd_status()
726 p_cb->state, btm_cb.pm_pend_link, MAX_L2CAP_LINKS); in btm_pm_proc_cmd_status()
728 btm_cb.pm_pend_link = MAX_L2CAP_LINKS; in btm_pm_proc_cmd_status()
762 p = &btm_cb.acl_db[xx]; in btm_pm_proc_mode_change()
765 p_cb = &(btm_cb.pm_mode_db[xx]); in btm_pm_proc_mode_change()
800 if (btm_cb.pm_mode_db[zz].chg_ind) { in btm_pm_proc_mode_change()
812 if (btm_cb.pm_reg_db[yy].mask & BTM_PM_REG_NOTIF) { in btm_pm_proc_mode_change()
813 (*btm_cb.pm_reg_db[yy].cback)(p->remote_addr, mode, interval, hci_status); in btm_pm_proc_mode_change()
852 p_cb = &(btm_cb.pm_mode_db[xx]); in btm_pm_proc_ssr_evt()
854 p_acl = &btm_cb.acl_db[xx]; in btm_pm_proc_ssr_evt()
862 if (btm_cb.pm_reg_db[yy].mask & BTM_PM_REG_NOTIF) { in btm_pm_proc_ssr_evt()
864 (*btm_cb.pm_reg_db[yy].cback)(p_acl->remote_addr, BTM_PM_STS_SSR, in btm_pm_proc_ssr_evt()
914 if (btm_cb.is_paging || (!fixed_queue_is_empty(btm_cb.page_queue)) || in btm_pm_device_in_scan_state()
915 BTM_BL_PAGING_STARTED == btm_cb.busy_level) { in btm_pm_device_in_scan_state()
921 if ((btm_cb.btm_inq_vars.inq_active & in btm_pm_device_in_scan_state()