Lines Matching refs:cur_state

141 void btm_ble_batchscan_enq_op_q(UINT8 opcode, tBTM_BLE_BATCH_SCAN_STATE cur_state,  in btm_ble_batchscan_enq_op_q()  argument
145 ble_batchscan_cb.op_q.cur_state[ble_batchscan_cb.op_q.next_idx] = cur_state; in btm_ble_batchscan_enq_op_q()
149 ble_batchscan_cb.op_q.cur_state[ble_batchscan_cb.op_q.next_idx], in btm_ble_batchscan_enq_op_q()
292 void btm_ble_batchscan_deq_op_q(UINT8 *p_opcode,tBTM_BLE_BATCH_SCAN_STATE *cur_state, in btm_ble_batchscan_deq_op_q() argument
299 *cur_state = (ble_batchscan_cb.op_q.cur_state[ble_batchscan_cb.op_q.pending_idx]); in btm_ble_batchscan_deq_op_q()
339 btm_ble_batchscan_enq_op_q(BTM_BLE_BATCH_SCAN_READ_RESULTS, ble_batchscan_cb.cur_state, in btm_ble_read_batchscan_reports()
366 tBTM_BLE_BATCH_SCAN_STATE cur_state = 0; in btm_ble_batchscan_vsc_cmpl_cback() local
373 btm_ble_batchscan_deq_op_q(&opcode, &cur_state, &cb_evt, &ref_value); in btm_ble_batchscan_vsc_cmpl_cback()
380 btm_ble_batchscan_deq_op_q(&opcode, &cur_state, &cb_evt, &ref_value); in btm_ble_batchscan_vsc_cmpl_cback()
383 opcode, cur_state, cb_evt, ref_value); in btm_ble_batchscan_vsc_cmpl_cback()
395 if (BTM_SUCCESS == status && BTM_BLE_SCAN_ENABLE_CALLED == cur_state) in btm_ble_batchscan_vsc_cmpl_cback()
396 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_ENABLED_STATE; in btm_ble_batchscan_vsc_cmpl_cback()
398 if (BTM_BLE_SCAN_ENABLE_CALLED == cur_state) in btm_ble_batchscan_vsc_cmpl_cback()
401 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_INVALID_STATE; in btm_ble_batchscan_vsc_cmpl_cback()
405 status, ble_batchscan_cb.cur_state, cb_evt); in btm_ble_batchscan_vsc_cmpl_cback()
425 if (BTM_BLE_SCAN_DISABLE_CALLED == cur_state) in btm_ble_batchscan_vsc_cmpl_cback()
429 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_DISABLED_STATE; in btm_ble_batchscan_vsc_cmpl_cback()
434 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_INVALID_STATE; in btm_ble_batchscan_vsc_cmpl_cback()
623 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_ENABLE_CALLED; in btm_ble_enable_disable_batchscan()
625 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_DISABLE_CALLED; in btm_ble_enable_disable_batchscan()
657 ble_batchscan_cb.cur_state, ref_value, batch_scan_full_max, batch_scan_trunc_max, in BTM_BleSetStorageConfig()
684 if (BTM_BLE_SCAN_INVALID_STATE == ble_batchscan_cb.cur_state || in BTM_BleSetStorageConfig()
685 BTM_BLE_SCAN_DISABLED_STATE == ble_batchscan_cb.cur_state || in BTM_BleSetStorageConfig()
686 BTM_BLE_SCAN_DISABLE_CALLED == ble_batchscan_cb.cur_state) in BTM_BleSetStorageConfig()
692 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_ENABLE_CALLED; in BTM_BleSetStorageConfig()
702 btm_ble_batchscan_enq_op_q(BTM_BLE_BATCH_SCAN_SET_STORAGE_PARAM, ble_batchscan_cb.cur_state, in BTM_BleSetStorageConfig()
745 scan_window, discard_rule, ble_batchscan_cb.cur_state); in BTM_BleEnableBatchScan()
756 if (BTM_BLE_SCAN_INVALID_STATE == ble_batchscan_cb.cur_state || in BTM_BleEnableBatchScan()
757 BTM_BLE_SCAN_DISABLED_STATE == ble_batchscan_cb.cur_state || in BTM_BleEnableBatchScan()
758 BTM_BLE_SCAN_DISABLE_CALLED == ble_batchscan_cb.cur_state) in BTM_BleEnableBatchScan()
779 btm_ble_batchscan_enq_op_q(BTM_BLE_BATCH_SCAN_SET_PARAMS, ble_batchscan_cb.cur_state, in BTM_BleEnableBatchScan()
887 ble_batchscan_cb.cur_state); in BTM_BleReadScanReports()