/third_party/ffmpeg/libavcodec/ |
H A D | assenc.c | 48 int i, len, total_len = 0; in ass_encode_frame() local 58 len = av_strlcpy(buf+total_len, ass, bufsize-total_len); in ass_encode_frame() 60 if (len > bufsize-total_len-1) { in ass_encode_frame() 65 total_len += len; in ass_encode_frame() 68 return total_len; in ass_encode_frame()
|
/third_party/NuttX/drivers/usbdev/gadget/ |
H A 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, (uint16_t)len); in rndis_mkcfgdesc() 356 total_len in rndis_mkcfgdesc() [all...] |
H A 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()
|
H A 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, (uint32_t)len); in cdcacm_mkcfgdesc() 354 total_len += len; in cdcacm_mkcfgdesc() 356 return total_len; in cdcacm_mkcfgdesc()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A 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_standard/src/wps/ |
H A 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/crypto/ |
H A 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/ |
H A 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/FreeBSD/sys/dev/usb/net/ |
H A 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()
|
H A D | usb_ethernet.c | 53 int total_len, 453 int total_len, in ue_start() 463 m = uether_newbuf(total_len); in ue_start() 469 ret = memcpy_s((void *)((char *)m->payload + len), (size_t)(total_len - len), in ue_start() 450 ue_start(struct los_eth_driver *sc, struct eth_drv_sg *sg_list, int sg_len, int total_len, UINTPTR key) ue_start() argument
|
/third_party/ltp/testcases/kernel/irq/ |
H A 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/node/test/fuzzers/ |
H A 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/wpa_supplicant/wpa_supplicant-2.9/src/p2p/ |
H A D | p2p_build.c | 479 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() 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() 476 p2p_buf_add_service_info(struct wpabuf *buf, struct p2p_data *p2p, u32 adv_id, u16 config_methods, const char *svc_name, u8 **ie_len, u8 **pos, size_t *total_len, u8 *attr_len) p2p_buf_add_service_info() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/ |
H A D | p2p_build.c | 479 size_t *total_len, u8 *attr_len) in p2p_buf_add_service_info() 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() 476 p2p_buf_add_service_info(struct wpabuf *buf, struct p2p_data *p2p, u32 adv_id, u16 config_methods, const char *svc_name, u8 **ie_len, u8 **pos, size_t *total_len, u8 *attr_len) p2p_buf_add_service_info() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/ |
H A 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_standard/src/drivers/ |
H A 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/NuttX/drivers/usbdev/gadget/fconfig/src/ |
H A 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/wpa_supplicant_lib/ |
H A D | driver_nl80211_hisi.h | 74 int total_len; member 77 int total_len;
|
/third_party/lwip/src/apps/mqtt/ |
H A 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 in mqtt_sub_unsub() [all...] |
/third_party/node/test/cctest/ |
H A 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/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | ieee802_11_common.c | 211 static int ieee802_11_parse_mle(const u8 *pos, size_t elen, size_t **total_len, in ieee802_11_parse_mle() argument 221 *total_len = &elems->basic_mle_len; in ieee802_11_parse_mle() 226 *total_len = &elems->probe_req_mle_len; in ieee802_11_parse_mle() 231 *total_len = &elems->reconf_mle_len; in ieee802_11_parse_mle() 236 *total_len = &elems->tdls_mle_len; in ieee802_11_parse_mle() 241 *total_len = &elems->prior_access_mle_len; in ieee802_11_parse_mle() 283 size_t *total_len = NULL; in ieee802_11_parse_extension() local 325 total_len = &elems->fils_hlp_len; in ieee802_11_parse_extension() 344 total_len = &elems->wrapped_data_len; in ieee802_11_parse_extension() 409 if (ieee802_11_parse_mle(pos, elen, &total_len, elem in ieee802_11_parse_extension() 491 size_t *total_len = NULL; ieee802_11_parse_elems() local [all...] |
/third_party/node/src/ |
H A 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/ |
H A 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/ |
H A D | xxhash.h | 290 uint64_t total_len; member 318 unsigned long long total_len; member
|
/third_party/libcoap/src/ |
H A D | coap_block.c | 1230 if (sofar < lg_crcv->total_len) { in coap_request_missing_q_block2() 1273 if (sofar < lg_crcv->total_len) { in coap_request_missing_q_block2() 1280 sofar = (lg_crcv->total_len + block_size - 1)/block_size; in coap_request_missing_q_block2() 1532 size_t final_block = (p->total_len + block_size - 1)/block_size - 1; in coap_block_check_lg_srcv_timeouts() 1561 final_block = (p->total_len + block_size - 1)/block_size - 1; in coap_block_check_lg_srcv_timeouts() 2684 p->total_len = total; in coap_handle_request_put_block() 2710 if (total != p->total_len) { in coap_handle_request_put_block() 2759 if (p->total_len < saved_offset + length) { in coap_handle_request_put_block() 2760 p->total_len = saved_offset + length; in coap_handle_request_put_block() 2763 saved_offset, p->total_len); in coap_handle_request_put_block() [all...] |