Lines Matching defs:firmware

15 #include "firmware.h"
18 * firmware fallback mechanism
38 * use small loading timeout for caching devices' firmware because all these
39 * firmware images have been loaded successfully at lease once, also system is
40 * ready for completing firmware loading now. The maximum size of firmware in
80 struct firmware *fw;
130 * firmware_timeout_store() - set number of seconds to wait for firmware
136 * Sets the number of seconds to wait for the firmware. Once
138 * firmware will be provided.
194 .name = "firmware",
265 * one same firmware buf, so let all requests
383 * firmware_data_write() - write method for firmware
392 * the driver as a firmware image.
463 fw_create_instance(struct firmware *firmware, const char *fw_name,
476 fw_sysfs->fw = firmware;
489 * fw_load_sysfs_fallback() - load a firmware via the sysfs fallback mechanism
490 * @fw_sysfs: firmware sysfs information for the firmware to load
493 * In charge of constructing a sysfs fallback interface for firmware loading.
525 dev_dbg(f_dev, "firmware: requesting %s\n", fw_priv->fw_name);
551 static int fw_load_from_user_helper(struct firmware *firmware,
563 dev_dbg(device, "firmware: %s loading timed out\n",
570 dev_err(device, "firmware: %s will not be loaded\n",
576 fw_sysfs = fw_create_instance(firmware, name, device, opt_flags);
582 fw_sysfs->fw_priv = firmware->priv;
586 ret = assign_fw(firmware, device);
608 pr_info_once("Ignoring firmware sysfs fallback due to sysctl knob\n");
615 /* Also permit LSMs and IMA to fail firmware sysfs fallback */
624 * firmware_fallback_sysfs() - use the fallback mechanism to find firmware
625 * @fw: pointer to firmware image
626 * @name: name of firmware file to look for
627 * @device: device for which firmware is being loaded
628 * @opt_flags: options to control firmware loading behaviour, as defined by
632 * This function is called if direct lookup for the firmware failed, it enables
634 * interface. Userspace is in charge of loading the firmware through the sysfs
645 int firmware_fallback_sysfs(struct firmware *fw, const char *name,