Home | History | Annotate | Download | only in btm

Lines Matching refs:btm_cb

149         btm_cb.pm_reg_db[*p_pm_id].mask = BTM_PM_REC_NOT_USED;
156 if(btm_cb.pm_reg_db[xx].mask == BTM_PM_REC_NOT_USED)
163 btm_cb.pm_reg_db[xx].cback = p_cb;
165 btm_cb.pm_reg_db[xx].mask = mask;
210 p_cb = &(btm_cb.pm_mode_db[acl_ind]);
239 (btm_cb.pm_reg_db[pm_id].mask & BTM_PM_REG_SET))
240 || ((pm_id == BTM_PM_SET_ONLY_ID) && (btm_cb.pm_pend_link != MAX_L2CAP_LINKS)) )
246 btm_cb.pm_reg_db[temp_pm_id].mask |= BTM_PM_REG_SET;
252 BTM_TRACE_DEBUG( "btm_pm state:0x%x, pm_pend_link: %d", p_cb->state, btm_cb.pm_pend_link);
257 (btm_cb.pm_pend_link != MAX_L2CAP_LINKS) ) /* command pending */
259 if(acl_ind != btm_cb.pm_pend_link)
300 *p_mode = btm_cb.pm_mode_db[acl_ind].state;
332 if(BTM_PM_STS_ACTIVE == btm_cb.pm_mode_db[acl_ind].state ||
333 BTM_PM_STS_SNIFF == btm_cb.pm_mode_db[acl_ind].state)
335 if (btsnd_hcic_sniff_sub_rate(btm_cb.acl_db[acl_ind].hci_handle, max_lat,
341 p_cb = &btm_cb.pm_mode_db[acl_ind];
366 if( (btm_cb.pm_pend_id != BTM_PM_SET_ONLY_ID) &&
367 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF) )
369 cb = btm_cb.pm_reg_db[btm_cb.pm_pend_id].cback;
376 btm_cb.pm_reg_db[xx].mask = BTM_PM_REC_NOT_USED;
379 if(cb != NULL && btm_cb.pm_pend_link < MAX_L2CAP_LINKS)
380 (*cb)(btm_cb.acl_db[btm_cb.pm_pend_link].remote_addr, BTM_PM_STS_ERROR, BTM_DEV_RESET, 0);
383 btm_cb.pm_pend_link = MAX_L2CAP_LINKS;
398 tBTM_PM_MCB *p_db = &btm_cb.pm_mode_db[ind]; /* per ACL link */
418 tACL_CONN *p = &btm_cb.acl_db[0];
430 BTM_TRACE_DEBUG( "btm_pm_find_acl_ind ind:%d, st:%d", xx, btm_cb.pm_mode_db[xx].state);
539 if(btm_cb.pm_reg_db[xx].mask & BTM_PM_REG_SET)
587 tBTM_PM_MCB *p_cb = &btm_cb.pm_mode_db[link_ind];
618 btsnd_hcic_sniff_sub_rate(btm_cb.acl_db[link_ind].hci_handle, p_cb->max_lat,
624 btm_cb.pm_pend_link = MAX_L2CAP_LINKS;
627 btm_cb.pm_pend_id = pm_id;
638 if (btsnd_hcic_exit_sniff_mode(btm_cb.acl_db[link_ind].hci_handle))
640 btm_cb.pm_pend_link = link_ind;
644 if (btsnd_hcic_exit_park_mode(btm_cb.acl_db[link_ind].hci_handle))
646 btm_cb.pm_pend_link = link_ind;
650 /* Failure btm_cb.pm_pend_link = MAX_L2CAP_LINKS */
656 if (btsnd_hcic_hold_mode (btm_cb.acl_db[link_ind].hci_handle,
659 btm_cb.pm_pend_link = link_ind;
664 if (btsnd_hcic_sniff_mode (btm_cb.acl_db[link_ind].hci_handle,
668 btm_cb.pm_pend_link = link_ind;
673 if (btsnd_hcic_park_mode (btm_cb.acl_db[link_ind].hci_handle,
676 btm_cb.pm_pend_link = link_ind;
680 /* Failure btm_cb.pm_pend_link = MAX_L2CAP_LINKS */
684 if(btm_cb.pm_pend_link == MAX_L2CAP_LINKS)
688 BTM_TRACE_DEBUG( "pm_pend_link: %d",btm_cb.pm_pend_link);
712 if(btm_cb.pm_mode_db[xx].state & BTM_PM_STORED_MASK)
714 btm_cb.pm_mode_db[xx].state &= ~BTM_PM_STORED_MASK;
740 if(btm_cb.pm_pend_link >= MAX_L2CAP_LINKS)
743 p_cb = &btm_cb.pm_mode_db[btm_cb.pm_pend_link];
759 if( (btm_cb.pm_pend_id != BTM_PM_SET_ONLY_ID) &&
760 (btm_cb.pm_reg_db[btm_cb.pm_pend_id].mask & BTM_PM_REG_NOTIF) )
762 (*btm_cb.pm_reg_db[btm_cb.pm_pend_id].cback)(btm_cb.acl_db[btm_cb.pm_pend_link].remote_addr, pm_status, 0, status);
768 p_cb->state, btm_cb.pm_pend_link, MAX_L2CAP_LINKS);
770 btm_cb.pm_pend_link = MAX_L2CAP_LINKS;
801 p = &btm_cb.acl_db[xx];
820 hci_handle, btm_cb.btm_acl_pkt_types_supported);
821 btm_set_packet_types (p, btm_cb.btm_acl_pkt_types_supported);
830 p->restore_pkt_types = btm_cb.btm_acl_pkt_types_supported;
847 p_cb = &(btm_cb.pm_mode_db[xx]);
886 if(btm_cb.pm_mode_db[zz].chg_ind == TRUE)
901 if(btm_cb.pm_reg_db[yy].mask & BTM_PM_REG_NOTIF)
903 (*btm_cb.pm_reg_db[yy].cback)( p->remote_addr, mode, interval, hci_status);
941 p_cb = &(btm_cb.pm_mode_db[xx]);
943 p_acl = &btm_cb.acl_db[xx];
953 if(btm_cb.pm_reg_db[yy].mask & BTM_PM_REG_NOTIF)
957 (*btm_cb.pm_reg_db[yy].cback)( p_acl->remote_addr, BTM_PM_STS_SSR, use_ssr, status);
1023 if (btm_cb.num_acl > 0)
1025 BTM_TRACE_DEBUG("btm_pm_device_in_active_or_sniff_mode-acl:%d", btm_cb.num_acl);
1056 if (btm_cb.is_paging || btm_cb.page_queue.count > 0 ||
1057 BTM_BL_PAGING_STARTED == btm_cb.busy_level)
1064 if ((btm_cb.btm_inq_vars.inq_active & (BTM_BR_INQ_ACTIVE_MASK | BTM_BLE_INQ_ACTIVE_MASK)) != 0)