Lines Matching refs:Instance
50 @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
121 @param[in] This Protocol instance pointer.
196 UDP6_INSTANCE_DATA *Instance;
205 Instance = NET_LIST_USER_STRUCT_S (Entry, UDP6_INSTANCE_DATA, Link, UDP6_INSTANCE_DATA_SIGNATURE);
210 if (!NetIsInHandleBuffer (Instance->ChildHandle, NumberOfChildren, ChildHandleBuffer)) {
214 return ServiceBinding->DestroyChild (ServiceBinding, Instance->ChildHandle);
226 @param[in] This Protocol instance pointer.
317 @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
338 UDP6_INSTANCE_DATA *Instance;
349 // Allocate the instance private data structure.
351 Instance = AllocateZeroPool (sizeof (UDP6_INSTANCE_DATA));
352 if (Instance == NULL) {
356 Udp6InitInstance (Udp6Service, Instance);
359 // Add an IpInfo for this instance.
361 Instance->IpInfo = IpIoAddIp (Udp6Service->IpIo);
362 if (Instance->IpInfo == NULL) {
368 // Install the Udp6Protocol for this instance.
373 &Instance->Udp6Proto,
380 Instance->ChildHandle = *ChildHandle;
390 Instance->ChildHandle,
398 // Open this instance's Ip6 protocol in the IpInfo BY_CHILD.
401 Instance->IpInfo->ChildHandle,
405 Instance->ChildHandle,
415 // Link this instance into the service context data and increase the ChildrenNumber.
417 InsertTailList (&Udp6Service->ChildrenList, &Instance->Link);
426 if (Instance->ChildHandle != NULL) {
428 Instance->ChildHandle,
430 &Instance->Udp6Proto,
435 if (Instance->IpInfo != NULL) {
436 IpIoRemoveIp (Udp6Service->IpIo, Instance->IpInfo);
439 Udp6CleanInstance (Instance);
441 FreePool (Instance);
452 @param[in] This Protocol instance
475 UDP6_INSTANCE_DATA *Instance;
499 Instance = UDP6_INSTANCE_DATA_FROM_THIS (Udp6Proto);
501 if (Instance->InDestroy) {
508 Instance->InDestroy = TRUE;
517 Instance->ChildHandle
520 // Close the Ip6 protocol on this instance's IpInfo.
523 Instance->IpInfo->ChildHandle,
526 Instance->ChildHandle
535 (VOID *) &Instance->Udp6Proto,
539 Instance->InDestroy = FALSE;
544 // Reset the configuration in case the instance's consumer forgets to do this.
549 // Remove the IpInfo this instance consumes.
551 IpIoRemoveIp (Udp6Service->IpIo, Instance->IpInfo);
556 // Remove this instance from the service context data's ChildrenList.
558 RemoveEntryList (&Instance->Link);
562 // Clean the instance.
564 Udp6CleanInstance (Instance);
568 FreePool (Instance);