Lines Matching refs:rt
140 UINT8 rt = GATT_INTERNAL_ERROR; in gatt_act_read() local
208 rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, op_code, &msg); in gatt_act_read()
210 if ( op_code == 0 || (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED)) in gatt_act_read()
212 gatt_end_operation(p_clcb, rt, NULL); in gatt_act_read()
228 UINT8 rt = GATT_SUCCESS, op_code = 0; in gatt_act_write() local
238 rt = gatt_send_write_msg(p_tcb, in gatt_act_write()
252 rt = gatt_send_write_msg(p_tcb, in gatt_act_write()
271 rt = GATT_INTERNAL_ERROR; in gatt_act_write()
277 rt = GATT_INTERNAL_ERROR; in gatt_act_write()
279 if ((rt != GATT_SUCCESS && rt != GATT_CMD_STARTED && rt != GATT_CONGESTED) in gatt_act_write()
280 || (rt != GATT_CMD_STARTED && p_clcb->op_subtype == GATT_WRITE_NO_RSP)) in gatt_act_write()
282 if (rt != GATT_SUCCESS) in gatt_act_write()
284 GATT_TRACE_ERROR("gatt_act_write() failed op_code=0x%x rt=%d", op_code, rt); in gatt_act_write()
286 gatt_end_operation(p_clcb, rt, NULL); in gatt_act_write()
300 UINT8 rt ; in gatt_send_queue_write_cancel() local
304 rt = attp_send_cl_msg(p_tcb, p_clcb->clcb_idx, GATT_REQ_EXEC_WRITE, (tGATT_CL_MSG *)&flag); in gatt_send_queue_write_cancel()
306 if (rt != GATT_SUCCESS) in gatt_send_queue_write_cancel()
308 gatt_end_operation(p_clcb, rt, NULL); in gatt_send_queue_write_cancel()
367 UINT8 rt = GATT_SUCCESS; in gatt_send_prepare_write() local
386 rt = gatt_send_write_msg(p_tcb, in gatt_send_prepare_write()
397 if (rt != GATT_SUCCESS && rt != GATT_CMD_STARTED) in gatt_send_prepare_write()
399 gatt_end_operation(p_clcb, rt, NULL); in gatt_send_prepare_write()