Lines Matching refs:fw_name

179 static struct firmware_buf *__allocate_fw_buf(const char *fw_name,  in __allocate_fw_buf()  argument
188 buf->fw_id = kstrdup_const(fw_name, GFP_ATOMIC); in __allocate_fw_buf()
201 pr_debug("%s: fw-%s buf=%p\n", __func__, fw_name, buf); in __allocate_fw_buf()
206 static struct firmware_buf *__fw_lookup_buf(const char *fw_name) in __fw_lookup_buf() argument
212 if (!strcmp(tmp->fw_id, fw_name)) in __fw_lookup_buf()
217 static int fw_lookup_and_allocate_buf(const char *fw_name, in fw_lookup_and_allocate_buf() argument
224 tmp = __fw_lookup_buf(fw_name); in fw_lookup_and_allocate_buf()
231 tmp = __allocate_fw_buf(fw_name, fwc); in fw_lookup_and_allocate_buf()
888 fw_create_instance(struct firmware *firmware, const char *fw_name, in fw_create_instance() argument
905 dev_set_name(f_dev, "%s", fw_name); in fw_create_instance()
1360 static int cache_firmware(const char *fw_name) in cache_firmware() argument
1365 pr_debug("%s: %s\n", __func__, fw_name); in cache_firmware()
1367 ret = request_firmware(&fw, fw_name, NULL); in cache_firmware()
1371 pr_debug("%s: %s ret=%d\n", __func__, fw_name, ret); in cache_firmware()
1376 static struct firmware_buf *fw_lookup_buf(const char *fw_name) in fw_lookup_buf() argument
1382 tmp = __fw_lookup_buf(fw_name); in fw_lookup_buf()
1399 static int uncache_firmware(const char *fw_name) in uncache_firmware() argument
1404 pr_debug("%s: %s\n", __func__, fw_name); in uncache_firmware()
1406 if (fw_get_builtin_firmware(&fw, fw_name)) in uncache_firmware()
1409 buf = fw_lookup_buf(fw_name); in uncache_firmware()
1497 const char *fw_name = fwn->name; in dev_create_fw_entry() local
1501 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()