/Linux-v4.19/include/crypto/ |
D | cbc.h | 24 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_segment() local 31 crypto_xor(iv, src, bsize); in crypto_cbc_encrypt_segment() 33 memcpy(iv, dst, bsize); in crypto_cbc_encrypt_segment() 35 src += bsize; in crypto_cbc_encrypt_segment() 36 dst += bsize; in crypto_cbc_encrypt_segment() 37 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment() 46 unsigned int bsize = crypto_skcipher_blocksize(tfm); in crypto_cbc_encrypt_inplace() local 52 crypto_xor(src, iv, bsize); in crypto_cbc_encrypt_inplace() 56 src += bsize; in crypto_cbc_encrypt_inplace() 57 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace() [all …]
|
/Linux-v4.19/arch/s390/crypto/ |
D | sha_common.c | 19 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local 23 index = ctx->count & (bsize - 1); in s390_sha_update() 26 if ((index + len) < bsize) in s390_sha_update() 31 memcpy(ctx->buf + index, data, bsize - index); in s390_sha_update() 32 cpacf_kimd(ctx->func, ctx->state, ctx->buf, bsize); in s390_sha_update() 33 data += bsize - index; in s390_sha_update() 34 len -= bsize - index; in s390_sha_update() 39 if (len >= bsize) { in s390_sha_update() 40 n = len & ~(bsize - 1); in s390_sha_update() 56 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_final() local [all …]
|
/Linux-v4.19/crypto/ |
D | pcbc.c | 50 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_segment() local 57 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_segment() 59 crypto_xor_cpy(iv, dst, src, bsize); in crypto_pcbc_encrypt_segment() 61 src += bsize; in crypto_pcbc_encrypt_segment() 62 dst += bsize; in crypto_pcbc_encrypt_segment() 63 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_segment() 72 int bsize = crypto_cipher_blocksize(tfm); in crypto_pcbc_encrypt_inplace() local 79 memcpy(tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace() 80 crypto_xor(iv, src, bsize); in crypto_pcbc_encrypt_inplace() 82 crypto_xor_cpy(iv, tmpbuf, src, bsize); in crypto_pcbc_encrypt_inplace() [all …]
|
D | cfb.c | 71 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_segment() local 79 crypto_xor(dst, src, bsize); in crypto_cfb_encrypt_segment() 80 memcpy(iv, dst, bsize); in crypto_cfb_encrypt_segment() 82 src += bsize; in crypto_cfb_encrypt_segment() 83 dst += bsize; in crypto_cfb_encrypt_segment() 84 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_encrypt_segment() 92 const unsigned int bsize = crypto_cfb_bsize(tfm); in crypto_cfb_encrypt_inplace() local 100 crypto_xor(src, tmp, bsize); in crypto_cfb_encrypt_inplace() 103 src += bsize; in crypto_cfb_encrypt_inplace() 104 } while ((nbytes -= bsize) >= bsize); in crypto_cfb_encrypt_inplace() [all …]
|
D | cts.c | 107 int bsize = crypto_skcipher_blocksize(tfm); in cts_cbc_encrypt() local 116 sg = scatterwalk_ffwd(rctx->sg, req->dst, offset - bsize); in cts_cbc_encrypt() 117 scatterwalk_map_and_copy(d + bsize, sg, 0, bsize, 0); in cts_cbc_encrypt() 119 memset(d, 0, bsize); in cts_cbc_encrypt() 122 scatterwalk_map_and_copy(d, sg, 0, bsize + lastn, 1); in cts_cbc_encrypt() 128 skcipher_request_set_crypt(subreq, sg, sg, bsize, req->iv); in cts_cbc_encrypt() 153 int bsize = crypto_skcipher_blocksize(tfm); in crypto_cts_encrypt() local 155 int cbc_blocks = (nbytes + bsize - 1) / bsize - 1; in crypto_cts_encrypt() 169 offset = cbc_blocks * bsize; in crypto_cts_encrypt() 186 int bsize = crypto_skcipher_blocksize(tfm); in cts_cbc_decrypt() local [all …]
|
D | ctr.c | 58 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_final() local 70 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_final() 78 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_segment() local 87 crypto_xor(dst, src, bsize); in crypto_ctr_crypt_segment() 90 crypto_inc(ctrblk, bsize); in crypto_ctr_crypt_segment() 92 src += bsize; in crypto_ctr_crypt_segment() 93 dst += bsize; in crypto_ctr_crypt_segment() 94 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_segment() 104 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_inplace() local 115 crypto_xor(src, keystream, bsize); in crypto_ctr_crypt_inplace() [all …]
|
D | blkcipher.c | 74 unsigned int bsize) in blkcipher_done_slow() argument 79 addr = blkcipher_get_spot(addr, bsize); in blkcipher_done_slow() 80 scatterwalk_copychunks(addr, &walk->out, bsize, 1); in blkcipher_done_slow() 146 unsigned int bsize, in blkcipher_next_slow() argument 150 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in blkcipher_next_slow() 168 walk->dst.virt.addr = blkcipher_get_spot(walk->dst.virt.addr, bsize); in blkcipher_next_slow() 170 aligned_bsize, bsize); in blkcipher_next_slow() 172 scatterwalk_copychunks(walk->src.virt.addr, &walk->in, bsize, 0); in blkcipher_next_slow() 174 walk->nbytes = bsize; in blkcipher_next_slow() 224 unsigned int bsize; in blkcipher_walk_next() local [all …]
|
D | ecb.c | 46 int bsize = crypto_cipher_blocksize(tfm); in crypto_ecb_crypt() local 59 wsrc += bsize; in crypto_ecb_crypt() 60 wdst += bsize; in crypto_ecb_crypt() 61 } while ((nbytes -= bsize) >= bsize); in crypto_ecb_crypt()
|
D | ablkcipher.c | 144 unsigned int bsize, in ablkcipher_next_slow() argument 148 unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); in ablkcipher_next_slow() 164 src = dst = ablkcipher_get_spot(dst, bsize); in ablkcipher_next_slow() 166 p->len = bsize; in ablkcipher_next_slow() 169 scatterwalk_copychunks(src, &walk->in, bsize, 0); in ablkcipher_next_slow() 173 walk->nbytes = bsize; in ablkcipher_next_slow() 222 unsigned int alignmask, bsize, n; in ablkcipher_walk_next() local 236 bsize = min(walk->blocksize, n); in ablkcipher_walk_next() 240 if (n < bsize || in ablkcipher_walk_next() 243 err = ablkcipher_next_slow(req, walk, bsize, alignmask, in ablkcipher_walk_next()
|
/Linux-v4.19/arch/x86/crypto/ |
D | cast5_avx_glue.c | 68 const unsigned int bsize = CAST5_BLOCK_SIZE; in ecb_crypt() local 82 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in ecb_crypt() 87 wsrc += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt() 88 wdst += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt() 89 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt() 90 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in ecb_crypt() 92 if (nbytes < bsize) in ecb_crypt() 102 wsrc += bsize; in ecb_crypt() 103 wdst += bsize; in ecb_crypt() 104 nbytes -= bsize; in ecb_crypt() [all …]
|
D | blowfish_glue.c | 90 unsigned int bsize = BF_BLOCK_SIZE; in ecb_crypt() local 104 if (nbytes >= bsize * 4) { in ecb_crypt() 108 wsrc += bsize * 4; in ecb_crypt() 109 wdst += bsize * 4; in ecb_crypt() 110 nbytes -= bsize * 4; in ecb_crypt() 111 } while (nbytes >= bsize * 4); in ecb_crypt() 113 if (nbytes < bsize) in ecb_crypt() 121 wsrc += bsize; in ecb_crypt() 122 wdst += bsize; in ecb_crypt() 123 nbytes -= bsize; in ecb_crypt() [all …]
|
D | glue_helper.c | 39 const unsigned int bsize = 128 / 8; in glue_ecb_req_128bit() local 53 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_ecb_req_128bit() 56 func_bytes = bsize * gctx->funcs[i].num_blocks; in glue_ecb_req_128bit() 69 if (nbytes < bsize) in glue_ecb_req_128bit() 84 const unsigned int bsize = 128 / 8; in glue_cbc_encrypt_req_128bit() local 102 nbytes -= bsize; in glue_cbc_encrypt_req_128bit() 103 } while (nbytes >= bsize); in glue_cbc_encrypt_req_128bit() 116 const unsigned int bsize = 128 / 8; in glue_cbc_decrypt_req_128bit() local 131 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_cbc_decrypt_req_128bit() 134 src += nbytes / bsize - 1; in glue_cbc_decrypt_req_128bit() [all …]
|
D | des3_ede_glue.c | 88 const unsigned int bsize = DES3_EDE_BLOCK_SIZE; in ecb_crypt() local 100 if (nbytes >= bsize * 3) { in ecb_crypt() 105 wsrc += bsize * 3; in ecb_crypt() 106 wdst += bsize * 3; in ecb_crypt() 107 nbytes -= bsize * 3; in ecb_crypt() 108 } while (nbytes >= bsize * 3); in ecb_crypt() 110 if (nbytes < bsize) in ecb_crypt() 118 wsrc += bsize; in ecb_crypt() 119 wdst += bsize; in ecb_crypt() 120 nbytes -= bsize; in ecb_crypt() [all …]
|
/Linux-v4.19/arch/m68k/emu/ |
D | nfblock.c | 56 u32 blocks, bsize; member 99 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument 105 blocks, bsize); in nfhd_init_one() 107 if (bsize < 512 || (bsize & (bsize - 1))) { in nfhd_init_one() 118 dev->bsize = bsize; in nfhd_init_one() 119 dev->bshift = ffs(bsize) - 10; in nfhd_init_one() 127 blk_queue_logical_block_size(dev->queue, bsize); in nfhd_init_one() 138 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one() 157 u32 blocks, bsize; in nfhd_init() local 171 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init() [all …]
|
/Linux-v4.19/lib/mpi/ |
D | mpi-pow.c | 43 mpi_size_t esize, msize, bsize, rsize; in mpi_powm() local 91 bsize = base->nlimbs; in mpi_powm() 93 if (bsize > msize) { /* The base is larger than the module. Reduce it. */ in mpi_powm() 96 bp = bp_marker = mpi_alloc_limb_space(bsize + 1); in mpi_powm() 99 MPN_COPY(bp, base->d, bsize); in mpi_powm() 102 mpihelp_divrem(bp + msize, 0, bp, bsize, mp, msize); in mpi_powm() 103 bsize = msize; in mpi_powm() 106 MPN_NORMALIZE(bp, bsize); in mpi_powm() 110 if (!bsize) { in mpi_powm() 134 bp = bp_marker = mpi_alloc_limb_space(bsize); in mpi_powm() [all …]
|
/Linux-v4.19/fs/squashfs/ |
D | file_direct.c | 23 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, 27 int squashfs_readpage_block(struct page *target_page, u64 block, int bsize, in squashfs_readpage_block() argument 86 res = squashfs_read_cache(target_page, block, bsize, pages, in squashfs_readpage_block() 95 res = squashfs_read_data(inode->i_sb, block, bsize, NULL, actor); in squashfs_readpage_block() 146 static int squashfs_read_cache(struct page *target_page, u64 block, int bsize, in squashfs_read_cache() argument 151 block, bsize); in squashfs_read_cache() 156 bsize); in squashfs_read_cache()
|
D | file_cache.c | 23 int squashfs_readpage_block(struct page *page, u64 block, int bsize, int expected) in squashfs_readpage_block() argument 27 block, bsize); in squashfs_readpage_block() 32 bsize); in squashfs_readpage_block()
|
/Linux-v4.19/fs/freevxfs/ |
D | vxfs_olt.c | 57 vxfs_oblock(struct super_block *sbp, daddr_t block, u_long bsize) in vxfs_oblock() argument 59 BUG_ON(sbp->s_blocksize % bsize); in vxfs_oblock() 60 return (block * (sbp->s_blocksize / bsize)); in vxfs_oblock() 77 vxfs_read_olt(struct super_block *sbp, u_long bsize) in vxfs_read_olt() argument 84 bp = sb_bread(sbp, vxfs_oblock(sbp, infp->vsi_oltext, bsize)); in vxfs_read_olt()
|
D | vxfs_lookup.c | 83 u_long bsize = ip->i_sb->s_blocksize; in vxfs_find_entry() local 104 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry() 116 pos += bsize - 1; in vxfs_find_entry() 117 pos &= ~(bsize - 1); in vxfs_find_entry() 219 u_long bsize = sbp->s_blocksize; in vxfs_readdir() local 255 if ((pos & (bsize - 1)) < 4) { in vxfs_readdir() 267 pos += bsize - 1; in vxfs_readdir() 268 pos &= ~(bsize - 1); in vxfs_readdir()
|
/Linux-v4.19/fs/affs/ |
D | file.c | 510 u32 bidx, boff, bsize; in affs_do_readpage_ofs() local 516 bsize = AFFS_SB(sb)->s_data_blksize; in affs_do_readpage_ofs() 518 bidx = tmp / bsize; in affs_do_readpage_ofs() 519 boff = tmp % bsize; in affs_do_readpage_ofs() 525 tmp = min(bsize - boff, to - pos); in affs_do_readpage_ofs() 526 BUG_ON(pos + tmp > to || tmp > bsize); in affs_do_readpage_ofs() 545 u32 size, bsize; in affs_extent_file_ofs() local 549 bsize = AFFS_SB(sb)->s_data_blksize; in affs_extent_file_ofs() 552 bidx = size / bsize; in affs_extent_file_ofs() 553 boff = size % bsize; in affs_extent_file_ofs() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | mem2node.c | 35 phys_entry__init(struct phys_entry *entry, u64 start, u64 bsize, u64 node) in phys_entry__init() argument 38 entry->end = start + bsize; in phys_entry__init() 47 u64 bsize = env->memory_bsize; in mem2node__init() local 73 start = bit * bsize; in mem2node__init() 84 prev->end += bsize; in mem2node__init() 89 phys_entry__init(&entries[j++], start, bsize, n->node); in mem2node__init()
|
/Linux-v4.19/fs/jfs/ |
D | jfs_mount.c | 311 s32 bsize; in chkSuper() local 327 bsize = le32_to_cpu(j_sb->s_bsize); in chkSuper() 329 if (bsize != PSIZE) { in chkSuper() 344 AIM_bytesize = lengthPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 346 AIT_bytesize = lengthPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 347 AIM_byte_addr = addressPXD(&(j_sb->s_aim2)) * bsize; in chkSuper() 348 AIT_byte_addr = addressPXD(&(j_sb->s_ait2)) * bsize; in chkSuper() 350 fsckwsp_addr = addressPXD(&(j_sb->s_fsckpxd)) * bsize; in chkSuper() 378 sbi->bsize = bsize; in chkSuper()
|
/Linux-v4.19/fs/nfs/ |
D | internal.h | 99 unsigned int bsize; member 610 unsigned long nfs_block_bits(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_bits() argument 613 if ((bsize & (bsize - 1)) || nrbitsp) { in nfs_block_bits() 616 for (nrbits = 31; nrbits && !(bsize & (1 << nrbits)); nrbits--) in nfs_block_bits() 618 bsize = 1 << nrbits; in nfs_block_bits() 623 return bsize; in nfs_block_bits() 639 unsigned long nfs_block_size(unsigned long bsize, unsigned char *nrbitsp) in nfs_block_size() argument 641 if (bsize < NFS_MIN_FILE_IO_SIZE) in nfs_block_size() 642 bsize = NFS_DEF_FILE_IO_SIZE; in nfs_block_size() 643 else if (bsize >= NFS_MAX_FILE_IO_SIZE) in nfs_block_size() [all …]
|
/Linux-v4.19/arch/arm64/crypto/ |
D | aes-ce-ccm-glue.c | 207 u32 bsize = AES_BLOCK_SIZE; in ccm_crypt_fallback() local 210 bsize = nbytes; in ccm_crypt_fallback() 218 crypto_xor(mac, src, bsize); in ccm_crypt_fallback() 219 crypto_xor_cpy(dst, src, buf, bsize); in ccm_crypt_fallback() 221 crypto_xor(mac, dst, bsize); in ccm_crypt_fallback() 222 dst += bsize; in ccm_crypt_fallback() 223 src += bsize; in ccm_crypt_fallback() 224 nbytes -= bsize; in ccm_crypt_fallback()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | setup_64.c | 463 u32 bsize, u32 sets) in init_cache_info() argument 468 info->block_size = bsize; in init_cache_info() 469 info->log_block_size = __ilog2(bsize); in init_cache_info() 470 if (bsize) in init_cache_info() 471 info->blocks_per_page = PAGE_SIZE / bsize; in init_cache_info() 499 u32 size, lsize, bsize, sets; in parse_cache_info() local 504 lsize = bsize = cur_cpu_spec->dcache_bsize; in parse_cache_info() 518 bsize = be32_to_cpu(*bsizep); in parse_cache_info() 533 init_cache_info(info, size, lsize, bsize, sets); in parse_cache_info()
|