Home
last modified time | relevance | path

Searched refs:sr_cmd (Results 1 – 5 of 5) sorted by relevance

/system/bt/stack/gatt/
Dgatt_sr.cc51 tGATT_SR_CMD* p_cmd = &tcb.sr_cmd; in gatt_sr_enqueue_cmd()
82 bool gatt_sr_cmd_empty(tGATT_TCB& tcb) { return (tcb.sr_cmd.op_code == 0); } in gatt_sr_cmd_empty()
96 if (tcb.sr_cmd.p_rsp_msg) in gatt_dequeue_sr_cmd()
97 LOG(ERROR) << "free tcb.sr_cmd.p_rsp_msg = " << tcb.sr_cmd.p_rsp_msg; in gatt_dequeue_sr_cmd()
98 osi_free_and_reset((void**)&tcb.sr_cmd.p_rsp_msg); in gatt_dequeue_sr_cmd()
100 while (!fixed_queue_is_empty(tcb.sr_cmd.multi_rsp_q)) in gatt_dequeue_sr_cmd()
101 osi_free(fixed_queue_try_dequeue(tcb.sr_cmd.multi_rsp_q)); in gatt_dequeue_sr_cmd()
102 fixed_queue_free(tcb.sr_cmd.multi_rsp_q, NULL); in gatt_dequeue_sr_cmd()
103 memset(&tcb.sr_cmd, 0, sizeof(tGATT_SR_CMD)); in gatt_dequeue_sr_cmd()
241 if (!process_read_multi_rsp(&tcb.sr_cmd, status, p_msg, tcb.payload_size)) in gatt_sr_process_app_rsp()
[all …]
Dgatt_utils.cc985 tcb.sr_cmd.cback_cnt[i] = 1; in gatt_sr_copy_prep_cnt_to_cback_cnt()
1001 if (tcb.sr_cmd.cback_cnt[i]) { in gatt_sr_is_cback_cnt_zero()
1037 tcb.sr_cmd.cback_cnt[i] = 0; in gatt_sr_reset_cback_cnt()
1073 tcb.sr_cmd.cback_cnt[idx]++; in gatt_sr_update_cback_cnt()
1075 if (tcb.sr_cmd.cback_cnt[idx]) { in gatt_sr_update_cback_cnt()
1076 tcb.sr_cmd.cback_cnt[idx]--; in gatt_sr_update_cback_cnt()
1272 fixed_queue_free(p_tcb->sr_cmd.multi_rsp_q, NULL); in gatt_cleanup_upon_disc()
1273 p_tcb->sr_cmd.multi_rsp_q = NULL; in gatt_cleanup_upon_disc()
Dgatt_api.cc535 if (p_tcb->sr_cmd.trans_id != trans_id) { in GATTS_SendRsp()
537 << " waiting for op_code=" << loghex(p_tcb->sr_cmd.op_code); in GATTS_SendRsp()
542 p_tcb->sr_cmd.op_code, status, p_msg); in GATTS_SendRsp()
Dgatt_main.cc175 fixed_queue_free(gatt_cb.tcb[i].sr_cmd.multi_rsp_q, NULL); in gatt_free()
176 gatt_cb.tcb[i].sr_cmd.multi_rsp_q = NULL; in gatt_free()
Dgatt_int.h283 tGATT_SR_CMD sr_cmd; member