/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/append/ |
H A D | file_append.ksh | 54 num_blocks=$(random_int_between 1 3) 55 expected=$((expected + ( bs * num_blocks))) 56 log_must file_append -f $filename -e $expected -b $bs -n $num_blocks 66 num_blocks=$(random_int_between 1 3) 67 expected=$((expected + ( bs * num_blocks))) 68 log_must file_append -f $filename -e $expected -b $bs -n $num_blocks -d
|
/freebsd/contrib/bearssl/src/symcipher/ |
H A D | aes_pwr8_cbcdec.c | 41 const unsigned char *iv, unsigned char *buf, size_t num_blocks) in cbcdec_128() argument 97 mtctr(%[num_blocks]) in cbcdec_128() 199 : [sk] "b" (sk), [iv] "b" (iv), [num_blocks] "b" (num_blocks >> 2) in cbcdec_128() 212 const unsigned char *iv, unsigned char *buf, size_t num_blocks) in cbcdec_192() argument 272 mtctr(%[num_blocks]) in cbcdec_192() 382 : [sk] "b" (sk), [iv] "b" (iv), [num_blocks] "b" (num_blocks >> 2) in cbcdec_192() 395 const unsigned char *iv, unsigned char *buf, size_t num_blocks) in cbcdec_256() argument 459 mtctr(%[num_blocks]) in cbcdec_256() 577 : [sk] "b" (sk), [iv] "b" (iv), [num_blocks] "b" (num_blocks >> 2) in cbcdec_256() 602 size_t num_blocks; in br_aes_pwr8_cbcdec_run() local [all …]
|
H A D | aes_pwr8_ctr.c | 41 unsigned char *buf, size_t num_blocks) in ctr_128() argument 111 mtctr(%[num_blocks]) in ctr_128() 211 : [sk] "b" (sk), [ivbuf] "b" (ivbuf), [num_blocks] "b" (num_blocks >> 2), in ctr_128() 225 unsigned char *buf, size_t num_blocks) in ctr_192() argument 299 mtctr(%[num_blocks]) in ctr_192() 407 : [sk] "b" (sk), [ivbuf] "b" (ivbuf), [num_blocks] "b" (num_blocks >> 2), in ctr_192() 421 unsigned char *buf, size_t num_blocks) in ctr_256() argument 499 mtctr(%[num_blocks]) in ctr_256() 615 : [sk] "b" (sk), [ivbuf] "b" (ivbuf), [num_blocks] "b" (num_blocks >> 2), in ctr_256()
|
H A D | aes_pwr8_cbcenc.c | 93 mtctr(%[num_blocks]) in cbcenc_128() 133 : [sk] "b" (sk), [iv] "b" (iv), [num_blocks] "b" (len >> 4) in cbcenc_128() 201 mtctr(%[num_blocks]) in cbcenc_192() 243 : [sk] "b" (sk), [iv] "b" (iv), [num_blocks] "b" (len >> 4) in cbcenc_192() 315 mtctr(%[num_blocks]) in cbcenc_256() 359 : [sk] "b" (sk), [iv] "b" (iv), [num_blocks] "b" (len >> 4) in cbcenc_256()
|
H A D | aes_pwr8_ctrcbc.c | 541 unsigned char *cbcmac, const unsigned char *buf, size_t num_blocks) \ 562 mtctr(%[num_blocks]) \ 584 : [sk] "b" (sk), [cbcmac] "b" (cbcmac), [num_blocks] "b" (num_blocks) \ 601 size_t num_blocks) \ 654 mtctr(%[num_blocks]) \ 687 [num_blocks] "b" (num_blocks), [ctrinc] "b" (ctrinc) \ 704 size_t num_blocks) \ 738 mtctr(%[num_blocks]) \ 769 [num_blocks] "b" (num_blocks), [ctrinc] "b" (ctrinc) \
|
/freebsd/crypto/openssl/crypto/modes/ |
H A D | ocb128.c | 272 size_t num_blocks, last_len; in CRYPTO_ocb128_aad() local 276 num_blocks = len / 16; in CRYPTO_ocb128_aad() 277 all_num_blocks = num_blocks + ctx->sess.blocks_hashed; in CRYPTO_ocb128_aad() 334 size_t num_blocks, last_len; in CRYPTO_ocb128_encrypt() local 340 num_blocks = len / 16; in CRYPTO_ocb128_encrypt() 341 all_num_blocks = num_blocks + ctx->sess.blocks_processed; in CRYPTO_ocb128_encrypt() 343 if (num_blocks && all_num_blocks == (size_t)all_num_blocks in CRYPTO_ocb128_encrypt() 356 ctx->stream(in, out, num_blocks, ctx->keyenc, in CRYPTO_ocb128_encrypt() 426 size_t num_blocks, last_len; in CRYPTO_ocb128_decrypt() local 432 num_blocks = len / 16; in CRYPTO_ocb128_decrypt() [all …]
|
/freebsd/contrib/hyperv/tools/ |
H A D | hv_kvp_daemon.c | 151 int num_blocks; member 230 int num_blocks = kvp_pools[pool].num_blocks; in kvp_update_mem_state() local 245 ENTRIES_PER_BLOCK * num_blocks, in kvp_update_mem_state() 257 num_blocks++; in kvp_update_mem_state() 258 record = realloc(record, alloc_unit * num_blocks); in kvp_update_mem_state() 269 kvp_pools[pool].num_blocks = num_blocks; in kvp_update_mem_state() 287 int num_blocks; in kvp_file_init() local 302 num_blocks = 1; in kvp_file_init() 318 record = malloc(alloc_unit * num_blocks); in kvp_file_init() 341 num_blocks++; in kvp_file_init() [all …]
|
/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_pax_common.c | 39 size_t num_blocks, left; in eap_pax_kdf() local 41 num_blocks = (output_len + EAP_PAX_MAC_LEN - 1) / EAP_PAX_MAC_LEN; in eap_pax_kdf() 42 if (identifier == NULL || num_blocks >= 255) in eap_pax_kdf() 58 for (counter = 1; counter <= (u8) num_blocks; counter++) { in eap_pax_kdf()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
H A D | dio_write_verify.ksh | 124 num_blocks=$((filesize / BS)) 126 -c $num_blocks 174 num_blocks=$((filesize / BS)) 176 -c $num_blocks
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_util.c | 252 uint64_t lba, uint32_t num_blocks, ctl_tag_type tag_type, in ctl_scsi_read_write() 272 && ((num_blocks & 0xff) == num_blocks) in ctl_scsi_read_write() 287 cdb->length = num_blocks & 0xff; in ctl_scsi_read_write() 293 && ((num_blocks & 0xffff) == num_blocks) in ctl_scsi_read_write() 303 scsi_ulto2b(num_blocks, cdb->length); in ctl_scsi_read_write() 308 && ((num_blocks & 0xffffffff) == num_blocks) in ctl_scsi_read_write() 317 scsi_ulto4b(num_blocks, cd in ctl_scsi_read_write() 251 ctl_scsi_read_write(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,int read_op,uint8_t byte2,int minimum_cdb_size,uint64_t lba,uint32_t num_blocks,ctl_tag_type tag_type,uint8_t control) ctl_scsi_read_write() argument 351 ctl_scsi_write_same(union ctl_io * io,uint8_t * data_ptr,uint32_t data_len,uint8_t byte2,uint64_t lba,uint32_t num_blocks,ctl_tag_type tag_type,uint8_t control) ctl_scsi_write_same() argument [all...] |
H A D | scsi_ctl.c | 1016 uint32_t num_blocks, nbc; in ctlfe_adjust_cdb() local 1028 num_blocks = cdb->length; in ctlfe_adjust_cdb() 1029 if (num_blocks == 0) in ctlfe_adjust_cdb() 1030 num_blocks = 256; in ctlfe_adjust_cdb() 1032 num_blocks -= nbc; in ctlfe_adjust_cdb() 1034 cdb->length = num_blocks; in ctlfe_adjust_cdb() 1042 num_blocks = scsi_2btoul(cdb->length); in ctlfe_adjust_cdb() 1044 num_blocks -= nbc; in ctlfe_adjust_cdb() 1046 scsi_ulto2b(num_blocks, cdb->length); in ctlfe_adjust_cdb() 1054 num_blocks in ctlfe_adjust_cdb() [all...] |
H A D | ctl_util.h | 63 uint32_t num_blocks, ctl_tag_type tag_type, 67 uint64_t lba, uint32_t num_blocks,
|
H A D | ctl.c | 5689 uint32_t num_blocks; in ctl_write_same() local 5702 num_blocks = scsi_2btoul(cdb->length); in ctl_write_same() 5712 num_blocks = scsi_4btoul(cdb->length); in ctl_write_same() 5742 if (((lba + num_blocks) > (lun->be_lun->maxlba + 1)) in ctl_write_same() 5743 || ((lba + num_blocks) < lba)) { in ctl_write_same() 5751 if (num_blocks == 0) { in ctl_write_same() 5768 num_blocks = 1 << 31; in ctl_write_same() 5770 num_blocks = (lun->be_lun->maxlba + 1) - lba; in ctl_write_same() 5795 lbalen->len = num_blocks; in ctl_write_same() 5811 uint32_t num_blocks; in ctl_unmap() local [all …]
|
H A D | ctl_backend_ramdisk.c | 933 uint32_t num_blocks; in ctl_backend_ramdisk_dsm() local 942 num_blocks = le32toh(r[i].length); in ctl_backend_ramdisk_dsm() 944 ctl_backend_ramdisk_delete(cbe_lun, lba, num_blocks, 0); in ctl_backend_ramdisk_dsm()
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_pkey.c | 70 uint16_t num_blocks, i; in osm_pkey_tbl_destroy() local 72 num_blocks = (uint16_t) (cl_ptr_vector_get_size(&p_pkey_tbl->blocks)); in osm_pkey_tbl_destroy() 73 for (i = 0; i < num_blocks; i++) in osm_pkey_tbl_destroy() 78 num_blocks = in osm_pkey_tbl_destroy() 80 for (i = 0; i < num_blocks; i++) in osm_pkey_tbl_destroy() 110 size_t b, num_blocks = cl_ptr_vector_get_size(&p_pkey_tbl->new_blocks); in osm_pkey_tbl_init_new_blocks() local 112 for (b = 0; b < num_blocks; b++) in osm_pkey_tbl_init_new_blocks()
|
H A D | osm_sa_pkey_record.c | 120 uint16_t block, num_blocks; in sa_pkey_check_physp() local 128 num_blocks = in sa_pkey_check_physp() 131 for (block = 0; block < num_blocks; block++) in sa_pkey_check_physp()
|
H A D | osm_sa_guidinfo_record.c | 139 uint8_t block_num, start_block_num, end_block_num, num_blocks; in sa_gir_create_gir() local 182 num_blocks = p_physp->port_info.guid_cap / 8; in sa_gir_create_gir() 184 num_blocks++; in sa_gir_create_gir() 187 end_block_num = num_blocks - 1; in sa_gir_create_gir() 189 if (match_block_num >= num_blocks) in sa_gir_create_gir()
|
H A D | osm_pkey_mgr.c | 667 uint16_t num_blocks; in new_pkey_exists() local 672 num_blocks = (uint16_t) cl_ptr_vector_get_size(&p_pkey_tbl->new_blocks); in new_pkey_exists() 673 for (block_index = 0; block_index < num_blocks; block_index++) { in new_pkey_exists()
|
/freebsd/crypto/openssl/ssl/ |
H A D | s3_cbc.c | 176 len, max_mac_bytes, num_blocks, in ssl3_cbc_digest_record() local 305 num_blocks = in ssl3_cbc_digest_record() 350 if (num_blocks > variance_blocks + (is_sslv3 ? 1 : 0)) { in ssl3_cbc_digest_record() 351 num_starting_blocks = num_blocks - variance_blocks; in ssl3_cbc_digest_record()
|
/freebsd/sys/dev/mrsas/ |
H A D | mrsas_fp.c | 1369 u_int32_t num_blocks = io_info->numBlocks; in mrsas_set_pd_lba() local 1403 cdb[28] = (u_int8_t)((num_blocks >> 24) & 0xff); in mrsas_set_pd_lba() 1404 cdb[29] = (u_int8_t)((num_blocks >> 16) & 0xff); in mrsas_set_pd_lba() 1405 cdb[30] = (u_int8_t)((num_blocks >> 8) & 0xff); in mrsas_set_pd_lba() 1406 cdb[31] = (u_int8_t)(num_blocks & 0xff); in mrsas_set_pd_lba() 1447 cdb[8] = (u_int8_t)(num_blocks & 0xff); in mrsas_set_pd_lba() 1448 cdb[7] = (u_int8_t)((num_blocks >> 8) & 0xff); in mrsas_set_pd_lba() 1481 cdb[13] = (u_int8_t)(num_blocks & 0xff); in mrsas_set_pd_lba() 1482 cdb[12] = (u_int8_t)((num_blocks >> 8) & 0xff); in mrsas_set_pd_lba() 1483 cdb[11] = (u_int8_t)((num_blocks >> 16) & 0xff); in mrsas_set_pd_lba() [all …]
|
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_foreign.c | 170 humanize_number(size, sizeof(size), ld->span[0].num_blocks * 512, in foreign_show_cfg() 184 humanize_number(size, sizeof(size), ld->span[j].num_blocks * 512, in foreign_show_cfg()
|
/freebsd/usr.sbin/camdd/ |
H A D | camdd.c | 2603 uint32_t num_blocks, sectors_used = 0; local 2638 num_blocks = sectors_used; 2640 num_blocks = data->fill_len / pass_dev->block_len; 2657 /*block_count*/ num_blocks, 2660 /*dxfer_len*/ (num_blocks * pass_dev->block_len), 2677 /*block_count*/ num_blocks, 2680 /*dxfer_len*/ (num_blocks * pass_dev->block_len), 2737 uint32_t num_blocks; local 2742 num_blocks = *len / dev->sector_size; 2770 } else if (((*lba + num_blocks) > max_sector + 1) [all …]
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_cam.c | 773 p->bd.num_blocks[0] = 0xff; in aac_container_special_command() 774 p->bd.num_blocks[1] = 0xff; in aac_container_special_command() 775 p->bd.num_blocks[2] = 0xff; in aac_container_special_command() 777 p->bd.num_blocks[0] = (u_int8_t) in aac_container_special_command() 779 p->bd.num_blocks[1] = (u_int8_t) in aac_container_special_command() 781 p->bd.num_blocks[2] = (u_int8_t) in aac_container_special_command()
|
/freebsd/contrib/libxo/doc/ |
H A D | formatting.rst | 83 printf("%d\t%s\n", num_blocks, path); 92 xo_emit("{:blocks/%d}\t{:path/%s}\n", num_blocks, path);
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_console.c | 288 uint32_t num_blocks = in cvmx_bootmem_phy_named_block_find() local 306 for (i = 0; i < num_blocks; i++) { in cvmx_bootmem_phy_named_block_find()
|