Lines Matching refs:reason
694 tGATT_STATUS reason = GATT_SUCCESS;
708 reason = GATT_INVALID_HANDLE;
724 reason = GATT_INVALID_PDU;
730 reason = GATT_INVALID_PDU;
739 return reason;
754 UINT8 reason = GATT_INVALID_PDU;
760 reason = gatts_validate_packet_format(op_code, &len, &p_data, &uuid, &s_hdl, &e_hdl);
762 if (reason == GATT_SUCCESS)
769 reason = GATT_INVALID_PDU;
772 if (reason == GATT_SUCCESS)
777 reason = GATT_NO_RESOURCES;
782 reason = gatt_build_primary_service_rsp (p_msg, p_tcb, op_code, s_hdl, e_hdl, p_data, value);
790 reason = GATT_UNSUPPORT_GRP_TYPE;
796 reason = GATT_NOT_FOUND;
802 if (reason != GATT_SUCCESS)
805 gatt_send_error_rsp (p_tcb, reason, op_code, s_hdl, FALSE);
824 UINT8 reason = GATT_INVALID_PDU, *p;
831 reason = gatts_validate_packet_format(op_code, &len, &p_data, NULL, &s_hdl, &e_hdl);
833 if (reason == GATT_SUCCESS)
839 reason = GATT_NO_RESOURCES;
843 reason = GATT_NOT_FOUND;
862 reason = gatt_build_find_info_rsp(p_rcb, p_msg, &buf_len, s_hdl, e_hdl);
863 if (reason == GATT_NO_RESOURCES)
865 reason = GATT_SUCCESS;
877 if (reason != GATT_SUCCESS)
880 gatt_send_error_rsp (p_tcb, reason, op_code, s_hdl, FALSE);
963 tGATT_STATUS reason, ret;
969 reason = gatts_validate_packet_format(op_code, &len, &p_data, &uuid, &s_hdl, &e_hdl);
982 if (reason == GATT_SUCCESS)
988 reason = GATT_NO_RESOURCES;
1000 reason = GATT_NOT_FOUND;
1031 reason = ret;
1034 reason = GATT_SUCCESS;
1048 if (reason != GATT_SUCCESS)
1053 if (reason != GATT_PENDING && reason != GATT_BUSY)
1054 gatt_send_error_rsp (p_tcb, reason, op_code, s_hdl, FALSE);
1164 tGATT_STATUS reason;
1173 reason = GATT_NO_RESOURCES;
1191 reason = gatts_read_attr_value_by_handle(p_tcb,
1206 if (reason != GATT_SUCCESS)
1211 if (reason != GATT_PENDING && reason != GATT_BUSY)
1212 gatt_send_error_rsp (p_tcb, reason, op_code, handle, FALSE);