Lines Matching refs:fce
1384 struct fw_cache_entry *fce; in alloc_fw_cache_entry() local
1386 fce = kzalloc(sizeof(*fce), GFP_ATOMIC); in alloc_fw_cache_entry()
1387 if (!fce) in alloc_fw_cache_entry()
1390 fce->name = kstrdup_const(name, GFP_ATOMIC); in alloc_fw_cache_entry()
1391 if (!fce->name) { in alloc_fw_cache_entry()
1392 kfree(fce); in alloc_fw_cache_entry()
1393 fce = NULL; in alloc_fw_cache_entry()
1397 return fce; in alloc_fw_cache_entry()
1403 struct fw_cache_entry *fce; in __fw_entry_found() local
1405 list_for_each_entry(fce, &fwc->fw_names, list) { in __fw_entry_found()
1406 if (!strcmp(fce->name, name)) in __fw_entry_found()
1416 struct fw_cache_entry *fce; in fw_cache_piggyback_on_request() local
1422 fce = alloc_fw_cache_entry(name); in fw_cache_piggyback_on_request()
1423 if (fce) { in fw_cache_piggyback_on_request()
1424 list_add(&fce->list, &fwc->fw_names); in fw_cache_piggyback_on_request()
1432 static void free_fw_cache_entry(struct fw_cache_entry *fce) in free_fw_cache_entry() argument
1434 kfree_const(fce->name); in free_fw_cache_entry()
1435 kfree(fce); in free_fw_cache_entry()
1441 struct fw_cache_entry *fce = fw_entry; in __async_dev_cache_fw_image() local
1445 ret = cache_firmware(fce->name); in __async_dev_cache_fw_image()
1448 list_del(&fce->list); in __async_dev_cache_fw_image()
1451 free_fw_cache_entry(fce); in __async_dev_cache_fw_image()
1462 struct fw_cache_entry *fce; in dev_create_fw_entry() local
1464 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()
1465 if (fce) in dev_create_fw_entry()
1466 list_add(&fce->list, head); in dev_create_fw_entry()
1479 struct fw_cache_entry *fce; in dev_cache_fw_image() local
1487 list_for_each_entry_safe(fce, fce_next, &todo, list) { in dev_cache_fw_image()
1488 list_del(&fce->list); in dev_cache_fw_image()
1492 if (!__fw_entry_found(fce->name)) { in dev_cache_fw_image()
1493 list_add(&fce->list, &fwc->fw_names); in dev_cache_fw_image()
1495 free_fw_cache_entry(fce); in dev_cache_fw_image()
1496 fce = NULL; in dev_cache_fw_image()
1500 if (fce) in dev_cache_fw_image()
1502 (void *)fce, in dev_cache_fw_image()
1510 struct fw_cache_entry *fce; in __device_uncache_fw_images() local
1514 fce = list_entry(fwc->fw_names.next, in __device_uncache_fw_images()
1516 list_del(&fce->list); in __device_uncache_fw_images()
1519 uncache_firmware(fce->name); in __device_uncache_fw_images()
1520 free_fw_cache_entry(fce); in __device_uncache_fw_images()