Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/libfido2/src/
H A Diso7816.c13 size_t alloc_len; in iso7816_new() local
15 alloc_len = sizeof(iso7816_apdu_t) + payload_len + 2; /* le1 le2 */ in iso7816_new()
16 if ((apdu = calloc(1, alloc_len)) == NULL) in iso7816_new()
18 apdu->alloc_len = alloc_len; in iso7816_new()
37 freezero(apdu, apdu->alloc_len); in iso7816_free()
62 return apdu->alloc_len - offsetof(iso7816_apdu_t, header) - in iso7816_len()
H A Du2f.c84 size_t alloc_len; in authdata_fake() local
105 &alloc_len)) == 0) { in authdata_fake()
356 size_t alloc_len; in cbor_blob_from_ec_point() local
378 &alloc_len)) != 77) { in cbor_blob_from_ec_point()
404 size_t alloc_len; in encode_cred_authdata() local
457 &alloc_len)) == 0) { in encode_cred_authdata()
H A Diso7816.h31 size_t alloc_len; member
/freebsd-13.1/crypto/openssl/crypto/rand/
H A Drand_lib.c451 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()
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()
648 OPENSSL_clear_free(pool->buffer, pool->alloc_len); in rand_pool_grow()
650 pool->alloc_len = newlen; in rand_pool_grow()
[all …]
H A Drand_local.h176 size_t alloc_len; /* current number of bytes allocated */ member
/freebsd-13.1/contrib/libfido2/tools/
H A Dbase64.c68 size_t alloc_len; in base64_decode() local
86 alloc_len = strlen(in); in base64_decode()
87 if ((*ptr = calloc(1, alloc_len)) == NULL) in base64_decode()
90 n = BIO_read(bio_b64, *ptr, (int)alloc_len); in base64_decode()
/freebsd-13.1/contrib/apr-util/buckets/
H A Dapr_buckets_heap.c52 h->alloc_len = length; in apr_bucket_heap_make()
53 h->base = apr_bucket_alloc(h->alloc_len, b->list); in apr_bucket_heap_make()
66 h->alloc_len = length; in apr_bucket_heap_make()
H A Dapr_buckets_pool.c37 p->heap.base = apr_bucket_alloc(p->heap.alloc_len, p->list); in pool_bucket_cleanup()
38 memcpy(p->heap.base, p->base, p->heap.alloc_len); in pool_bucket_cleanup()
113 p->heap.alloc_len = length; in apr_bucket_pool_make()
H A Dapr_buckets_socket.c66 h->alloc_len = APR_BUCKET_BUFF_SIZE; /* note the real buffer size */ in socket_bucket_read()
H A Dapr_buckets_pipe.c63 h->alloc_len = APR_BUCKET_BUFF_SIZE; /* note the real buffer size */ in pipe_bucket_read()
/freebsd-13.1/sbin/camcontrol/
H A Dzone.c333 uint32_t alloc_len = 65536, valid_len = 0; in zone() local
446 data_ptr = malloc(alloc_len); in zone()
448 err(1, "unable to allocate %u bytes", alloc_len); in zone()
451 bzero(data_ptr, alloc_len); in zone()
464 /*dxfer_len*/ alloc_len, in zone()
483 sector_count = ZAC_ATA_SECTOR_COUNT(alloc_len); in zone()
492 features = ZAC_ATA_SECTOR_COUNT(alloc_len); in zone()
514 /*dxfer_len*/ ZAC_ATA_SECTOR_COUNT(alloc_len)*512, in zone()
H A Dpersist.c68 unsigned int alloc_len; member
486 &id->alloc_len, error_str, error_str_len); in scsipersist()
498 id_len += id->alloc_len; in scsipersist()
778 bcopy(id->hdr, bufptr, id->alloc_len); in scsipersist()
779 bufptr += id->alloc_len; in scsipersist()
831 bcopy(id->hdr, bufptr, id->alloc_len); in scsipersist()
832 scsi_ulto4b(id->alloc_len, in scsipersist()
/freebsd-13.1/sys/dev/ixl/
H A Di40e_hmc.c61 u64 alloc_len; in i40e_add_sd_table_entry() local
79 alloc_len = I40E_HMC_PAGED_BP_SIZE; in i40e_add_sd_table_entry()
82 alloc_len = direct_mode_sz; in i40e_add_sd_table_entry()
86 ret_code = i40e_allocate_dma_mem(hw, &mem, mem_type, alloc_len, in i40e_add_sd_table_entry()
/freebsd-13.1/sys/cam/ctl/
H A Dctl_ioctl.h130 size_t alloc_len; /* passed to kernel */ member
267 uint32_t alloc_len; /* passed to kernel */ member
517 uint32_t alloc_len; /* passed to kernel */ member
643 uint32_t alloc_len; /* passed to kernel */ member
H A Dctl.c492 int alloc_len);
495 int alloc_len);
3007 list->alloc_len); in ctl_ioctl()
3132 list->alloc_len); in ctl_ioctl()
3265 list->alloc_len); in ctl_ioctl()
3391 list->alloc_len); in ctl_ioctl()
6969 uint32_t alloc_len; in ctl_read_capacity_16() local
6975 alloc_len = scsi_4btoul(cdb->alloc_len); in ctl_read_capacity_16()
7027 alloc_len = scsi_4btoul(cdb->alloc_len); in ctl_get_lba_status()
7085 if (alloc_len == 0) { in ctl_read_defect()
[all …]
H A Dctl_tpc.c459 int alloc_len, total_len; in ctl_receive_copy_operating_parameters() local
468 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_operating_parameters()
528 int alloc_len, total_len; in ctl_receive_copy_status_lid1() local
556 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_status_lid1()
598 int alloc_len, total_len; in ctl_receive_copy_failure_details() local
624 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_failure_details()
658 int alloc_len, total_len; in ctl_receive_copy_status_lid4() local
686 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_copy_status_lid4()
2347 int alloc_len, total_len, token_len; in ctl_receive_rod_token_information() local
2376 alloc_len = scsi_4btoul(cdb->length); in ctl_receive_rod_token_information()
[all …]
/freebsd-13.1/sys/cam/scsi/
H A Dscsi_cd.c1811 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
1903 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
1944 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
2267 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
2300 params.alloc_len = sizeof(union cd_mode_data_6_10); in cdioctl()
3036 len = min(params->alloc_len, len); in cd6byteworkaround()
3257 param_len = min(param_len, data->alloc_len); in cdgetmode()
3320 if (data_len > data->alloc_len) { in cdgetmode()
3400 param_len = min(param_len, data->alloc_len); in cdsetmode()
4151 scsi_ulto2b(dxfer_len, scsi_cmd->alloc_len); in scsi_report_key()
[all …]
H A Dscsi_all.c6056 *alloc_len = alloc_size; in scsi_parse_transportid_64bit()
6166 *alloc_len = sizeof(*spi); in scsi_parse_transportid_spi()
6311 *alloc_len = sizeof(*rdma); in scsi_parse_transportid_rdma()
6312 bzero(rdma, *alloc_len); in scsi_parse_transportid_rdma()
6422 *alloc_len = id_size; in scsi_parse_transportid_iscsi()
6576 *alloc_len = sizeof(*sop); in scsi_parse_transportid_sop()
6664 alloc_len, in scsi_parse_transportid()
6672 alloc_len, in scsi_parse_transportid()
6680 alloc_len, in scsi_parse_transportid()
6688 alloc_len, in scsi_parse_transportid()
[all …]
H A Dscsi_cd.h290 u_int8_t alloc_len[2]; member
344 u_int8_t alloc_len[2]; member
854 int alloc_len; member
H A Dscsi_all.h2954 uint8_t alloc_len[4]; member
3002 uint8_t alloc_len[4]; member
3911 unsigned int *alloc_len,
3919 unsigned int *alloc_len,
3927 unsigned int *alloc_len,
3935 unsigned int *alloc_len,
3943 unsigned int *alloc_len,
3951 unsigned int *alloc_len,
4106 u_int32_t alloc_len, u_int8_t sense_len,
4114 u_int32_t alloc_len, u_int8_t sense_len,
[all …]
/freebsd-13.1/lib/libmt/
H A Dmtlib.c722 size_t alloc_len = 32768; in mt_get_xml_str() local
730 *xml_str = malloc(alloc_len); in mt_get_xml_str()
734 extget.alloc_len = alloc_len; in mt_get_xml_str()
747 alloc_len *= 2; in mt_get_xml_str()
/freebsd-13.1/sys/net/
H A Drtsock.c200 struct rt_msghdr **prtm, int alloc_len,
891 int alloc_len) in update_rtm_from_info() argument
900 if (len > alloc_len) { in update_rtm_from_info()
909 alloc_len = len; in update_rtm_from_info()
918 w.w_tmemsize = alloc_len; in update_rtm_from_info()
1034 int alloc_len = 0, len, error = 0, fibnum; in route_output() local
1057 alloc_len = roundup2(len, 1024); in route_output()
1058 int total_len = alloc_len + SCRATCH_BUFFER_SIZE; in route_output()
1066 .base = (char *)rtm + alloc_len, in route_output()
1168 error = update_rtm_from_rc(&info, &rtm, alloc_len, &rc, nh); in route_output()
[all …]
/freebsd-13.1/contrib/libarchive/libarchive/
H A Darchive_write_set_format_shar.c414 size_t alloc_len; in _uuencode_line() local
417 alloc_len = shar->work.length + 62; in _uuencode_line()
418 if (archive_string_ensure(&shar->work, alloc_len) == NULL) { in _uuencode_line()
/freebsd-13.1/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()
/freebsd-13.1/sys/sys/
H A Dmtio.h223 uint32_t alloc_len; member

12