/crypto/ |
D | crypto_engine.c | 43 unsigned long flags; in crypto_finalize_request() local 51 spin_lock_irqsave(&engine->queue_lock, flags); in crypto_finalize_request() 55 spin_unlock_irqrestore(&engine->queue_lock, flags); in crypto_finalize_request() 79 unsigned long flags; in crypto_pump_requests() local 83 spin_lock_irqsave(&engine->queue_lock, flags); in crypto_pump_requests() 109 spin_unlock_irqrestore(&engine->queue_lock, flags); in crypto_pump_requests() 115 spin_lock_irqsave(&engine->queue_lock, flags); in crypto_pump_requests() 140 spin_unlock_irqrestore(&engine->queue_lock, flags); in crypto_pump_requests() 177 spin_lock_irqsave(&engine->queue_lock, flags); in crypto_pump_requests() 200 spin_lock_irqsave(&engine->queue_lock, flags); in crypto_pump_requests() [all …]
|
D | jitterentropy-testing.c | 41 unsigned long flags; in jent_testing_reset() local 43 spin_lock_irqsave(&data->lock, flags); in jent_testing_reset() 46 spin_unlock_irqrestore(&data->lock, flags); in jent_testing_reset() 78 unsigned long flags; in jent_testing_store() local 83 spin_lock_irqsave(&data->lock, flags); in jent_testing_store() 94 spin_unlock_irqrestore(&data->lock, flags); in jent_testing_store() 106 spin_unlock_irqrestore(&data->lock, flags); in jent_testing_store() 124 unsigned long flags; in jent_testing_reader() local 132 spin_lock_irqsave(&data->lock, flags); in jent_testing_reader() 137 spin_unlock_irqrestore(&data->lock, flags); in jent_testing_reader() [all …]
|
D | aes_ti.c | 23 unsigned long flags; in aesti_encrypt() local 29 local_irq_save(flags); in aesti_encrypt() 33 local_irq_restore(flags); in aesti_encrypt() 39 unsigned long flags; in aesti_decrypt() local 45 local_irq_save(flags); in aesti_decrypt() 49 local_irq_restore(flags); in aesti_decrypt()
|
D | gcm.c | 60 int (*complete)(struct aead_request *req, u32 flags); 205 unsigned int len, u32 flags) in gcm_hash_update() argument 210 ahash_request_set_callback(ahreq, flags, compl, req); in gcm_hash_update() 218 crypto_completion_t compl, u32 flags) in gcm_hash_remain() argument 220 return gcm_hash_update(req, compl, &gcm_zeroes->sg, remain, flags); in gcm_hash_remain() 223 static int gcm_hash_len(struct aead_request *req, u32 flags) in gcm_hash_len() argument 234 ahash_request_set_callback(ahreq, flags, gcm_hash_len_done, req); in gcm_hash_len() 241 static int gcm_hash_len_continue(struct aead_request *req, u32 flags) in gcm_hash_len_continue() argument 246 return gctx->complete(req, flags); in gcm_hash_len_continue() 264 static int gcm_hash_crypt_remain_continue(struct aead_request *req, u32 flags) in gcm_hash_crypt_remain_continue() argument [all …]
|
D | skcipher.c | 70 return walk->flags & SKCIPHER_WALK_SLEEP ? GFP_KERNEL : GFP_ATOMIC; in skcipher_walk_gfp() 119 (walk->flags & SKCIPHER_WALK_PHYS) ? 2 : 1); in skcipher_done_slow() 136 if (likely(!(walk->flags & (SKCIPHER_WALK_PHYS | in skcipher_walk_done() 142 } else if (walk->flags & SKCIPHER_WALK_DIFF) { in skcipher_walk_done() 145 } else if (walk->flags & SKCIPHER_WALK_COPY) { in skcipher_walk_done() 149 } else if (unlikely(walk->flags & SKCIPHER_WALK_SLOW)) { in skcipher_walk_done() 175 crypto_yield(walk->flags & SKCIPHER_WALK_SLEEP ? in skcipher_walk_done() 185 if (walk->flags & SKCIPHER_WALK_PHYS) in skcipher_walk_done() 245 bool phys = walk->flags & SKCIPHER_WALK_PHYS; in skcipher_next_slow() 299 walk->flags |= SKCIPHER_WALK_SLOW; in skcipher_next_slow() [all …]
|
D | ansi_cprng.c | 48 u32 flags; member 137 ctx->flags |= PRNG_NEED_RESET; in _get_more_prng_bytes() 192 if (ctx->flags & PRNG_NEED_RESET) in get_prng_bytes() 200 if (ctx->flags & PRNG_FIXED_SIZE) { in get_prng_bytes() 284 ctx->flags |= PRNG_NEED_RESET; in reset_prng_context() 314 ctx->flags &= ~PRNG_NEED_RESET; in reset_prng_context() 340 ctx->flags |= PRNG_NEED_RESET; in cprng_init() 379 if (prng->flags & PRNG_NEED_RESET) in cprng_reset()
|
D | chacha20poly1305.c | 63 u32 flags; member 76 rctx->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP; in async_done_continue() 141 skcipher_request_set_callback(&creq->req, rctx->flags, in chacha_decrypt() 181 ahash_request_set_callback(&preq->req, rctx->flags, in poly_tail() 211 ahash_request_set_callback(&preq->req, rctx->flags, in poly_cipherpad() 241 ahash_request_set_callback(&preq->req, rctx->flags, in poly_cipher() 270 ahash_request_set_callback(&preq->req, rctx->flags, in poly_adpad() 294 ahash_request_set_callback(&preq->req, rctx->flags, in poly_ad() 320 ahash_request_set_callback(&preq->req, rctx->flags, in poly_setkey() 344 ahash_request_set_callback(&preq->req, rctx->flags, in poly_init() [all …]
|
D | algif_skcipher.c | 51 size_t ignored, int flags) in _skcipher_recvmsg() argument 65 err = af_alg_wait_for_data(sk, flags, bs); in _skcipher_recvmsg() 77 err = af_alg_get_rsgl(sk, msg, flags, areq, ctx->used, &len); in _skcipher_recvmsg() 150 size_t ignored, int flags) in skcipher_recvmsg() argument 157 int err = _skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg() 249 size_t ignored, int flags) in skcipher_recvmsg_nokey() argument 257 return skcipher_recvmsg(sock, msg, ignored, flags); in skcipher_recvmsg_nokey()
|
D | drbg.c | 121 .flags = DRBG_CTR | DRBG_STRENGTH128, 127 .flags = DRBG_CTR | DRBG_STRENGTH192, 133 .flags = DRBG_CTR | DRBG_STRENGTH256, 142 .flags = DRBG_HASH | DRBG_STRENGTH128, 148 .flags = DRBG_HASH | DRBG_STRENGTH256, 154 .flags = DRBG_HASH | DRBG_STRENGTH256, 160 .flags = DRBG_HASH | DRBG_STRENGTH256, 169 .flags = DRBG_HMAC | DRBG_STRENGTH128, 175 .flags = DRBG_HMAC | DRBG_STRENGTH256, 181 .flags = DRBG_HMAC | DRBG_STRENGTH256, [all …]
|
D | seqiv.c | 71 skcipher_request_set_callback(nreq, req->base.flags, in seqiv_aead_encrypt() 84 info = kmemdup(req->iv, ivsize, req->base.flags & in seqiv_aead_encrypt() 94 aead_request_set_callback(subreq, req->base.flags, compl, data); in seqiv_aead_encrypt() 125 aead_request_set_callback(subreq, req->base.flags, compl, data); in seqiv_aead_decrypt()
|
D | ahash.c | 30 u32 flags; member 92 crypto_yield(walk->flags); in crypto_hash_walk_done() 124 walk->flags = req->base.flags; in crypto_hash_walk_first() 197 u32 flags; in ahash_save_req() local 206 flags = ahash_request_flags(req); in ahash_save_req() 207 gfp = (flags & CRYPTO_TFM_REQ_MAY_SLEEP) ? GFP_KERNEL : GFP_ATOMIC; in ahash_save_req() 213 ahash_request_set_callback(subreq, flags, cplt, req); in ahash_save_req() 388 subreq->base.flags &= CRYPTO_TFM_REQ_MAY_BACKLOG; in ahash_def_finup_done1()
|
D | cts.c | 121 skcipher_request_set_callback(subreq, req->base.flags & in cts_cbc_encrypt() 159 skcipher_request_set_callback(subreq, req->base.flags, in crypto_cts_encrypt() 170 skcipher_request_set_callback(subreq, req->base.flags, in crypto_cts_encrypt() 214 skcipher_request_set_callback(subreq, req->base.flags & in cts_cbc_decrypt() 254 skcipher_request_set_callback(subreq, req->base.flags, in crypto_cts_decrypt() 262 skcipher_request_set_callback(subreq, req->base.flags, in crypto_cts_decrypt()
|
D | algif_aead.c | 89 size_t ignored, int flags) in _aead_recvmsg() argument 110 err = af_alg_wait_for_data(sk, flags, 0); in _aead_recvmsg() 159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg() 326 size_t ignored, int flags) in aead_recvmsg() argument 333 int err = _aead_recvmsg(sock, msg, ignored, flags); in aead_recvmsg() 425 size_t ignored, int flags) in aead_recvmsg_nokey() argument 433 return aead_recvmsg(sock, msg, ignored, flags); in aead_recvmsg_nokey()
|
D | algif_hash.c | 180 int flags) in hash_recvmsg() argument 226 static int hash_accept(struct socket *sock, struct socket *newsock, int flags, in hash_accept() argument 346 size_t ignored, int flags) in hash_recvmsg_nokey() argument 354 return hash_recvmsg(sock, msg, ignored, flags); in hash_recvmsg_nokey() 358 int flags, bool kern) in hash_accept_nokey() argument 366 return hash_accept(sock, newsock, flags, kern); in hash_accept_nokey()
|
D | echainiv.c | 48 skcipher_request_set_callback(nreq, req->base.flags, in echainiv_encrypt() 59 aead_request_set_callback(subreq, req->base.flags, in echainiv_encrypt() 102 aead_request_set_callback(subreq, req->base.flags, compl, data); in echainiv_decrypt()
|
D | pcrypt.c | 100 u32 flags = aead_request_flags(req); in pcrypt_aead_encrypt() local 111 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_encrypt() 149 u32 flags = aead_request_flags(req); in pcrypt_aead_decrypt() local 160 aead_request_set_callback(creq, flags & ~CRYPTO_TFM_REQ_MAY_SLEEP, in pcrypt_aead_decrypt()
|
D | authencesn.c | 87 unsigned int flags) in crypto_authenc_esn_genicv_tail() argument 119 unsigned int flags) in crypto_authenc_esn_genicv() argument 147 ahash_request_set_callback(ahreq, flags, in crypto_authenc_esn_genicv() 218 unsigned int flags) in crypto_authenc_esn_decrypt_tail() argument 252 skcipher_request_set_callback(skreq, flags, in crypto_authenc_esn_decrypt_tail()
|
D | internal.h | 203 static inline void crypto_yield(u32 flags) in crypto_yield() argument 205 if (flags & CRYPTO_TFM_REQ_MAY_SLEEP) in crypto_yield()
|
D | xts.c | 183 skcipher_request_set_callback(subreq, req->base.flags, xts_cts_done, in xts_cts_final() 206 rctx->subreq.base.flags &= CRYPTO_TFM_REQ_MAY_BACKLOG; in xts_encrypt_done() 226 rctx->subreq.base.flags &= CRYPTO_TFM_REQ_MAY_BACKLOG; in xts_decrypt_done() 251 skcipher_request_set_callback(subreq, req->base.flags, compl, req); in xts_init_crypt()
|
D | jitterentropy.h | 17 unsigned int flags,
|
D | ccm.c | 44 u32 flags; member 200 ahash_request_set_callback(ahreq, pctx->flags, NULL, NULL); in crypto_ccm_auth() 261 pctx->flags = aead_request_flags(req); in crypto_ccm_init_crypt() 310 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_encrypt() 332 pctx->flags = 0; in crypto_ccm_decrypt_done() 374 skcipher_request_set_callback(skreq, pctx->flags, in crypto_ccm_decrypt() 637 aead_request_set_callback(subreq, req->base.flags, req->base.complete, in crypto_rfc4309_crypt()
|
D | authenc.c | 132 static int crypto_authenc_genicv(struct aead_request *req, unsigned int flags) in crypto_authenc_genicv() argument 150 ahash_request_set_callback(ahreq, flags, in crypto_authenc_genicv() 229 unsigned int flags) in crypto_authenc_decrypt_tail() argument 255 skcipher_request_set_callback(skreq, flags, in crypto_authenc_decrypt_tail()
|
/crypto/async_tx/ |
D | async_xor.c | 30 enum async_tx_flags flags_orig = submit->flags; in do_async_xor() 40 submit->flags = flags_orig; in do_async_xor() 46 submit->flags &= ~ASYNC_TX_ACK; in do_async_xor() 47 submit->flags |= ASYNC_TX_FENCE; in do_async_xor() 56 if (submit->flags & ASYNC_TX_FENCE) in do_async_xor() 124 if (submit->flags & ASYNC_TX_XOR_ZERO_DST) in do_sync_xor_offs() 233 if (submit->flags & ASYNC_TX_XOR_DROP_DST) { in async_xor_offs() 339 if (submit->flags & ASYNC_TX_FENCE) in async_xor_val_offs() 366 enum async_tx_flags flags_orig = submit->flags; in async_xor_val_offs() 373 submit->flags |= ASYNC_TX_XOR_DROP_DST; in async_xor_val_offs() [all …]
|
D | async_raid6_recov.c | 39 if (submit->flags & ASYNC_TX_FENCE) in async_sum_product() 107 if (submit->flags & ASYNC_TX_FENCE) in async_mult() 163 enum async_tx_flags flags = submit->flags; in __2data_recov_4() local 194 init_async_submit(submit, flags | ASYNC_TX_XOR_ZERO_DST, tx, cb_fn, in __2data_recov_4() 213 enum async_tx_flags flags = submit->flags; in __2data_recov_5() local 286 init_async_submit(submit, flags | ASYNC_TX_XOR_DROP_DST, tx, cb_fn, in __2data_recov_5() 304 enum async_tx_flags flags = submit->flags; in __2data_recov_n() local 375 init_async_submit(submit, flags | ASYNC_TX_XOR_DROP_DST, tx, cb_fn, in __2data_recov_n() 479 enum async_tx_flags flags = submit->flags; in async_raid6_datap_recov() local 584 init_async_submit(submit, flags | ASYNC_TX_XOR_DROP_DST, tx, cb_fn, in async_raid6_datap_recov()
|
D | async_pq.c | 43 enum async_tx_flags flags_orig = submit->flags; in do_async_gen_syndrome() 52 submit->flags = flags_orig; in do_async_gen_syndrome() 59 submit->flags &= ~ASYNC_TX_ACK; in do_async_gen_syndrome() 60 submit->flags |= ASYNC_TX_FENCE; in do_async_gen_syndrome() 69 if (submit->flags & ASYNC_TX_FENCE) in do_async_gen_syndrome() 133 if (submit->flags & ASYNC_TX_PQ_XOR_DST) { in do_sync_gen_syndrome() 193 if (unmap && !(submit->flags & ASYNC_TX_PQ_XOR_DST) && in async_gen_syndrome() 356 if (submit->flags & ASYNC_TX_FENCE) in async_syndrome_val() 378 enum async_tx_flags flags_orig = submit->flags; in async_syndrome_val() 432 submit->flags = flags_orig; in async_syndrome_val()
|