Lines Matching refs:fw_name
113 static struct fw_priv *__allocate_fw_priv(const char *fw_name, in __allocate_fw_priv() argument
134 fw_priv->fw_name = kstrdup_const(fw_name, GFP_ATOMIC); in __allocate_fw_priv()
135 if (!fw_priv->fw_name) { in __allocate_fw_priv()
151 pr_debug("%s: fw-%s fw_priv=%p\n", __func__, fw_name, fw_priv); in __allocate_fw_priv()
156 static struct fw_priv *__lookup_fw_priv(const char *fw_name) in __lookup_fw_priv() argument
162 if (!strcmp(tmp->fw_name, fw_name)) in __lookup_fw_priv()
168 int alloc_lookup_fw_priv(const char *fw_name, struct firmware_cache *fwc, in alloc_lookup_fw_priv() argument
180 tmp = __lookup_fw_priv(fw_name); in alloc_lookup_fw_priv()
190 tmp = __allocate_fw_priv(fw_name, fwc, dbuf, size, offset, opt_flags); in alloc_lookup_fw_priv()
210 __func__, fw_priv->fw_name, fw_priv, fw_priv->data, in __free_fw_priv()
221 kfree_const(fw_priv->fw_name); in __free_fw_priv()
532 fw_priv->fw_name, suffix); in fw_get_filesystem_firmware()
572 fw_priv->fw_name); in fw_get_filesystem_firmware()
583 fw_priv->fw_name); in fw_get_filesystem_firmware()
615 __func__, fw_priv->fw_name, fw_priv, fw_priv->data, in fw_set_page_data()
716 ret = fw_add_devm_name(device, fw_priv->fw_name); in assign_fw()
1324 static int cache_firmware(const char *fw_name) in cache_firmware() argument
1329 pr_debug("%s: %s\n", __func__, fw_name); in cache_firmware()
1331 ret = request_firmware(&fw, fw_name, NULL); in cache_firmware()
1335 pr_debug("%s: %s ret=%d\n", __func__, fw_name, ret); in cache_firmware()
1340 static struct fw_priv *lookup_fw_priv(const char *fw_name) in lookup_fw_priv() argument
1346 tmp = __lookup_fw_priv(fw_name); in lookup_fw_priv()
1363 static int uncache_firmware(const char *fw_name) in uncache_firmware() argument
1368 pr_debug("%s: %s\n", __func__, fw_name); in uncache_firmware()
1370 if (firmware_request_builtin(&fw, fw_name)) in uncache_firmware()
1373 fw_priv = lookup_fw_priv(fw_name); in uncache_firmware()
1414 const char *name = fw_priv->fw_name; in fw_cache_piggyback_on_request()
1460 const char *fw_name = fwn->name; in dev_create_fw_entry() local
1464 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()