Lines Matching refs:Cache
467 IN HTTP_BOOT_CACHE_CONTENT *Cache in HttpBootFreeCache() argument
475 if (Cache != NULL) { in HttpBootFreeCache()
479 if (Cache->RequestData != NULL) { in HttpBootFreeCache()
480 if (Cache->RequestData->Url != NULL) { in HttpBootFreeCache()
481 FreePool (Cache->RequestData->Url); in HttpBootFreeCache()
483 FreePool (Cache->RequestData); in HttpBootFreeCache()
489 if (Cache->ResponseData != NULL) { in HttpBootFreeCache()
490 if (Cache->ResponseData->Headers != NULL) { in HttpBootFreeCache()
491 for (Index = 0; Index < Cache->ResponseData->HeaderCount; Index++) { in HttpBootFreeCache()
492 FreePool (Cache->ResponseData->Headers[Index].FieldName); in HttpBootFreeCache()
493 FreePool (Cache->ResponseData->Headers[Index].FieldValue); in HttpBootFreeCache()
495 FreePool (Cache->ResponseData->Headers); in HttpBootFreeCache()
502 NET_LIST_FOR_EACH_SAFE (Entry, NextEntry, &Cache->EntityDataList) { in HttpBootFreeCache()
511 FreePool (Cache); in HttpBootFreeCache()
528 HTTP_BOOT_CACHE_CONTENT *Cache; in HttpBootFreeCacheList() local
531 Cache = NET_LIST_USER_STRUCT (Entry, HTTP_BOOT_CACHE_CONTENT, Link); in HttpBootFreeCacheList()
532 RemoveEntryList (&Cache->Link); in HttpBootFreeCacheList()
533 HttpBootFreeCache (Cache); in HttpBootFreeCacheList()
564 HTTP_BOOT_CACHE_CONTENT *Cache; in HttpBootGetFileFromCache() local
577 Cache = NET_LIST_USER_STRUCT (Entry, HTTP_BOOT_CACHE_CONTENT, Link); in HttpBootGetFileFromCache()
581 if ((Cache->RequestData != NULL) && in HttpBootGetFileFromCache()
582 (Cache->RequestData->Url != NULL) && in HttpBootGetFileFromCache()
583 (StrCmp (Uri, Cache->RequestData->Url) == 0)) in HttpBootGetFileFromCache()
588 if (*BufferSize < Cache->EntityLength) { in HttpBootGetFileFromCache()
589 *BufferSize = Cache->EntityLength; in HttpBootGetFileFromCache()
597 NET_LIST_FOR_EACH (Entry2, &Cache->EntityDataList) { in HttpBootGetFileFromCache()
613 RemoveEntryList (&Cache->Link); in HttpBootGetFileFromCache()
614 HttpBootFreeCache (Cache); in HttpBootGetFileFromCache()
672 if (CallbackData->Cache != NULL) { in HttpBootGetBootFileCallback()
683 InsertTailList (&CallbackData->Cache->EntityDataList, &NewEntityData->Link); in HttpBootGetBootFileCallback()
729 HTTP_BOOT_CACHE_CONTENT *Cache; in HttpBootGetBootFile() local
769 Cache = NULL; in HttpBootGetBootFile()
771 Cache = AllocateZeroPool (sizeof (HTTP_BOOT_CACHE_CONTENT)); in HttpBootGetBootFile()
772 if (Cache == NULL) { in HttpBootGetBootFile()
776 InitializeListHead (&Cache->EntityDataList); in HttpBootGetBootFile()
860 if (Cache != NULL) { in HttpBootGetBootFile()
861 Cache->RequestData = RequestData; in HttpBootGetBootFile()
904 if (Cache != NULL) { in HttpBootGetBootFile()
905 Cache->ResponseData = ResponseData; in HttpBootGetBootFile()
917 Context.Cache = Cache; in HttpBootGetBootFile()
1038 if (Cache != NULL) { in HttpBootGetBootFile()
1039 Cache->EntityLength = ContentLength; in HttpBootGetBootFile()
1040 InsertTailList (&Private->CacheList, &Cache->Link); in HttpBootGetBootFile()
1056 HttpBootFreeCache (Cache); in HttpBootGetBootFile()
1069 if (Cache != NULL) { in HttpBootGetBootFile()
1070 FreePool (Cache); in HttpBootGetBootFile()