Home
last modified time | relevance | path

Searched refs:alloc_len (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/crypto/openssl/crypto/rand/
H A Drand_pool.c37 if (pool->alloc_len > pool->max_len) in ossl_rand_pool_new()
38 pool->alloc_len = pool->max_len; in ossl_rand_pool_new()
41 pool->buffer = OPENSSL_secure_zalloc(pool->alloc_len); in ossl_rand_pool_new()
43 pool->buffer = OPENSSL_zalloc(pool->alloc_len); in ossl_rand_pool_new()
85 pool->min_len = pool->max_len = pool->alloc_len = pool->len; in ossl_rand_pool_attach()
109 OPENSSL_clear_free(pool->buffer, pool->alloc_len); in ossl_rand_pool_free()
207 if (len > pool->alloc_len - pool->len) { in rand_pool_grow()
210 size_t newlen = pool->alloc_len; in rand_pool_grow()
233 OPENSSL_clear_free(pool->buffer, pool->alloc_len); in rand_pool_grow()
235 pool->alloc_len = newlen; in rand_pool_grow()
[all …]
/freebsd/contrib/libfido2/src/
H A Diso7816.c14 size_t alloc_len; in iso7816_new() local
16 alloc_len = sizeof(iso7816_apdu_t) + payload_len + 2; /* le1 le2 */ in iso7816_new()
17 if ((apdu = calloc(1, alloc_len)) == NULL) in iso7816_new()
19 apdu->alloc_len = alloc_len; in iso7816_new()
38 freezero(apdu, apdu->alloc_len); in iso7816_free()
63 return apdu->alloc_len - offsetof(iso7816_apdu_t, header) - in iso7816_len()
H A Du2f.c111 size_t alloc_len; in authdata_fake() local
132 &alloc_len)) == 0) { in authdata_fake()
400 size_t alloc_len; in cbor_blob_from_ec_point() local
422 &alloc_len)) != 77) { in cbor_blob_from_ec_point()
445 size_t alloc_len; in encode_cred_attstmt() local
480 &alloc_len)) == 0) { in encode_cred_attstmt()
513 size_t alloc_len; in encode_cred_authdata() local
566 &alloc_len)) == 0) { in encode_cred_authdata()
H A Diso7816.h32 size_t alloc_len; member
H A Dcbor.c1297 size_t alloc_len; in cbor_decode_cred_authdata() local
1307 &authdata_cbor->ptr, &alloc_len)) == 0) { in cbor_decode_cred_authdata()
1346 size_t alloc_len; in cbor_decode_assert_authdata() local
1356 &authdata_cbor->ptr, &alloc_len)) == 0) { in cbor_decode_assert_authdata()
1458 size_t alloc_len; in cbor_decode_attstmt() local
1469 &attstmt->cbor.ptr, &alloc_len)) == 0) { in cbor_decode_attstmt()
/freebsd/sys/netlink/
H A Dktest_netlink_message_writer.c73 u_int alloc_len; in test_nlbuf_writer_allocation() local
80 alloc_len = nw.buf->buflen; in test_nlbuf_writer_allocation()
81 KTEST_LOG(ctx, "requested %u, allocated %d", attrs->size, alloc_len); in test_nlbuf_writer_allocation()
86 if (nlmsg_reserve_data(&nw, alloc_len, void *) == NULL) { in test_nlbuf_writer_allocation()
87 KTEST_LOG(ctx, "unable to get %d bytes from the writer", alloc_len); in test_nlbuf_writer_allocation()
93 if (alloc_len < attrs->expected_avail) { in test_nlbuf_writer_allocation()
95 alloc_len, attrs->expected_avail); in test_nlbuf_writer_allocation()
/freebsd/contrib/libfido2/tools/
H A Dbase64.c69 size_t alloc_len; in base64_decode() local
87 alloc_len = strlen(in); in base64_decode()
88 if ((*ptr = calloc(1, alloc_len)) == NULL) in base64_decode()
91 n = BIO_read(bio_b64, *ptr, (int)alloc_len); in base64_decode()
/freebsd/sbin/camcontrol/
H A Dzone.c328 uint32_t alloc_len = 65536, valid_len = 0; in zone() local
439 data_ptr = malloc(alloc_len); in zone()
441 err(1, "unable to allocate %u bytes", alloc_len); in zone()
444 bzero(data_ptr, alloc_len); in zone()
457 /*dxfer_len*/ alloc_len, in zone()
476 sector_count = ZAC_ATA_SECTOR_COUNT(alloc_len); in zone()
485 features = ZAC_ATA_SECTOR_COUNT(alloc_len); in zone()
507 /*dxfer_len*/ ZAC_ATA_SECTOR_COUNT(alloc_len)*512, in zone()
H A Dpersist.c66 unsigned int alloc_len; member
482 &id->alloc_len, error_str, error_str_len); in scsipersist()
494 id_len += id->alloc_len; in scsipersist()
774 bcopy(id->hdr, bufptr, id->alloc_len); in scsipersist()
775 bufptr += id->alloc_len; in scsipersist()
827 bcopy(id->hdr, bufptr, id->alloc_len); in scsipersist()
828 scsi_ulto4b(id->alloc_len, in scsipersist()
/freebsd/sys/cam/ctl/
H A Dctl_ioctl.h131 size_t alloc_len; /* passed to kernel */ member
269 uint32_t alloc_len; /* passed to kernel */ member
520 uint32_t alloc_len; /* passed to kernel */ member
646 uint32_t alloc_len; /* passed to kernel */ member
788 uint32_t alloc_len; /* passed to kernel */ member
H A Dctl.c424 int alloc_len);
427 int alloc_len);
3064 list->alloc_len); in ctl_ioctl()
3189 list->alloc_len); in ctl_ioctl()
3346 list->alloc_len); in ctl_ioctl()
3472 list->alloc_len); in ctl_ioctl()
7019 uint32_t alloc_len; in ctl_read_capacity_16() local
7025 alloc_len = scsi_4btoul(cdb->alloc_len); in ctl_read_capacity_16()
7077 alloc_len = scsi_4btoul(cdb->alloc_len); in ctl_get_lba_status()
7135 if (alloc_len == 0) { in ctl_read_defect()
[all …]
H A Dctl_tpc.c456 int alloc_len, total_len; in ctl_receive_copy_operating_parameters() local
465 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_operating_parameters()
525 int alloc_len, total_len; in ctl_receive_copy_status_lid1() local
553 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_status_lid1()
595 int alloc_len, total_len; in ctl_receive_copy_failure_details() local
621 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_failure_details()
655 int alloc_len, total_len; in ctl_receive_copy_status_lid4() local
683 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_status_lid4()
2344 int alloc_len, total_len, token_len; in ctl_receive_rod_token_information() local
2373 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_rod_token_information()
[all …]
/freebsd/sys/dev/ixl/
H A Di40e_hmc.c60 u64 alloc_len; in i40e_add_sd_table_entry() local
78 alloc_len = I40E_HMC_PAGED_BP_SIZE; in i40e_add_sd_table_entry()
81 alloc_len = direct_mode_sz; in i40e_add_sd_table_entry()
85 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
/freebsd/sys/cam/scsi/
H A Dscsi_cd.c1802 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
1894 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
1935 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
2258 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
2291 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
2828 len = min(params->alloc_len, len); in cd6byteworkaround()
3049 param_len = min(param_len, data->alloc_len); in cdgetmode()
3112 if (data_len > data->alloc_len) { in cdgetmode()
3192 param_len = min(param_len, data->alloc_len); in cdsetmode()
3943 scsi_ulto2b(dxfer_len, scsi_cmd->alloc_len); in scsi_report_key()
[all …]
H A Dscsi_all.c6139 *alloc_len = alloc_size; in scsi_parse_transportid_64bit()
6249 *alloc_len = sizeof(*spi); in scsi_parse_transportid_spi()
6394 *alloc_len = sizeof(*rdma); in scsi_parse_transportid_rdma()
6395 bzero(rdma, *alloc_len); in scsi_parse_transportid_rdma()
6505 *alloc_len = id_size; in scsi_parse_transportid_iscsi()
6659 *alloc_len = sizeof(*sop); in scsi_parse_transportid_sop()
6747 alloc_len, in scsi_parse_transportid()
6755 alloc_len, in scsi_parse_transportid()
6763 alloc_len, in scsi_parse_transportid()
6771 alloc_len, in scsi_parse_transportid()
[all …]
H A Dscsi_cd.h289 uint8_t alloc_len[2]; member
343 uint8_t alloc_len[2]; member
853 int alloc_len; member
H A Dscsi_all.h2958 uint8_t alloc_len[4]; member
3006 uint8_t alloc_len[4]; member
3979 unsigned int *alloc_len,
3987 unsigned int *alloc_len,
3995 unsigned int *alloc_len,
4003 unsigned int *alloc_len,
4011 unsigned int *alloc_len,
4019 unsigned int *alloc_len,
4174 uint32_t alloc_len, uint8_t sense_len,
4182 uint32_t alloc_len, uint8_t sense_len,
[all …]
/freebsd/lib/libmt/
H A Dmtlib.c721 size_t alloc_len = 32768; in mt_get_xml_str() local
729 *xml_str = malloc(alloc_len); in mt_get_xml_str()
733 extget.alloc_len = alloc_len; in mt_get_xml_str()
746 alloc_len *= 2; in mt_get_xml_str()
/freebsd/crypto/openssl/include/crypto/
H A Drand_pool.h80 size_t alloc_len; /* current number of bytes allocated */ member
/freebsd/sys/net/
H A Drtsock.c213 struct rt_msghdr **prtm, int alloc_len,
896 int alloc_len) in update_rtm_from_info() argument
905 if (len > alloc_len) { in update_rtm_from_info()
914 alloc_len = len; in update_rtm_from_info()
923 w.w_tmemsize = alloc_len; in update_rtm_from_info()
1040 int alloc_len = 0, len, error = 0, fibnum; in rts_send() local
1070 alloc_len = roundup2(len, 1024); in rts_send()
1071 int total_len = alloc_len + SCRATCH_BUFFER_SIZE; in rts_send()
1079 .base = (char *)rtm + alloc_len, in rts_send()
1187 error = update_rtm_from_rc(&info, &rtm, alloc_len, &rc, nh); in rts_send()
[all …]
/freebsd/sys/dev/irdma/
H A Dirdma_hmc.c523 u64 alloc_len; in irdma_add_sd_table_entry() local
528 alloc_len = IRDMA_HMC_PAGED_BP_SIZE; in irdma_add_sd_table_entry()
530 alloc_len = direct_mode_sz; in irdma_add_sd_table_entry()
533 dma_mem.size = alloc_len; in irdma_add_sd_table_entry()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_set_format_shar.c413 size_t alloc_len; in _uuencode_line() local
416 alloc_len = shar->work.length + 62; in _uuencode_line()
417 if (archive_string_ensure(&shar->work, alloc_len) == NULL) { in _uuencode_line()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dsdio.c49 pkt->alloc_len = 0; in ath10k_sdio_mbox_free_rx_pkt()
64 pkt->alloc_len = full_len; in ath10k_sdio_mbox_alloc_rx_pkt()
484 pkt->alloc_len = 0; in ath10k_sdio_mbox_rx_process_packets()
634 if (!ar_sdio->rx_pkts[i].alloc_len) in ath10k_sdio_mbox_rx_alloc()
651 skb->data, pkt->alloc_len); in ath10k_sdio_mbox_rx_fetch()
658 if (pkt->act_len > pkt->alloc_len) { in ath10k_sdio_mbox_rx_fetch()
683 virt_pkt_len += ar_sdio->rx_pkts[i].alloc_len; in ath10k_sdio_mbox_rx_fetch_bundle()
704 if (pkt->act_len > pkt->alloc_len) { in ath10k_sdio_mbox_rx_fetch_bundle()
710 pkt_offset += pkt->alloc_len; in ath10k_sdio_mbox_rx_fetch_bundle()
H A Dsdio.h130 size_t alloc_len; member
/freebsd/contrib/wpa/src/wps/
H A Dwps_upnp.c318 int alloc_len; in subscr_addr_add_url() local
393 alloc_len = host_len + 1 + 1 + path_len + 1; in subscr_addr_add_url()
413 a = os_zalloc(sizeof(*a) + alloc_len); in subscr_addr_add_url()

12