alignmask 140 crypto/ablkcipher.c unsigned int alignmask, alignmask 143 crypto/ablkcipher.c unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); alignmask 148 crypto/ablkcipher.c n = ALIGN(sizeof(struct ablkcipher_buffer), alignmask + 1); alignmask 149 crypto/ablkcipher.c n += (aligned_bsize * 3 - (alignmask + 1) + alignmask 150 crypto/ablkcipher.c (alignmask & ~(crypto_tfm_ctx_alignment() - 1))); alignmask 158 crypto/ablkcipher.c dst = (u8 *)ALIGN((unsigned long)base, alignmask + 1); alignmask 179 crypto/ablkcipher.c unsigned int alignmask) alignmask 183 crypto/ablkcipher.c unsigned aligned_bs = ALIGN(bs, alignmask + 1); alignmask 185 crypto/ablkcipher.c (alignmask + 1); alignmask 188 crypto/ablkcipher.c size += alignmask & ~(crypto_tfm_ctx_alignment() - 1); alignmask 193 crypto/ablkcipher.c iv = (u8 *)ALIGN((unsigned long)walk->iv_buffer, alignmask + 1); alignmask 217 crypto/ablkcipher.c unsigned int alignmask, bsize, n; alignmask 221 crypto/ablkcipher.c alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 236 crypto/ablkcipher.c !scatterwalk_aligned(&walk->in, alignmask) || alignmask 237 crypto/ablkcipher.c !scatterwalk_aligned(&walk->out, alignmask)) { alignmask 238 crypto/ablkcipher.c err = ablkcipher_next_slow(req, walk, bsize, alignmask, alignmask 262 crypto/ablkcipher.c unsigned int alignmask; alignmask 264 crypto/ablkcipher.c alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 274 crypto/ablkcipher.c if (unlikely(((unsigned long)walk->iv & alignmask))) { alignmask 275 crypto/ablkcipher.c int err = ablkcipher_copy_iv(walk, tfm, alignmask); alignmask 299 crypto/ablkcipher.c unsigned long alignmask = crypto_ablkcipher_alignmask(tfm); alignmask 304 crypto/ablkcipher.c absize = keylen + alignmask; alignmask 309 crypto/ablkcipher.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 321 crypto/ablkcipher.c unsigned long alignmask = crypto_ablkcipher_alignmask(tfm); alignmask 328 crypto/ablkcipher.c if ((unsigned long)key & alignmask) alignmask 30 crypto/aead.c unsigned long alignmask = crypto_aead_alignmask(tfm); alignmask 35 crypto/aead.c absize = keylen + alignmask; alignmask 40 crypto/aead.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 51 crypto/aead.c unsigned long alignmask = crypto_aead_alignmask(tfm); alignmask 54 crypto/aead.c if ((unsigned long)key & alignmask) alignmask 42 crypto/ahash.c unsigned int alignmask = walk->alignmask; alignmask 53 crypto/ahash.c if (offset & alignmask) { alignmask 54 crypto/ahash.c unsigned int unaligned = alignmask + 1 - (offset & alignmask); alignmask 83 crypto/ahash.c unsigned int alignmask = walk->alignmask; alignmask 87 crypto/ahash.c if (walk->entrylen && (walk->offset & alignmask) && !err) { alignmask 90 crypto/ahash.c walk->offset = ALIGN(walk->offset, alignmask + 1); alignmask 139 crypto/ahash.c walk->alignmask = crypto_ahash_alignmask(crypto_ahash_reqtfm(req)); alignmask 157 crypto/ahash.c walk->alignmask = crypto_ahash_alignmask(crypto_ahash_reqtfm(req)); alignmask 171 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); alignmask 176 crypto/ahash.c absize = keylen + alignmask; alignmask 181 crypto/ahash.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 206 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); alignmask 209 crypto/ahash.c if ((unsigned long)key & alignmask) alignmask 233 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); alignmask 237 crypto/ahash.c priv = kmalloc(sizeof(*priv) + ahash_align_buffer_size(ds, alignmask), alignmask 279 crypto/ahash.c req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); alignmask 363 crypto/ahash.c unsigned long alignmask = crypto_ahash_alignmask(tfm); alignmask 365 crypto/ahash.c if ((unsigned long)req->result & alignmask) alignmask 73 crypto/blkcipher.c addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); alignmask 142 crypto/blkcipher.c unsigned int alignmask) alignmask 145 crypto/blkcipher.c unsigned aligned_bsize = ALIGN(bsize, alignmask + 1); alignmask 154 crypto/blkcipher.c n = aligned_bsize * 3 - (alignmask + 1) + alignmask 155 crypto/blkcipher.c (alignmask & ~(crypto_tfm_ctx_alignment() - 1)); alignmask 162 crypto/blkcipher.c alignmask + 1); alignmask 233 crypto/blkcipher.c if (!scatterwalk_aligned(&walk->in, walk->alignmask) || alignmask 234 crypto/blkcipher.c !scatterwalk_aligned(&walk->out, walk->alignmask)) { alignmask 247 crypto/blkcipher.c err = blkcipher_next_slow(desc, walk, bsize, walk->alignmask); alignmask 272 crypto/blkcipher.c unsigned aligned_bs = ALIGN(bs, walk->alignmask + 1); alignmask 275 crypto/blkcipher.c (walk->alignmask + 1); alignmask 278 crypto/blkcipher.c size += walk->alignmask & ~(crypto_tfm_ctx_alignment() - 1); alignmask 283 crypto/blkcipher.c iv = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); alignmask 299 crypto/blkcipher.c walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); alignmask 311 crypto/blkcipher.c walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); alignmask 328 crypto/blkcipher.c if (unlikely(((unsigned long)walk->iv & walk->alignmask))) { alignmask 349 crypto/blkcipher.c walk->alignmask = crypto_blkcipher_alignmask(desc->tfm); alignmask 363 crypto/blkcipher.c walk->alignmask = crypto_aead_alignmask(tfm); alignmask 372 crypto/blkcipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 377 crypto/blkcipher.c absize = keylen + alignmask; alignmask 382 crypto/blkcipher.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 393 crypto/blkcipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 400 crypto/blkcipher.c if ((unsigned long)key & alignmask) alignmask 45 crypto/cfb.c const unsigned long alignmask = crypto_skcipher_alignmask(tfm); alignmask 47 crypto/cfb.c u8 *stream = PTR_ALIGN(tmp + 0, alignmask + 1); alignmask 23 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 28 crypto/cipher.c absize = keylen + alignmask; alignmask 33 crypto/cipher.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 45 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 53 crypto/cipher.c if ((unsigned long)key & alignmask) alignmask 64 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 67 crypto/cipher.c u8 *tmp = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 77 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 80 crypto/cipher.c if (unlikely(((unsigned long)dst | (unsigned long)src) & alignmask)) { alignmask 91 crypto/cipher.c unsigned long alignmask = crypto_tfm_alg_alignmask(tfm); alignmask 94 crypto/cipher.c if (unlikely(((unsigned long)dst | (unsigned long)src) & alignmask)) { alignmask 52 crypto/cmac.c unsigned long alignmask = crypto_shash_alignmask(parent); alignmask 56 crypto/cmac.c (alignmask | (__alignof__(__be64) - 1)) + 1); alignmask 106 crypto/cmac.c unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); alignmask 109 crypto/cmac.c u8 *prev = PTR_ALIGN((void *)ctx->ctx, alignmask + 1) + bs; alignmask 121 crypto/cmac.c unsigned long alignmask = crypto_shash_alignmask(parent); alignmask 126 crypto/cmac.c u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); alignmask 167 crypto/cmac.c unsigned long alignmask = crypto_shash_alignmask(parent); alignmask 173 crypto/cmac.c (alignmask | (__alignof__(__be64) - 1)) + 1); alignmask 174 crypto/cmac.c u8 *odds = PTR_ALIGN((void *)ctx->ctx, alignmask + 1); alignmask 226 crypto/cmac.c unsigned long alignmask; alignmask 258 crypto/cmac.c alignmask = alg->cra_alignmask; alignmask 259 crypto/cmac.c inst->alg.base.cra_alignmask = alignmask; alignmask 266 crypto/cmac.c + (alignmask & ~(crypto_tfm_ctx_alignment() - 1)) alignmask 271 crypto/cmac.c + ((alignmask | (__alignof__(__be64) - 1)) & alignmask 31 crypto/ctr.c unsigned long alignmask = crypto_cipher_alignmask(tfm); alignmask 34 crypto/ctr.c u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); alignmask 77 crypto/ctr.c unsigned long alignmask = crypto_cipher_alignmask(tfm); alignmask 82 crypto/ctr.c u8 *keystream = PTR_ALIGN(tmp + 0, alignmask + 1); alignmask 1745 crypto/drbg.c unsigned int alignmask; alignmask 1783 crypto/drbg.c alignmask = crypto_skcipher_alignmask(sk_tfm); alignmask 1784 crypto/drbg.c drbg->outscratchpadbuf = kmalloc(DRBG_OUTSCRATCHLEN + alignmask, alignmask 1791 crypto/drbg.c alignmask + 1); alignmask 1796 crypto/drbg.c return alignmask; alignmask 34 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 39 crypto/shash.c absize = keylen + (alignmask & ~(crypto_tfm_ctx_alignment() - 1)); alignmask 44 crypto/shash.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 62 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 65 crypto/shash.c if ((unsigned long)key & alignmask) alignmask 85 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 86 crypto/shash.c unsigned int unaligned_len = alignmask + 1 - alignmask 87 crypto/shash.c ((unsigned long)data & alignmask); alignmask 93 crypto/shash.c u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); alignmask 115 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 117 crypto/shash.c if ((unsigned long)data & alignmask) alignmask 127 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 135 crypto/shash.c u8 *buf = PTR_ALIGN(&ubuf[0], alignmask + 1); alignmask 156 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 158 crypto/shash.c if ((unsigned long)out & alignmask) alignmask 177 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 179 crypto/shash.c if (((unsigned long)data | (unsigned long)out) & alignmask) alignmask 198 crypto/shash.c unsigned long alignmask = crypto_shash_alignmask(tfm); alignmask 203 crypto/shash.c if (((unsigned long)data | (unsigned long)out) & alignmask) alignmask 97 crypto/skcipher.c addr = (u8 *)ALIGN((unsigned long)walk->buffer, walk->alignmask + 1); alignmask 193 crypto/skcipher.c data = PTR_ALIGN(&p->buffer[0], walk->alignmask + 1); alignmask 227 crypto/skcipher.c unsigned alignmask = walk->alignmask; alignmask 253 crypto/skcipher.c n += alignmask & ~a; alignmask 256 crypto/skcipher.c n += (bsize - 1) & ~(alignmask | a); alignmask 273 crypto/skcipher.c walk->dst.virt.addr = PTR_ALIGN(buffer, alignmask + 1); alignmask 366 crypto/skcipher.c if (unlikely((walk->in.offset | walk->out.offset) & walk->alignmask)) { alignmask 399 crypto/skcipher.c unsigned alignmask = walk->alignmask; alignmask 406 crypto/skcipher.c aligned_bs = ALIGN(bs, alignmask + 1); alignmask 409 crypto/skcipher.c size = alignmask & ~a; alignmask 417 crypto/skcipher.c size += (bs - 1) & ~(alignmask | a); alignmask 424 crypto/skcipher.c iv = PTR_ALIGN(walk->buffer, alignmask + 1); alignmask 437 crypto/skcipher.c if (unlikely(((unsigned long)walk->iv & walk->alignmask))) { alignmask 471 crypto/skcipher.c walk->alignmask = crypto_skcipher_alignmask(tfm); alignmask 542 crypto/skcipher.c walk->alignmask = crypto_aead_alignmask(tfm); alignmask 800 crypto/skcipher.c unsigned long alignmask = crypto_skcipher_alignmask(tfm); alignmask 806 crypto/skcipher.c absize = keylen + alignmask; alignmask 811 crypto/skcipher.c alignbuffer = (u8 *)ALIGN((unsigned long)buffer, alignmask + 1); alignmask 822 crypto/skcipher.c unsigned long alignmask = crypto_skcipher_alignmask(tfm); alignmask 830 crypto/skcipher.c if ((unsigned long)key & alignmask) alignmask 529 crypto/testmgr.c const unsigned int alignmask, alignmask 575 crypto/testmgr.c offset += alignmask; alignmask 714 crypto/testmgr.c unsigned int alignmask, alignmask 724 crypto/testmgr.c err = build_test_sglist(&tsgls->src, cfg->src_divs, alignmask, alignmask 740 crypto/testmgr.c alignmask, dst_total_len, NULL, NULL); alignmask 1038 crypto/testmgr.c unsigned int alignmask, alignmask 1047 crypto/testmgr.c return build_test_sglist(tsgl, cfg->src_divs, alignmask, vec->psize, alignmask 1096 crypto/testmgr.c const unsigned int alignmask = crypto_shash_alignmask(tfm); alignmask 1123 crypto/testmgr.c err = build_hash_sglist(tsgl, vec, cfg, alignmask, divs); alignmask 1279 crypto/testmgr.c const unsigned int alignmask = crypto_ahash_alignmask(tfm); alignmask 1310 crypto/testmgr.c err = build_hash_sglist(tsgl, vec, cfg, alignmask, divs); alignmask 1845 crypto/testmgr.c const unsigned int alignmask = crypto_aead_alignmask(tfm); alignmask 1854 crypto/testmgr.c (cfg->iv_offset_relative_to_alignmask ? alignmask : 0); alignmask 1906 crypto/testmgr.c err = build_cipher_test_sglists(tsgls, cfg, alignmask, alignmask 2445 crypto/testmgr.c const unsigned int alignmask = crypto_skcipher_alignmask(tfm); alignmask 2453 crypto/testmgr.c (cfg->iv_offset_relative_to_alignmask ? alignmask : 0); alignmask 2500 crypto/testmgr.c err = build_cipher_test_sglists(tsgls, cfg, alignmask, alignmask 53 crypto/xcbc.c unsigned long alignmask = crypto_shash_alignmask(parent); alignmask 55 crypto/xcbc.c u8 *consts = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); alignmask 73 crypto/xcbc.c unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); alignmask 76 crypto/xcbc.c u8 *prev = PTR_ALIGN(&ctx->ctx[0], alignmask + 1) + bs; alignmask 88 crypto/xcbc.c unsigned long alignmask = crypto_shash_alignmask(parent); alignmask 93 crypto/xcbc.c u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); alignmask 134 crypto/xcbc.c unsigned long alignmask = crypto_shash_alignmask(parent); alignmask 139 crypto/xcbc.c u8 *consts = PTR_ALIGN(&tctx->ctx[0], alignmask + 1); alignmask 140 crypto/xcbc.c u8 *odds = PTR_ALIGN(&ctx->ctx[0], alignmask + 1); alignmask 192 crypto/xcbc.c unsigned long alignmask; alignmask 222 crypto/xcbc.c alignmask = alg->cra_alignmask | 3; alignmask 223 crypto/xcbc.c inst->alg.base.cra_alignmask = alignmask; alignmask 230 crypto/xcbc.c (alignmask & alignmask 235 crypto/xcbc.c alignmask + 1) + alignmask 115 include/crypto/algapi.h unsigned int alignmask; alignmask 21 include/crypto/internal/hash.h unsigned int alignmask; alignmask 65 include/crypto/internal/skcipher.h unsigned int alignmask; alignmask 49 include/crypto/scatterwalk.h unsigned int alignmask) alignmask 51 include/crypto/scatterwalk.h return !(walk->offset & alignmask);