@@ -20,10 +20,10 @@ request_firmware
.. kernel-doc:: drivers/base/firmware_loader/main.c
:functions: request_firmware
-firmware_request_nowarn
+request_firmware_nowarn
-----------------------
.. kernel-doc:: drivers/base/firmware_loader/main.c
- :functions: firmware_request_nowarn
+ :functions: request_firmware_nowarn
firmware_request_platform
-------------------------
@@ -76,7 +76,7 @@ static int ivpu_fw_request(struct ivpu_device *vdev)
if (fw_names[i].gen != ivpu_hw_gen(vdev))
continue;
- ret = firmware_request_nowarn(&vdev->fw->file, fw_names[i].name, vdev->drm.dev);
+ ret = request_firmware_nowarn(&vdev->fw->file, fw_names[i].name, vdev->drm.dev);
if (!ret) {
vdev->fw->name = fw_names[i].name;
return 0;
@@ -975,7 +975,7 @@ request_firmware(const struct firmware **firmware_p, const char *name,
EXPORT_SYMBOL(request_firmware);
/**
- * firmware_request_nowarn() - request for an optional fw module
+ * request_firmware_nowarn() - request for an optional fw module
* @firmware: pointer to firmware image
* @name: name of firmware file
* @device: device for which firmware is being loaded
@@ -987,13 +987,13 @@ EXPORT_SYMBOL(request_firmware);
* therefore up to the driver to check for the return value of this call and to
* decide when to inform the users of errors.
**/
-int firmware_request_nowarn(const struct firmware **firmware, const char *name,
+int request_firmware_nowarn(const struct firmware **firmware, const char *name,
struct device *device)
{
return _request_firmware(firmware, name, device, NULL, 0, 0,
FW_OPT_UEVENT | FW_OPT_NO_WARN);
}
-EXPORT_SYMBOL_GPL(firmware_request_nowarn);
+EXPORT_SYMBOL_GPL(request_firmware_nowarn);
/**
* request_firmware_direct() - load firmware directly without usermode helper
@@ -672,7 +672,7 @@ int btbcm_initialize(struct hci_dev *hdev, bool *fw_load_done, bool use_autobaud
fw_name_count++;
for (i = 0; i < fw_name_count; i++) {
- err = firmware_request_nowarn(&fw, fw_name[i], &hdev->dev);
+ err = request_firmware_nowarn(&fw, fw_name[i], &hdev->dev);
if (err == 0) {
bt_dev_info(hdev, "%s '%s' Patch",
hw_name ? hw_name : "BCM", fw_name[i]);
@@ -2057,7 +2057,7 @@ static int btintel_download_fw(struct hci_dev *hdev,
return -EINVAL;
}
- err = firmware_request_nowarn(&fw, fwname, &hdev->dev);
+ err = request_firmware_nowarn(&fw, fwname, &hdev->dev);
if (err < 0) {
if (!btintel_test_flag(hdev, INTEL_BOOTLOADER)) {
/* Firmware has already been loaded */
@@ -2246,7 +2246,7 @@ static int btintel_prepare_fw_download_tlv(struct hci_dev *hdev,
}
btintel_get_fw_name_tlv(ver, fwname, sizeof(fwname), "sfi");
- err = firmware_request_nowarn(&fw, fwname, &hdev->dev);
+ err = request_firmware_nowarn(&fw, fwname, &hdev->dev);
if (err < 0) {
if (!btintel_test_flag(hdev, INTEL_BOOTLOADER)) {
/* Firmware has already been loaded */
@@ -1207,10 +1207,10 @@ static const struct firmware *bcm4377_request_blob(struct bcm4377_data *bcm4377,
dev_dbg(&bcm4377->pdev->dev, "Trying to load firmware: '%s' or '%s'\n",
name0, name1);
- ret = firmware_request_nowarn(&fw, name0, &bcm4377->pdev->dev);
+ ret = request_firmware_nowarn(&fw, name0, &bcm4377->pdev->dev);
if (!ret)
return fw;
- ret = firmware_request_nowarn(&fw, name1, &bcm4377->pdev->dev);
+ ret = request_firmware_nowarn(&fw, name1, &bcm4377->pdev->dev);
if (!ret)
return fw;
@@ -761,9 +761,9 @@ static int sev_get_firmware(struct device *dev,
*
* Fall-back to using generic name: sev.fw
*/
- if ((firmware_request_nowarn(firmware, fw_name_specific, dev) >= 0) ||
- (firmware_request_nowarn(firmware, fw_name_subset, dev) >= 0) ||
- (firmware_request_nowarn(firmware, SEV_FW_FILE, dev) >= 0))
+ if ((request_firmware_nowarn(firmware, fw_name_specific, dev) >= 0) ||
+ (request_firmware_nowarn(firmware, fw_name_subset, dev) >= 0) ||
+ (request_firmware_nowarn(firmware, SEV_FW_FILE, dev) >= 0))
return 0;
return -ENOENT;
@@ -429,7 +429,7 @@ static int eip197_load_firmwares(struct safexcel_crypto_priv *priv)
retry_fw:
for (i = 0; i < FW_NB; i++) {
snprintf(fw_path, 37, "inside-secure/%s/%s", dir, fw_name[i]);
- ret = firmware_request_nowarn(&fw[i], fw_path, priv->dev);
+ ret = request_firmware_nowarn(&fw[i], fw_path, priv->dev);
if (ret) {
if (minifw || priv->data->version != EIP197B_MRVL)
goto release_fw;
@@ -437,7 +437,7 @@ static int eip197_load_firmwares(struct safexcel_crypto_priv *priv)
/* Fallback to the old firmware location for the
* EIP197b.
*/
- ret = firmware_request_nowarn(&fw[i], fw_name[i],
+ ret = request_firmware_nowarn(&fw[i], fw_name[i],
priv->dev);
if (ret)
goto release_fw;
@@ -785,7 +785,7 @@ static int try_firmware_load(struct intel_uc_fw *uc_fw, const struct firmware **
struct device *dev = gt->i915->drm.dev;
int err;
- err = firmware_request_nowarn(fw, uc_fw->file_selected.path, dev);
+ err = request_firmware_nowarn(fw, uc_fw->file_selected.path, dev);
if (err)
return err;
@@ -91,7 +91,7 @@ nvkm_firmware_get(const struct nvkm_subdev *subdev, const char *fwname, int ver,
else
snprintf(f, sizeof(f), "nvidia/%s/%s.bin", cname, fwname);
- if (!firmware_request_nowarn(fw, f, device->dev)) {
+ if (!request_firmware_nowarn(fw, f, device->dev)) {
nvkm_debug(subdev, "firmware \"%s\" loaded - %zu byte(s)\n",
f, (*fw)->size);
return 0;
@@ -426,7 +426,7 @@ static int silead_ts_load_fw(struct i2c_client *client)
* succeeds we apply an (optional) set of alternative min/max values from the
* "silead,efi-fw-min-max" property.
*/
- error = firmware_request_nowarn(&fw, data->fw_name, dev);
+ error = request_firmware_nowarn(&fw, data->fw_name, dev);
if (error) {
error = firmware_request_platform(&fw, data->fw_name, dev);
if (error) {
@@ -98,7 +98,7 @@ static int si2157_load_firmware(struct dvb_frontend *fe,
struct si2157_cmd cmd;
/* request the firmware, this will block and timeout */
- ret = firmware_request_nowarn(&fw, fw_name, &client->dev);
+ ret = request_firmware_nowarn(&fw, fw_name, &client->dev);
if (ret)
return ret;
@@ -648,7 +648,7 @@ static int brcmstb_dpfe_download_firmware(struct brcmstb_dpfe_priv *priv)
if (!priv->dpfe_api->fw_name)
return -ENODEV;
- ret = firmware_request_nowarn(&fw, priv->dpfe_api->fw_name, dev);
+ ret = request_firmware_nowarn(&fw, priv->dpfe_api->fw_name, dev);
/*
* Defer the firmware download if the firmware file couldn't be found.
* The root file system may not be available yet.
@@ -4428,7 +4428,7 @@ static void ice_request_fw(struct ice_pf *pf)
* and warning messages for other errors.
*/
if (opt_fw_filename) {
- err = firmware_request_nowarn(&firmware, opt_fw_filename, dev);
+ err = request_firmware_nowarn(&firmware, opt_fw_filename, dev);
if (err) {
kfree(opt_fw_filename);
goto dflt_pkg_load;
@@ -943,7 +943,7 @@ static const struct firmware *ath10k_fetch_fw_file(struct ath10k *ar,
dir = ".";
snprintf(filename, sizeof(filename), "%s/%s", dir, file);
- ret = firmware_request_nowarn(&fw, filename, ar->dev);
+ ret = request_firmware_nowarn(&fw, filename, ar->dev);
ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot fw request '%s': %d\n",
filename, ret);
@@ -146,7 +146,7 @@ static int ath10k_tm_fetch_utf_firmware_api_1(struct ath10k *ar,
ar->hw_params.fw.dir, ATH10K_FW_UTF_FILE);
/* load utf firmware image */
- ret = firmware_request_nowarn(&fw_file->firmware, filename, ar->dev);
+ ret = request_firmware_nowarn(&fw_file->firmware, filename, ar->dev);
ath10k_dbg(ar, ATH10K_DBG_TESTMODE, "testmode fw request '%s': %d\n",
filename, ret);
@@ -1084,7 +1084,7 @@ const struct firmware *ath11k_core_firmware_request(struct ath11k_base *ab,
ath11k_core_create_firmware_path(ab, file, path, sizeof(path));
- ret = firmware_request_nowarn(&fw, path, ab->dev);
+ ret = request_firmware_nowarn(&fw, path, ab->dev);
if (ret)
return ERR_PTR(ret);
@@ -137,7 +137,7 @@ const struct firmware *ath12k_core_firmware_request(struct ath12k_base *ab,
ath12k_core_create_firmware_path(ab, file, path, sizeof(path));
- ret = firmware_request_nowarn(&fw, path, ab->dev);
+ ret = request_firmware_nowarn(&fw, path, ab->dev);
if (ret)
return ERR_PTR(ret);
@@ -659,7 +659,7 @@ static int brcmf_fw_request_firmware(const struct firmware **fw,
if (!alt_path)
goto fallback;
- ret = firmware_request_nowarn(fw, alt_path, fwctx->dev);
+ ret = request_firmware_nowarn(fw, alt_path, fwctx->dev);
kfree(alt_path);
if (ret == 0)
return ret;
@@ -231,7 +231,7 @@ static int iwl_pnvm_get_from_fs(struct iwl_trans *trans, u8 **data, size_t *len)
iwl_pnvm_get_fs_name(trans, pnvm_name, sizeof(pnvm_name));
- ret = firmware_request_nowarn(&pnvm, pnvm_name, trans->dev);
+ ret = request_firmware_nowarn(&pnvm, pnvm_name, trans->dev);
if (ret) {
IWL_DEBUG_FW(trans, "PNVM file %s not found %d\n",
pnvm_name, ret);
@@ -503,7 +503,7 @@ void iwl_dbg_tlv_load_bin(struct device *dev, struct iwl_trans *trans)
trans->trans_cfg->device_family <= IWL_DEVICE_FAMILY_8000)
return;
- res = firmware_request_nowarn(&fw, yoyo_bin, dev);
+ res = request_firmware_nowarn(&fw, yoyo_bin, dev);
IWL_DEBUG_FW(trans, "%s %s\n", res ? "didn't load" : "loaded", yoyo_bin);
if (res)
@@ -1224,7 +1224,7 @@ static int mt7615_load_patch(struct mt7615_dev *dev, u32 addr, const char *name)
const struct firmware *fw = NULL;
int len, ret, sem;
- ret = firmware_request_nowarn(&fw, name, dev->mt76.dev);
+ ret = request_firmware_nowarn(&fw, name, dev->mt76.dev);
if (ret)
return ret;
@@ -72,7 +72,7 @@ static int mt76x0_get_firmware(struct mt76x02_dev *dev,
/* try to load mt7610e fw if available
* otherwise fall back to mt7610u one
*/
- err = firmware_request_nowarn(fw, MT7610E_FIRMWARE, dev->mt76.dev);
+ err = request_firmware_nowarn(fw, MT7610E_FIRMWARE, dev->mt76.dev);
if (err) {
dev_info(dev->mt76.dev, "%s not found, switching to %s",
MT7610E_FIRMWARE, MT7610U_FIRMWARE);
@@ -1206,7 +1206,7 @@ static int rtw89_load_firmware_req(struct rtw89_dev *rtwdev,
}
if (nowarn)
- ret = firmware_request_nowarn(&req->firmware, fw_name, rtwdev->dev);
+ ret = request_firmware_nowarn(&req->firmware, fw_name, rtwdev->dev);
else
ret = request_firmware(&req->firmware, fw_name, rtwdev->dev);
@@ -105,7 +105,7 @@ static int get_firmware(struct wfx_dev *wdev, u32 keyset_chip,
snprintf(filename, sizeof(filename), "%s_%02X.sec",
wdev->pdata.file_fw, keyset_chip);
- ret = firmware_request_nowarn(fw, filename, wdev->dev);
+ ret = request_firmware_nowarn(fw, filename, wdev->dev);
if (ret) {
dev_info(wdev->dev, "can't load %s, falling back to %s.sec\n",
filename, wdev->pdata.file_fw);
@@ -603,7 +603,7 @@ int renesas_xhci_check_request_fw(struct pci_dev *pdev,
return has_rom ? 0 : err;
pci_dev_get(pdev);
- err = firmware_request_nowarn(&fw, fw_name, &pdev->dev);
+ err = request_firmware_nowarn(&fw, fw_name, &pdev->dev);
pci_dev_put(pdev);
if (err) {
if (has_rom) {
@@ -97,7 +97,7 @@ static inline bool firmware_request_builtin(struct firmware *fw,
#if IS_REACHABLE(CONFIG_FW_LOADER)
int request_firmware(const struct firmware **fw, const char *name,
struct device *device);
-int firmware_request_nowarn(const struct firmware **fw, const char *name,
+int request_firmware_nowarn(const struct firmware **fw, const char *name,
struct device *device);
int firmware_request_platform(const struct firmware **fw, const char *name,
struct device *device);
@@ -122,7 +122,7 @@ static inline int request_firmware(const struct firmware **fw,
return -EINVAL;
}
-static inline int firmware_request_nowarn(const struct firmware **fw,
+static inline int request_firmware_nowarn(const struct firmware **fw,
const char *name,
struct device *device)
{
@@ -164,7 +164,7 @@ static int cs35l41_request_firmware_file(struct cs35l41_hda *cs35l41,
s++;
}
- ret = firmware_request_nowarn(firmware, *filename, cs35l41->dev);
+ ret = request_firmware_nowarn(firmware, *filename, cs35l41->dev);
if (ret != 0) {
dev_dbg(cs35l41->dev, "Failed to request '%s'\n", *filename);
kfree(*filename);
@@ -422,7 +422,7 @@ static int cs35l56_hda_request_firmware_file(struct cs35l56_hda *cs35l56,
s++;
}
- ret = firmware_request_nowarn(firmware, *filename, cs35l56->base.dev);
+ ret = request_firmware_nowarn(firmware, *filename, cs35l56->base.dev);
if (ret) {
dev_dbg(cs35l56->base.dev, "Failed to request '%s'\n", *filename);
kfree(*filename);
@@ -772,7 +772,7 @@ static int wm_adsp_request_firmware_file(struct wm_adsp *dsp,
s++;
}
- ret = firmware_request_nowarn(firmware, *filename, cs_dsp->dev);
+ ret = request_firmware_nowarn(firmware, *filename, cs_dsp->dev);
if (ret != 0) {
adsp_dbg(dsp, "Failed to request '%s'\n", *filename);
kfree(*filename);
@@ -26,7 +26,7 @@ static int sof_test_firmware_file(struct device *dev,
if (!fw_filename)
return -ENOMEM;
- ret = firmware_request_nowarn(&fw, fw_filename, dev);
+ ret = request_firmware_nowarn(&fw, fw_filename, dev);
if (ret < 0) {
dev_dbg(dev, "Failed to open firmware file: %s\n", fw_filename);
kfree(fw_filename);
@@ -78,7 +78,7 @@ static int sof_test_topology_file(struct device *dev,
if (!tplg_filename)
return -ENOMEM;
- ret = firmware_request_nowarn(&fw, tplg_filename, dev);
+ ret = request_firmware_nowarn(&fw, tplg_filename, dev);
if (!ret)
release_firmware(fw);
else