Lines Matching refs:fce

936 	struct fw_cache_entry *fce;  in alloc_fw_cache_entry()  local
938 fce = kzalloc(sizeof(*fce), GFP_ATOMIC); in alloc_fw_cache_entry()
939 if (!fce) in alloc_fw_cache_entry()
942 fce->name = kstrdup_const(name, GFP_ATOMIC); in alloc_fw_cache_entry()
943 if (!fce->name) { in alloc_fw_cache_entry()
944 kfree(fce); in alloc_fw_cache_entry()
945 fce = NULL; in alloc_fw_cache_entry()
949 return fce; in alloc_fw_cache_entry()
955 struct fw_cache_entry *fce; in __fw_entry_found() local
957 list_for_each_entry(fce, &fwc->fw_names, list) { in __fw_entry_found()
958 if (!strcmp(fce->name, name)) in __fw_entry_found()
967 struct fw_cache_entry *fce; in fw_cache_piggyback_on_request() local
974 fce = alloc_fw_cache_entry(name); in fw_cache_piggyback_on_request()
975 if (fce) { in fw_cache_piggyback_on_request()
977 list_add(&fce->list, &fwc->fw_names); in fw_cache_piggyback_on_request()
985 static void free_fw_cache_entry(struct fw_cache_entry *fce) in free_fw_cache_entry() argument
987 kfree_const(fce->name); in free_fw_cache_entry()
988 kfree(fce); in free_fw_cache_entry()
994 struct fw_cache_entry *fce = fw_entry; in __async_dev_cache_fw_image() local
998 ret = cache_firmware(fce->name); in __async_dev_cache_fw_image()
1001 list_del(&fce->list); in __async_dev_cache_fw_image()
1004 free_fw_cache_entry(fce); in __async_dev_cache_fw_image()
1015 struct fw_cache_entry *fce; in dev_create_fw_entry() local
1017 fce = alloc_fw_cache_entry(fw_name); in dev_create_fw_entry()
1018 if (fce) in dev_create_fw_entry()
1019 list_add(&fce->list, head); in dev_create_fw_entry()
1032 struct fw_cache_entry *fce; in dev_cache_fw_image() local
1040 list_for_each_entry_safe(fce, fce_next, &todo, list) { in dev_cache_fw_image()
1041 list_del(&fce->list); in dev_cache_fw_image()
1045 if (!__fw_entry_found(fce->name)) { in dev_cache_fw_image()
1046 list_add(&fce->list, &fwc->fw_names); in dev_cache_fw_image()
1048 free_fw_cache_entry(fce); in dev_cache_fw_image()
1049 fce = NULL; in dev_cache_fw_image()
1053 if (fce) in dev_cache_fw_image()
1055 (void *)fce, in dev_cache_fw_image()
1063 struct fw_cache_entry *fce; in __device_uncache_fw_images() local
1067 fce = list_entry(fwc->fw_names.next, in __device_uncache_fw_images()
1069 list_del(&fce->list); in __device_uncache_fw_images()
1072 uncache_firmware(fce->name); in __device_uncache_fw_images()
1073 free_fw_cache_entry(fce); in __device_uncache_fw_images()