/third_party/NuttX/drivers/usbdev/gadget/ |
D | f_ether.c | 228 uint32_t total_len = req->xfrd - RNDIS_PACKET_HDR_SIZE; in eth_rx() local 231 if (total_len > MAX_ETH_MSG) in eth_rx() 233 total_len = MAX_ETH_MSG; in eth_rx() 236 p = pbuf_alloc(PBUF_RAW, (uint16_t)(total_len + ETH_PAD_SIZE), PBUF_RAM); in eth_rx() 247 (void)memcpy_s(p->payload, total_len, &req->buf[RNDIS_PACKET_HDR_SIZE], total_len); in eth_rx() 330 int16_t total_len = 0; in rndis_mkcfgdesc() local 344 total_len += len; in rndis_mkcfgdesc() 350 …ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ - (uint16_t)total_len, g_rndis_hs_desc.rndis_func, (uint1… in rndis_mkcfgdesc() 356 total_len += len; in rndis_mkcfgdesc() 358 return total_len; in rndis_mkcfgdesc()
|
D | f_acm_desc.c | 323 int16_t total_len = 0; in cdcacm_mkcfgdesc() local 342 total_len += len; in cdcacm_mkcfgdesc() 348 …ret = memcpy_s(buf, (USB_COMP_EP0_BUFSIZ - total_len), (const void *)&g_cdcacm_hs_func_desc, (uint… in cdcacm_mkcfgdesc() 354 total_len += len; in cdcacm_mkcfgdesc() 356 return total_len; in cdcacm_mkcfgdesc()
|
D | dfu.c | 197 int16_t total_len = 0; in usbclass_mkcfgdesc() local 213 total_len += len; in usbclass_mkcfgdesc() 219 ret = memcpy_s(buf, (size_t)(USB_COMP_EP0_BUFSIZ - total_len), &g_dfu_cfgdesc, (uint16_t)len); in usbclass_mkcfgdesc() 225 total_len += len; in usbclass_mkcfgdesc() 227 return total_len; in usbclass_mkcfgdesc()
|
/third_party/ffmpeg/libavcodec/ |
D | assenc.c | 50 int i, len, total_len = 0; in ass_encode_frame() local 92 len = av_strlcpy(buf+total_len, ass, bufsize-total_len); in ass_encode_frame() 94 if (len > bufsize-total_len-1) { in ass_encode_frame() 99 total_len += len; in ass_encode_frame() 102 return total_len; in ass_encode_frame()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | aes-omac1.c | 49 size_t i, e, left, total_len; in omac1_aes_vector() local 59 total_len = 0; in omac1_aes_vector() 61 total_len += len[e]; in omac1_aes_vector() 62 left = total_len; in omac1_aes_vector() 93 if (left || total_len == 0) { in omac1_aes_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | aes-omac1.c | 49 size_t i, e, left, total_len; in omac1_aes_vector() local 59 total_len = 0; in omac1_aes_vector() 61 total_len += len[e]; in omac1_aes_vector() 62 left = total_len; in omac1_aes_vector() 93 if (left || total_len == 0) { in omac1_aes_vector()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | ndef.c | 112 size_t total_len; in ndef_build_record() local 119 total_len = 2; /* flag + type length */ in ndef_build_record() 121 total_len += short_record ? sizeof(u8) : sizeof(u32); in ndef_build_record() 123 total_len += 1; in ndef_build_record() 124 total_len += type_length + id_length + payload_length; in ndef_build_record() 125 record = wpabuf_alloc(total_len); in ndef_build_record()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | ndef.c | 112 size_t total_len; in ndef_build_record() local 119 total_len = 2; /* flag + type length */ in ndef_build_record() 121 total_len += short_record ? sizeof(u8) : sizeof(u32); in ndef_build_record() 123 total_len += 1; in ndef_build_record() 124 total_len += type_length + id_length + payload_length; in ndef_build_record() 125 record = wpabuf_alloc(total_len); in ndef_build_record()
|
/third_party/FreeBSD/sys/dev/usb/net/ |
D | usb_eth_drv.c | 128 eth_drv_recv(struct los_eth_driver *sc, int total_len) in eth_drv_recv() argument 136 if ((total_len > MAX_ETH_MSG) || (total_len < 0)) { in eth_drv_recv() 137 total_len = MAX_ETH_MSG; in eth_drv_recv() 140 p = pbuf_alloc(PBUF_RAW, (total_len + ETH_PAD_SIZE), PBUF_RAM); in eth_drv_recv()
|
D | usb_ethernet.c | 55 int total_len, 455 int total_len, in ue_start() argument 465 m = uether_newbuf(total_len); in ue_start() 471 ret = memcpy_s((void *)((char *)m->payload + len), (size_t)(total_len - len), in ue_start()
|
/third_party/node/test/fuzzers/ |
D | fuzz_helper.h | 7 int total_len = 0; in Argv() local 9 total_len += strlen(*it) + 1; in Argv() 12 argv_[0] = static_cast<char*>(malloc(total_len)); in Argv()
|
/third_party/ltp/testcases/kernel/irq/ |
D | irqbalance01.c | 63 static size_t total_len; in read_proc_file() local 67 if (used_len + 1 >= total_len) { in read_proc_file() 68 total_len += pg_len; in read_proc_file() 69 buf = SAFE_REALLOC(buf, total_len); in read_proc_file() 74 total_len - used_len - 1); in read_proc_file()
|
/third_party/mbedtls/tests/suites/ |
D | test_suite_cipher.function | 361 size_t length = length_val, outlen, total_len, i, block_size, iv_len; 447 total_len = outlen; 449 TEST_ASSERT(total_len == length || 450 (total_len % block_size == 0 && 451 total_len < length && 452 total_len + block_size > length)); 455 total_len += outlen; 461 TEST_ASSERT(total_len == length || 462 (total_len % block_size == 0 && 463 total_len > length && [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/ |
D | p2p_build.c | 479 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() argument 490 if (info_len + *total_len > MAX_SVC_ADV_LEN) { in p2p_buf_add_service_info() 588 *total_len += info_len; in p2p_buf_add_service_info() 589 WPA_PUT_LE16(attr_len, (u16) *total_len); in p2p_buf_add_service_info() 600 size_t total_len; in p2p_buf_add_service_instance() local 623 total_len = 0; in p2p_buf_add_service_instance() 627 WPA_PUT_LE16(attr_len, (u16) total_len); in p2p_buf_add_service_instance() 634 &ie_len, &pos, &total_len, attr_len); in p2p_buf_add_service_instance() 638 for (adv = adv_list; adv && total_len <= MAX_SVC_ADV_LEN; in p2p_buf_add_service_instance() 651 &total_len, in p2p_buf_add_service_instance() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/ |
D | p2p_build.c | 479 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() argument 490 if (info_len + *total_len > MAX_SVC_ADV_LEN) { in p2p_buf_add_service_info() 588 *total_len += info_len; in p2p_buf_add_service_info() 589 WPA_PUT_LE16(attr_len, (u16) *total_len); in p2p_buf_add_service_info() 600 size_t total_len; in p2p_buf_add_service_instance() local 623 total_len = 0; in p2p_buf_add_service_instance() 627 WPA_PUT_LE16(attr_len, (u16) total_len); in p2p_buf_add_service_instance() 634 &ie_len, &pos, &total_len, attr_len); in p2p_buf_add_service_instance() 638 for (adv = adv_list; adv && total_len <= MAX_SVC_ADV_LEN; in p2p_buf_add_service_instance() 651 &total_len, in p2p_buf_add_service_instance() [all …]
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
D | f_config.c | 300 int16_t total_len = 0; in fconfig_mkcfgdesc() local 319 total_len += len; in fconfig_mkcfgdesc() 345 ret = memcpy_s(buf_tmp, (USB_COMP_EP0_BUFSIZ - total_len), in fconfig_mkcfgdesc() 353 total_len += len; in fconfig_mkcfgdesc() 357 USETW(config_desc->wTotalLength, total_len); in fconfig_mkcfgdesc() 361 return total_len; in fconfig_mkcfgdesc()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/ |
D | driver_nl80211_android.c | 27 int total_len; member 59 priv_cmd.total_len = sizeof(buf); in android_priv_cmd() 129 priv_cmd.total_len = bp; in android_pno_start()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
D | driver_nl80211_android.c | 27 int total_len; member 59 priv_cmd.total_len = sizeof(buf); in android_priv_cmd() 129 priv_cmd.total_len = bp; in android_pno_start()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/ |
D | sctp_bsd_addr.c | 857 int total_len; local 871 total_len = SCTP_SIZE32((length + (4 * sizeof(int)))); 873 if (total_len> SCTP_PACKET_LOG_SIZE) { 887 newval = SCTP_BASE_VAR(packet_log_end) + total_len; 891 thisend = total_len; 901 newval = SCTP_BASE_VAR(packet_log_end) + total_len; 905 thisend = total_len; 927 *lenat = total_len;
|
/third_party/lwip/src/apps/mqtt/ |
D | mqtt.c | 517 u16_t total_len = 1 + r_length; in mqtt_output_check_space() local 523 total_len++; in mqtt_output_check_space() 527 return (total_len <= mqtt_ringbuf_free(rb)); in mqtt_output_check_space() 1102 size_t total_len; in mqtt_publish() local 1114 total_len = 2 + topic_len + payload_length; in mqtt_publish() 1117 total_len += 2; in mqtt_publish() 1124 LWIP_ERROR("mqtt_publish: total length overflow", (total_len <= 0xFFFF), return ERR_ARG); in mqtt_publish() 1125 remaining_length = (u16_t)total_len; in mqtt_publish() 1175 size_t total_len; in mqtt_sub_unsub() local 1189 total_len = topic_len + 2 + 2 + (sub != 0); in mqtt_sub_unsub() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/ |
D | driver_nl80211_hisi.h | 74 int total_len; member 77 int total_len;
|
/third_party/node/test/cctest/ |
D | node_test_fixture.h | 21 int total_len = 0; in Argv() local 23 total_len += strlen(*it) + 1; in Argv() 26 argv_[0] = static_cast<char*>(malloc(total_len)); in Argv()
|
/third_party/node/src/ |
D | js_udp_wrap.cc | 98 size_t total_len = 0; in Send() local 104 total_len += bufs[i].len; in Send() 111 listener()->CreateSendWrap(total_len)->object(), in Send()
|
/third_party/lz4/lib/ |
D | xxhash.h | 277 uint64_t total_len; member 303 unsigned long long total_len; member
|
/third_party/skia/third_party/externals/angle2/src/common/third_party/xxhash/ |
D | xxhash.h | 290 uint64_t total_len; member 318 unsigned long long total_len; member
|