/AliOS-Things-master/components/linkkit/iot_coap/server/ |
A D | CoAPExport.c | 37 if (NULL == p_ctx) { in CoAPContext_create() 49 p_ctx->message_id = 1; in CoAPContext_create() 130 return p_ctx; in CoAPContext_create() 132 if (NULL == p_ctx) { in CoAPContext_create() 133 return p_ctx; in CoAPContext_create() 168 coap_free(p_ctx); in CoAPContext_create() 169 p_ctx = NULL; in CoAPContext_create() 178 if (NULL == p_ctx) { in CoAPContextAppdata_get() 216 p_ctx->mutex = NULL; in CoAPContext_free() 245 if (NULL != p_ctx) { in CoAPContext_free() [all …]
|
/AliOS-Things-master/components/linkkit/iot_coap/client/ |
A D | Cloud_CoAPExport.c | 135 if (NULL == p_ctx) { in Cloud_CoAPContext_create() 141 p_ctx->message_id = 1; in Cloud_CoAPContext_create() 195 return p_ctx; in Cloud_CoAPContext_create() 197 if (NULL == p_ctx) { in Cloud_CoAPContext_create() 198 return p_ctx; in Cloud_CoAPContext_create() 211 coap_free(p_ctx); in Cloud_CoAPContext_create() 212 p_ctx = NULL; in Cloud_CoAPContext_create() 214 return p_ctx; in Cloud_CoAPContext_create() 221 if (NULL == p_ctx) { in Cloud_CoAPContext_free() 250 if (NULL != p_ctx) { in Cloud_CoAPContext_free() [all …]
|
A D | Cloud_CoAPExport.h | 66 void Cloud_CoAPContext_free(Cloud_CoAPContext *p_ctx);
|
/AliOS-Things-master/components/genie_service/ |
A D | genie_service.c | 18 static int genie_service_check_ctx(genie_service_ctx_t *p_ctx) in genie_service_check_ctx() argument 20 if (!p_ctx || !p_ctx->event_cb || !p_ctx->p_mesh_elem || p_ctx->mesh_elem_counts < 1) in genie_service_check_ctx() 22 …GENIE_LOG_ERR("ctx:%p %p %p %d", p_ctx, p_ctx->event_cb, p_ctx->p_mesh_elem, p_ctx->mesh_elem_coun… in genie_service_check_ctx() 27 memcpy(&genie_service_ctx, p_ctx, sizeof(genie_service_ctx_t)); in genie_service_check_ctx() 37 int genie_service_init(genie_service_ctx_t *p_ctx) in genie_service_init() argument 42 if (genie_service_check_ctx(p_ctx) < 0) in genie_service_init() 61 p_ctx->lpm_conf.sleep_ms = GENIE_GLP_SLEEP_TIME; in genie_service_init() 62 p_ctx->lpm_conf.wakeup_ms = GENIE_GLP_WAKEUP_TIME; in genie_service_init() 66 genie_lpm_init(&p_ctx->lpm_conf); in genie_service_init()
|
A D | genie_service.h | 91 int genie_service_init(genie_service_ctx_t *p_ctx);
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/sig_model/srv/ |
A D | light_ctl_srv.c | 105 LOGD(TAG, "addr(0x%04x)", p_ctx->addr); in _ctl_status() 228 _ctl_status(model, p_ctx, 0); in _ctl_get() 240 _ctl_status(model, p_ctx, 1); in _ctl_set() 249 _ctl_analyze(model, p_ctx->addr, p_buf); in _ctl_set_unack() 280 _ctl_temp_range_status(model, p_ctx); in _ctl_temp_range_get() 311 _ctl_defatult_status(model, p_ctx); in _ctl_default_get() 379 _ctl_defatult_status(model, p_ctx); in _ctl_default_set() 492 LOGD(TAG, "addr(0x%04x)", p_ctx->addr); in _ctl_temp_status() 686 _ctl_temp_status(model, p_ctx, 0); in _ctl_temp_get() 698 _ctl_temp_status(model, p_ctx, 1); in _ctl_temp_set() [all …]
|
/AliOS-Things-master/components/genie_service/core/src/sig_models/ |
A D | sig_model_scene_srv.c | 25 struct bt_mesh_msg_ctx *p_ctx, bool is_ack) in _scene_status() argument 32 p_ctx->send_ttl = GENIE_TRANSPORT_DEFAULT_TTL; in _scene_status() 33 if (bt_mesh_model_send(p_model, p_ctx, p_msg, NULL, NULL)) in _scene_status() 90 struct bt_mesh_msg_ctx *p_ctx, in _scene_get() argument 104 genie_transport_src_addr_set(p_ctx->addr); in _scene_get() 111 _scene_status(p_model, p_ctx, 0); in _scene_get() 116 struct bt_mesh_msg_ctx *p_ctx, in _scene_set() argument 130 E_MESH_ERROR_TYPE ret = _scene_analyze(p_model, p_ctx->addr, p_buf); in _scene_set() 144 _scene_status(p_model, p_ctx, 1); in _scene_set() 154 struct bt_mesh_msg_ctx *p_ctx, in _scene_set_unack() argument [all …]
|
A D | sig_model_lightness_srv.c | 57 p_ctx->send_ttl = GENIE_TRANSPORT_DEFAULT_TTL; in _lightness_status() 58 if (bt_mesh_model_send(p_model, p_ctx, p_msg, NULL, NULL)) in _lightness_status() 143 struct bt_mesh_msg_ctx *p_ctx, in _lightness_get() argument 164 genie_transport_src_addr_set(p_ctx->addr); in _lightness_get() 171 _lightness_status(p_model, p_ctx, 0); in _lightness_get() 175 struct bt_mesh_msg_ctx *p_ctx, in _lightness_set() argument 195 genie_transport_src_addr_set(p_ctx->addr); in _lightness_set() 202 ret = _lightness_analyze(p_model, p_ctx->addr, p_buf); in _lightness_set() 208 _lightness_status(p_model, p_ctx, 1); in _lightness_set() 217 struct bt_mesh_msg_ctx *p_ctx, in _lightness_set_unack() argument [all …]
|
A D | sig_model_light_ctl_srv.c | 59 p_ctx->send_ttl = GENIE_TRANSPORT_DEFAULT_TTL; in _ctl_status() 158 struct bt_mesh_msg_ctx *p_ctx, in _ctl_get() argument 179 genie_transport_src_addr_set(p_ctx->addr); in _ctl_get() 186 _ctl_status(p_model, p_ctx, 0); in _ctl_get() 190 struct bt_mesh_msg_ctx *p_ctx, in _ctl_set() argument 210 genie_transport_src_addr_set(p_ctx->addr); in _ctl_set() 217 ret = _ctl_analyze(p_model, p_ctx->addr, p_buf); in _ctl_set() 223 _ctl_status(p_model, p_ctx, 1); in _ctl_set() 232 struct bt_mesh_msg_ctx *p_ctx, in _ctl_set_unack() argument 253 genie_transport_src_addr_set(p_ctx->addr); in _ctl_set_unack() [all …]
|
A D | sig_model_onoff_srv.c | 50 struct bt_mesh_msg_ctx *p_ctx, bool is_ack) in _gen_onoff_status() argument 57 p_ctx->send_ttl = GENIE_TRANSPORT_DEFAULT_TTL; in _gen_onoff_status() 58 if (bt_mesh_model_send(p_model, p_ctx, p_msg, NULL, NULL)) in _gen_onoff_status() 155 struct bt_mesh_msg_ctx *p_ctx, in _gen_onoff_get() argument 174 genie_transport_src_addr_set(p_ctx->addr); in _gen_onoff_get() 182 _gen_onoff_status(p_model, p_ctx, 0); in _gen_onoff_get() 187 struct bt_mesh_msg_ctx *p_ctx, in _gen_onoff_set() argument 202 E_MESH_ERROR_TYPE ret = _gen_onoff_analyze(p_model, p_ctx->addr, p_buf); in _gen_onoff_set() 213 _gen_onoff_status(p_model, p_ctx, 1); in _gen_onoff_set() 223 struct bt_mesh_msg_ctx *p_ctx, in _gen_onoff_set_unack() argument [all …]
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | ssl_cookie.c | 156 int mbedtls_ssl_cookie_write( void *p_ctx, in mbedtls_ssl_cookie_write() argument 161 mbedtls_ssl_cookie_ctx *ctx = (mbedtls_ssl_cookie_ctx *) p_ctx; in mbedtls_ssl_cookie_write() 202 int mbedtls_ssl_cookie_check( void *p_ctx, in mbedtls_ssl_cookie_check() argument 209 mbedtls_ssl_cookie_ctx *ctx = (mbedtls_ssl_cookie_ctx *) p_ctx; in mbedtls_ssl_cookie_check()
|
/AliOS-Things-master/components/linkkit/dev_model/ |
A D | iotx_cm_coap.c | 169 iotx_coap_context_t *p_ctx = NULL; in _coap_connect() local 188 if (p_ctx == NULL) { in _coap_connect() 189 p_ctx = IOT_CoAP_Init(config); in _coap_connect() 190 if (NULL == p_ctx) { in _coap_connect() 194 ret = IOT_CoAP_DeviceNameAuth(p_ctx); in _coap_connect() 199 _coap_conncection->context = p_ctx; in _coap_connect()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_vendor_model.c | 72 struct bt_mesh_msg_ctx *p_ctx, in genie_model_analyze() argument 95 if (genie_transport_check_tid(p_ctx->addr, msg.tid, p_elem->element_id) != MESH_SUCCESS) in genie_model_analyze() 97 BT_ERR("MESH_TID_REPEAT src_addr(0x%04x) tid(0x%02x)", p_ctx->addr, msg.tid); in genie_model_analyze() 100 genie_transport_src_addr_set(p_ctx->addr); in genie_model_analyze()
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/mesh_models/vendor_model/ |
A D | vendor_model_cli.c | 321 struct bt_mesh_msg_ctx *p_ctx, in _vendor_model_analyze() argument 342 if (mesh_check_tid(p_ctx->addr, msg.tid) != MESH_SUCCESS) { in _vendor_model_analyze() 343 LOGE(TAG, "MESH_TID_REPEAT src_addr(0x%04x) tid(0x%02x)", p_ctx->addr, msg.tid); in _vendor_model_analyze() 359 vendor_msg.source_addr = p_ctx->addr; in _vendor_model_analyze()
|
A D | vendor_model_srv.c | 316 struct bt_mesh_msg_ctx *p_ctx, in _vendor_model_analyze() argument 337 if (mesh_check_tid(p_ctx->addr, msg.tid) != MESH_SUCCESS) { in _vendor_model_analyze() 338 LOGE(TAG, "MESH_TID_REPEAT src_addr(0x%04x) tid(0x%02x)", p_ctx->addr, msg.tid); in _vendor_model_analyze() 354 vendor_msg.source_addr = p_ctx->addr; in _vendor_model_analyze()
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | vp8_dec.c | 449 const VP8ProbaArray* const p_ctx = &prob[n + 1]->probas_[0]; in GetCoeffsFast() local 453 p = p_ctx[1]; in GetCoeffsFast() 456 p = p_ctx[2]; in GetCoeffsFast() 479 const VP8ProbaArray* const p_ctx = &prob[n + 1]->probas_[0]; in GetCoeffsAlt() local 483 p = p_ctx[1]; in GetCoeffsAlt() 486 p = p_ctx[2]; in GetCoeffsAlt()
|
/AliOS-Things-master/components/linkkit/wrappers/os/ |
A D | HAL_DTLS_mbedtls.c | 235 static void _DTLSLog_wrapper(void *p_ctx, int level, const char *p_file, in _DTLSLog_wrapper() argument
|
/AliOS-Things-master/components/linkkit/wrappers/platform/ssl/ |
A D | HAL_DTLS_mbedtls.c | 271 static void _DTLSLog_wrapper(void *p_ctx, int level, const char *p_file, in _DTLSLog_wrapper() argument
|