Lines Matching refs:err
96 int err; in blk_crypto_fallback_evict_keyslot() local
101 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], blank_key, in blk_crypto_fallback_evict_keyslot()
103 WARN_ON(err); in blk_crypto_fallback_evict_keyslot()
115 int err; in blk_crypto_fallback_keyslot_program() local
122 err = crypto_skcipher_setkey(slotp->tfms[crypto_mode], key->bytes, in blk_crypto_fallback_keyslot_program()
124 if (err) { in blk_crypto_fallback_keyslot_program()
126 return err; in blk_crypto_fallback_keyslot_program()
538 int err; in blk_crypto_fallback_init() local
545 err = bioset_init(&crypto_bio_split, 64, 0, 0); in blk_crypto_fallback_init()
546 if (err) in blk_crypto_fallback_init()
553 err = -ENOMEM; in blk_crypto_fallback_init()
557 err = blk_crypto_profile_init(blk_crypto_fallback_profile, in blk_crypto_fallback_init()
559 if (err) in blk_crypto_fallback_init()
561 err = -ENOMEM; in blk_crypto_fallback_init()
617 return err; in blk_crypto_fallback_init()
629 int err = 0; in blk_crypto_fallback_start_using_mode() local
643 err = blk_crypto_fallback_init(); in blk_crypto_fallback_start_using_mode()
644 if (err) in blk_crypto_fallback_start_using_mode()
651 err = PTR_ERR(slotp->tfms[mode_num]); in blk_crypto_fallback_start_using_mode()
652 if (err == -ENOENT) { in blk_crypto_fallback_start_using_mode()
655 err = -ENOPKG; in blk_crypto_fallback_start_using_mode()
680 return err; in blk_crypto_fallback_start_using_mode()