Lines Matching refs:fwc

141 	struct firmware_cache *fwc;  member
180 struct firmware_cache *fwc) in __allocate_fw_buf() argument
191 buf->fwc = fwc; in __allocate_fw_buf()
205 struct firmware_cache *fwc = &fw_cache; in __fw_lookup_buf() local
207 list_for_each_entry(tmp, &fwc->head, list) in __fw_lookup_buf()
214 struct firmware_cache *fwc, in fw_lookup_and_allocate_buf() argument
219 spin_lock(&fwc->lock); in fw_lookup_and_allocate_buf()
223 spin_unlock(&fwc->lock); in fw_lookup_and_allocate_buf()
227 tmp = __allocate_fw_buf(fw_name, fwc); in fw_lookup_and_allocate_buf()
229 list_add(&tmp->list, &fwc->head); in fw_lookup_and_allocate_buf()
230 spin_unlock(&fwc->lock); in fw_lookup_and_allocate_buf()
238 __releases(&fwc->lock) in __fw_free_buf()
241 struct firmware_cache *fwc = buf->fwc; in __fw_free_buf() local
248 spin_unlock(&fwc->lock); in __fw_free_buf()
265 struct firmware_cache *fwc = buf->fwc; in fw_free_buf() local
266 spin_lock(&fwc->lock); in fw_free_buf()
268 spin_unlock(&fwc->lock); in fw_free_buf()
1086 if (buf->fwc->state == FW_LOADER_START_CACHE) { in assign_firmware_buf()
1354 struct firmware_cache *fwc = &fw_cache; in fw_lookup_buf() local
1356 spin_lock(&fwc->lock); in fw_lookup_buf()
1358 spin_unlock(&fwc->lock); in fw_lookup_buf()
1408 struct firmware_cache *fwc = &fw_cache; in __fw_entry_found() local
1411 list_for_each_entry(fce, &fwc->fw_names, list) { in __fw_entry_found()
1420 struct firmware_cache *fwc = &fw_cache; in fw_cache_piggyback_on_request() local
1424 spin_lock(&fwc->name_lock); in fw_cache_piggyback_on_request()
1431 list_add(&fce->list, &fwc->fw_names); in fw_cache_piggyback_on_request()
1435 spin_unlock(&fwc->name_lock); in fw_cache_piggyback_on_request()
1448 struct firmware_cache *fwc = &fw_cache; in __async_dev_cache_fw_image() local
1453 spin_lock(&fwc->name_lock); in __async_dev_cache_fw_image()
1455 spin_unlock(&fwc->name_lock); in __async_dev_cache_fw_image()
1487 struct firmware_cache *fwc = &fw_cache; in dev_cache_fw_image() local
1496 spin_lock(&fwc->name_lock); in dev_cache_fw_image()
1499 list_add(&fce->list, &fwc->fw_names); in dev_cache_fw_image()
1504 spin_unlock(&fwc->name_lock); in dev_cache_fw_image()
1515 struct firmware_cache *fwc = &fw_cache; in __device_uncache_fw_images() local
1518 spin_lock(&fwc->name_lock); in __device_uncache_fw_images()
1519 while (!list_empty(&fwc->fw_names)) { in __device_uncache_fw_images()
1520 fce = list_entry(fwc->fw_names.next, in __device_uncache_fw_images()
1523 spin_unlock(&fwc->name_lock); in __device_uncache_fw_images()
1528 spin_lock(&fwc->name_lock); in __device_uncache_fw_images()
1530 spin_unlock(&fwc->name_lock); in __device_uncache_fw_images()
1545 struct firmware_cache *fwc = &fw_cache; in device_cache_fw_images() local
1552 cancel_delayed_work_sync(&fwc->work); in device_cache_fw_images()
1566 fwc->state = FW_LOADER_START_CACHE; in device_cache_fw_images()