Home
last modified time | relevance | path

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

12345678910>>...57

/openbmc/phosphor-fan-presence/presence/
H A Dfallback.hpp19 * @class Fallback
20 * @brief Fallback redundancy policy.
22 * The fallback redundancy policy falls back to
24 * sensor indicates not present and a fallback
27 class Fallback : public RedundancyPolicy class
30 Fallback() = delete;
31 Fallback(const Fallback&) = default;
32 Fallback& operator=(const Fallback&) = default;
33 Fallback(Fallback&&) = default;
34 Fallback& operator=(Fallback&&) = default;
[all …]
/openbmc/phosphor-watchdog/test/
H A Dwatchdog.cpp262 /** @brief Make sure the watchdog is started and enabled with a fallback
263 * Wait through the initial trip and ensure the fallback is observed
264 * Make sure that fallback runs to completion and ensure the watchdog
274 // We need to make a wdog with the right fallback options in TEST_F()
277 Watchdog::Fallback fallback; in TEST_F() local
278 fallback.action = Watchdog::Action::PowerOff; in TEST_F()
279 fallback.interval = static_cast<uint64_t>(fallbackIntervalMs); in TEST_F()
280 fallback.always = false; in TEST_F()
283 Watchdog::ActionTargetMap(), fallback); in TEST_F()
294 // We should now have entered the fallback once the primary expires in TEST_F()
[all …]
/openbmc/linux/drivers/crypto/vmx/
H A Daes.c23 struct crypto_cipher *fallback; member
31 struct crypto_cipher *fallback; in p8_aes_init() local
34 fallback = crypto_alloc_cipher(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in p8_aes_init()
35 if (IS_ERR(fallback)) { in p8_aes_init()
38 alg, PTR_ERR(fallback)); in p8_aes_init()
39 return PTR_ERR(fallback); in p8_aes_init()
42 crypto_cipher_set_flags(fallback, in p8_aes_init()
46 ctx->fallback = fallback; in p8_aes_init()
55 if (ctx->fallback) { in p8_aes_exit()
56 crypto_free_cipher(ctx->fallback); in p8_aes_exit()
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
/openbmc/linux/Documentation/driver-api/firmware/
H A 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 …]
/openbmc/linux/drivers/firmware/broadcom/
H A 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 …]
/openbmc/phosphor-watchdog/src/
H A Dmainapp.cpp51 void printFallback(const Watchdog::Fallback& fallback) in printFallback() argument
53 std::cerr << "Fallback Options:\n"; in printFallback()
54 std::cerr << " Action: " << convertForMessage(fallback.action) << "\n"; in printFallback()
55 std::cerr << " Interval(ms): " << std::dec << fallback.interval << "\n"; in printFallback()
56 std::cerr << " Always re-execute: " << std::boolalpha << fallback.always in printFallback()
103 // Fallback related options in main()
104 const std::string fallbackGroup = "Fallback Options"; in main()
110 "Perform this action when the fallback expires.") in main()
117 "Waits for this interval before performing the fallback " in main()
126 "This option is only valid with a fallback specified") in main()
[all …]
H A Dwatchdog.hpp48 /** @brief Type used to specify the parameters of a fallback watchdog
50 struct Fallback struct in phosphor::watchdog::Watchdog
63 * @param[in] fallback - fallback watchdog
71 std::optional<Fallback>&& fallback = std::nullopt, argument
75 actionTargetMap(std::move(actionTargetMap)), fallback(fallback),
91 // enters the fallback state if the fallback is always enabled.
174 /** @brief Fallback timer options */
175 std::optional<Fallback> fallback; member in phosphor::watchdog::Watchdog
186 /** @brief Attempt to enter the fallback watchdog or disables it */
H A Dwatchdog.cpp45 // Attempt to fallback or disable our timer if needed in enabled()
91 // are inside of the fallback in timeRemaining()
92 value = fallback->interval; in timeRemaining()
114 action = fallback->action; in timeOutHandler()
176 // a possible fallback in tryFallbackOrDisable()
177 if (fallback && (fallback->always || this->enabled())) in tryFallbackOrDisable()
179 auto interval_ms = fallback->interval; in tryFallbackOrDisable()
/openbmc/linux/drivers/base/firmware_loader/
H A DKconfig90 bool "Enable the firmware sysfs fallback mechanism"
95 loading to the kernel through userspace as a fallback mechanism
100 built-in. For details on how to work with the sysfs fallback mechanism
101 refer to Documentation/driver-api/firmware/fallback-mechanisms.rst.
106 the requested firmware a sysfs fallback loading facility is made
109 this is known as the driver using the custom fallback mechanism.
110 If the custom fallback mechanism is used userspace must always
111 acknowledge failure to find firmware as the timeout for the fallback
117 can no longer be relied upon as a fallback mechanism. Linux no longer
118 relies on or uses a fallback mechanism in userspace. If you need to
[all …]
H A Dfallback.c11 #include "fallback.h"
15 * firmware fallback mechanism
64 * fw_load_sysfs_fallback() - load a firmware via the sysfs fallback mechanism
68 * In charge of constructing a sysfs fallback interface for firmware loading.
183 pr_info_once("Ignoring firmware sysfs fallback due to sysctl knob\n"); in fw_run_sysfs_fallback()
190 /* Also permit LSMs and IMA to fail firmware sysfs fallback */ in fw_run_sysfs_fallback()
199 * firmware_fallback_sysfs() - use the fallback mechanism to find firmware
205 * @ret: return value from direct lookup which triggered the fallback mechanism
208 * a fallback mechanism through userspace by exposing a sysfs loading
210 * loading interface. This sysfs fallback mechanism may be disabled completely
[all …]
H A Dfirmware.h15 * @FW_OPT_UEVENT: Enables the fallback mechanism to send a kobject uevent
19 * @FW_OPT_USERHELPER: Enable the fallback mechanism, in case the direct
28 * @FW_OPT_NOFALLBACK_SYSFS: Disable the sysfs fallback mechanism. Takes
30 * @FW_OPT_FALLBACK_PLATFORM: Enable fallback to device fw copy embedded in
31 * the platform's main firmware. If both this fallback and the sysfs
32 * fallback are enabled, then this fallback will be tried first.
H A Dsysfs.h16 * struct firmware_fallback_config - firmware fallback configuration settings
18 * Helps describe and fine tune the fallback mechanism.
20 * @force_sysfs_fallback: force the sysfs fallback mechanism to be used
24 * @ignore_sysfs_fallback: force to disable the sysfs fallback mechanism.
28 * @loading_timeout: the timeout to wait for the fallback mechanism before
/openbmc/linux/drivers/crypto/
H A Dgeode-aes.c127 * The requested key size is not supported by HW, do a fallback in geode_setkey_cip()
129 tctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in geode_setkey_cip()
130 tctx->fallback.cip->base.crt_flags |= in geode_setkey_cip()
133 return crypto_cipher_setkey(tctx->fallback.cip, key, len); in geode_setkey_cip()
153 * The requested key size is not supported by HW, do a fallback in geode_setkey_skcipher()
155 crypto_skcipher_clear_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
157 crypto_skcipher_set_flags(tctx->fallback.skcipher, in geode_setkey_skcipher()
160 return crypto_skcipher_setkey(tctx->fallback.skcipher, key, len); in geode_setkey_skcipher()
169 crypto_cipher_encrypt_one(tctx->fallback.cip, out, in); in geode_encrypt()
184 crypto_cipher_decrypt_one(tctx->fallback.cip, out, in); in geode_decrypt()
[all …]
H A Datmel-ecc.c31 * @fallback : used for unsupported curves or when user wants to use its own
42 struct crypto_kpp *fallback; member
97 /* fallback to ecdh software implementation */ in atmel_ecdh_set_secret()
99 return crypto_kpp_set_secret(ctx->fallback, buf, len); in atmel_ecdh_set_secret()
145 kpp_request_set_tfm(req, ctx->fallback); in atmel_ecdh_generate_public_key()
174 kpp_request_set_tfm(req, ctx->fallback); in atmel_ecdh_compute_shared_secret()
250 struct crypto_kpp *fallback; in atmel_ecdh_init_tfm() local
260 fallback = crypto_alloc_kpp(alg, 0, CRYPTO_ALG_NEED_FALLBACK); in atmel_ecdh_init_tfm()
261 if (IS_ERR(fallback)) { in atmel_ecdh_init_tfm()
263 alg, PTR_ERR(fallback)); in atmel_ecdh_init_tfm()
[all …]
H A Dpadlock-sha.c25 struct shash_desc fallback; member
29 struct crypto_shash *fallback; member
37 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init()
38 return crypto_shash_init(&dctx->fallback); in padlock_sha_init()
46 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update()
53 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export()
61 dctx->fallback.tfm = ctx->fallback; in padlock_sha_import()
62 return crypto_shash_import(&dctx->fallback, in); in padlock_sha_import()
87 err = crypto_shash_export(&dctx->fallback, &state); in padlock_sha1_finup()
92 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha1_finup()
[all …]
/openbmc/qemu/
H A D.gitpublish9 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
15 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
21 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
27 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
33 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
39 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
45 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
51 cccmd = scripts/get_maintainer.pl --noroles --norolestats --nogit --nogit-fallback 2>/dev/null
/openbmc/linux/Documentation/block/
H A Dinline-encryption.rst132 blk-crypto-fallback
141 Therefore, we also introduce *blk-crypto-fallback*, which is an implementation
142 of inline encryption using the kernel crypto API. blk-crypto-fallback is built
146 handle en/decryption of the bio using blk-crypto-fallback.
149 on it being unmodified. Instead, blk-crypto-fallback allocates bounce pages,
152 blk-crypto-fallback completes the original bio. If the original bio is too
155 For decryption, blk-crypto-fallback "wraps" the bio's completion callback
158 successfully, blk-crypto-fallback restores the bio's original completion
161 Afterwards, blk-crypto-fallback completes the bio.
163 In both cases, the bios that blk-crypto-fallback submits no longer have an
[all …]
/openbmc/linux/arch/s390/crypto/
H A Daes_s390.c10 * Sebastian Siewior (sebastian@breakpoint.cc> SW-Fallback
50 } fallback; member
58 struct crypto_skcipher *fallback; member
77 sctx->fallback.cip->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; in setkey_fallback_cip()
78 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags & in setkey_fallback_cip()
81 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip()
110 crypto_cipher_encrypt_one(sctx->fallback.cip, out, in); in crypto_aes_encrypt()
121 crypto_cipher_decrypt_one(sctx->fallback.cip, out, in); in crypto_aes_decrypt()
133 sctx->fallback.cip = crypto_alloc_cipher(name, 0, in fallback_init_cip()
136 if (IS_ERR(sctx->fallback.cip)) { in fallback_init_cip()
[all …]
/openbmc/linux/tools/testing/selftests/firmware/
H A 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"
/openbmc/phosphor-fan-presence/docs/presence/
H A Drpolicy.md14 - ["fallback"](#fallback)
26 ### "fallback"
32 "type": "fallback"
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A 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 …]
/openbmc/openbmc/poky/meta/recipes-core/udev/eudev/
H A D0001-random-util.c-sync-dev_urandom-implementation-to-sys.patch24 - If kernel does not support GRND_INSECURE, fallback to GRND_NONBLOCK
25 - If enough entropy is not supplied, fallback to reading /dev/urandom,
125 + break; /* Weird, so fallback to /dev/urandom. */
128 + break; /* No syscall, so fallback to /dev/urandom. */
131 + continue; /* No GRND_INSECURE; fallback to GRND_NONBLOCK. */
133 + break; /* Will block, but no GRND_INSECURE, so fallback to /dev/urandom. */
135 + break; /* Unexpected, so just give up and fallback to /dev/urandom. */

12345678910>>...57