Lines Matching refs:reason
622 uint8_t reason = in gatts_process_primary_service_req() local
624 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req()
625 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
655 reason = gatt_build_primary_service_rsp(p_msg, tcb, op_code, s_hdl, e_hdl, in gatts_process_primary_service_req()
657 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req()
659 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
679 uint8_t reason = read_handles(len, p_data, s_hdl, e_hdl); in gatts_process_find_info() local
680 if (reason != GATT_SUCCESS) { in gatts_process_find_info()
681 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false); in gatts_process_find_info()
689 reason = GATT_NOT_FOUND; in gatts_process_find_info()
699 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl); in gatts_process_find_info()
700 if (reason == GATT_NO_RESOURCES) { in gatts_process_find_info()
701 reason = GATT_SUCCESS; in gatts_process_find_info()
711 if (reason != GATT_SUCCESS) { in gatts_process_find_info()
713 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false); in gatts_process_find_info()
795 tGATT_STATUS reason = in gatts_process_read_by_type_req() local
810 if (reason != GATT_SUCCESS) { in gatts_process_read_by_type_req()
811 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false); in gatts_process_read_by_type_req()
824 reason = GATT_NOT_FOUND; in gatts_process_read_by_type_req()
834 reason = ret; in gatts_process_read_by_type_req()
835 if (ret == GATT_NO_RESOURCES) reason = GATT_SUCCESS; in gatts_process_read_by_type_req()
847 if (reason != GATT_SUCCESS) { in gatts_process_read_by_type_req()
852 if (reason != GATT_PENDING && reason != GATT_BUSY) in gatts_process_read_by_type_req()
853 gatt_send_error_rsp(tcb, reason, op_code, s_hdl, false); in gatts_process_read_by_type_req()
980 tGATT_STATUS reason = gatts_read_attr_value_by_handle( in gatts_process_read_req() local
985 if (reason != GATT_SUCCESS) { in gatts_process_read_req()
990 if (reason != GATT_PENDING && reason != GATT_BUSY) in gatts_process_read_req()
991 gatt_send_error_rsp(tcb, reason, op_code, handle, false); in gatts_process_read_req()