Lines Matching refs:flag

165 static void btm_ble_update_adv_flag(uint8_t flag);
937 uint8_t flag = 0, old_flag = 0; in btm_ble_set_adv_flag() local
940 if (p_adv_data->p_flags != NULL) flag = old_flag = *(p_adv_data->p_flags); in btm_ble_set_adv_flag()
942 btm_ble_update_dmt_flag_bits(&flag, connect_mode, disc_mode); in btm_ble_set_adv_flag()
947 flag &= ~BTM_BLE_GEN_DISC_FLAG; in btm_ble_set_adv_flag()
948 flag |= BTM_BLE_LIMIT_DISC_FLAG; in btm_ble_set_adv_flag()
950 flag |= BTM_BLE_GEN_DISC_FLAG; in btm_ble_set_adv_flag()
951 flag &= ~BTM_BLE_LIMIT_DISC_FLAG; in btm_ble_set_adv_flag()
954 flag &= ~(BTM_BLE_LIMIT_DISC_FLAG | BTM_BLE_GEN_DISC_FLAG); in btm_ble_set_adv_flag()
957 if (flag != old_flag) { in btm_ble_set_adv_flag()
958 btm_ble_update_adv_flag(flag); in btm_ble_set_adv_flag()
1340 static void btm_ble_update_adv_flag(uint8_t flag) { in btm_ble_update_adv_flag() argument
1344 BTM_TRACE_DEBUG("btm_ble_update_adv_flag new=0x%x", flag); in btm_ble_update_adv_flag()
1348 *p_adv_data->p_flags = flag; in btm_ble_update_adv_flag()
1362 *p++ = flag; in btm_ble_update_adv_flag()
1377 uint8_t flag = 0, rt = 0; in btm_ble_is_discoverable() local
1396 flag = *p_flag; in btm_ble_is_discoverable()
1399 (flag & (BTM_BLE_LIMIT_DISC_FLAG | BTM_BLE_GEN_DISC_FLAG)) != 0) { in btm_ble_is_discoverable()
1405 (flag & BTM_BLE_LIMIT_DISC_FLAG) != 0) { in btm_ble_is_discoverable()
1581 if (p_flag != NULL && len != 0) p_cur->flag = *p_flag; in btm_ble_update_inq_result()
1617 if ((p_cur->flag & BTM_BLE_BREDR_NOT_SPT) == 0 && in btm_ble_update_inq_result()