/external/wpa_supplicant_6/wpa_supplicant/src/wps/ |
D | wps_attr_parse.c | 22 const u8 *pos, u16 len) in wps_set_attr() argument 26 if (len != 1) { in wps_set_attr() 28 len); in wps_set_attr() 34 if (len != 1) { in wps_set_attr() 36 "length %u", len); in wps_set_attr() 42 if (len != WPS_NONCE_LEN) { in wps_set_attr() 44 "length %u", len); in wps_set_attr() 50 if (len != WPS_NONCE_LEN) { in wps_set_attr() 52 "length %u", len); in wps_set_attr() 58 if (len != WPS_UUID_LEN) { in wps_set_attr() [all …]
|
/external/qemu/hw/ |
D | bt-sdp.c | 36 int len; member 46 size_t len = *(*element) ++ & SDP_DSIZE_MASK; in sdp_datalen() local 52 if (len < SDP_DSIZE_NEXT1) in sdp_datalen() 53 return 1 << len; in sdp_datalen() 54 else if (len == SDP_DSIZE_NEXT1) { in sdp_datalen() 60 } else if (len == SDP_DSIZE_NEXT2) { in sdp_datalen() 65 len = (*(*element) ++) << 8; in sdp_datalen() 66 return len | (*(*element) ++); in sdp_datalen() 72 len = (*(*element) ++) << 24; in sdp_datalen() 73 len |= (*(*element) ++) << 16; in sdp_datalen() [all …]
|
D | bt-l2cap.c | 51 const l2cap_hdr *hdr, int len); 142 static uint16_t l2cap_fcs16(const uint8_t *message, int len) in l2cap_fcs16() argument 146 while (len --) in l2cap_fcs16() 193 uint16_t len; in l2cap_command_reject() local 196 len = cpu_to_le16(L2CAP_CMD_REJ_SIZE + plen); in l2cap_command_reject() 205 memcpy(&hdr->len, &len, sizeof(hdr->len)); in l2cap_command_reject() 238 hdr->len = cpu_to_le16(L2CAP_CONN_RSP_SIZE); in l2cap_connection_response() 249 int dcid, int flag, const uint8_t *data, int len) in l2cap_configuration_request() argument 256 L2CAP_CMD_HDR_SIZE + L2CAP_CONF_REQ_SIZE(len)); in l2cap_configuration_request() 266 hdr->len = cpu_to_le16(L2CAP_CONF_REQ_SIZE(len)); in l2cap_configuration_request() [all …]
|
D | bt-hid.c | 97 int len; member 118 s->dataother.len = 0; in bt_hid_reset() 119 s->datain.len = 0; in bt_hid_reset() 120 s->dataout.len = 0; in bt_hid_reset() 121 s->feature.len = 0; in bt_hid_reset() 122 s->intrdataout.len = 0; in bt_hid_reset() 134 p.len = s->dataout.len; in bt_hid_out() 135 s->dataout.len = s->usbdev->handle_data(s->usbdev, &p); in bt_hid_out() 137 return s->dataout.len; in bt_hid_out() 157 p.len = sizeof(s->datain.buffer); in bt_hid_in() [all …]
|
/external/dropbear/ |
D | buffer.c | 59 buf->len = 0; in buf_new() 89 buf->len = MIN(newsize, buf->len); in buf_resize() 100 ret = buf_new(buf->len); in buf_newcopy() 101 ret->len = buf->len; in buf_newcopy() 102 memcpy(ret->data, buf->data, buf->len); in buf_newcopy() 107 void buf_setlen(buffer* buf, unsigned int len) { in buf_setlen() argument 108 if (len > buf->size) { in buf_setlen() 111 buf->len = len; in buf_setlen() 116 if (incr > BUF_MAX_INCR || buf->len + incr > buf->size) { in buf_incrlen() 119 buf->len += incr; in buf_incrlen() [all …]
|
D | packet.c | 45 static buffer* buf_decompress(buffer* buf, unsigned int len); 46 static void buf_compress(buffer * dest, buffer * src, unsigned int len); 52 int len, written; in write_packet() local 61 len = writebuf->len - writebuf->pos; in write_packet() 62 dropbear_assert(len > 0); in write_packet() 64 written = write(ses.sock, buf_getptr(writebuf, len), len); in write_packet() 79 if (written == len) { in write_packet() 97 int len; in read_packet() local 104 if (ses.readbuf == NULL || ses.readbuf->len < blocksize) { in read_packet() 113 if (ses.decryptreadbuf->len == 0) { in read_packet() [all …]
|
/external/apache-http/src/org/apache/http/util/ |
D | CharArrayBuffer.java | 48 private int len; field in CharArrayBuffer 60 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 64 public void append(final char[] b, int off, int len) { in append() argument 68 if ((off < 0) || (off > b.length) || (len < 0) || in append() 69 ((off + len) < 0) || ((off + len) > b.length)) { in append() 72 if (len == 0) { in append() 75 int newlen = this.len + len; in append() 79 System.arraycopy(b, off, this.buffer, this.len, len); in append() 80 this.len = newlen; in append() 88 int newlen = this.len + strlen; in append() [all …]
|
D | ByteArrayBuffer.java | 46 private int len; field in ByteArrayBuffer 58 System.arraycopy(this.buffer, 0, newbuffer, 0, this.len); in expand() 62 public void append(final byte[] b, int off, int len) { in append() argument 66 if ((off < 0) || (off > b.length) || (len < 0) || in append() 67 ((off + len) < 0) || ((off + len) > b.length)) { in append() 70 if (len == 0) { in append() 73 int newlen = this.len + len; in append() 77 System.arraycopy(b, off, this.buffer, this.len, len); in append() 78 this.len = newlen; in append() 82 int newlen = this.len + 1; in append() [all …]
|
/external/dropbear/libtomcrypt/demos/ |
D | multi.c | 7 unsigned long len, len2; in main() local 15 len = sizeof(buf[0]); in main() 16 hash_memory(find_hash("sha256"), (unsigned char*)"hello", 5, buf[0], &len); in main() 19 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main() 20 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main() 25 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main() 26 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main() 31 if (len != len2 || memcmp(buf[0], buf[1], len)) { in main() 32 printf("Failed: %d %lu %lu\n", __LINE__, len, len2); in main() 37 len = sizeof(buf[0]); in main() [all …]
|
/external/dbus/dbus/ |
D | dbus-string.c | 84 _dbus_assert (real->len <= real->allocated - _DBUS_STRING_ALLOCATION_PADDING); in fixup_alignment() 99 real->len + 1); in fixup_alignment() 113 real->len + 1); in undo_alignment() 152 real->len = 0; in _dbus_string_init_preallocated() 153 real->str[real->len] = '\0'; in _dbus_string_init_preallocated() 230 int len) in _dbus_string_init_const_len() argument 235 _dbus_assert (len == 0 || value != NULL); in _dbus_string_init_const_len() 236 _dbus_assert (len <= _DBUS_STRING_MAX_MAX_LENGTH); in _dbus_string_init_const_len() 237 _dbus_assert (len >= 0); in _dbus_string_init_const_len() 242 real->len = len; in _dbus_string_init_const_len() [all …]
|
/external/bluetooth/glib/glib/ |
D | garray.c | 53 guint len; member 62 #define g_array_elt_zero(array, pos, len) \ argument 63 (memset (g_array_elt_pos ((array), pos), 0, g_array_elt_len ((array), len))) 66 g_array_elt_zero ((array), (array)->len, 1); \ 71 gint len); 89 array->len = 0; in g_array_sized_new() 128 guint len) in g_array_append_vals() argument 132 g_array_maybe_expand (array, len); in g_array_append_vals() 134 memcpy (g_array_elt_pos (array, array->len), data, in g_array_append_vals() 135 g_array_elt_len (array, len)); in g_array_append_vals() [all …]
|
D | gstring.c | 314 gssize len) in g_string_chunk_insert_len() argument 321 if (len < 0) in g_string_chunk_insert_len() 324 size = len; in g_string_chunk_insert_len() 342 if (len > 0) in g_string_chunk_insert_len() 354 gsize len) in g_string_maybe_expand() argument 356 if (string->len + len >= string->allocated_len) in g_string_maybe_expand() 358 string->allocated_len = nearest_power (1, string->len + len + 1); in g_string_maybe_expand() 381 string->len = 0; in g_string_sized_new() 407 gint len; in g_string_new() local 409 len = strlen (init); in g_string_new() [all …]
|
/external/tcpdump/ |
D | print-gre.c | 94 u_int len = length, vers; in gre_print() local 96 if (len < 2) { in gre_print() 105 gre_print_0(bp, len); in gre_print() 108 gre_print_1(bp, len); in gre_print() 121 u_int len = length; in gre_print_0() local 129 len -= 2; in gre_print_0() 132 if (len < 2) in gre_print_0() 135 len -= 2; in gre_print_0() 139 if (len < 2) in gre_print_0() 144 len -= 2; in gre_print_0() [all …]
|
D | print-bootp.c | 366 register u_int len; in rfc1048_print() local 400 len = 0; in rfc1048_print() 404 len = *bp++; in rfc1048_print() 407 printf("\n\t %s Option %u, length %u%s", cp, tag, len, in rfc1048_print() 408 len > 0 ? ": " : ""); in rfc1048_print() 420 if (!TTEST2(*bp, len)) { in rfc1048_print() 421 printf("[|rfc1048 %u]", len); in rfc1048_print() 425 if (tag == TAG_DHCP_MESSAGE && len == 1) { in rfc1048_print() 433 while (len-- > 0) { in rfc1048_print() 448 while (len > 1) { in rfc1048_print() [all …]
|
D | print-ip.c | 64 register u_int len; in ip_printroute() local 76 for (len = 3; len < length; len += 4) { in ip_printroute() 77 printf(" %s", ipaddr_string(&cp[len])); in ip_printroute() 78 if (ptr > len) in ip_printroute() 94 int len; in ip_finddst() local 101 for (; length > 0; cp += len, length -= len) { in ip_finddst() 109 len = 1; in ip_finddst() 112 len = cp[1]; in ip_finddst() 113 if (len < 2) in ip_finddst() 116 TCHECK2(*cp, len); in ip_finddst() [all …]
|
/external/bluetooth/hcidump/parser/ |
D | capi.c | 260 frm->len -= 24; in profile() 304 uint8_t len; in cmd_alert() local 309 len = CAPI_U8(frm); in cmd_alert() 310 if (len > 0) { in cmd_alert() 313 hex_dump(level, frm, len); in cmd_alert() 321 uint8_t len; in cmd_connect() local 332 len = CAPI_U8(frm); in cmd_connect() 333 frm->ptr += len; in cmd_connect() 334 frm->len -= len; in cmd_connect() 335 len = CAPI_U8(frm); in cmd_connect() [all …]
|
/external/libxml2/ |
D | xmlstring.c | 41 xmlStrndup(const xmlChar *cur, int len) { in xmlStrndup() argument 44 if ((cur == NULL) || (len < 0)) return(NULL); in xmlStrndup() 45 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlStrndup() 50 memcpy(ret, cur, len * sizeof(xmlChar)); in xmlStrndup() 51 ret[len] = 0; in xmlStrndup() 85 xmlCharStrndup(const char *cur, int len) { in xmlCharStrndup() argument 89 if ((cur == NULL) || (len < 0)) return(NULL); in xmlCharStrndup() 90 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar)); in xmlCharStrndup() 95 for (i = 0;i < len;i++) { in xmlCharStrndup() 99 ret[len] = 0; in xmlCharStrndup() [all …]
|
D | dict.c | 47 #define xmlDictComputeKey(dict, name, len) \ argument 49 xmlDictComputeFastKey(name, len) : \ 50 xmlDictComputeBigKey(name, len)) 52 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument 54 (xmlDictComputeKey(dict, name, len)) : \ 56 xmlDictComputeFastQKey(prefix, plen, name, len) : \ 57 xmlDictComputeBigQKey(prefix, plen, name, len))) 60 #define xmlDictComputeKey(dict, name, len) \ argument 61 xmlDictComputeFastKey(name, len) 62 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument [all …]
|
/external/expat/tests/ |
D | chardata.c | 26 int len = 0; in xmlstrlen() local 28 while (s[len] != 0) in xmlstrlen() 29 ++len; in xmlstrlen() 30 return len; in xmlstrlen() 45 int len; in CharData_AppendString() local 48 len = strlen(s); in CharData_AppendString() 51 if ((len + storage->count) > maxchars) { in CharData_AppendString() 52 len = (maxchars - storage->count); in CharData_AppendString() 54 if (len + storage->count < sizeof(storage->data)) { in CharData_AppendString() 55 memcpy(storage->data + storage->count, s, len); in CharData_AppendString() [all …]
|
/external/ppp/pppd/ |
D | cbcp.c | 67 static void cbcp_input __P((int unit, u_char *pkt, int len)); 69 static int cbcp_printpkt __P((u_char *pkt, int len, 97 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len)); 100 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len)); 101 static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len)); 161 u_short len; local 175 GETSHORT(len, inp); 177 if (len > pktlen || len < CBCP_MINLEN) { 179 dbglog("CBCP packet: invalid length %d", len); 183 len -= CBCP_MINLEN; [all …]
|
/external/dropbear/libtomcrypt/testprof/ |
D | rsa_test.c | 81 unsigned long len; in rsa_compat_test() local 87 len = sizeof(buf); in rsa_compat_test() 88 DO(rsa_export(buf, &len, PK_PRIVATE, &key)); in rsa_compat_test() 89 if (len != sizeof(openssl_private_rsa) || memcmp(buf, openssl_private_rsa, len)) { in rsa_compat_test() 90 …fprintf(stderr, "RSA private export failed to match OpenSSL output, %lu, %lu\n", len, (unsigned lo… in rsa_compat_test() 94 len = sizeof(buf); in rsa_compat_test() 95 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test() 96 … if (len != sizeof(openssl_public_rsa_stripped) || memcmp(buf, openssl_public_rsa_stripped, len)) { in rsa_compat_test() 104 len = sizeof(buf); in rsa_compat_test() 105 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test() [all …]
|
/external/zlib/contrib/puff/ |
D | puff.c | 158 unsigned len; /* length of stored block */ in stored() local 166 len = s->in[s->incnt++]; in stored() 167 len |= s->in[s->incnt++] << 8; in stored() 168 if (s->in[s->incnt++] != (~len & 0xff) || in stored() 169 s->in[s->incnt++] != ((~len >> 8) & 0xff)) in stored() 173 if (s->incnt + len > s->inlen) return 2; /* not enough input */ in stored() 175 if (s->outcnt + len > s->outlen) in stored() 177 while (len--) in stored() 181 s->outcnt += len; in stored() 182 s->incnt += len; in stored() [all …]
|
/external/elfutils/libebl/ |
D | eblstrtab.c | 39 size_t len; member 91 ret->null.len = 1; in ebl_strtabinit() 101 morememory (struct Ebl_Strtab *st, size_t len) in morememory() argument 105 if (len < ps) in morememory() 106 len = ps; in morememory() 107 newmem = (struct memoryblock *) malloc (len); in morememory() 114 st->left = len - offsetof (struct memoryblock, memory); in morememory() 137 newstring (struct Ebl_Strtab *st, const char *str, size_t len) in newstring() argument 150 if (st->left < align + sizeof (struct Ebl_Strent) + len) in newstring() 152 if (morememory (st, sizeof (struct Ebl_Strent) + len)) in newstring() [all …]
|
D | eblwstrtab.c | 40 size_t len; member 91 ret->null.len = 1; in ebl_wstrtabinit() 100 morememory (struct Ebl_WStrtab *st, size_t len) in morememory() argument 104 if (len < ps) in morememory() 105 len = ps; in morememory() 106 newmem = (struct memoryblock *) malloc (len); in morememory() 113 st->left = len - offsetof (struct memoryblock, memory); in morememory() 136 newstring (struct Ebl_WStrtab *st, const wchar_t *str, size_t len) in newstring() argument 149 if (st->left < align + sizeof (struct Ebl_WStrent) + len * sizeof (wchar_t)) in newstring() 152 sizeof (struct Ebl_WStrent) + len * sizeof (wchar_t))) in newstring() [all …]
|
/external/ipsec-tools/src/libipsec/ |
D | pfkey.c | 385 int len; local 416 len = sizeof(struct sadb_msg) 425 len += sizeof(struct sadb_spirange); 428 if ((newmsg = CALLOC((size_t)len, struct sadb_msg *)) == NULL) { 432 ep = ((caddr_t)(void *)newmsg) + len; 435 (u_int)len, satype, seq, getpid()); 488 len = pfkey_send(so, newmsg, len); 491 if (len < 0) 495 return len; 509 int len; local [all …]
|