/external/f2fs-tools/tools/sg_write_buffer/ |
D | sg_lib.c | 523 bool only_one, int blen, char * b) in sg_decode_transportid_str() argument 529 if ((NULL == b) || (blen < 1)) in sg_decode_transportid_str() 531 else if (1 == blen) { in sg_decode_transportid_str() 542 n += scnpr(b + n, blen - n, "%sTransport Id short or not " in sg_decode_transportid_str() 543 "multiple of 4 [length=%d]:\n", lip, blen); in sg_decode_transportid_str() 545 n += scnpr(b + n, blen - n, "%sTransport Id of initiator:\n", in sg_decode_transportid_str() 553 n += scnpr(b + n, blen - n, "%s FCP-2 World Wide Name:\n", lip); in sg_decode_transportid_str() 555 n += scnpr(b + n, blen - n, "%s [Unexpected TPID format: " in sg_decode_transportid_str() 557 n += hex2str(bp + 8, 8, lip, 1, blen - n, b + n); in sg_decode_transportid_str() 561 n += scnpr(b + n, blen - n, "%s Parallel SCSI initiator SCSI " in sg_decode_transportid_str() [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | pcsc_funcs.c | 414 size_t blen; in scard_get_aid() local 419 blen = sizeof(buf); in scard_get_aid() 420 if (scard_select_file(scard, SCARD_FILE_EF_DIR, buf, &blen)) { in scard_get_aid() 424 wpa_hexdump(MSG_DEBUG, "SCARD: EF_DIR select", buf, blen); in scard_get_aid() 434 blen = sizeof(buf); in scard_get_aid() 435 if (rlen > (int) blen) { in scard_get_aid() 528 size_t blen; in scard_init() local 632 blen = sizeof(buf); in scard_init() 635 if (_scard_select_file(scard, SCARD_FILE_MF, buf, &blen, in scard_init() 645 blen = sizeof(buf); in scard_init() [all …]
|
D | wpabuf.c | 278 size_t blen; in wpabuf_zeropad() local 283 blen = wpabuf_len(buf); in wpabuf_zeropad() 284 if (blen >= len) in wpabuf_zeropad() 289 os_memset(wpabuf_put(ret, len - blen), 0, len - blen); in wpabuf_zeropad()
|
/external/iproute2/lib/ |
D | ll_addr.c | 31 const char *ll_addr_n2a(const unsigned char *addr, int alen, int type, char *buf, int blen) in ll_addr_n2a() argument 38 return inet_ntop(AF_INET, addr, buf, blen); in ll_addr_n2a() 41 return inet_ntop(AF_INET6, addr, buf, blen); in ll_addr_n2a() 43 snprintf(buf, blen, "%02x", addr[0]); in ll_addr_n2a() 44 for (i = 1, l = 2; i < alen && l < blen; i++, l += 3) in ll_addr_n2a() 45 snprintf(buf + l, blen - l, ":%02x", addr[i]); in ll_addr_n2a()
|
/external/toybox/lib/ |
D | deflate.c | 83 int click = bb->bitpos >> 3, blow, blen; in bitbuf_get() local 90 blen = 8-blow; in bitbuf_get() 91 if (blen > bits) blen = bits; in bitbuf_get() 92 result |= ((bb->buf[click] >> blow) & ((1<<blen)-1)) << offset; in bitbuf_get() 93 offset += blen; in bitbuf_get() 94 bits -= blen; in bitbuf_get() 95 bb->bitpos += blen; in bitbuf_get() 113 int click = bb->bitpos >> 3, blow, blen; in bitbuf_put() local 121 blen = 8-blow; in bitbuf_put() 122 if (blen > len) blen = len; in bitbuf_put() [all …]
|
/external/libcap/libcap/ |
D | cap_extint.c | 87 int set, blen; in cap_copy_int() local 100 blen = export->length_of_capset; in cap_copy_int() 107 if (bno != blen) in cap_copy_int() 109 if (bno != blen) in cap_copy_int() 111 if (bno != blen) in cap_copy_int() 113 if (bno != blen) in cap_copy_int()
|
/external/libxml2/ |
D | nanohttp.c | 1361 int blen; in xmlNanoHTTPMethodRedir() local 1399 blen = strlen(ctxt->hostname) * 2 + 16; in xmlNanoHTTPMethodRedir() 1403 blen = strlen(ctxt->hostname); in xmlNanoHTTPMethodRedir() 1416 blen += 36; in xmlNanoHTTPMethodRedir() 1419 blen += strlen(headers) + 2; in xmlNanoHTTPMethodRedir() 1422 blen += strlen(*contentType) + 16; in xmlNanoHTTPMethodRedir() 1425 blen += strlen(ctxt->query) + 1; in xmlNanoHTTPMethodRedir() 1426 blen += strlen(method) + strlen(ctxt->path) + 24; in xmlNanoHTTPMethodRedir() 1429 blen += 23; in xmlNanoHTTPMethodRedir() 1434 blen += 17; in xmlNanoHTTPMethodRedir() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | policy.c | 444 int blen, i; local 446 blen = sizeof(buf) - 1; 456 i = snprintf(p, blen, "%s/%d[%s ", a, spidx->prefs, b); 457 if (i < 0 || i >= blen) 460 blen -= i; 469 i = snprintf(p, blen, "%s/%d[%s ", a, spidx->prefd, b); 470 if (i < 0 || i >= blen) 473 blen -= i; 475 i = snprintf(p, blen, "proto=%s dir=%s", 481 blen -= i; [all …]
|
/external/openssh/ |
D | ssh-pkcs11-client.c | 111 u_int blen, slen = 0; in pkcs11_rsa_private_encrypt() local 119 if (key_to_blob(&key, &blob, &blen) == 0) in pkcs11_rsa_private_encrypt() 123 buffer_put_string(&msg, blob, blen); in pkcs11_rsa_private_encrypt() 192 u_int blen; in pkcs11_add_provider() local 209 blob = buffer_get_string(&msg, &blen); in pkcs11_add_provider() 211 k = key_from_blob(blob, blen); in pkcs11_add_provider()
|
D | key.c | 95 key_from_blob(const u_char *blob, u_int blen) in key_from_blob() argument 100 if ((r = sshkey_from_blob(blob, blen, &ret)) != 0) { in key_from_blob() 112 size_t blen; in key_to_blob() local 119 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) { in key_to_blob() 124 if (blen > INT_MAX) in key_to_blob() 125 fatal("%s: giant len %zu", __func__, blen); in key_to_blob() 129 *lenp = blen; in key_to_blob() 130 return blen; in key_to_blob()
|
D | authfd.c | 246 size_t blen; in deserialise_identity2() local 248 if ((r = sshbuf_get_string_direct(ids, &blob, &blen)) != 0 || in deserialise_identity2() 251 if ((r = sshkey_from_blob(blob, blen, keyp)) != 0) in deserialise_identity2() 450 size_t blen = 0, len = 0; in ssh_agent_sign() local 463 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) in ssh_agent_sign() 467 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in ssh_agent_sign() 488 explicit_bzero(blob, blen); in ssh_agent_sign() 618 size_t blen; in ssh_remove_identity() local 634 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) in ssh_remove_identity() 638 (r = sshbuf_put_string(msg, blob, blen)) != 0) in ssh_remove_identity() [all …]
|
D | ssh-pkcs11-helper.c | 120 u_int blen; in process_add() local 130 if (key_to_blob(keys[i], &blob, &blen) == 0) in process_add() 132 buffer_put_string(&msg, blob, blen); in process_add() 171 u_int blen, dlen, slen = 0; in process_sign() local 176 blob = get_string(&blen); in process_sign() 180 if ((key = key_from_blob(blob, blen)) != NULL) { in process_sign()
|
D | auth2-hostbased.c | 65 u_int alen, blen, slen; in userauth_hostbased() local 74 pkblob = packet_get_string(&blen); in userauth_hostbased() 95 key = key_from_blob(pkblob, blen); in userauth_hostbased() 128 buffer_put_string(&b, pkblob, blen); in userauth_hostbased()
|
/external/strace/tests/ |
D | sendfile64.c | 70 const unsigned int blen = file_size / 3; in main() local 71 const unsigned int alen = file_size - blen; in main() 100 == (long) blen); in main() 102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
D | sendfile.c | 70 const unsigned int blen = file_size / 3; in main() local 71 const unsigned int alen = file_size - blen; in main() 107 == (long) blen); in main() 109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
/external/strace/tests-mx32/ |
D | sendfile64.c | 70 const unsigned int blen = file_size / 3; in main() local 71 const unsigned int alen = file_size - blen; in main() 100 == (long) blen); in main() 102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
D | sendfile.c | 70 const unsigned int blen = file_size / 3; in main() local 71 const unsigned int alen = file_size - blen; in main() 107 == (long) blen); in main() 109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
/external/strace/tests-m32/ |
D | sendfile64.c | 70 const unsigned int blen = file_size / 3; in main() local 71 const unsigned int alen = file_size - blen; in main() 100 == (long) blen); in main() 102 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
D | sendfile.c | 70 const unsigned int blen = file_size / 3; in main() local 71 const unsigned int alen = file_size - blen; in main() 107 == (long) blen); in main() 109 sv[1], reg_in, alen, file_size, file_size + 1, blen); in main()
|
/external/boringssl/src/crypto/bio/ |
D | bio_mem.c | 167 int blen; in mem_write() local 178 blen = b->length; in mem_write() 179 if (INT_MAX - blen < inl) { in mem_write() 182 if (BUF_MEM_grow_clean(b, blen + inl) != ((size_t) blen) + inl) { in mem_write() 185 OPENSSL_memcpy(&b->data[blen], in, inl); in mem_write()
|
/external/pdfium/third_party/bigint/ |
D | NumberlikeArray.hh | 76 NumberlikeArray(const Blk *b, Index blen); 158 NumberlikeArray<Blk>::NumberlikeArray(const Blk *b, Index blen) in NumberlikeArray() argument 159 : cap(blen), len(blen) { in NumberlikeArray()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | win_if_list.c | 77 size_t blen = sizeof(*b) + 1024; in ndisuio_query_bindings() local 84 b = malloc(blen); in ndisuio_query_bindings() 89 memset(b, 0, blen); in ndisuio_query_bindings() 93 (DWORD) blen, &written, NULL)) { in ndisuio_query_bindings()
|
/external/curl/src/ |
D | tool_doswin.c | 592 size_t blen = strlen(base); in rename_if_reserved_dos_device_name() local 593 if(blen) { in rename_if_reserved_dos_device_name() 595 --blen; in rename_if_reserved_dos_device_name() 596 if(!(flags & SANITIZE_ALLOW_TRUNCATE) || truncate_dryrun(base, blen)) in rename_if_reserved_dos_device_name() 598 base[blen] = '\0'; in rename_if_reserved_dos_device_name() 600 memmove(base + 1, base, blen + 1); in rename_if_reserved_dos_device_name() 602 ++blen; in rename_if_reserved_dos_device_name()
|
/external/iproute2/ip/ |
D | ipila.c | 78 size_t blen; in print_ila_locid() local 82 blen = print_addr64(rta_getattr_u32(tb[attr]), in print_ila_locid() 87 blen = 1; in print_ila_locid() 90 for (i = 0; i < space - blen; i++) in print_ila_locid()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_hostap.c | 407 size_t blen; in wpa_driver_hostap_set_key() local 410 blen = sizeof(*param) + key_len; in wpa_driver_hostap_set_key() 411 buf = os_zalloc(blen); in wpa_driver_hostap_set_key() 447 if (hostapd_ioctl(drv, param, blen)) { in wpa_driver_hostap_set_key() 463 size_t blen; in hostap_get_seqnum() local 466 blen = sizeof(*param) + 32; in hostap_get_seqnum() 467 buf = os_zalloc(blen); in hostap_get_seqnum() 479 if (hostapd_ioctl(drv, param, blen)) { in hostap_get_seqnum() 711 size_t blen, elem_len; in hostapd_ioctl_set_generic_elem() local 714 blen = PRISM2_HOSTAPD_GENERIC_ELEMENT_HDR_LEN + elem_len; in hostapd_ioctl_set_generic_elem() [all …]
|