Lines Matching refs:fw_name
179 static struct firmware_buf *__allocate_fw_buf(const char *fw_name, in __allocate_fw_buf() argument
184 buf = kzalloc(sizeof(*buf) + strlen(fw_name) + 1, GFP_ATOMIC); in __allocate_fw_buf()
190 strcpy(buf->fw_id, fw_name); in __allocate_fw_buf()
197 pr_debug("%s: fw-%s buf=%p\n", __func__, fw_name, buf); in __allocate_fw_buf()
202 static struct firmware_buf *__fw_lookup_buf(const char *fw_name) in __fw_lookup_buf() argument
208 if (!strcmp(tmp->fw_id, fw_name)) in __fw_lookup_buf()
213 static int fw_lookup_and_allocate_buf(const char *fw_name, in fw_lookup_and_allocate_buf() argument
220 tmp = __fw_lookup_buf(fw_name); in fw_lookup_and_allocate_buf()
227 tmp = __allocate_fw_buf(fw_name, fwc); in fw_lookup_and_allocate_buf()
869 fw_create_instance(struct firmware *firmware, const char *fw_name, in fw_create_instance() argument
886 dev_set_name(f_dev, "%s", fw_name); in fw_create_instance()
1335 static int cache_firmware(const char *fw_name) in cache_firmware() argument
1340 pr_debug("%s: %s\n", __func__, fw_name); in cache_firmware()
1342 ret = request_firmware(&fw, fw_name, NULL); in cache_firmware()
1346 pr_debug("%s: %s ret=%d\n", __func__, fw_name, ret); in cache_firmware()
1351 static struct firmware_buf *fw_lookup_buf(const char *fw_name) in fw_lookup_buf() argument
1357 tmp = __fw_lookup_buf(fw_name); in fw_lookup_buf()
1374 static int uncache_firmware(const char *fw_name) in uncache_firmware() argument
1379 pr_debug("%s: %s\n", __func__, fw_name); in uncache_firmware()
1381 if (fw_get_builtin_firmware(&fw, fw_name)) in uncache_firmware()
1384 buf = fw_lookup_buf(fw_name); in uncache_firmware()
1466 const char *fw_name = fwn->name; in dev_create_fw_entry() local
1470 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()