Home
last modified time | relevance | path

Searched refs:bsize (Results 1 – 17 of 17) sorted by relevance

/arch/x86/crypto/
Dcast5_avx_glue.c53 const unsigned int bsize = CAST5_BLOCK_SIZE; in ecb_crypt() local
67 if (nbytes >= bsize * CAST5_PARALLEL_BLOCKS) { in ecb_crypt()
72 wsrc += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
73 wdst += bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
74 nbytes -= bsize * CAST5_PARALLEL_BLOCKS; in ecb_crypt()
75 } while (nbytes >= bsize * CAST5_PARALLEL_BLOCKS); in ecb_crypt()
77 if (nbytes < bsize) in ecb_crypt()
87 wsrc += bsize; in ecb_crypt()
88 wdst += bsize; in ecb_crypt()
89 nbytes -= bsize; in ecb_crypt()
[all …]
Dblowfish_glue.c75 unsigned int bsize = BF_BLOCK_SIZE; in ecb_crypt() local
89 if (nbytes >= bsize * 4) { in ecb_crypt()
93 wsrc += bsize * 4; in ecb_crypt()
94 wdst += bsize * 4; in ecb_crypt()
95 nbytes -= bsize * 4; in ecb_crypt()
96 } while (nbytes >= bsize * 4); in ecb_crypt()
98 if (nbytes < bsize) in ecb_crypt()
106 wsrc += bsize; in ecb_crypt()
107 wdst += bsize; in ecb_crypt()
108 nbytes -= bsize; in ecb_crypt()
[all …]
Ddes3_ede_glue.c78 const unsigned int bsize = DES3_EDE_BLOCK_SIZE; in ecb_crypt() local
90 if (nbytes >= bsize * 3) { in ecb_crypt()
95 wsrc += bsize * 3; in ecb_crypt()
96 wdst += bsize * 3; in ecb_crypt()
97 nbytes -= bsize * 3; in ecb_crypt()
98 } while (nbytes >= bsize * 3); in ecb_crypt()
100 if (nbytes < bsize) in ecb_crypt()
108 wsrc += bsize; in ecb_crypt()
109 wdst += bsize; in ecb_crypt()
110 nbytes -= bsize; in ecb_crypt()
[all …]
Dglue_helper.c25 const unsigned int bsize = 128 / 8; in glue_ecb_req_128bit() local
39 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_ecb_req_128bit()
42 func_bytes = bsize * gctx->funcs[i].num_blocks; in glue_ecb_req_128bit()
55 if (nbytes < bsize) in glue_ecb_req_128bit()
70 const unsigned int bsize = 128 / 8; in glue_cbc_encrypt_req_128bit() local
88 nbytes -= bsize; in glue_cbc_encrypt_req_128bit()
89 } while (nbytes >= bsize); in glue_cbc_encrypt_req_128bit()
102 const unsigned int bsize = 128 / 8; in glue_cbc_decrypt_req_128bit() local
117 fpu_enabled = glue_fpu_begin(bsize, gctx->fpu_blocks_limit, in glue_cbc_decrypt_req_128bit()
120 src += nbytes / bsize - 1; in glue_cbc_decrypt_req_128bit()
[all …]
/arch/s390/crypto/
Dsha_common.c19 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_update() local
23 index = ctx->count % bsize; 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) * bsize; in s390_sha_update()
75 unsigned int bsize = crypto_shash_blocksize(desc->tfm); in s390_sha_final() local
[all …]
/arch/m68k/emu/
Dnfblock.c56 u32 blocks, bsize; member
100 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument
106 blocks, bsize); in nfhd_init_one()
108 if (bsize < 512 || (bsize & (bsize - 1))) { in nfhd_init_one()
119 dev->bsize = bsize; in nfhd_init_one()
120 dev->bshift = ffs(bsize) - 10; in nfhd_init_one()
126 blk_queue_logical_block_size(dev->queue, bsize); in nfhd_init_one()
137 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
156 u32 blocks, bsize; in nfhd_init() local
174 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
[all …]
/arch/arm64/crypto/
Daes-ce-ccm-glue.c193 u32 bsize = AES_BLOCK_SIZE; in ccm_crypt_fallback() local
196 bsize = nbytes; in ccm_crypt_fallback()
202 crypto_xor(mac, src, bsize); in ccm_crypt_fallback()
203 crypto_xor_cpy(dst, src, buf, bsize); in ccm_crypt_fallback()
205 crypto_xor(mac, dst, bsize); in ccm_crypt_fallback()
206 dst += bsize; in ccm_crypt_fallback()
207 src += bsize; in ccm_crypt_fallback()
208 nbytes -= bsize; in ccm_crypt_fallback()
/arch/alpha/include/uapi/asm/
Da.out.h31 __u64 bsize; member
68 #define a_bss ah.bsize
/arch/powerpc/kernel/
Dsetup_64.c502 u32 bsize, u32 sets) in init_cache_info() argument
507 info->block_size = bsize; in init_cache_info()
508 info->log_block_size = __ilog2(bsize); in init_cache_info()
509 if (bsize) in init_cache_info()
510 info->blocks_per_page = PAGE_SIZE / bsize; in init_cache_info()
538 u32 size, lsize, bsize, sets; in parse_cache_info() local
543 lsize = bsize = cur_cpu_spec->dcache_bsize; in parse_cache_info()
559 bsize = be32_to_cpu(*bsizep); in parse_cache_info()
574 init_cache_info(info, size, lsize, bsize, sets); in parse_cache_info()
/arch/x86/include/asm/crypto/
Dglue_helper.h42 static inline bool glue_fpu_begin(unsigned int bsize, int fpu_blocks_limit, in glue_fpu_begin() argument
56 if (nbytes < bsize * (unsigned int)fpu_blocks_limit) in glue_fpu_begin()
/arch/mips/boot/
Decoff.h42 int32_t bsize; /* uninitialized data " " */ member
Delf2ecoff.c238 a->bsize = swab32(a->bsize); in convert_ecoff_aouthdr()
424 eah.bsize = bss.len; in main()
467 esecs[2].s_size = eah.bsize; in main()
/arch/powerpc/boot/
Drs6000.h45 unsigned char bsize[4]; /* uninitialized data " " */ member
/arch/mips/include/asm/
Dsgiarcs.h281 unsigned char bsize; member
283 unsigned char bsize;
/arch/alpha/boot/tools/
Dobjstrip.c219 mem_size = fil_size + aout->ah.bsize; in main()
/arch/mips/include/asm/octeon/
Dcvmx-npi-defs.h323 uint64_t bsize:16; member
325 uint64_t bsize:16;
Dcvmx-npei-defs.h3645 uint64_t bsize:16; member
3647 uint64_t bsize:16;