| /components/drivers/usb/cherryusb/class/video/ |
| A D | usbd_video.c | 56 *len = 1; in usbd_video_control_request_handler() 274 *len = 2; in usbd_video_control_unit_terminal_request_handler() 600 *len = 1; in usbd_video_stream_request_handler() 605 *len = 1; in usbd_video_stream_request_handler() 632 *len = 1; in usbd_video_stream_request_handler() 637 *len = 1; in usbd_video_stream_request_handler() 649 *len = 1; in usbd_video_stream_request_handler() 653 *len = 1; in usbd_video_stream_request_handler() 782 static uint32_t len = 0; in usbd_video_stream_split_transfer() local 810 g_usbd_video[busid].stream_len -= len; in usbd_video_stream_split_transfer() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/snmp/ |
| A D | asn1_dec.c | 61 plen += p->len; in snmp_asn1_dec_type() 94 plen += p->len; in snmp_asn1_dec_length() 254 if ((len > 0) && (len < 6)) in snmp_asn1_dec_u32t() 269 len--; in snmp_asn1_dec_u32t() 289 len--; in snmp_asn1_dec_u32t() 354 if ((len > 0) && (len < 5)) in snmp_asn1_dec_s32t() 371 len--; in snmp_asn1_dec_s32t() 487 len--; in snmp_asn1_dec_oid() 505 while ((len > 0) && (oid->len < LWIP_SNMP_OBJ_ID_LEN)) in snmp_asn1_dec_oid() 542 len--; in snmp_asn1_dec_oid() [all …]
|
| /components/net/at/src/ |
| A D | at_utils.c | 69 if (len == 0) in at_vprintf() 75 at_print_raw_cmd("sendline", send_buf, len); in at_vprintf() 83 if (len == 0) in at_vprintfln() 88 send_buf[len++] = '\r'; in at_vprintfln() 89 send_buf[len++] = '\n'; in at_vprintfln() 92 at_print_raw_cmd("sendline", send_buf, len); in at_vprintfln() 100 if (len == 0) in at_vprintfcr() 105 send_buf[len++] = '\r'; in at_vprintfcr() 108 at_print_raw_cmd("sendline", send_buf, len); in at_vprintfcr() 116 if (len == 0) in at_vprintflf() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ipv4/ |
| A D | inet_chksum.c | 90 while (len > 1) { in lwip_standard_chksum() 99 len -= 2; in lwip_standard_chksum() 101 if (len > 0) { in lwip_standard_chksum() 145 len--; in lwip_standard_chksum() 150 while (len > 1) { in lwip_standard_chksum() 152 len -= 2; in lwip_standard_chksum() 156 if (len > 0) { in lwip_standard_chksum() 202 len--; in lwip_standard_chksum() 209 len -= 2; in lwip_standard_chksum() 225 len -= 8; in lwip_standard_chksum() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/ |
| A D | eap.c | 643 int len; in eap_send_request() local 1351 len--; in eap_request() 1410 len--; in eap_request() 1469 len--; in eap_request() 1564 Nval.len = len; in eap_request() 1614 Bval.len = len; in eap_request() 1754 len--; in eap_response() 1785 len--; in eap_response() 1910 A.len = len; in eap_response() 2085 if (len < EAP_HEADERLEN || len > inlen) { in eap_input() [all …]
|
| A D | chap-new.c | 275 p[2] = len >> 8; in chap_generate_challenge() 276 p[3] = len; in chap_generate_challenge() 305 if (len < 0) 362 outp[3] = len; 454 if (len < 2 || len < pkt[0] + 1) 491 outp[3] = len; 521 if (len > 0) 537 int len; local 544 if (len < CHAP_HDRLEN || len > pktlen) 604 if (len < CHAP_HDRLEN || len > plen) [all …]
|
| A D | utils.c | 79 int len; member 91 if (ret < len) in ppp_strlcpy() 161 len = buflen; in ppp_vslprintf() 383 len = prec; in ppp_vslprintf() 397 buf += len; in ppp_vslprintf() 431 int len; 454 len -= 2; in ppp_format_packet() 463 len -= n; in ppp_format_packet() 470 if (len > 8) in ppp_format_packet() 474 len = 0; in ppp_format_packet() [all …]
|
| A D | upap.c | 308 int len; in upap_input() local 326 if (len > l) { in upap_input() 387 if (len < 1) { in upap_rauthreq() 393 if (len < 0) { in upap_rauthreq() 469 if (len < 1) { in upap_rauthack() 504 if (len < 1) { in upap_rauthnak() 614 if (len < UPAP_HEADERLEN || len > plen) in upap_printpkt() 625 if (len < 1) in upap_printpkt() 652 if (len < 1) in upap_printpkt() 659 len -= mlen + 1; in upap_printpkt() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/ |
| A D | eap.c | 643 int len; in eap_send_request() local 1351 len--; in eap_request() 1410 len--; in eap_request() 1469 len--; in eap_request() 1564 Nval.len = len; in eap_request() 1614 Bval.len = len; in eap_request() 1754 len--; in eap_response() 1785 len--; in eap_response() 1910 A.len = len; in eap_response() 2085 if (len < EAP_HEADERLEN || len > inlen) { in eap_input() [all …]
|
| A D | chap-new.c | 275 p[2] = len >> 8; in chap_generate_challenge() 276 p[3] = len; in chap_generate_challenge() 305 if (len < 0) 362 outp[3] = len; 454 if (len < 2 || len < pkt[0] + 1) 491 outp[3] = len; 521 if (len > 0) 537 int len; local 544 if (len < CHAP_HDRLEN || len > pktlen) 604 if (len < CHAP_HDRLEN || len > plen) [all …]
|
| A D | utils.c | 81 int len; member 93 if (ret < len) in ppp_strlcpy() 163 len = buflen; in ppp_vslprintf() 385 len = prec; in ppp_vslprintf() 399 buf += len; in ppp_vslprintf() 433 int len; 456 len -= 2; in ppp_format_packet() 465 len -= n; in ppp_format_packet() 472 if (len > 8) in ppp_format_packet() 476 len = 0; in ppp_format_packet() [all …]
|
| A D | upap.c | 308 int len; in upap_input() local 326 if (len > l) { in upap_input() 387 if (len < 1) { in upap_rauthreq() 393 if (len < 0) { in upap_rauthreq() 469 if (len < 1) { in upap_rauthack() 504 if (len < 1) { in upap_rauthnak() 614 if (len < UPAP_HEADERLEN || len > plen) in upap_printpkt() 625 if (len < 1) in upap_printpkt() 652 if (len < 1) in upap_printpkt() 659 len -= mlen + 1; in upap_printpkt() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmp_asn1.c | 425 if ((len > 0) && (len <= 5)) { in snmp_asn1_dec_u32t() 431 len--; in snmp_asn1_dec_u32t() 435 len--; in snmp_asn1_dec_u32t() 463 if ((len > 0) && (len < 5)) { in snmp_asn1_dec_s32t() 474 len--; in snmp_asn1_dec_s32t() 479 len--; in snmp_asn1_dec_s32t() 511 len--; in snmp_asn1_dec_oid() 544 len--; in snmp_asn1_dec_oid() 600 len--; in snmp_asn1_dec_raw() 648 if ((len > 0) && (len <= 9)) { in snmp_asn1_dec_u64t() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | pbuf.c | 184 p->len = len; in pbuf_init_alloced_pbuf() 523 p->len = (u16_t)(p->len + increment_magnitude); in pbuf_add_header_impl() 606 p->len = (u16_t)(p->len - increment_magnitude); in pbuf_remove_header() 811 u16_t len; in pbuf_clen() local 813 len = 0; in pbuf_clen() 815 ++len; in pbuf_clen() 977 len = p_from->len - offset_from; in pbuf_copy() 980 len = p_to->len - offset_to; in pbuf_copy() 1052 len = (u16_t)(len - buf_copy_len); in pbuf_copy_partial() 1085 if (q->len >= (out_offset + len)) { in pbuf_get_contiguous() [all …]
|
| A D | inet_chksum.c | 89 while (len > 1) { in lwip_standard_chksum() 98 len -= 2; in lwip_standard_chksum() 100 if (len > 0) { in lwip_standard_chksum() 144 len--; in lwip_standard_chksum() 149 while (len > 1) { in lwip_standard_chksum() 151 len -= 2; in lwip_standard_chksum() 155 if (len > 0) { in lwip_standard_chksum() 201 len--; in lwip_standard_chksum() 208 len -= 2; in lwip_standard_chksum() 224 len -= 8; in lwip_standard_chksum() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmp_asn1.c | 489 if ((len > 0) && (len <= 5)) { in snmp_asn1_dec_u32t() 495 len--; in snmp_asn1_dec_u32t() 499 len--; in snmp_asn1_dec_u32t() 536 if ((len > 0) && (len <= 9)) { in snmp_asn1_dec_u64t() 542 len--; in snmp_asn1_dec_u64t() 588 if ((len > 0) && (len < 5)) { in snmp_asn1_dec_s32t() 590 len--; in snmp_asn1_dec_s32t() 607 len--; in snmp_asn1_dec_s32t() 654 len--; in snmp_asn1_dec_oid() 687 len--; in snmp_asn1_dec_oid() [all …]
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | pbuf.c | 477 q->len = rem_len; in pbuf_realloc() 706 u8_t len; in pbuf_clen() local 708 len = 0; in pbuf_clen() 710 ++len; in pbuf_clen() 713 return len; in pbuf_clen() 867 if ((p_to->len - offset_to) >= (p_from->len - offset_from)) { in pbuf_copy() 869 len = p_from->len - offset_from; in pbuf_copy() 872 len = p_to->len - offset_to; in pbuf_copy() 875 offset_to += len; in pbuf_copy() 1053 if ((start_offset >= p->len) || (start_offset + len > p->len)) { in pbuf_fill_chksum() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | pbuf.c | 544 q->len = rem_len; in pbuf_realloc() 802 u16_t len; in pbuf_clen() local 804 len = 0; in pbuf_clen() 806 ++len; in pbuf_clen() 809 return len; in pbuf_clen() 963 if ((p_to->len - offset_to) >= (p_from->len - offset_from)) { in pbuf_copy() 965 len = p_from->len - offset_from; in pbuf_copy() 968 len = p_to->len - offset_to; in pbuf_copy() 1203 u16_t first_copy_len = LWIP_MIN(q->len - target_offset, len); in pbuf_take_at() 1273 if ((start_offset >= p->len) || (start_offset + len > p->len)) { in pbuf_fill_chksum() [all …]
|
| A D | inet_chksum.c | 89 while (len > 1) { in lwip_standard_chksum() 98 len -= 2; in lwip_standard_chksum() 100 if (len > 0) { in lwip_standard_chksum() 144 len--; in lwip_standard_chksum() 149 while (len > 1) { in lwip_standard_chksum() 151 len -= 2; in lwip_standard_chksum() 155 if (len > 0) { in lwip_standard_chksum() 201 len--; in lwip_standard_chksum() 208 len -= 2; in lwip_standard_chksum() 224 len -= 8; in lwip_standard_chksum() [all …]
|
| /components/drivers/wlan/ |
| A D | dev_wlan_cfg.c | 34 rt_uint32_t len; member 58 while (len--) in rt_wlan_cal_crc() 106 int len = 0; in rt_wlan_cfg_cache_save() local 120 info_pkg->len = len; in rt_wlan_cfg_cache_save() 126 if (cfg_ops->write_cfg(info_pkg, len) != len) in rt_wlan_cfg_cache_save() 135 int len = 0, i, j; in rt_wlan_cfg_cache_refresh() local 167 if (cfg_ops->read_cfg(head, len) != len) in rt_wlan_cfg_cache_refresh() 177 LOG_D("head->len:%d len:%d", head->len, len); in rt_wlan_cfg_cache_refresh() 182 (head->len != len) || in rt_wlan_cfg_cache_refresh() 282 if ((idx == 0) && (cfg_cache->cfg_info[i].key.len == cfg_info->key.len) && in rt_wlan_cfg_save() [all …]
|
| /components/legacy/fdt/libfdt/ |
| A D | fdt_wip.c | 59 int len) in fdt_setprop_inplace_namelen_partial() argument 69 if (proplen < (len + idx)) in fdt_setprop_inplace_namelen_partial() 72 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial() 77 const void *val, int len) in fdt_setprop_inplace() argument 86 if (proplen != len) in fdt_setprop_inplace() 91 val, len); in fdt_setprop_inplace() 94 static void _fdt_nop_region(void *start, int len) in _fdt_nop_region() argument 98 for (p = start; (char *)p < ((char *)start + len); p++) in _fdt_nop_region() 105 int len; in fdt_nop_property() local 109 return len; in fdt_nop_property() [all …]
|
| /components/drivers/ofw/libfdt/ |
| A D | fdt_wip.c | 16 int len) in fdt_setprop_inplace_namelen_partial() argument 26 if ((unsigned)proplen < (len + idx)) in fdt_setprop_inplace_namelen_partial() 29 memcpy((char *)propval + idx, val, len); in fdt_setprop_inplace_namelen_partial() 34 const void *val, int len) in fdt_setprop_inplace() argument 43 if (proplen != len) in fdt_setprop_inplace() 48 val, len); in fdt_setprop_inplace() 51 static void fdt_nop_region_(void *start, int len) in fdt_nop_region_() argument 55 for (p = start; (char *)p < ((char *)start + len); p++) in fdt_nop_region_() 62 int len; in fdt_nop_property() local 66 return len; in fdt_nop_property() [all …]
|
| A D | fdt_overlay.c | 31 int len; in overlay_get_target_phandle() local 106 int len; in overlay_phandle_add_offset() local 110 return len; in overlay_phandle_add_offset() 418 int len; in overlay_fixup_phandle() local 426 return len; in overlay_fixup_phandle() 659 if (len == 0) in get_path_len() 660 len++; in get_path_len() 661 return len; in get_path_len() 738 if ((e - s) > len && (memcmp(s, "/__overlay__/", len) == 0)) { in overlay_symbol_update() 783 len + (len > 1) + rel_path_len + 1, &p); in overlay_symbol_update() [all …]
|
| /components/drivers/usb/cherryusb/class/wireless/ |
| A D | usbd_rndis.c | 17 #define RNDIS_INQUIRY_PUT(src, len) (memcpy(infomation_buffer, src, len)) argument 165 (void)len; in rndis_init_cmd_handler() 193 (void)len; in rndis_halt_cmd_handler() 210 (void)len; in rndis_query_cmd_handler() 358 (void)len; in rndis_set_cmd_handler() 417 (void)len; in rndis_reset_cmd_handler() 437 (void)len; in rndis_keepalive_cmd_handler() 525 g_rndis_tx_data_length = len; in usbd_rndis_start_write() 587 buffer += q->len; in usbd_rndis_eth_tx() 661 (void)len; in usbd_rndis_data_recv_done() [all …]
|
| /components/dfs/dfs_v1/filesystems/nfs/rpc/ |
| A D | xdr_mem.c | 124 if (xdrs->x_handy < len) return FALSE; in xdrmem_getbytes() 125 xdrs->x_handy -= len; in xdrmem_getbytes() 126 memmove(addr, xdrs->x_private, len); in xdrmem_getbytes() 127 xdrs->x_private += len; in xdrmem_getbytes() 134 if (xdrs->x_handy < len) return FALSE; in xdrmem_putbytes() 135 xdrs->x_handy -= len; in xdrmem_putbytes() 136 memmove(xdrs->x_private, addr, len); in xdrmem_putbytes() 137 xdrs->x_private += len; in xdrmem_putbytes() 165 if (xdrs->x_handy >= len) { in xdrmem_inline() 166 xdrs->x_handy -= len; in xdrmem_inline() [all …]
|