Lines Matching refs:RtCacheEntry
181 IP6_ROUTE_CACHE_ENTRY *RtCacheEntry; in Ip6CreateRouteCacheEntry() local
183 RtCacheEntry = AllocatePool (sizeof (IP6_ROUTE_CACHE_ENTRY)); in Ip6CreateRouteCacheEntry()
185 if (RtCacheEntry == NULL) { in Ip6CreateRouteCacheEntry()
189 RtCacheEntry->RefCnt = 1; in Ip6CreateRouteCacheEntry()
190 RtCacheEntry->Tag = Tag; in Ip6CreateRouteCacheEntry()
192 IP6_COPY_ADDRESS (&RtCacheEntry->Destination, Dst); in Ip6CreateRouteCacheEntry()
193 IP6_COPY_ADDRESS (&RtCacheEntry->Source, Src); in Ip6CreateRouteCacheEntry()
194 IP6_COPY_ADDRESS (&RtCacheEntry->NextHop, GateWay); in Ip6CreateRouteCacheEntry()
196 return RtCacheEntry; in Ip6CreateRouteCacheEntry()
207 IN OUT IP6_ROUTE_CACHE_ENTRY *RtCacheEntry in Ip6FreeRouteCacheEntry() argument
210 ASSERT (RtCacheEntry->RefCnt > 0); in Ip6FreeRouteCacheEntry()
212 if (--RtCacheEntry->RefCnt == 0) { in Ip6FreeRouteCacheEntry()
213 FreePool (RtCacheEntry); in Ip6FreeRouteCacheEntry()
237 IP6_ROUTE_CACHE_ENTRY *RtCacheEntry; in Ip6FindRouteCache() local
243 RtCacheEntry = NET_LIST_USER_STRUCT (Entry, IP6_ROUTE_CACHE_ENTRY, Link); in Ip6FindRouteCache()
245 …if (EFI_IP6_EQUAL (Dest, &RtCacheEntry->Destination)&& EFI_IP6_EQUAL (Src, &RtCacheEntry->Source))… in Ip6FindRouteCache()
246 NET_GET_REF (RtCacheEntry); in Ip6FindRouteCache()
247 return RtCacheEntry; in Ip6FindRouteCache()
376 IP6_ROUTE_CACHE_ENTRY *RtCacheEntry; in Ip6CleanRouteTable() local
398 RtCacheEntry = NET_LIST_USER_STRUCT (Entry, IP6_ROUTE_CACHE_ENTRY, Link); in Ip6CleanRouteTable()
400 Ip6FreeRouteCacheEntry (RtCacheEntry); in Ip6CleanRouteTable()
425 IP6_ROUTE_CACHE_ENTRY *RtCacheEntry; in Ip6PurgeRouteCache() local
431 RtCacheEntry = NET_LIST_USER_STRUCT (Entry, IP6_ROUTE_CACHE_ENTRY, Link); in Ip6PurgeRouteCache()
433 if (RtCacheEntry->Tag == Tag) { in Ip6PurgeRouteCache()
435 Ip6FreeRouteCacheEntry (RtCacheEntry); in Ip6PurgeRouteCache()
572 IP6_ROUTE_CACHE_ENTRY *RtCacheEntry; in Ip6Route() local
587 RtCacheEntry = Ip6FindRouteCache (RtTable, Dest, Src); in Ip6Route()
592 if (RtCacheEntry != NULL) { in Ip6Route()
593 RemoveEntryList (&RtCacheEntry->Link); in Ip6Route()
594 InsertHeadList (ListHead, &RtCacheEntry->Link); in Ip6Route()
595 return RtCacheEntry; in Ip6Route()
623 RtCacheEntry = Ip6CreateRouteCacheEntry (Dest, Src, &NextHop, (UINTN) RtEntry); in Ip6Route()
625 if (RtCacheEntry == NULL) { in Ip6Route()
629 InsertHeadList (ListHead, &RtCacheEntry->Link); in Ip6Route()
630 NET_GET_REF (RtCacheEntry); in Ip6Route()
633 return RtCacheEntry; in Ip6Route()