Lines Matching refs:reason
687 uint8_t reason = in gatts_process_primary_service_req() local
689 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req()
690 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
723 reason = gatt_build_primary_service_rsp(p_msg, tcb, cid, op_code, s_hdl, in gatts_process_primary_service_req()
725 if (reason != GATT_SUCCESS) { in gatts_process_primary_service_req()
727 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_primary_service_req()
748 uint8_t reason = read_handles(len, p_data, s_hdl, e_hdl); in gatts_process_find_info() local
749 if (reason != GATT_SUCCESS) { in gatts_process_find_info()
750 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_find_info()
759 reason = GATT_NOT_FOUND; in gatts_process_find_info()
769 reason = gatt_build_find_info_rsp(el, p_msg, buf_len, s_hdl, e_hdl); in gatts_process_find_info()
770 if (reason == GATT_NO_RESOURCES) { in gatts_process_find_info()
771 reason = GATT_SUCCESS; in gatts_process_find_info()
781 if (reason != GATT_SUCCESS) { in gatts_process_find_info()
783 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_find_info()
867 tGATT_STATUS reason = in gatts_process_read_by_type_req() local
882 if (reason != GATT_SUCCESS) { in gatts_process_read_by_type_req()
883 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_read_by_type_req()
898 reason = GATT_NOT_FOUND; in gatts_process_read_by_type_req()
909 reason = ret; in gatts_process_read_by_type_req()
910 if (ret == GATT_NO_RESOURCES) reason = GATT_SUCCESS; in gatts_process_read_by_type_req()
922 if (reason != GATT_SUCCESS) { in gatts_process_read_by_type_req()
927 if (reason != GATT_PENDING && reason != GATT_BUSY) in gatts_process_read_by_type_req()
928 gatt_send_error_rsp(tcb, cid, reason, op_code, s_hdl, false); in gatts_process_read_by_type_req()
1061 tGATT_STATUS reason = gatts_read_attr_value_by_handle( in gatts_process_read_req() local
1066 if (reason != GATT_SUCCESS) { in gatts_process_read_req()
1071 if (reason != GATT_PENDING && reason != GATT_BUSY) in gatts_process_read_req()
1072 gatt_send_error_rsp(tcb, cid, reason, op_code, handle, false); in gatts_process_read_req()
1280 tGATT_STATUS reason = gatts_validate_packet_format(op_code, len, p_data, in gatts_process_db_out_of_sync() local
1282 if (reason == GATT_SUCCESS && in gatts_process_db_out_of_sync()