Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 18 of 18) sorted by relevance

/qemu/crypto/
H A Dcipher-gnutls.c.inc69 size_t blocksize;
96 if (len % ctx->blocksize) {
136 len -= ctx->blocksize;
137 in += ctx->blocksize;
138 out += ctx->blocksize;
156 if (len % ctx->blocksize) {
197 len -= ctx->blocksize;
198 in += ctx->blocksize;
213 if (niv != ctx->blocksize) {
315 ctx->blocksize = 8;
[all …]
H A Dcipher-gcrypt.c.inc115 size_t blocksize;
133 if (len & (ctx->blocksize - 1)) {
135 len, ctx->blocksize);
155 if (len & (ctx->blocksize - 1)) {
157 len, ctx->blocksize);
178 if (niv != ctx->blocksize) {
180 ctx->blocksize, niv);
201 if (niv != ctx->blocksize) {
203 ctx->blocksize, niv);
275 ctx->blocksize = gcry_cipher_get_algo_blklen(gcryalg);
H A Dcipher-builtin.c.inc37 static inline bool qcrypto_length_check(size_t len, size_t blocksize,
40 if (unlikely(len & (blocksize - 1))) {
42 len, blocksize);
H A Dcipher-nettle.c.inc40 static inline bool qcrypto_length_check(size_t len, size_t blocksize,
43 if (unlikely(len & (blocksize - 1))) {
45 len, blocksize);
/qemu/hw/misc/
H A Dtz-mpc.c87 .addr_mask = s->blocksize - 1, in tz_mpc_iommu_notify()
90 hwaddr addr = lutidx * s->blocksize * 32; in tz_mpc_iommu_notify()
93 for (i = 0; i < 32; i++, addr += s->blocksize) { in tz_mpc_iommu_notify()
168 r = ctz32(s->blocksize) - 5; in tz_mpc_reg_read()
352 hwaddr blknum = addr / s->blocksize; in tz_mpc_cfg_ns()
433 .iova = addr & ~(s->blocksize - 1), in tz_mpc_translate()
434 .translated_addr = addr & ~(s->blocksize - 1), in tz_mpc_translate()
435 .addr_mask = s->blocksize - 1, in tz_mpc_translate()
526 if (size % s->blocksize != 0) { in tz_mpc_realize()
530 size, s->blocksize); in tz_mpc_realize()
[all …]
/qemu/hw/scsi/
H A Dscsi-disk.c725 s->max_io_size / s->qdev.blocksize; in scsi_disk_emulate_vpd_page()
1159 p[4] = s->qdev.blocksize >> 8; in mode_sense_page()
1360 p[6] = s->qdev.blocksize >> 8; in scsi_disk_emulate_mode_sense()
1636 s->qdev.blocksize = bs; in scsi_disk_emulate_mode_select()
2094 outbuf[6] = s->qdev.blocksize >> 8; in scsi_disk_emulate_command()
2564 uint32_t blocksize = 2048; in scsi_cd_realize() local
2578 s->qdev.blocksize = blocksize; in scsi_cd_realize()
2755 s->qdev.blocksize = 2048; in scsi_block_realize()
2757 s->qdev.blocksize = 512; in scsi_block_realize()
2831 assert(offset % s->qdev.blocksize == 0); in scsi_block_do_sgio()
[all …]
H A Dscsi-generic.c156 return max_transfer / s->blocksize; in calculate_max_transfer()
323 s->blocksize = ldl_be_p(&r->buf[4]); in scsi_read_complete()
327 s->blocksize = ldl_be_p(&r->buf[8]); in scsi_read_complete()
395 s->blocksize = (r->buf[9] << 16) | (r->buf[10] << 8) | r->buf[11]; in scsi_write_complete()
396 trace_scsi_generic_write_complete_blocksize(s->blocksize); in scsi_write_complete()
732 s->blocksize = get_stream_blocksize(s->conf.blk); in scsi_generic_realize()
733 if (s->blocksize == -1) { in scsi_generic_realize()
734 s->blocksize = 0; in scsi_generic_realize()
744 s->blocksize = 2048; in scsi_generic_realize()
747 s->blocksize = 512; in scsi_generic_realize()
[all …]
H A Dscsi-bus.c1017 xfer_unit = dev->blocksize; in ata_passthrough_xfer_unit()
1116 cmd->xfer *= dev->blocksize; in scsi_req_xfer()
1122 cmd->xfer = buf[1] & 1 ? 0 : dev->blocksize; in scsi_req_xfer()
1150 cmd->xfer *= dev->blocksize; in scsi_req_xfer()
1162 cmd->xfer *= dev->blocksize; in scsi_req_xfer()
1233 cmd->xfer *= dev->blocksize; in scsi_req_stream_xfer()
1242 cmd->xfer *= dev->blocksize; in scsi_req_stream_xfer()
H A Dtrace-events348 scsi_disk_mode_select_set_blocksize(int blocksize) "set block size to %d"
355 scsi_generic_write_complete_blocksize(int blocksize) "block size %d"
359 scsi_generic_realize_blocksize(int blocksize) "block size %d"
H A Dmegasas.c1817 cmd->iov_size = lba_count * sdev->blocksize; in megasas_handle_io()
/qemu/tests/unit/
H A Dtest-crypto-cipher.c658 size_t ivsize, keysize, blocksize; in test_cipher() local
689 blocksize = qcrypto_cipher_get_block_len(data->alg); in test_cipher()
699 g_assert_cmpint(blocksize, ==, niv); in test_cipher()
/qemu/include/hw/misc/
H A Dtz-mpc.h66 hwaddr blocksize; member
/qemu/contrib/vhost-user-blk/
H A Dvhost-user-blk.c521 uint32_t blocksize = 512; in vub_get_blocksize() local
524 if (ioctl(fd, BLKSSZGET, &blocksize) == 0) { in vub_get_blocksize()
525 return blocksize; in vub_get_blocksize()
529 return blocksize; in vub_get_blocksize()
/qemu/include/hw/scsi/
H A Dscsi.h87 int blocksize; member
/qemu/pc-bios/s390-ccw/
H A Dbootmap.h230 uint16_t blocksize; member
/qemu/block/
H A Dnvme.c1030 uint32_t blocksize = nvme_get_blocksize(bs); in nvme_probe_blocksizes() local
1031 bsz->phys = blocksize; in nvme_probe_blocksizes()
1032 bsz->log = blocksize; in nvme_probe_blocksizes()
/qemu/include/standard-headers/linux/
H A Dfuse.h922 uint32_t blocksize; member
/qemu/nbd/
H A Dserver.c604 bool blocksize = false; in nbd_negotiate_handle_info() local
644 blocksize = true; in nbd_negotiate_handle_info()
690 if (client->opt == NBD_OPT_INFO || blocksize) { in nbd_negotiate_handle_info()
735 if (client->opt == NBD_OPT_INFO && !blocksize && in nbd_negotiate_handle_info()