Lines Matching refs:fwc

141 	struct firmware_cache *fwc;  member
180 struct firmware_cache *fwc) in __allocate_fw_buf() argument
195 buf->fwc = fwc; in __allocate_fw_buf()
209 struct firmware_cache *fwc = &fw_cache; in __fw_lookup_buf() local
211 list_for_each_entry(tmp, &fwc->head, list) in __fw_lookup_buf()
218 struct firmware_cache *fwc, in fw_lookup_and_allocate_buf() argument
223 spin_lock(&fwc->lock); in fw_lookup_and_allocate_buf()
227 spin_unlock(&fwc->lock); in fw_lookup_and_allocate_buf()
231 tmp = __allocate_fw_buf(fw_name, fwc); in fw_lookup_and_allocate_buf()
233 list_add(&tmp->list, &fwc->head); in fw_lookup_and_allocate_buf()
234 spin_unlock(&fwc->lock); in fw_lookup_and_allocate_buf()
242 __releases(&fwc->lock) in __fw_free_buf()
245 struct firmware_cache *fwc = buf->fwc; in __fw_free_buf() local
252 spin_unlock(&fwc->lock); in __fw_free_buf()
270 struct firmware_cache *fwc = buf->fwc; in fw_free_buf() local
271 spin_lock(&fwc->lock); in fw_free_buf()
273 spin_unlock(&fwc->lock); in fw_free_buf()
1105 if (buf->fwc->state == FW_LOADER_START_CACHE) { in assign_firmware_buf()
1379 struct firmware_cache *fwc = &fw_cache; in fw_lookup_buf() local
1381 spin_lock(&fwc->lock); in fw_lookup_buf()
1383 spin_unlock(&fwc->lock); in fw_lookup_buf()
1438 struct firmware_cache *fwc = &fw_cache; in __fw_entry_found() local
1441 list_for_each_entry(fce, &fwc->fw_names, list) { in __fw_entry_found()
1450 struct firmware_cache *fwc = &fw_cache; in fw_cache_piggyback_on_request() local
1454 spin_lock(&fwc->name_lock); in fw_cache_piggyback_on_request()
1461 list_add(&fce->list, &fwc->fw_names); in fw_cache_piggyback_on_request()
1465 spin_unlock(&fwc->name_lock); in fw_cache_piggyback_on_request()
1479 struct firmware_cache *fwc = &fw_cache; in __async_dev_cache_fw_image() local
1484 spin_lock(&fwc->name_lock); in __async_dev_cache_fw_image()
1486 spin_unlock(&fwc->name_lock); in __async_dev_cache_fw_image()
1518 struct firmware_cache *fwc = &fw_cache; in dev_cache_fw_image() local
1527 spin_lock(&fwc->name_lock); in dev_cache_fw_image()
1530 list_add(&fce->list, &fwc->fw_names); in dev_cache_fw_image()
1535 spin_unlock(&fwc->name_lock); in dev_cache_fw_image()
1546 struct firmware_cache *fwc = &fw_cache; in __device_uncache_fw_images() local
1549 spin_lock(&fwc->name_lock); in __device_uncache_fw_images()
1550 while (!list_empty(&fwc->fw_names)) { in __device_uncache_fw_images()
1551 fce = list_entry(fwc->fw_names.next, in __device_uncache_fw_images()
1554 spin_unlock(&fwc->name_lock); in __device_uncache_fw_images()
1559 spin_lock(&fwc->name_lock); in __device_uncache_fw_images()
1561 spin_unlock(&fwc->name_lock); in __device_uncache_fw_images()
1576 struct firmware_cache *fwc = &fw_cache; in device_cache_fw_images() local
1583 cancel_delayed_work_sync(&fwc->work); in device_cache_fw_images()
1597 fwc->state = FW_LOADER_START_CACHE; in device_cache_fw_images()