/third_party/f2fs-tools/tools/sg_write_buffer/ |
D | sg_pt_linux_nvme.c | 418 uint16_t n, alloc_len, pg_cd; in sntl_inq() local 440 alloc_len = sg_get_unaligned_be16(cdbp + 3); in sntl_inq() 506 if (alloc_len > 0) { in sntl_inq() 507 n = (alloc_len < n) ? alloc_len : n; in sntl_inq() 531 if (alloc_len > 0) { in sntl_inq() 532 n = (alloc_len < inq_resp_len) ? alloc_len : inq_resp_len; in sntl_inq() 548 uint32_t alloc_len, k, n, num, max_nsid; in sntl_rluns() local 556 alloc_len = sg_get_unaligned_be32(cdbp + 6); in sntl_rluns() 596 if (alloc_len > 0) { in sntl_rluns() 597 n = (alloc_len < n) ? alloc_len : n; in sntl_rluns() [all …]
|
D | sg_cmds_extra.c | 137 void * resp, int alloc_len, bool noisy, int verbose) in sg_ll_get_lba_status16() argument 150 sg_put_unaligned_be32((uint32_t)alloc_len, getLbaStatCmd + 10); in sg_ll_get_lba_status16() 163 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, alloc_len); in sg_ll_get_lba_status16() 165 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, alloc_len, sense_b, in sg_ll_get_lba_status16() 202 int alloc_len, bool noisy, int verbose) in sg_ll_get_lba_status() argument 205 alloc_len, noisy, verbose); in sg_ll_get_lba_status() 213 void * resp, int alloc_len, bool noisy, in sg_ll_get_lba_status32() argument 230 sg_put_unaligned_be32((uint32_t)alloc_len, gls32_cmd + 28); in sg_ll_get_lba_status32() 242 set_scsi_pt_data_in(ptvp, (unsigned char *)resp, alloc_len); in sg_ll_get_lba_status32() 244 ret = sg_cmds_process_resp(ptvp, cdb_name_s, res, alloc_len, sense_b, in sg_ll_get_lba_status32()
|
/third_party/openssl/crypto/rand/ |
D | rand_lib.c | 450 pool->alloc_len = min_len < min_alloc_size ? min_alloc_size : min_len; in rand_pool_new() 451 if (pool->alloc_len > pool->max_len) in rand_pool_new() 452 pool->alloc_len = pool->max_len; in rand_pool_new() 455 pool->buffer = OPENSSL_secure_zalloc(pool->alloc_len); in rand_pool_new() 457 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in rand_pool_new() 500 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in rand_pool_attach() 522 OPENSSL_secure_clear_free(pool->buffer, pool->alloc_len); in rand_pool_free() 524 OPENSSL_clear_free(pool->buffer, pool->alloc_len); in rand_pool_free() 622 if (len > pool->alloc_len - pool->len) { in rand_pool_grow() 625 size_t newlen = pool->alloc_len; in rand_pool_grow() [all …]
|
D | rand_local.h | 176 size_t alloc_len; /* current number of bytes allocated */ member
|
/third_party/toybox/toys/pending/ |
D | vi.c | 42 int alloc_len; member 156 lst->line->alloc_len = alc; in linelist_load() 177 lst->line->alloc_len = alc; in linelist_load() 349 char *t = xzalloc(c_r->line->alloc_len); in i_insert() 354 if (c_r->line->alloc_len < c_r->line->str_len+len+5) { in i_insert() 356 (c_r->line->alloc_len+len)<<1); in i_insert() 358 c_r->line->alloc_len = (c_r->line->alloc_len+len)<<1; in i_insert() 360 c_r->line->alloc_len-c_r->line->str_len); in i_insert() 380 alloc = c_r->line->alloc_len; in i_split() 387 l->alloc_len = alloc; in i_split() [all …]
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsfallocate.c | 589 static int ntfs_inner_allocation(ntfs_attr *na, s64 alloc_offs, s64 alloc_len) in ntfs_inner_allocation() argument 608 end_vcn = (alloc_offs + alloc_len + vol->cluster_size - 1) in ntfs_inner_allocation() 653 s64 alloc_offs, s64 alloc_len) in ntfs_full_allocation() argument 673 alloc_offs + alloc_len); in ntfs_full_allocation() 680 if ((alloc_offs + alloc_len) > na->allocated_size) in ntfs_full_allocation() 681 err = ntfs_attr_truncate(na, alloc_offs + alloc_len); in ntfs_full_allocation() 683 err = ntfs_inner_allocation(na, alloc_offs, alloc_len); in ntfs_full_allocation() 689 || ((alloc_offs + alloc_len) < data_size)) in ntfs_full_allocation() 700 na->data_size = alloc_offs + alloc_len; in ntfs_full_allocation() 742 static int ntfs_fallocate(ntfs_inode *ni, s64 alloc_offs, s64 alloc_len) in ntfs_fallocate() argument [all …]
|
/third_party/uboot/u-boot-2020.01/drivers/usb/emul/ |
D | sandbox_flash.c | 55 int alloc_len; member 250 priv->alloc_len = req->cmd[4]; in handle_ufi_command() 310 priv->alloc_len = 0; in sandbox_flash_bulk() 334 len, priv->alloc_len, priv->read_len); in sandbox_flash_bulk() 345 if (priv->alloc_len && len > priv->alloc_len) in sandbox_flash_bulk() 346 len = priv->alloc_len; in sandbox_flash_bulk()
|
/third_party/lwip/src/netif/ |
D | bridgeif_fdb.c | 199 mem_size_t alloc_len = (mem_size_t)alloc_len_sizet; in bridgeif_fdb_init() local 200 LWIP_ASSERT("alloc_len == alloc_len_sizet", alloc_len == alloc_len_sizet); in bridgeif_fdb_init() 201 …BRIDGEIF_DEBUG, ("bridgeif_fdb_init: allocating %d bytes for private FDB data\n", (int)alloc_len)); in bridgeif_fdb_init() 202 fdb = (bridgeif_dfdb_t *)mem_calloc(1, alloc_len); in bridgeif_fdb_init()
|
D | bridgeif.c | 418 mem_size_t alloc_len; in bridgeif_init() local 438 alloc_len = (mem_size_t)alloc_len_sizet; in bridgeif_init() 439 LWIP_ASSERT("alloc_len == alloc_len_sizet", alloc_len == alloc_len_sizet); in bridgeif_init() 440 …_DEBUGF(BRIDGEIF_DEBUG, ("bridgeif_init: allocating %d bytes for private data\n", (int)alloc_len)); in bridgeif_init() 441 br = (bridgeif_private_t *)mem_calloc(1, alloc_len); in bridgeif_init()
|
/third_party/lwip/src/apps/http/ |
D | http_client.c | 510 size_t alloc_len; in httpc_init_connection_common() local 526 alloc_len = sizeof(httpc_state_t); in httpc_init_connection_common() 530 alloc_len += server_name_len + 1 + uri_len + 1; in httpc_init_connection_common() 532 mem_alloc_len = (mem_size_t)alloc_len; in httpc_init_connection_common() 533 if ((mem_alloc_len < alloc_len) || (req_len + 1 > 0xFFFF)) { in httpc_init_connection_common() 537 req = (httpc_state_t*)mem_malloc((mem_size_t)alloc_len); in httpc_init_connection_common() 727 size_t file_len, alloc_len; in httpc_fs_init() local 731 alloc_len = sizeof(httpc_filestate_t) + file_len + 1; in httpc_fs_init() 733 filestate = (httpc_filestate_t *)mem_malloc((mem_size_t)alloc_len); in httpc_fs_init()
|
D | altcp_proxyconnect.c | 113 mem_size_t alloc_len; in altcp_proxyconnect_send_request() local 131 alloc_len = (mem_size_t)len; in altcp_proxyconnect_send_request() 132 if ((len < 0) || (int)alloc_len != len) { in altcp_proxyconnect_send_request() 137 buffer = (char *)mem_malloc(alloc_len); in altcp_proxyconnect_send_request() 142 len2 = altcp_proxyconnect_format_request(buffer, alloc_len, host, state->outer_port); in altcp_proxyconnect_send_request()
|
/third_party/f2fs-tools/tools/sg_write_buffer/include/ |
D | sg_cmds_extra.h | 76 int alloc_len, bool noisy, int verbose); 78 void * resp, int alloc_len, bool noisy, 82 void * resp, int alloc_len, bool noisy,
|
/third_party/lwip/src/core/ipv4/ |
D | icmp.c | 162 u16_t alloc_len = (u16_t)(p->tot_len + hlen); in icmp_input() local 163 if (alloc_len < p->tot_len) { in icmp_input() 168 r = pbuf_alloc(PBUF_LINK, alloc_len, PBUF_RAM); in icmp_input()
|
/third_party/uboot/u-boot-2020.01/tools/ |
D | imximage.c | 915 size_t alloc_len; in imximage_generate() local 949 alloc_len = imximage_init_loadsize - imximage_ivt_offset; in imximage_generate() 951 if (alloc_len < header_size) { in imximage_generate() 957 imxhdr = malloc(alloc_len); in imximage_generate() 965 memset(imxhdr, 0, alloc_len); in imximage_generate() 967 tparams->header_size = alloc_len; in imximage_generate()
|
D | kwbimage.c | 1653 int alloc_len; in kwbimage_generate() local 1692 alloc_len = sizeof(struct main_hdr_v0) + in kwbimage_generate() 1697 alloc_len = image_headersz_v1(NULL); in kwbimage_generate() 1708 hdr = malloc(alloc_len); in kwbimage_generate() 1715 memset(hdr, 0, alloc_len); in kwbimage_generate() 1716 tparams->header_size = alloc_len; in kwbimage_generate()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
D | wps_upnp.c | 310 int alloc_len; in subscr_addr_add_url() local 380 alloc_len = host_len + 1 + 1 + path_len + 1; in subscr_addr_add_url() 392 a = os_zalloc(sizeof(*a) + alloc_len); in subscr_addr_add_url()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
D | wps_upnp.c | 310 int alloc_len; in subscr_addr_add_url() local 380 alloc_len = host_len + 1 + 1 + path_len + 1; in subscr_addr_add_url() 392 a = os_zalloc(sizeof(*a) + alloc_len); in subscr_addr_add_url()
|
/third_party/lwip/src/core/ |
D | pbuf.c | 275 mem_size_t alloc_len = (mem_size_t)(LWIP_MEM_ALIGN_SIZE(SIZEOF_STRUCT_PBUF) + payload_len); in pbuf_alloc() local 279 (alloc_len < LWIP_MEM_ALIGN_SIZE(length))) { in pbuf_alloc() 284 p = (struct pbuf *)mem_malloc(alloc_len); in pbuf_alloc()
|
/third_party/libusb/libusb/os/ |
D | linux_usbfs.c | 892 size_t alloc_len; in initialize_device() local 937 alloc_len = 0; in initialize_device() 942 alloc_len += desc_read_length; in initialize_device() 943 priv->descriptors = usbi_reallocf(priv->descriptors, alloc_len); in initialize_device() 961 } while (priv->descriptors_len == alloc_len); in initialize_device()
|
/third_party/mbedtls/library/ |
D | ssl_tls.c | 3702 size_t alloc_len; in ssl_get_reassembly_buffer_size() local 3704 alloc_len = 12; /* Handshake header */ in ssl_get_reassembly_buffer_size() 3705 alloc_len += msg_len; /* Content buffer */ in ssl_get_reassembly_buffer_size() 3708 alloc_len += msg_len / 8 + ( msg_len % 8 != 0 ); /* Bitmap */ in ssl_get_reassembly_buffer_size() 3710 return( alloc_len ); in ssl_get_reassembly_buffer_size()
|