Lines Matching full:reason
697 tGATT_STATUS reason = GATT_SUCCESS;
711 reason = GATT_INVALID_HANDLE;
727 reason = GATT_INVALID_PDU;
733 reason = GATT_INVALID_PDU;
737 reason = GATT_INVALID_PDU;
744 return reason;
759 UINT8 reason = GATT_INVALID_PDU;
765 reason = gatts_validate_packet_format(op_code, &len, &p_data, &uuid, &s_hdl, &e_hdl);
767 if (reason == GATT_SUCCESS)
774 reason = GATT_INVALID_PDU;
777 if (reason == GATT_SUCCESS)
782 reason = GATT_NO_RESOURCES;
787 reason = gatt_build_primary_service_rsp (p_msg, p_tcb, op_code, s_hdl, e_hdl, p_data, value);
795 reason = GATT_UNSUPPORT_GRP_TYPE;
801 reason = GATT_NOT_FOUND;
807 if (reason != GATT_SUCCESS)
810 gatt_send_error_rsp (p_tcb, reason, op_code, s_hdl, FALSE);
829 UINT8 reason = GATT_INVALID_PDU, *p;
836 reason = gatts_validate_packet_format(op_code, &len, &p_data, NULL, &s_hdl, &e_hdl);
838 if (reason == GATT_SUCCESS)
844 reason = GATT_NO_RESOURCES;
848 reason = GATT_NOT_FOUND;
867 reason = gatt_build_find_info_rsp(p_rcb, p_msg, &buf_len, s_hdl, e_hdl);
868 if (reason == GATT_NO_RESOURCES)
870 reason = GATT_SUCCESS;
882 if (reason != GATT_SUCCESS)
885 gatt_send_error_rsp (p_tcb, reason, op_code, s_hdl, FALSE);
974 tGATT_STATUS reason, ret;
980 reason = gatts_validate_packet_format(op_code, &len, &p_data, &uuid, &s_hdl, &e_hdl);
993 if (reason == GATT_SUCCESS)
999 reason = GATT_NO_RESOURCES;
1011 reason = GATT_NOT_FOUND;
1042 reason = ret;
1045 reason = GATT_SUCCESS;
1059 if (reason != GATT_SUCCESS)
1064 if (reason != GATT_PENDING && reason != GATT_BUSY)
1065 gatt_send_error_rsp (p_tcb, reason, op_code, s_hdl, FALSE);
1175 tGATT_STATUS reason;
1184 reason = GATT_NO_RESOURCES;
1202 reason = gatts_read_attr_value_by_handle(p_tcb,
1217 if (reason != GATT_SUCCESS)
1222 if (reason != GATT_PENDING && reason != GATT_BUSY)
1223 gatt_send_error_rsp (p_tcb, reason, op_code, handle, FALSE);