Lines Matching refs:p_cmd
51 tGATT_SR_CMD* p_cmd = &tcb.sr_cmd; in gatt_sr_enqueue_cmd() local
54 if ((p_cmd->op_code == 0) || in gatt_sr_enqueue_cmd()
61 p_cmd->trans_id = ++tcb.trans_id; in gatt_sr_enqueue_cmd()
62 p_cmd->op_code = op_code; in gatt_sr_enqueue_cmd()
63 p_cmd->handle = handle; in gatt_sr_enqueue_cmd()
64 p_cmd->status = GATT_NOT_FOUND; in gatt_sr_enqueue_cmd()
66 trans_id = p_cmd->trans_id; in gatt_sr_enqueue_cmd()
115 static bool process_read_multi_rsp(tGATT_SR_CMD* p_cmd, tGATT_STATUS status, in process_read_multi_rsp() argument
123 if (p_cmd->multi_rsp_q == NULL) in process_read_multi_rsp()
124 p_cmd->multi_rsp_q = fixed_queue_new(SIZE_MAX); in process_read_multi_rsp()
129 fixed_queue_enqueue(p_cmd->multi_rsp_q, p_buf); in process_read_multi_rsp()
131 p_cmd->status = status; in process_read_multi_rsp()
133 VLOG(1) << "Multi read count=" << fixed_queue_length(p_cmd->multi_rsp_q) in process_read_multi_rsp()
134 << " num_hdls=" << p_cmd->multi_req.num_handles; in process_read_multi_rsp()
136 if (fixed_queue_length(p_cmd->multi_rsp_q) == in process_read_multi_rsp()
137 p_cmd->multi_req.num_handles) { in process_read_multi_rsp()
151 if (!fixed_queue_is_empty(p_cmd->multi_rsp_q)) in process_read_multi_rsp()
152 list = fixed_queue_get_list(p_cmd->multi_rsp_q); in process_read_multi_rsp()
153 for (ii = 0; ii < p_cmd->multi_req.num_handles; ii++) { in process_read_multi_rsp()
178 if (p_rsp->attr_value.handle == p_cmd->multi_req.handles[ii]) { in process_read_multi_rsp()
183 p_cmd->status = GATT_NOT_FOUND; in process_read_multi_rsp()
190 p_cmd->status = GATT_NOT_FOUND; in process_read_multi_rsp()
199 p_cmd->status = GATT_NOT_FOUND; in process_read_multi_rsp()
202 } else if (p_cmd->p_rsp_msg != NULL) { in process_read_multi_rsp()
205 p_cmd->p_rsp_msg = p_buf; in process_read_multi_rsp()