Lines Matching refs:sr_cmd
45 tGATT_SR_CMD *p_cmd = &p_tcb->sr_cmd;
83 return(p_tcb->sr_cmd.op_code == 0);
99 if (p_tcb->sr_cmd.p_rsp_msg)
101 GATT_TRACE_ERROR1("free p_tcb->sr_cmd.p_rsp_msg = %d", p_tcb->sr_cmd.p_rsp_msg);
103 GKI_freebuf (p_tcb->sr_cmd.p_rsp_msg);
106 while (p_tcb->sr_cmd.multi_rsp_q.p_first)
107 GKI_freebuf (GKI_dequeue (&p_tcb->sr_cmd.multi_rsp_q));
108 memset( &p_tcb->sr_cmd, 0, sizeof(tGATT_SR_CMD));
271 if (!process_read_multi_rsp (&p_tcb->sr_cmd, status, p_msg, p_tcb->payload_size))
282 p_tcb->sr_cmd.status = status;
287 if (p_tcb->sr_cmd.p_rsp_msg == NULL)
289 p_tcb->sr_cmd.p_rsp_msg = attp_build_sr_msg (p_tcb, (UINT8)(op_code + 1), (tGATT_SR_MSG *)p_msg);
299 if ( (p_tcb->sr_cmd.status == GATT_SUCCESS) && (p_tcb->sr_cmd.p_rsp_msg) )
301 ret_code = attp_send_sr_msg (p_tcb, p_tcb->sr_cmd.p_rsp_msg);
302 p_tcb->sr_cmd.p_rsp_msg = NULL;
306 ret_code = gatt_send_error_rsp (p_tcb, status, op_code, p_tcb->sr_cmd.handle, FALSE);
405 p_tcb->sr_cmd.multi_req.num_handles = 0;
425 while (ll >= 2 && p_tcb->sr_cmd.multi_req.num_handles < GATT_MAX_READ_MULTI_HANDLES)
431 p_tcb->sr_cmd.multi_req.handles[p_tcb->sr_cmd.multi_req.num_handles++] = handle;
459 if (p_tcb->sr_cmd.multi_req.num_handles == 0)
464 if ((trans_id = gatt_sr_enqueue_cmd (p_tcb, op_code, p_tcb->sr_cmd.multi_req.handles[0])) != 0)
468 for (ll = 0; ll < p_tcb->sr_cmd.multi_req.num_handles; ll ++)
474 handle = p_tcb->sr_cmd.multi_req.handles[ll];