Lines Matching refs:settings
544 tBTM_PM_PWR_MD settings; in BTM_SwitchRole() local
591 memset((void*)&settings, 0, sizeof(settings)); in BTM_SwitchRole()
592 settings.mode = BTM_PM_MD_ACTIVE; in BTM_SwitchRole()
593 status = BTM_SetPowerMode(BTM_PM_SET_ONLY_ID, p->remote_addr, &settings); in BTM_SwitchRole()
728 uint16_t* settings) { in BTM_SetLinkPolicy() argument
735 if (*settings != HCI_DISABLE_ALL_LM_MODES) { in BTM_SetLinkPolicy()
736 if ((*settings & HCI_ENABLE_MASTER_SLAVE_SWITCH) && in BTM_SetLinkPolicy()
738 *settings &= (~HCI_ENABLE_MASTER_SLAVE_SWITCH); in BTM_SetLinkPolicy()
740 *settings); in BTM_SetLinkPolicy()
742 if ((*settings & HCI_ENABLE_HOLD_MODE) && in BTM_SetLinkPolicy()
744 *settings &= (~HCI_ENABLE_HOLD_MODE); in BTM_SetLinkPolicy()
746 *settings); in BTM_SetLinkPolicy()
748 if ((*settings & HCI_ENABLE_SNIFF_MODE) && in BTM_SetLinkPolicy()
750 *settings &= (~HCI_ENABLE_SNIFF_MODE); in BTM_SetLinkPolicy()
752 *settings); in BTM_SetLinkPolicy()
754 if ((*settings & HCI_ENABLE_PARK_MODE) && in BTM_SetLinkPolicy()
756 *settings &= (~HCI_ENABLE_PARK_MODE); in BTM_SetLinkPolicy()
758 *settings); in BTM_SetLinkPolicy()
764 btsnd_hcic_write_policy_set(p->hci_handle, *settings); in BTM_SetLinkPolicy()
782 void BTM_SetDefaultLinkPolicy(uint16_t settings) { in BTM_SetDefaultLinkPolicy() argument
785 BTM_TRACE_DEBUG("BTM_SetDefaultLinkPolicy setting:0x%04x", settings); in BTM_SetDefaultLinkPolicy()
787 if ((settings & HCI_ENABLE_MASTER_SLAVE_SWITCH) && in BTM_SetDefaultLinkPolicy()
789 settings &= ~HCI_ENABLE_MASTER_SLAVE_SWITCH; in BTM_SetDefaultLinkPolicy()
792 settings); in BTM_SetDefaultLinkPolicy()
794 if ((settings & HCI_ENABLE_HOLD_MODE) && in BTM_SetDefaultLinkPolicy()
796 settings &= ~HCI_ENABLE_HOLD_MODE; in BTM_SetDefaultLinkPolicy()
799 settings); in BTM_SetDefaultLinkPolicy()
801 if ((settings & HCI_ENABLE_SNIFF_MODE) && in BTM_SetDefaultLinkPolicy()
803 settings &= ~HCI_ENABLE_SNIFF_MODE; in BTM_SetDefaultLinkPolicy()
806 settings); in BTM_SetDefaultLinkPolicy()
808 if ((settings & HCI_ENABLE_PARK_MODE) && in BTM_SetDefaultLinkPolicy()
810 settings &= ~HCI_ENABLE_PARK_MODE; in BTM_SetDefaultLinkPolicy()
813 settings); in BTM_SetDefaultLinkPolicy()
815 BTM_TRACE_DEBUG("Set DefaultLinkPolicy:0x%04x", settings); in BTM_SetDefaultLinkPolicy()
817 btm_cb.btm_def_link_policy = settings; in BTM_SetDefaultLinkPolicy()
820 btsnd_hcic_write_def_policy_set(settings); in BTM_SetDefaultLinkPolicy()