/AliOS-Things-master/components/mbedtls/library/ |
A D | error.c | 213 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument 221 memset( buf, 0x00, buflen ); in mbedtls_strerror() 574 if( strlen( buf ) == 0 ) in mbedtls_strerror() 586 len = strlen( buf ); in mbedtls_strerror() 593 mbedtls_snprintf( buf + len, buflen - len, " : " ); in mbedtls_strerror() 595 buf += len + 3; in mbedtls_strerror() 622 mbedtls_snprintf( buf, buflen, "ARIA - Bad input data" ); in mbedtls_strerror() 819 mbedtls_snprintf( buf, buflen, "NET - Input invalid" ); in mbedtls_strerror() 893 if( strlen( buf ) != 0 ) in mbedtls_strerror() 906 void mbedtls_strerror( int ret, char *buf, size_t buflen ) in mbedtls_strerror() argument [all …]
|
A D | x509write_crt.c | 139 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_basic_constraints() 142 memset( buf, 0, sizeof(buf) ); in mbedtls_x509write_crt_set_basic_constraints() 170 unsigned char *c = buf + sizeof(buf); in mbedtls_x509write_crt_set_subject_key_identifier() 173 memset( buf, 0, sizeof(buf) ); in mbedtls_x509write_crt_set_subject_key_identifier() 176 ret = mbedtls_sha1_ret( buf + sizeof( buf ) - len, len, in mbedtls_x509write_crt_set_subject_key_identifier() 177 buf + sizeof( buf ) - 20 ); in mbedtls_x509write_crt_set_subject_key_identifier() 180 c = buf + sizeof( buf ) - 20; in mbedtls_x509write_crt_set_subject_key_identifier() 195 unsigned char *c = buf + sizeof( buf ); in mbedtls_x509write_crt_set_authority_key_identifier() 198 memset( buf, 0, sizeof(buf) ); in mbedtls_x509write_crt_set_authority_key_identifier() 202 buf + sizeof( buf ) - 20 ); in mbedtls_x509write_crt_set_authority_key_identifier() [all …]
|
/AliOS-Things-master/components/py_engine/engine/shared/netutils/ |
A D | trace.c | 31 return buf[0] << 8 | buf[1]; in get_be16() 35 return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3]; in get_be32() 60 …mp_printf(print, " dst=%02x:%02x:%02x:%02x:%02x:%02x", buf[0], buf[1], buf[2], buf[3], buf[4], buf… in netutils_ethernet_trace() 61 …p_printf(print, " src=%02x:%02x:%02x:%02x:%02x:%02x", buf[6], buf[7], buf[8], buf[9], buf[10], buf… in netutils_ethernet_trace() 63 const char *ethertype = ethertype_str(buf[12] << 8 | buf[13]); in netutils_ethernet_trace() 67 mp_printf(print, " type=0x%04x", buf[12] << 8 | buf[13]); in netutils_ethernet_trace() 71 buf += 14; in netutils_ethernet_trace() 72 if (buf[-2] == 0x08 && buf[-1] == 0x00 && buf[0] == 0x45) { in netutils_ethernet_trace() 76 buf[12], buf[13], buf[14], buf[15], in netutils_ethernet_trace() 77 buf[16], buf[17], buf[18], buf[19]); in netutils_ethernet_trace() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/api/ |
A D | netbuf.c | 65 struct netbuf *buf; in netbuf_new() local 68 if (buf != NULL) { in netbuf_new() 71 return buf; in netbuf_new() 83 if (buf != NULL) { in netbuf_delete() 86 buf->p = buf->ptr = NULL; in netbuf_delete() 116 buf->ptr = buf->p; in netbuf_alloc() 133 buf->p = buf->ptr = NULL; in netbuf_free() 159 buf->p->len = buf->p->tot_len = size; in netbuf_ref() 160 buf->ptr = buf->p; in netbuf_ref() 224 buf->ptr = buf->ptr->next; in netbuf_next() [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/port/core/ |
A D | buf.c | 128 return buf; in pool_get_uninit() 408 buf->__buf = data_alloc(buf, &size, timeout); in net_buf_alloc_len_debug() 531 buf->data = buf->__buf + reserve; in net_buf_simple_reserve() 631 buf->pool_id, buf->frags); in net_buf_unref_debug() 638 data_unref(buf, buf->__buf); in net_buf_unref_debug() 672 buf, buf->ref, buf->pool_id); in net_buf_ref() 696 clone->__buf = data_ref(buf, buf->__buf); in net_buf_clone() 717 net_buf_add_mem(clone, buf->data, buf->len); in net_buf_clone() 728 buf = buf->frags; in net_buf_frag_last() 1214 return buf->data - buf->__buf; in net_buf_simple_headroom() [all …]
|
/AliOS-Things-master/components/ble_host/include/net/ |
A D | buf.h | 134 buf->__buf = (u8_t *)buf + sizeof(*buf); in net_buf_simple_init() 137 buf->data = buf->__buf + reserve_head; in net_buf_simple_init() 138 buf->len = 0U; in net_buf_simple_init() 162 buf->len = 0U; in net_buf_simple_reset() 163 buf->data = buf->__buf; in net_buf_simple_reset() 642 return buf->data + buf->len; in net_buf_simple_tail() 708 buf->data = buf->__buf + state->offset; in net_buf_simple_restore() 1821 #define net_buf_tail(buf) net_buf_simple_tail(&(buf)->b) argument 1957 buf = net_buf_frag_del(NULL, buf); in net_buf_skip() 1961 return buf; in net_buf_skip() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/src/utils/ |
A D | wpabuf.h | 48 return buf->size; in wpabuf_size() 58 return buf->used; in wpabuf_len() 68 return buf->size - buf->used; in wpabuf_tailroom() 78 return buf->buf; in wpabuf_head() 93 return buf->buf; in wpabuf_mhead() 104 if ( buf == NULL) in wpabuf_put_u8() 113 if ( buf == NULL) in wpabuf_put_le16() 122 if ( buf == NULL) in wpabuf_put_le32() 131 if ( buf == NULL) in wpabuf_put_be16() 176 buf->buf = (u8 *) data; in wpabuf_set() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/ |
A D | png-fix-itxt.c | 68 GETBREAK; buf[4] = c; in main() 69 GETBREAK; buf[5] = c; in main() 70 GETBREAK; buf[6] = c; in main() 71 GETBREAK; buf[7] = c; in main() 75 if (buf[4] == 105 && buf[5] == 84 && buf[6] == 88 && buf[7] == 116) in main() 86 GETBREAK; buf[i] = c; in main() 110 buf[length+11] = c; in main() 127 putchar(buf[i]); in main() 137 putchar(buf[i]); in main() 152 if (buf[4] == 73 && buf[5] == 69 && buf[6] == 78 && buf[7] == 68) in main() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/ |
A D | netbuf.h | 92 #define netbuf_copy(buf,dataptr,len) netbuf_copy_partial(buf, dataptr, len, 0) argument 93 #define netbuf_take(buf, dataptr, len) pbuf_take((buf)->p, dataptr, len) argument 94 #define netbuf_len(buf) ((buf)->p->tot_len) argument 95 #define netbuf_fromaddr(buf) (&((buf)->addr)) argument 96 #define netbuf_set_fromaddr(buf, fromaddr) ip_addr_set(&((buf)->addr), fromaddr) argument 97 #define netbuf_fromport(buf) ((buf)->port) argument 99 #define netbuf_destaddr(buf) (&((buf)->toaddr)) argument 100 #define netbuf_set_destaddr(buf, destaddr) ip_addr_set(&((buf)->toaddr), destaddr) argument 102 #define netbuf_destport(buf) (((buf)->flags & NETBUF_FLAG_DESTADDR) ? (buf)->toport_chksum … argument 104 #define netbuf_destport(buf) ((buf)->toport_chksum) argument [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/ |
A D | netbuf.h | 92 #define netbuf_copy(buf,dataptr,len) netbuf_copy_partial(buf, dataptr, len, 0) argument 93 #define netbuf_take(buf, dataptr, len) pbuf_take((buf)->p, dataptr, len) argument 94 #define netbuf_len(buf) ((buf)->p->tot_len) argument 95 #define netbuf_fromaddr(buf) (&((buf)->addr)) argument 96 #define netbuf_set_fromaddr(buf, fromaddr) ip_addr_set(&((buf)->addr), fromaddr) argument 97 #define netbuf_fromport(buf) ((buf)->port) argument 99 #define netbuf_destaddr(buf) (&((buf)->toaddr)) argument 100 #define netbuf_set_destaddr(buf, destaddr) ip_addr_set(&((buf)->toaddr), destaddr) argument 102 #define netbuf_destport(buf) (((buf)->flags & NETBUF_FLAG_DESTADDR) ? (buf)->toport_chksum … argument 104 #define netbuf_destport(buf) ((buf)->toport_chksum) argument [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/host/ |
A D | hci_api.c | 86 #define cmd(buf) (&cmd_data[net_buf_id(buf)]) argument 132 buf->len, bt_hex(buf->data, buf->len)); in handle_event() 164 if (buf) { in bt_buf_get_cmd_complete() 169 return buf; in bt_buf_get_cmd_complete() 273 cmd(buf)->opcode, buf); in send_cmd() 315 return buf; in bt_hci_cmd_create() 320 if (!buf) { in bt_hci_cmd_send() 322 if (!buf) { in bt_hci_cmd_send() 356 if (!buf) { in bt_hci_cmd_send_sync() 358 if (!buf) { in bt_hci_cmd_send_sync() [all …]
|
A D | hci_raw.c | 86 if (!buf) { in bt_buf_get_rx() 87 return buf; in bt_buf_get_rx() 93 return buf; in bt_buf_get_rx() 138 if (!buf) { in bt_buf_get_tx() 139 return buf; in bt_buf_get_tx() 149 return buf; in bt_buf_get_tx() 164 BT_DBG("buf %p len %u", buf, buf->len); in bt_recv() 166 bt_monitor_send(bt_monitor_opcode(buf), buf->data, buf->len); in bt_recv() 207 bt_recv(buf); in bt_cmd_complete_ext() 265 BT_DBG("buf %p len %u", buf, buf->len); in bt_send() [all …]
|
A D | at.c | 24 if (at->buf[at->pos] == ',') { in next_list() 36 net_buf_pull(buf, 1); in at_check_byte() 109 at->buf[at->pos] = '\0'; in get_cmd_value() 115 net_buf_pull(buf, cmd_len); in get_cmd_value() 139 at->buf[at->pos] = '\0'; in get_response_string() 145 net_buf_pull(buf, cmd_len); in get_response_string() 222 at->resp(at, buf); in at_state_process_cmd() 254 if (at_parse_result(at->buf, buf, &result) == 0) { in at_state_process_result() 322 while (buf->len) { in at_parse_input() 412 while (buf->len) { in at_parse_cmd_input() [all …]
|
/AliOS-Things-master/solutions/lora_p2p_demo/ |
A D | sx126x.c | 143 uint8_t buf[2]; in SX126xSetCrcSeed() local 161 uint8_t buf[2]; in SX126xSetCrcPolynomial() local 252 uint8_t buf[3]; in SX126xSetTx() local 264 uint8_t buf[3]; in SX126xSetRx() local 276 uint8_t buf[3]; in SX126xSetRxBoosted() local 290 uint8_t buf[6]; in SX126xSetRxDutyCycle() local 398 uint8_t buf[4]; in SX126xSetPaConfig() local 401 buf[1] = hpMax; in SX126xSetPaConfig() 403 buf[3] = paLut; in SX126xSetPaConfig() 414 uint8_t buf[8]; in SX126xSetDioIrqParams() local [all …]
|
/AliOS-Things-master/components/freetype/src/pcf/ |
A D | pcfutil.c | 49 unsigned int val = *buf; in BitOrderInvert() 56 *buf = (unsigned char)val; in BitOrderInvert() 74 c = buf[0]; in TwoByteSwap() 75 buf[0] = buf[1]; in TwoByteSwap() 76 buf[1] = c; in TwoByteSwap() 93 c = buf[0]; in FourByteSwap() 94 buf[0] = buf[3]; in FourByteSwap() 95 buf[3] = c; in FourByteSwap() 97 c = buf[1]; in FourByteSwap() 98 buf[1] = buf[2]; in FourByteSwap() [all …]
|
/AliOS-Things-master/components/SDL2/src/hidapi/hidtest/ |
A D | hidtest.cpp | 64 memset(buf,0x00,sizeof(buf)); in main() 65 buf[0] = 0x01; in main() 66 buf[1] = 0x81; in main() 115 buf[0] = 0x2; in main() 125 memset(buf,0,sizeof(buf)); in main() 128 buf[0] = 0x2; in main() 129 res = hid_get_feature_report(handle, buf, sizeof(buf)); in main() 142 memset(buf,0,sizeof(buf)); in main() 145 buf[0] = 0x1; in main() 155 buf[0] = 0x1; in main() [all …]
|
/AliOS-Things-master/components/linkkit/external/nghttp2/ |
A D | nghttp2_buf.c | 35 buf->end = NULL; in nghttp2_buf_init() 75 buf->pos = ptr + (buf->pos - buf->begin); in nghttp2_buf_reserve() 76 buf->last = ptr + (buf->last - buf->begin); in nghttp2_buf_reserve() 77 buf->mark = ptr + (buf->mark - buf->begin); in nghttp2_buf_reserve() 86 buf->pos = buf->last = buf->mark = buf->begin; in nghttp2_buf_reset() 91 buf->begin = buf->pos = buf->last = buf->mark = begin; in nghttp2_buf_wrap_init() 362 buf = &bufs->cur->buf; in nghttp2_bufs_add() 373 buf->last = nghttp2_cpymem(buf->last, p, nwrite); in nghttp2_bufs_add() 386 buf = &bufs->cur->buf; in bufs_ensure_addb() 483 buf = &chain->buf; in nghttp2_bufs_remove() [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/hci_driver/ |
A D | h5_driver.c | 54 BT_DBG("buf %p type %u len %u:%s", buf, type, buf->len, bt_hex(buf->data, buf->len)); in h5_send() 65 h5_ctx->h5_send_cmd(HCI_COMMAND_PKT, buf->data, buf->len); in h5_send() 68 h5_ctx->h5_send_acl_data(HCI_ACLDATA_PKT, buf->data, buf->len); in h5_send() 76 net_buf_unref(buf); in h5_send() 89 struct net_buf *buf; in hci_h5_event_recv() local 136 if (!buf) { in hci_h5_event_recv() 145 BT_DBG("event %s", bt_hex(buf->data, buf->len)); in hci_h5_event_recv() 151 bt_recv(buf); in hci_h5_event_recv() 162 struct net_buf *buf; in hci_h5_acl_recv() local 180 if (!buf) { in hci_h5_acl_recv() [all …]
|
A D | h4_driver.c | 137 memcpy(pBuf+1, buf->data, buf->len); in h4_send() 144 BT_DBG("buf %p type %u len %u:%s", buf, type, buf->len, bt_hex(buf->data, buf->len)); in h4_send() 149 ret = tg_bt_hal_hcit_tx(buf->data, buf->len, NULL); in h4_send() 221 if (!buf) { in hci_event_recv() 230 BT_DBG("event %s", bt_hex(buf->data, buf->len)); in hci_event_recv() 278 if (!buf) { in hci_acl_recv() 287 BT_DBG("acl %s", bt_hex(buf->data, buf->len)); in hci_acl_recv() 289 bt_recv(buf); in hci_acl_recv() 384 return read_byte(buf, (len<sizeof(buf)?len:sizeof(buf))); in h4_discard() 395 hci_h4.rx.buf = buf = bt_buf_get_rx(BT_BUF_ACL_IN, 0); in read_payload() [all …]
|
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | framebuf1.py | 19 buf[x] = 0 27 print(buf) 29 print(buf) 36 print(buf) 40 print(buf) 80 print(buf) 82 print(buf) 84 print(buf) 86 print(buf) 88 print(buf) [all …]
|
/AliOS-Things-master/components/ota/2ndboot/updater/xz/linux/lib/xz/ |
A D | xz_config.h | 45 #define memzero(buf, size) memset(buf, 0, size) argument 75 return (uint32_t)buf[0] in get_unaligned_le32() 76 | ((uint32_t)buf[1] << 8) in get_unaligned_le32() 77 | ((uint32_t)buf[2] << 16) in get_unaligned_le32() 78 | ((uint32_t)buf[3] << 24); in get_unaligned_le32() 86 | ((uint32_t)buf[1] << 16) in get_unaligned_be32() 87 | ((uint32_t)buf[2] << 8) in get_unaligned_be32() 88 | (uint32_t)buf[3]; in get_unaligned_be32() 95 buf[0] = (uint8_t)val; in put_unaligned_le32() 96 buf[1] = (uint8_t)(val >> 8); in put_unaligned_le32() [all …]
|
/AliOS-Things-master/components/ota/tools/xz/include/ |
A D | xz_config.h | 45 #define memzero(buf, size) memset(buf, 0, size) argument 75 return (uint32_t)buf[0] in get_unaligned_le32() 76 | ((uint32_t)buf[1] << 8) in get_unaligned_le32() 77 | ((uint32_t)buf[2] << 16) in get_unaligned_le32() 78 | ((uint32_t)buf[3] << 24); in get_unaligned_le32() 86 | ((uint32_t)buf[1] << 16) in get_unaligned_be32() 87 | ((uint32_t)buf[2] << 8) in get_unaligned_be32() 88 | (uint32_t)buf[3]; in get_unaligned_be32() 95 buf[0] = (uint8_t)val; in put_unaligned_le32() 96 buf[1] = (uint8_t)(val >> 8); in put_unaligned_le32() [all …]
|
/AliOS-Things-master/components/freetype/src/gzip/ |
A D | adler32.c | 14 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} argument 15 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 16 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 17 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 18 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 23 const Bytef *buf, in adler32() argument 30 if (buf == Z_NULL) return 1L; in adler32() 36 DO16(buf); in adler32() 37 buf += 16; in adler32() 41 s1 += *buf++; in adler32()
|
/AliOS-Things-master/components/py_engine/engine/lib/uzlib/ |
A D | adler32.c | 46 const unsigned char *buf = (const unsigned char *)data; in uzlib_adler32() local 56 for (i = k / 16; i; --i, buf += 16) in uzlib_adler32() 58 s1 += buf[0]; s2 += s1; s1 += buf[1]; s2 += s1; in uzlib_adler32() 59 s1 += buf[2]; s2 += s1; s1 += buf[3]; s2 += s1; in uzlib_adler32() 60 s1 += buf[4]; s2 += s1; s1 += buf[5]; s2 += s1; in uzlib_adler32() 61 s1 += buf[6]; s2 += s1; s1 += buf[7]; s2 += s1; in uzlib_adler32() 63 s1 += buf[8]; s2 += s1; s1 += buf[9]; s2 += s1; in uzlib_adler32() 64 s1 += buf[10]; s2 += s1; s1 += buf[11]; s2 += s1; in uzlib_adler32() 65 s1 += buf[12]; s2 += s1; s1 += buf[13]; s2 += s1; in uzlib_adler32() 66 s1 += buf[14]; s2 += s1; s1 += buf[15]; s2 += s1; in uzlib_adler32() [all …]
|
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/ |
A D | prov.c | 329 struct net_buf *buf = plink.tx.buf[i]; in free_segments() local 407 bt_mesh_adv_send(buf, complete, buf); in gen_prov_ack_send() 417 struct net_buf *buf = plink.tx.buf[i]; in send_reliable() local 450 plink.tx.buf[0] = buf; in bearer_ctl_send() 522 plink.tx.buf[seg_id] = buf; in prov_send_adv() 1312 struct net_buf *buf = plink.tx.buf[i]; in prov_retransmit() local 1322 BT_DBG("%u bytes: %s", buf->len, bt_hex(buf->data, buf->len)); in prov_retransmit() 1499 memcpy(XACT_SEG_DATA(seg), buf->data, buf->len); in gen_prov_cont() 1545 if (plink.rx.buf->len > plink.rx.buf->size) { in gen_prov_start() 1559 memcpy(plink.rx.buf->data, buf->data, buf->len); in gen_prov_start() [all …]
|