Lines Matching refs:sr_cmd
48 tGATT_SR_CMD *p_cmd = &p_tcb->sr_cmd; in gatt_sr_enqueue_cmd()
86 return(p_tcb->sr_cmd.op_code == 0); in gatt_sr_cmd_empty()
102 if (p_tcb->sr_cmd.p_rsp_msg) in gatt_dequeue_sr_cmd()
103 GATT_TRACE_ERROR("free p_tcb->sr_cmd.p_rsp_msg = %d", p_tcb->sr_cmd.p_rsp_msg); in gatt_dequeue_sr_cmd()
104 osi_free_and_reset((void **)&p_tcb->sr_cmd.p_rsp_msg); in gatt_dequeue_sr_cmd()
106 while (!fixed_queue_is_empty(p_tcb->sr_cmd.multi_rsp_q)) in gatt_dequeue_sr_cmd()
107 osi_free(fixed_queue_try_dequeue(p_tcb->sr_cmd.multi_rsp_q)); in gatt_dequeue_sr_cmd()
108 fixed_queue_free(p_tcb->sr_cmd.multi_rsp_q, NULL); in gatt_dequeue_sr_cmd()
109 memset( &p_tcb->sr_cmd, 0, sizeof(tGATT_SR_CMD)); in gatt_dequeue_sr_cmd()
267 if (!process_read_multi_rsp (&p_tcb->sr_cmd, status, p_msg, p_tcb->payload_size)) in gatt_sr_process_app_rsp()
278 p_tcb->sr_cmd.status = status; in gatt_sr_process_app_rsp()
283 if (p_tcb->sr_cmd.p_rsp_msg == NULL) in gatt_sr_process_app_rsp()
285 … p_tcb->sr_cmd.p_rsp_msg = attp_build_sr_msg (p_tcb, (UINT8)(op_code + 1), (tGATT_SR_MSG *)p_msg); in gatt_sr_process_app_rsp()
295 if ( (p_tcb->sr_cmd.status == GATT_SUCCESS) && (p_tcb->sr_cmd.p_rsp_msg) ) in gatt_sr_process_app_rsp()
297 ret_code = attp_send_sr_msg (p_tcb, p_tcb->sr_cmd.p_rsp_msg); in gatt_sr_process_app_rsp()
298 p_tcb->sr_cmd.p_rsp_msg = NULL; in gatt_sr_process_app_rsp()
302 ret_code = gatt_send_error_rsp (p_tcb, status, op_code, p_tcb->sr_cmd.handle, FALSE); in gatt_sr_process_app_rsp()
396 p_tcb->sr_cmd.multi_req.num_handles = 0; in gatt_process_read_multi_req()
416 while (ll >= 2 && p_tcb->sr_cmd.multi_req.num_handles < GATT_MAX_READ_MULTI_HANDLES) in gatt_process_read_multi_req()
422 p_tcb->sr_cmd.multi_req.handles[p_tcb->sr_cmd.multi_req.num_handles++] = handle; in gatt_process_read_multi_req()
450 if (p_tcb->sr_cmd.multi_req.num_handles == 0) in gatt_process_read_multi_req()
455 … if ((trans_id = gatt_sr_enqueue_cmd (p_tcb, op_code, p_tcb->sr_cmd.multi_req.handles[0])) != 0) in gatt_process_read_multi_req()
459 for (ll = 0; ll < p_tcb->sr_cmd.multi_req.num_handles; ll ++) { in gatt_process_read_multi_req()
461 handle = p_tcb->sr_cmd.multi_req.handles[ll]; in gatt_process_read_multi_req()