Home
last modified time | relevance | path

Searched refs:error_code (Results 1 – 25 of 82) sorted by relevance

1234

/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ags/
Dags.c209 sdk_err_t error_code; in ags_init() local
212 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in ags_init()
213 if (error_code < 0) { in ags_init()
214 return error_code; in ags_init()
225 error_code = ble_gatts_srvc_db_create(&gatts_db); in ags_init()
226 if (SDK_SUCCESS == error_code) { in ags_init()
230 return error_code; in ags_init()
408 sdk_err_t error_code; in ags_echo_tx_val_decode() local
493 error_code = ags_stream_ack_send(conn_idx, stream_env_id, ack_flag); in ags_echo_tx_val_decode()
494 APP_ERROR_CHECK(error_code); in ags_echo_tx_val_decode()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/escs/
Descs.c153 sdk_err_t error_code = SDK_SUCCESS; in escs_init() local
159 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in escs_init()
160 if (error_code < 0) { in escs_init()
161 return error_code; in escs_init()
171 error_code = ble_gatts_srvc_db_create (&gatts_db); in escs_init()
172 ERROR_CODE_PRINT (error_code, BLE_SUCCESS); in escs_init()
174 if (SDK_SUCCESS == error_code) { in escs_init()
178 return error_code; in escs_init()
195 sdk_err_t error_code; in escs_read_att_cb() local
211 error_code = ble_gatts_read_cfm (conn_idx, &cfm); in escs_read_att_cb()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/pcs/
Dpcs.c190 sdk_err_t error_code; in pcs_init() local
193 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in pcs_init()
194 if (error_code < 0) { in pcs_init()
195 return error_code; in pcs_init()
206 error_code = ble_gatts_srvc_db_create(&gatts_db); in pcs_init()
207 if (SDK_SUCCESS == error_code) { in pcs_init()
211 return error_code; in pcs_init()
395 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in pcs_tx_data_send() local
408 error_code = ble_gatts_noti_ind(conn_idx, &send_rsp); in pcs_tx_data_send()
411 return error_code; in pcs_tx_data_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ths/
Dths.c220 sdk_err_t error_code; in ths_init() local
223 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in ths_init()
224 if (error_code < 0) { in ths_init()
225 return error_code; in ths_init()
236 error_code = ble_gatts_srvc_db_create(&gatts_db); in ths_init()
237 if (SDK_SUCCESS == error_code) { in ths_init()
241 return error_code; in ths_init()
404 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in ths_data_send() local
416 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd); in ths_data_send()
420 return error_code; in ths_data_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bcs/
Dbcs.c189 sdk_err_t error_code; in bcs_init() local
192 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in bcs_init()
193 if (error_code < 0) { in bcs_init()
194 return error_code; in bcs_init()
205 error_code = ble_gatts_srvc_db_create(&gatts_db); in bcs_init()
206 if (SDK_SUCCESS == error_code) { in bcs_init()
210 return error_code; in bcs_init()
478 sdk_err_t error_code; in bcs_indicate_meas_value_chunk() local
483 error_code = memset_s(s_meas_packets.meas_packets, sizeof(s_meas_packets.meas_packets), in bcs_indicate_meas_value_chunk()
485 if (error_code < 0) { in bcs_indicate_meas_value_chunk()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/gus/
Dgus.c204 sdk_err_t error_code; in gus_init() local
207 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in gus_init()
208 if (error_code < 0) { in gus_init()
209 return error_code; in gus_init()
220 error_code = ble_gatts_srvc_db_create(&gatts_db); in gus_init()
221 if (SDK_SUCCESS == error_code) { in gus_init()
225 return error_code; in gus_init()
402 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in gus_tx_data_send() local
415 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd); in gus_tx_data_send()
418 return error_code; in gus_tx_data_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/pass/
Dpass.c184 sdk_err_t error_code; in pass_init() local
187 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in pass_init()
188 if (error_code < 0) { in pass_init()
189 return error_code; in pass_init()
200 error_code = ble_gatts_srvc_db_create(&gatts_db); in pass_init()
201 if (SDK_SUCCESS == error_code) { in pass_init()
205 return error_code; in pass_init()
397 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in pass_alert_status_send() local
407 error_code = ble_gatts_noti_ind(conn_idx, &alert_status_ntf); in pass_alert_status_send()
410 return error_code; in pass_alert_status_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/lns/
Dlns.c191 sdk_err_t error_code; in lns_init() local
194 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in lns_init()
195 if (error_code < 0) { in lns_init()
196 return error_code; in lns_init()
207 error_code = ble_gatts_srvc_db_create(&gatts_db); in lns_init()
208 if (SDK_SUCCESS == error_code) { in lns_init()
212 return error_code; in lns_init()
451 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in lns_log_info_chunk() local
474 error_code = ble_gatts_noti_ind(conn_idx, &data_ntf); in lns_log_info_chunk()
477 if (SDK_SUCCESS == error_code) { in lns_log_info_chunk()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/ndcs/
Dndcs.c142 sdk_err_t error_code; in ndcs_init() local
145 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in ndcs_init()
146 if (error_code < 0) { in ndcs_init()
147 return error_code; in ndcs_init()
158 error_code = ble_gatts_srvc_db_create(&gatts_db); in ndcs_init()
159 if (SDK_SUCCESS == error_code) { in ndcs_init()
163 return error_code; in ndcs_init()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bas/
Dbas.c156 sdk_err_t error_code = SDK_SUCCESS; in bas_init() local
160 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in bas_init()
161 if (error_code < 0) { in bas_init()
162 return error_code; in bas_init()
176 error_code = ble_gatts_srvc_db_create(&gatts_db); in bas_init()
177 if (SDK_SUCCESS == error_code) { in bas_init()
180 return error_code; in bas_init()
184 return error_code; in bas_init()
350 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in bas_batt_lvl_update() local
367 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd); in bas_batt_lvl_update()
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/
Dmali_kernel_common.h50 #define MALI_ERROR(error_code) return (error_code) argument
70 #define MALI_CHECK(condition, error_code) do { if(!(condition)) MALI_ERROR(error_code); } while(0) argument
91 #define MALI_CHECK_NON_NULL(pointer, error_code) MALI_CHECK( ((pointer)!=NULL), (error_code) ) argument
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/
Dmali_kernel_common.h60 #define MALI_ERROR(error_code) return (error_code) argument
80 #define MALI_CHECK(condition, error_code) … argument
83 …MALI_ERROR(error_code); …
106 #define MALI_CHECK_NON_NULL(pointer, error_code) MALI_CHECK(((pointer) != NULL), (error_code)) argument
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/mlmr/
Dmlmr.c213 sdk_err_t error_code;
216 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db));
217 if (error_code < 0) {
229 error_code = ble_gatts_srvc_db_create(&gatts_db);
230 if (SDK_SUCCESS == error_code) {
234 return error_code;
438 sdk_err_t error_code = SDK_ERR_NTF_DISABLED;
450 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd);
458 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd);
463 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd);
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/fast_otas/
Dfast_otas.c182 sdk_err_t error_code = SDK_SUCCESS; in fast_otas_init() local
185 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in fast_otas_init()
186 if (error_code < 0) { in fast_otas_init()
187 return error_code; in fast_otas_init()
198 error_code = ble_gatts_srvc_db_create(&gatts_db); in fast_otas_init()
199 if (SDK_SUCCESS == error_code) { in fast_otas_init()
203 return error_code; in fast_otas_init()
375 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in fast_otas_notify_cmd_data() local
387 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd); in fast_otas_notify_cmd_data()
389 return error_code; in fast_otas_notify_cmd_data()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/otas/
Dotas.c197 sdk_err_t error_code = SDK_SUCCESS;
200 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db));
201 if (error_code < 0) {
202 return error_code;
213 error_code = ble_gatts_srvc_db_create(&gatts_db);
214 if (SDK_SUCCESS == error_code) {
218 return error_code;
387 sdk_err_t error_code = SDK_ERR_NTF_DISABLED;
398 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd);
400 return error_code;
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/wechat/
Dwechat.c183 sdk_err_t error_code; in wechat_init() local
186 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in wechat_init()
187 if (error_code < 0) { in wechat_init()
188 return error_code; in wechat_init()
199 error_code = ble_gatts_srvc_db_create(&gatts_db); in wechat_init()
200 if (SDK_SUCCESS == error_code) { in wechat_init()
204 return error_code; in wechat_init()
521 sdk_err_t error_code; in wechat_indicate_data_chunk() local
541 error_code = ble_gatts_noti_ind(conn_idx, &wechat_ind); in wechat_indicate_data_chunk()
542 if (SDK_SUCCESS == error_code) { in wechat_indicate_data_chunk()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/wss/
Dwss.c198 sdk_err_t error_code; in wss_init() local
201 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in wss_init()
202 if (error_code < 0) { in wss_init()
203 return error_code; in wss_init()
216 error_code = ble_gatts_srvc_db_create(&gatts_db); in wss_init()
217 if (SDK_SUCCESS == error_code) { in wss_init()
221 return error_code; in wss_init()
387 sdk_err_t error_code; in wss_indicate_meas_value_chunk() local
407 error_code = ble_gatts_noti_ind(conn_idx, &wss_meas_ind); in wss_indicate_meas_value_chunk()
408 if (SDK_SUCCESS == error_code) { in wss_indicate_meas_value_chunk()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/libraries/app_error/
Dapp_error.c64 sdk_err_t error_code; member
138 if (p_error_info->value.error_code == s_error_code_info[i].error_code) { in app_error_fault_handler()
141 p_error_info->value.error_code, in app_error_fault_handler()
146 … "Error code 0x%04X: No found information.", p_error_info->value.error_code); in app_error_fault_handler()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/rtus/
Drtus.c155 sdk_err_t error_code; in rtus_init() local
158 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in rtus_init()
159 if (error_code < 0) { in rtus_init()
160 return error_code; in rtus_init()
171 error_code = ble_gatts_srvc_db_create(&gatts_db); in rtus_init()
172 if (SDK_SUCCESS == error_code) { in rtus_init()
176 return error_code; in rtus_init()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/cscs/
Dcscs.c210 sdk_err_t error_code; in cscs_init() local
213 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in cscs_init()
214 if (error_code < 0) { in cscs_init()
215 return error_code; in cscs_init()
226 error_code = ble_gatts_srvc_db_create(&gatts_db); in cscs_init()
227 if (SDK_SUCCESS == error_code) { in cscs_init()
231 return error_code; in cscs_init()
636 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in cscs_measurement_send() local
650 error_code = ble_gatts_noti_ind(conn_idx, &csc_ntf); in cscs_measurement_send()
653 return error_code; in cscs_measurement_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/rscs/
Drscs.c210 sdk_err_t error_code; in rscs_init() local
213 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in rscs_init()
214 if (error_code < 0) { in rscs_init()
215 return error_code; in rscs_init()
226 error_code = ble_gatts_srvc_db_create(&gatts_db); in rscs_init()
227 if (SDK_SUCCESS == error_code) { in rscs_init()
231 return error_code; in rscs_init()
667 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in rscs_measurement_send() local
681 error_code = ble_gatts_noti_ind(conn_idx, &rsc_ntf); in rscs_measurement_send()
684 return error_code; in rscs_measurement_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/hts/
Dhts.c226 sdk_err_t error_code; in hts_init() local
229 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in hts_init()
230 if (error_code < 0) { in hts_init()
231 return error_code; in hts_init()
242 error_code = ble_gatts_srvc_db_create(&gatts_db); in hts_init()
243 if (SDK_SUCCESS == error_code) { in hts_init()
247 return error_code; in hts_init()
521 sdk_err_t error_code = SDK_ERR_NTF_DISABLED; in hts_measurement_send() local
535 error_code = ble_gatts_noti_ind(conn_idx, &hts_ind); in hts_measurement_send()
545 error_code = ble_gatts_noti_ind(conn_idx, &hts_ind); in hts_measurement_send()
[all …]
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/bps/
Dbps.c213 sdk_err_t error_code; in bps_init() local
216 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in bps_init()
217 if (error_code < 0) { in bps_init()
218 return error_code; in bps_init()
229 error_code = ble_gatts_srvc_db_create(&gatts_db); in bps_init()
230 if (SDK_SUCCESS == error_code) { in bps_init()
234 return error_code; in bps_init()
470 sdk_err_t error_code = SDK_ERR_IND_DISABLED; in bps_measurement_send() local
484 error_code = ble_gatts_noti_ind(conidx, &bps_ind); in bps_measurement_send()
487 return error_code; in bps_measurement_send()
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/sample/
Dsample_service.c180 sdk_err_t error_code = SDK_SUCCESS;
198 error_code = ble_gatts_srvc_db_create(&gatts_db);
199 if (error_code == SDK_SUCCESS) {
202 return error_code;
206 return error_code;
389 sdk_err_t error_code = SDK_ERR_NTF_DISABLED;
405 error_code = ble_gatts_noti_ind(conn_idx, &send_cmd);
409 return error_code;
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/profiles/dis/
Ddis.c203 sdk_err_t error_code = SDK_SUCCESS; in dis_init() local
206 error_code = memset_s(&gatts_db, sizeof(gatts_db), 0, sizeof(gatts_db)); in dis_init()
207 if (error_code < 0) { in dis_init()
208 return error_code; in dis_init()
219 error_code = ble_gatts_srvc_db_create(&gatts_db); in dis_init()
220 if (SDK_SUCCESS == error_code) { in dis_init()
224 return error_code; in dis_init()

1234