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()
861 fw_create_instance(struct firmware *firmware, const char *fw_name, in fw_create_instance() argument
882 dev_set_name(f_dev, "%s", fw_name); in fw_create_instance()
1343 static int cache_firmware(const char *fw_name) in cache_firmware() argument
1348 pr_debug("%s: %s\n", __func__, fw_name); in cache_firmware()
1350 ret = request_firmware(&fw, fw_name, NULL); in cache_firmware()
1354 pr_debug("%s: %s ret=%d\n", __func__, fw_name, ret); in cache_firmware()
1359 static struct firmware_buf *fw_lookup_buf(const char *fw_name) in fw_lookup_buf() argument
1365 tmp = __fw_lookup_buf(fw_name); in fw_lookup_buf()
1382 static int uncache_firmware(const char *fw_name) in uncache_firmware() argument
1387 pr_debug("%s: %s\n", __func__, fw_name); in uncache_firmware()
1389 if (fw_get_builtin_firmware(&fw, fw_name)) in uncache_firmware()
1392 buf = fw_lookup_buf(fw_name); in uncache_firmware()
1474 const char *fw_name = fwn->name; in dev_create_fw_entry() local
1478 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()