Lines Matching defs:cur_state
145 void btm_ble_batchscan_enq_op_q(UINT8 opcode, tBTM_BLE_BATCH_SCAN_STATE cur_state,
149 ble_batchscan_cb.op_q.cur_state[ble_batchscan_cb.op_q.next_idx] = cur_state;
151 BTM_TRACE_DEBUG("btm_ble_batchscan_enq_op_q: subcode:%d, Cur_state:%d, ref_value:%d",
153 ble_batchscan_cb.op_q.cur_state[ble_batchscan_cb.op_q.next_idx],
296 void btm_ble_batchscan_deq_op_q(UINT8 *p_opcode,tBTM_BLE_BATCH_SCAN_STATE *cur_state,
303 *cur_state = (ble_batchscan_cb.op_q.cur_state[ble_batchscan_cb.op_q.pending_idx]);
343 btm_ble_batchscan_enq_op_q(BTM_BLE_BATCH_SCAN_READ_RESULTS, ble_batchscan_cb.cur_state,
370 tBTM_BLE_BATCH_SCAN_STATE cur_state = 0;
377 btm_ble_batchscan_deq_op_q(&opcode, &cur_state, &cb_evt, &ref_value);
384 btm_ble_batchscan_deq_op_q(&opcode, &cur_state, &cb_evt, &ref_value);
387 opcode, cur_state, cb_evt, ref_value);
399 if (BTM_SUCCESS == status && BTM_BLE_SCAN_ENABLE_CALLED == cur_state)
400 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_ENABLED_STATE;
402 if (BTM_BLE_SCAN_ENABLE_CALLED == cur_state)
405 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_INVALID_STATE;
409 status, ble_batchscan_cb.cur_state, cb_evt);
429 if (BTM_BLE_SCAN_DISABLE_CALLED == cur_state)
433 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_DISABLED_STATE;
438 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_INVALID_STATE;
627 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_ENABLE_CALLED;
629 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_DISABLE_CALLED;
661 ble_batchscan_cb.cur_state, ref_value, batch_scan_full_max, batch_scan_trunc_max,
688 if (BTM_BLE_SCAN_INVALID_STATE == ble_batchscan_cb.cur_state ||
689 BTM_BLE_SCAN_DISABLED_STATE == ble_batchscan_cb.cur_state ||
690 BTM_BLE_SCAN_DISABLE_CALLED == ble_batchscan_cb.cur_state)
696 ble_batchscan_cb.cur_state = BTM_BLE_SCAN_ENABLE_CALLED;
706 btm_ble_batchscan_enq_op_q(BTM_BLE_BATCH_SCAN_SET_STORAGE_PARAM, ble_batchscan_cb.cur_state,
749 scan_window, discard_rule, ble_batchscan_cb.cur_state);
760 if (BTM_BLE_SCAN_INVALID_STATE == ble_batchscan_cb.cur_state ||
761 BTM_BLE_SCAN_DISABLED_STATE == ble_batchscan_cb.cur_state ||
762 BTM_BLE_SCAN_DISABLE_CALLED == ble_batchscan_cb.cur_state)
783 btm_ble_batchscan_enq_op_q(BTM_BLE_BATCH_SCAN_SET_PARAMS, ble_batchscan_cb.cur_state,
891 ble_batchscan_cb.cur_state);