Home | History | Annotate | Download | only in gatt

Lines Matching defs:p_cmd

48     tGATT_SR_CMD   *p_cmd = &p_tcb->sr_cmd;
51 if ( (p_cmd->op_code == 0) ||
63 p_cmd->trans_id = ++p_tcb->trans_id;
64 p_cmd->op_code = op_code;
65 p_cmd->handle = handle;
66 p_cmd->status = GATT_NOT_FOUND;
68 trans_id = p_cmd->trans_id;
121 static BOOLEAN process_read_multi_rsp (tGATT_SR_CMD *p_cmd, tGATT_STATUS status,
130 if (p_cmd->multi_rsp_q == NULL)
131 p_cmd->multi_rsp_q = fixed_queue_new(SIZE_MAX);
136 fixed_queue_enqueue(p_cmd->multi_rsp_q, p_buf);
138 p_cmd->status = status;
142 fixed_queue_length(p_cmd->multi_rsp_q),
143 p_cmd->multi_req.num_handles);
145 if (fixed_queue_length(p_cmd->multi_rsp_q) == p_cmd->multi_req.num_handles)
159 if (! fixed_queue_is_empty(p_cmd->multi_rsp_q))
160 list = fixed_queue_get_list(p_cmd->multi_rsp_q);
161 for (ii = 0; ii < p_cmd->multi_req.num_handles; ii++)
191 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii])
200 p_cmd->status = GATT_NOT_FOUND;
210 p_cmd->status = GATT_NOT_FOUND;
221 p_cmd->status = GATT_NOT_FOUND;
225 else if (p_cmd->p_rsp_msg != NULL)
231 p_cmd->p_rsp_msg = p_buf;