Lines Matching refs:firmware

12 #include "firmware.h"
15 * firmware fallback mechanism
19 * use small loading timeout for caching devices' firmware because all these
20 * firmware images have been loaded successfully at lease once, also system is
21 * ready for completing firmware loading now. The maximum size of firmware in
68 * fw_load_sysfs_fallback() - load a firmware via the sysfs fallback mechanism
69 * @fw_sysfs: firmware sysfs information for the firmware to load
72 * In charge of constructing a sysfs fallback interface for firmware loading.
104 dev_dbg(f_dev, "firmware: requesting %s\n", fw_priv->fw_name);
130 static int fw_load_from_user_helper(struct firmware *firmware,
142 dev_dbg(device, "firmware: %s loading timed out\n",
149 dev_err(device, "firmware: %s will not be loaded\n",
155 fw_sysfs = fw_create_instance(firmware, name, device, opt_flags);
161 fw_sysfs->fw_priv = firmware->priv;
165 ret = assign_fw(firmware, device);
187 pr_info_once("Ignoring firmware sysfs fallback due to sysctl knob\n");
194 /* Also permit LSMs and IMA to fail firmware sysfs fallback */
203 * firmware_fallback_sysfs() - use the fallback mechanism to find firmware
204 * @fw: pointer to firmware image
205 * @name: name of firmware file to look for
206 * @device: device for which firmware is being loaded
207 * @opt_flags: options to control firmware loading behaviour, as defined by
211 * This function is called if direct lookup for the firmware failed, it enables
213 * interface. Userspace is in charge of loading the firmware through the sysfs
224 int firmware_fallback_sysfs(struct firmware *fw, const char *name,