Lines Matching refs:fwc
172 struct firmware_cache *fwc, in __allocate_fw_priv() argument
199 fw_priv->fwc = fwc; in __allocate_fw_priv()
217 struct firmware_cache *fwc = &fw_cache; in __lookup_fw_priv() local
219 list_for_each_entry(tmp, &fwc->head, list) in __lookup_fw_priv()
227 struct firmware_cache *fwc, in alloc_lookup_fw_priv() argument
236 spin_lock(&fwc->lock); in alloc_lookup_fw_priv()
245 spin_unlock(&fwc->lock); in alloc_lookup_fw_priv()
252 tmp = __allocate_fw_priv(fw_name, fwc, dbuf, size, offset, opt_flags); in alloc_lookup_fw_priv()
256 list_add(&tmp->list, &fwc->head); in alloc_lookup_fw_priv()
258 spin_unlock(&fwc->lock); in alloc_lookup_fw_priv()
266 __releases(&fwc->lock) in __free_fw_priv()
269 struct firmware_cache *fwc = fw_priv->fwc; in __free_fw_priv() local
276 spin_unlock(&fwc->lock); in __free_fw_priv()
289 struct firmware_cache *fwc = fw_priv->fwc; in free_fw_priv() local
290 spin_lock(&fwc->lock); in free_fw_priv()
292 spin_unlock(&fwc->lock); in free_fw_priv()
761 fw_priv->fwc->state == FW_LOADER_START_CACHE) in assign_fw()
1259 struct firmware_cache *fwc = &fw_cache; in lookup_fw_priv() local
1261 spin_lock(&fwc->lock); in lookup_fw_priv()
1263 spin_unlock(&fwc->lock); in lookup_fw_priv()
1318 struct firmware_cache *fwc = &fw_cache; in __fw_entry_found() local
1321 list_for_each_entry(fce, &fwc->fw_names, list) { in __fw_entry_found()
1331 struct firmware_cache *fwc = fw_priv->fwc; in fw_cache_piggyback_on_request() local
1334 spin_lock(&fwc->name_lock); in fw_cache_piggyback_on_request()
1340 list_add(&fce->list, &fwc->fw_names); in fw_cache_piggyback_on_request()
1345 spin_unlock(&fwc->name_lock); in fw_cache_piggyback_on_request()
1358 struct firmware_cache *fwc = &fw_cache; in __async_dev_cache_fw_image() local
1363 spin_lock(&fwc->name_lock); in __async_dev_cache_fw_image()
1365 spin_unlock(&fwc->name_lock); in __async_dev_cache_fw_image()
1397 struct firmware_cache *fwc = &fw_cache; in dev_cache_fw_image() local
1406 spin_lock(&fwc->name_lock); in dev_cache_fw_image()
1409 list_add(&fce->list, &fwc->fw_names); in dev_cache_fw_image()
1414 spin_unlock(&fwc->name_lock); in dev_cache_fw_image()
1425 struct firmware_cache *fwc = &fw_cache; in __device_uncache_fw_images() local
1428 spin_lock(&fwc->name_lock); in __device_uncache_fw_images()
1429 while (!list_empty(&fwc->fw_names)) { in __device_uncache_fw_images()
1430 fce = list_entry(fwc->fw_names.next, in __device_uncache_fw_images()
1433 spin_unlock(&fwc->name_lock); in __device_uncache_fw_images()
1438 spin_lock(&fwc->name_lock); in __device_uncache_fw_images()
1440 spin_unlock(&fwc->name_lock); in __device_uncache_fw_images()
1455 struct firmware_cache *fwc = &fw_cache; in device_cache_fw_images() local
1461 cancel_delayed_work_sync(&fwc->work); in device_cache_fw_images()
1466 fwc->state = FW_LOADER_START_CACHE; in device_cache_fw_images()