Lines Matching refs:reason
621 uint8_t reason =
623 if (reason != GATT_SUCCESS) {
624 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false);
654 reason = gatt_build_primary_service_rsp(p_msg, tcb, op_code, s_hdl, e_hdl,
656 if (reason != GATT_SUCCESS) {
658 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false);
678 uint8_t reason = read_handles(len, p_data, s_hdl, e_hdl);
679 if (reason != GATT_SUCCESS) {
680 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false);
688 reason = GATT_NOT_FOUND;
698 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl);
699 if (reason == GATT_NO_RESOURCES) {
700 reason = GATT_SUCCESS;
710 if (reason != GATT_SUCCESS) {
712 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false);
794 tGATT_STATUS reason =
809 if (reason != GATT_SUCCESS) {
810 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false);
823 reason = GATT_NOT_FOUND;
833 reason = ret;
834 if (ret == GATT_NO_RESOURCES) reason = GATT_SUCCESS;
846 if (reason != GATT_SUCCESS) {
851 if (reason != GATT_PENDING && reason != GATT_BUSY)
852 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false);
979 tGATT_STATUS reason = gatts_read_attr_value_by_handle(
984 if (reason != GATT_SUCCESS) {
989 if (reason != GATT_PENDING && reason != GATT_BUSY)
990 gatt_send_error_rsp(tcb, reason, op_code, handle, false);