Lines Matching refs:fce
1258 struct fw_cache_entry *fce; in alloc_fw_cache_entry() local
1260 fce = kzalloc(sizeof(*fce), GFP_ATOMIC); in alloc_fw_cache_entry()
1261 if (!fce) in alloc_fw_cache_entry()
1264 fce->name = kstrdup_const(name, GFP_ATOMIC); in alloc_fw_cache_entry()
1265 if (!fce->name) { in alloc_fw_cache_entry()
1266 kfree(fce); in alloc_fw_cache_entry()
1267 fce = NULL; in alloc_fw_cache_entry()
1271 return fce; in alloc_fw_cache_entry()
1277 struct fw_cache_entry *fce; in __fw_entry_found() local
1279 list_for_each_entry(fce, &fwc->fw_names, list) { in __fw_entry_found()
1280 if (!strcmp(fce->name, name)) in __fw_entry_found()
1290 struct fw_cache_entry *fce; in fw_cache_piggyback_on_request() local
1296 fce = alloc_fw_cache_entry(name); in fw_cache_piggyback_on_request()
1297 if (fce) { in fw_cache_piggyback_on_request()
1298 list_add(&fce->list, &fwc->fw_names); in fw_cache_piggyback_on_request()
1306 static void free_fw_cache_entry(struct fw_cache_entry *fce) in free_fw_cache_entry() argument
1308 kfree_const(fce->name); in free_fw_cache_entry()
1309 kfree(fce); in free_fw_cache_entry()
1315 struct fw_cache_entry *fce = fw_entry; in __async_dev_cache_fw_image() local
1319 ret = cache_firmware(fce->name); in __async_dev_cache_fw_image()
1322 list_del(&fce->list); in __async_dev_cache_fw_image()
1325 free_fw_cache_entry(fce); in __async_dev_cache_fw_image()
1336 struct fw_cache_entry *fce; in dev_create_fw_entry() local
1338 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()
1339 if (fce) in dev_create_fw_entry()
1340 list_add(&fce->list, head); in dev_create_fw_entry()
1353 struct fw_cache_entry *fce; in dev_cache_fw_image() local
1361 list_for_each_entry_safe(fce, fce_next, &todo, list) { in dev_cache_fw_image()
1362 list_del(&fce->list); in dev_cache_fw_image()
1366 if (!__fw_entry_found(fce->name)) { in dev_cache_fw_image()
1367 list_add(&fce->list, &fwc->fw_names); in dev_cache_fw_image()
1369 free_fw_cache_entry(fce); in dev_cache_fw_image()
1370 fce = NULL; in dev_cache_fw_image()
1374 if (fce) in dev_cache_fw_image()
1376 (void *)fce, in dev_cache_fw_image()
1384 struct fw_cache_entry *fce; in __device_uncache_fw_images() local
1388 fce = list_entry(fwc->fw_names.next, in __device_uncache_fw_images()
1390 list_del(&fce->list); in __device_uncache_fw_images()
1393 uncache_firmware(fce->name); in __device_uncache_fw_images()
1394 free_fw_cache_entry(fce); in __device_uncache_fw_images()