Home
last modified time | relevance | path

Searched full:fallback (Results 1 – 25 of 947) sorted by relevance

12345678910>>...38

/Linux-v5.10/drivers/crypto/vmx/
Daes.c22 struct crypto_cipher *fallback; member
30 struct crypto_cipher *fallback; in p8_aes_init() local
33 fallback = crypto_alloc_cipher(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_aes_init()
34 if (IS_ERR(fallback)) { in p8_aes_init()
37 alg, PTR_ERR(fallback)); in p8_aes_init()
38 return PTR_ERR(fallback); in p8_aes_init()
41 crypto_cipher_set_flags(fallback, in p8_aes_init()
45 ctx->fallback = fallback; in p8_aes_init()
54 if (ctx->fallback) { in p8_aes_exit()
55 crypto_free_cipher(ctx->fallback); in p8_aes_exit()
[all …]
Daes_cbc.c19 struct crypto_skcipher *fallback; member
27 struct crypto_skcipher *fallback; in p8_aes_cbc_init() local
29 fallback = crypto_alloc_skcipher("cbc(aes)", 0, in p8_aes_cbc_init()
32 if (IS_ERR(fallback)) { in p8_aes_cbc_init()
33 pr_err("Failed to allocate cbc(aes) fallback: %ld\n", in p8_aes_cbc_init()
34 PTR_ERR(fallback)); in p8_aes_cbc_init()
35 return PTR_ERR(fallback); in p8_aes_cbc_init()
39 crypto_skcipher_reqsize(fallback)); in p8_aes_cbc_init()
40 ctx->fallback = fallback; in p8_aes_cbc_init()
48 crypto_free_skcipher(ctx->fallback); in p8_aes_cbc_exit()
[all …]
Daes_ctr.c19 struct crypto_skcipher *fallback; member
26 struct crypto_skcipher *fallback; in p8_aes_ctr_init() local
28 fallback = crypto_alloc_skcipher("ctr(aes)", 0, in p8_aes_ctr_init()
31 if (IS_ERR(fallback)) { in p8_aes_ctr_init()
32 pr_err("Failed to allocate ctr(aes) fallback: %ld\n", in p8_aes_ctr_init()
33 PTR_ERR(fallback)); in p8_aes_ctr_init()
34 return PTR_ERR(fallback); in p8_aes_ctr_init()
38 crypto_skcipher_reqsize(fallback)); in p8_aes_ctr_init()
39 ctx->fallback = fallback; in p8_aes_ctr_init()
47 crypto_free_skcipher(ctx->fallback); in p8_aes_ctr_exit()
[all …]
Daes_xts.c20 struct crypto_skcipher *fallback; member
29 struct crypto_skcipher *fallback; in p8_aes_xts_init() local
31 fallback = crypto_alloc_skcipher("xts(aes)", 0, in p8_aes_xts_init()
34 if (IS_ERR(fallback)) { in p8_aes_xts_init()
35 pr_err("Failed to allocate xts(aes) fallback: %ld\n", in p8_aes_xts_init()
36 PTR_ERR(fallback)); in p8_aes_xts_init()
37 return PTR_ERR(fallback); in p8_aes_xts_init()
41 crypto_skcipher_reqsize(fallback)); in p8_aes_xts_init()
42 ctx->fallback = fallback; in p8_aes_xts_init()
50 crypto_free_skcipher(ctx->fallback); in p8_aes_xts_exit()
[all …]
/Linux-v5.10/Documentation/driver-api/firmware/
Dfallback-mechanisms.rst2 Fallback mechanisms
5 A fallback mechanism is supported to allow to overcome failures to do a direct
8 configuration options related to supporting the firmware fallback mechanism are:
10 * CONFIG_FW_LOADER_USER_HELPER: enables building the firmware fallback
12 CONFIG_FW_LOADER_USER_HELPER_FALLBACK is disabled, only the custom fallback
15 enable the kobject uevent fallback mechanism on all firmware API calls
18 fallback mechanism: if this kconfig option is enabled and your second
20 informing the kernel that you have a custom fallback mechanism and it will
28 the kobject uevent fallback mechanism will never take effect even
31 Justifying the firmware fallback mechanism
[all …]
/Linux-v5.10/drivers/firmware/broadcom/
Dbcm47xx_sprom.c50 const char *name, char *buf, int len, bool fallback) in get_nvram_var() argument
58 if (fallback && err == -ENOENT && prefix) { in get_nvram_var()
68 type *val, type allset, bool fallback) \
75 fallback); \
97 u16 *val_lo, u16 *val_hi, bool fallback) in NVRAM_READ_VAL()
103 err = get_nvram_var(prefix, NULL, name, buf, sizeof(buf), fallback); in NVRAM_READ_VAL()
118 bool fallback) in nvram_read_leddc() argument
124 err = get_nvram_var(prefix, NULL, name, buf, sizeof(buf), fallback); in nvram_read_leddc()
142 u8 val[6], bool fallback) in nvram_read_macaddr() argument
147 err = get_nvram_var(prefix, NULL, name, buf, sizeof(buf), fallback); in nvram_read_macaddr()
[all …]
/Linux-v5.10/drivers/base/firmware_loader/
DKconfig72 bool "Enable the firmware sysfs fallback mechanism"
76 loading to the kernel through userspace as a fallback mechanism
81 built-in. For details on how to work with the sysfs fallback mechanism
82 refer to Documentation/driver-api/firmware/fallback-mechanisms.rst.
87 the requested firmware a sysfs fallback loading facility is made
90 this is known as the driver using the custom fallback mechanism.
91 If the custom fallback mechanism is used userspace must always
92 acknowledge failure to find firmware as the timeout for the fallback
98 can no longer be relied upon as a fallback mechanism. Linux no longer
99 relies on or uses a fallback mechanism in userspace. If you need to
[all …]
Dfirmware.h17 * @FW_OPT_UEVENT: Enables the fallback mechanism to send a kobject uevent
21 * @FW_OPT_USERHELPER: Enable the fallback mechanism, in case the direct
30 * @FW_OPT_NOFALLBACK_SYSFS: Disable the sysfs fallback mechanism. Takes
32 * @FW_OPT_FALLBACK_PLATFORM: Enable fallback to device fw copy embedded in
33 * the platform's main firmware. If both this fallback and the sysfs
34 * fallback are enabled, then this fallback will be tried first.
Dfallback.h11 * struct firmware_fallback_config - firmware fallback configuration settings
13 * Helps describe and fine tune the fallback mechanism.
15 * @force_sysfs_fallback: force the sysfs fallback mechanism to be used
19 * @ignore_sysfs_fallback: force to disable the sysfs fallback mechanism.
23 * @loading_timeout: the timeout to wait for the fallback mechanism before
Dfallback.c14 #include "fallback.h"
18 * firmware fallback mechanism
491 * fw_load_sysfs_fallback() - load a firmware via the sysfs fallback mechanism
495 * In charge of constructing a sysfs fallback interface for firmware loading.
606 pr_info_once("Ignoring firmware sysfs fallback due to sysctl knob\n"); in fw_run_sysfs_fallback()
613 /* Also permit LSMs and IMA to fail firmware sysfs fallback */ in fw_run_sysfs_fallback()
622 * firmware_fallback_sysfs() - use the fallback mechanism to find firmware
628 * @ret: return value from direct lookup which triggered the fallback mechanism
631 * a fallback mechanism through userspace by exposing a sysfs loading
633 * loading interface. This sysfs fallback mechanism may be disabled completely
[all …]
/Linux-v5.10/drivers/crypto/
Dgeode-aes.c126 * The requested key size is not supported by HW, do a fallback in geode_setkey_cip()
128 tctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in geode_setkey_cip()
129 tctx->fallback.cip->base.crt_flags |= in geode_setkey_cip()
132 return crypto_cipher_setkey(tctx->fallback.cip, key, len); in geode_setkey_cip()
152 * The requested key size is not supported by HW, do a fallback in geode_setkey_skcipher()
154 crypto_skcipher_clear_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
156 crypto_skcipher_set_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
159 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len); in geode_setkey_skcipher()
168 crypto_cipher_encrypt_one(tctx->fallback.cip, out, in); in geode_encrypt()
183 crypto_cipher_decrypt_one(tctx->fallback.cip, out, in); in geode_decrypt()
[all …]
Datmel-ecc.c31 * @fallback : used for unsupported curves or when user wants to use its own
43 struct crypto_kpp *fallback; member
109 /* fallback to ecdh software implementation */ in atmel_ecdh_set_secret()
111 return crypto_kpp_set_secret(ctx->fallback, buf, len); in atmel_ecdh_set_secret()
158 kpp_request_set_tfm(req, ctx->fallback); in atmel_ecdh_generate_public_key()
187 kpp_request_set_tfm(req, ctx->fallback); in atmel_ecdh_compute_shared_secret()
263 struct crypto_kpp *fallback; in atmel_ecdh_init_tfm() local
272 fallback = crypto_alloc_kpp(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in atmel_ecdh_init_tfm()
273 if (IS_ERR(fallback)) { in atmel_ecdh_init_tfm()
275 alg, PTR_ERR(fallback)); in atmel_ecdh_init_tfm()
[all …]
Dpadlock-sha.c24 struct shash_desc fallback; member
28 struct crypto_shash *fallback; member
36 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
37 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
45 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
52 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
60 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
61 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
86 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
91 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha1_finup()
[all …]
/Linux-v5.10/Documentation/block/
Dinline-encryption.rst27 To allow for testing, we also want a crypto API fallback when actual
84 blk-mq changes, other block layer changes and blk-crypto-fallback
93 We introduce ``block/blk-crypto-fallback.c``, which allows upper layers to remain
97 en/decrypt the bio with the blk-crypto-fallback.
102 concerned). ``blk-crypto-fallback`` sets the bounce bio's ``bi_end_io`` to an
106 is saved and overwritten by ``blk-crypto-fallback`` to
114 blk-crypto-fallback is used, the ciphertext written to disk (and hence the
120 ``blk-crypto-fallback``. We will eventually reach a point in blk-mq when a
154 blk-crypto-fallback, if hardware support isn't available for the desired
160 (either by real inline encryption hardware, or by the blk-crypto-fallback).
[all …]
/Linux-v5.10/arch/s390/crypto/
Daes_s390.c10 * Sebastian Siewior (sebastian@breakpoint.cc> SW-Fallback
49 } fallback; member
57 struct crypto_skcipher *fallback; member
76 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_cip()
77 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
80 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
109 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in); in crypto_aes_encrypt()
120 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in); in crypto_aes_decrypt()
132 sctx->fallback.cip = crypto_alloc_cipher(name, 0, in fallback_init_cip()
135 if (IS_ERR(sctx->fallback.cip)) { in fallback_init_cip()
[all …]
/Linux-v5.10/tools/testing/selftests/firmware/
Dfw_fallback.sh3 # This validates that the kernel will fall back to using the fallback mechanism
76 echo "$0: custom fallback trigger not present, ignoring test" >&2
109 echo "$0: canceling custom fallback trigger not present, ignoring test" >&2
170 echo "$0: fallback mechanism immediately cancelled"
175 echo "to immediately cancel all fallback requests, this must be"
217 echo "$0: fallback mechanism works"
225 echo "$0: cancelling fallback mechanism works"
248 echo "$0: custom fallback loading mechanism works"
259 echo "$0: custom fallback loading mechanism works"
272 echo "$0: cancelling custom fallback mechanism works"
/Linux-v5.10/scripts/atomic/
Dgen-atomics.sh13 gen-atomic-fallback.sh linux/atomic-arch-fallback.h arch_
14 gen-atomic-fallback.sh linux/atomic-fallback.h
/Linux-v5.10/drivers/net/wireless/broadcom/b43/
Dxmit.h31 __le16 phy_ctl1_fb; /* PHY TX control word 1 for fallback rates */
33 __le16 phy_ctl1_rts_fb; /* PHY TX control word 1 RTS for fallback rates */
40 __le16 tx_fes_time_fb; /* TX FES Time Fallback */
41 struct b43_plcp_hdr6 rts_plcp_fb; /* RTS fallback PLCP header */
42 __le16 rts_dur_fb; /* RTS fallback duration */
43 struct b43_plcp_hdr6 plcp_fb; /* Fallback PLCP header */
44 __le16 dur_fb; /* Fallback duration */
46 __le16 mimo_ratelen_fb; /* MIMO fallback rate length */
101 #define B43_TXH_MAC_RTS_FB_SHORTPRMBL 0x80000000 /* RTS fallback preamble */
103 #define B43_TXH_MAC_FB_SHORTPRMBL 0x20000000 /* Main fallback preamble */
[all …]
/Linux-v5.10/block/
Dblk-crypto-fallback.c10 #define pr_fmt(fmt) "blk-crypto-fallback: " fmt
27 "Number of preallocated bounce pages for the blk-crypto crypto API fallback");
32 "Number of keyslots for the blk-crypto crypto API fallback");
37 …"Number of preallocated bio fallback crypto contexts for blk-crypto to use during crypto API fallb…
137 * The crypto API fallback KSM ops - only used for a bio when it specifies a
253 * The crypto API fallback's encryption routine.
290 * Use the crypto API fallback keyslot manager to get a crypto_skcipher in blk_crypto_fallback_encrypt_bio()
370 * The crypto API fallback's main decryption routine.
392 * Use the crypto API fallback keyslot manager to get a crypto_skcipher in blk_crypto_fallback_decrypt_bio()
440 * blk_crypto_fallback_decrypt_endio - queue bio for fallback decryption
[all …]
Dblk-mq-rdma.c22 * vector, we fallback to the naive mapping.
33 goto fallback; in blk_mq_rdma_map_queues()
41 fallback: in blk_mq_rdma_map_queues()
Dblk-mq-virtio.c31 goto fallback; in blk_mq_virtio_map_queues()
36 goto fallback; in blk_mq_virtio_map_queues()
43 fallback: in blk_mq_virtio_map_queues()
/Linux-v5.10/scripts/dtc/
Ddtc.c114 static const char *guess_type_by_name(const char *fname, const char *fallback) in guess_type_by_name() argument
120 return fallback; in guess_type_by_name()
127 return fallback; in guess_type_by_name()
130 static const char *guess_input_format(const char *fname, const char *fallback) in guess_input_format() argument
137 return fallback; in guess_input_format()
143 return fallback; in guess_input_format()
147 return fallback; in guess_input_format()
150 return fallback; in guess_input_format()
157 return guess_type_by_name(fname, fallback); in guess_input_format()
/Linux-v5.10/drivers/crypto/ccp/
Dccp-crypto-aes-xts.c111 unsigned int fallback = 0; in ccp_aes_xts_crypt() local
140 fallback = 1; in ccp_aes_xts_crypt()
143 fallback = 1; in ccp_aes_xts_crypt()
146 fallback = 1; in ccp_aes_xts_crypt()
147 if (fallback) { in ccp_aes_xts_crypt()
148 /* Use the fallback to process the request for any in ccp_aes_xts_crypt()
208 pr_warn("could not load fallback driver xts(aes)\n"); in ccp_aes_xts_init_tfm()
/Linux-v5.10/lib/crypto/
DKconfig23 fallback, e.g., for SIMD implementations. If no arch specific
49 fallback, e.g., for SIMD implementations. If no arch specific
74 fallback, e.g., for SIMD implementations. If no arch specific
109 fallback, e.g., for SIMD implementations. If no arch specific
/Linux-v5.10/Documentation/vm/
Dnuma.rst79 "overflow" or "fallback".
86 a default Node ordered zonelist. This means it tries to fallback to other zones
126 allows such allocations to fallback to other nearby nodes when a node that
129 Some kernel allocations do not want or cannot tolerate this allocation fallback
138 may revert to its own fallback path. The slab kernel memory allocator is an
144 attached to memoryless nodes would always incur the fallback path overhead

12345678910>>...38