Lines Matching refs:Instance
48 Destroy the DNS instance and recycle the resources.
50 @param[in] Instance The pointer to the DNS instance.
55 IN DNS_INSTANCE *Instance
58 ZeroMem (&Instance->Dns4CfgData, sizeof (EFI_DNS4_CONFIG_DATA));
60 ZeroMem (&Instance->Dns6CfgData, sizeof (EFI_DNS6_CONFIG_DATA));
62 if (!NetMapIsEmpty (&Instance->Dns4TxTokens)) {
63 Dns4InstanceCancelToken (Instance, NULL);
66 if (!NetMapIsEmpty (&Instance->Dns6TxTokens)) {
67 Dns6InstanceCancelToken (Instance, NULL);
70 if (Instance->UdpIo!= NULL) {
71 UdpIoFreeIo (Instance->UdpIo);
74 FreePool (Instance);
78 Create the DNS instance and initialize it.
81 @param[out] Instance The pointer to the DNS instance.
84 @retval EFI_SUCCESS The DNS instance is created.
90 OUT DNS_INSTANCE **Instance
95 *Instance = NULL;
128 *Instance = DnsIns;
150 DNS_INSTANCE *Instance;
159 Instance = NET_LIST_USER_STRUCT_S (Entry, DNS_INSTANCE, Link, DNS_INSTANCE_SIGNATURE);
164 if (!NetIsInHandleBuffer (Instance->ChildHandle, NumberOfChildren, ChildHandleBuffer)) {
168 return ServiceBinding->DestroyChild (ServiceBinding, Instance->ChildHandle);
194 Release all the resource used the DNS service binding instance.
196 @param DnsSb The Dns service binding instance.
218 Create then initialize a Dns service binding instance.
225 binding instance.
227 @retval EFI_OUT_OF_RESOURCES Failed to allocate resource to create the instance.
230 @retval EFI_SUCCESS The service instance is created for the
559 instance.
636 @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
716 @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
771 // Destroy the Dns child instance in ChildHandleBuffer.
823 @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
900 @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
981 @param[in] This A pointer to the EFI_DRIVER_BINDING_PROTOCOL instance.
1036 // Destroy the Dns child instance in ChildHandleBuffer.
1077 @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
1097 DNS_INSTANCE *Instance;
1108 Status = DnsCreateInstance (DnsSb, &Instance);
1112 ASSERT (Instance != NULL);
1120 &Instance->Dns4,
1127 Instance->ChildHandle = *ChildHandle;
1137 Instance->ChildHandle,
1142 Instance->ChildHandle,
1144 &Instance->Dns4,
1155 Instance->UdpIo->UdpHandle,
1159 Instance->ChildHandle,
1174 Instance->ChildHandle,
1176 &Instance->Dns4,
1188 InsertTailList (&DnsSb->Dns4ChildrenList, &Instance->Link);
1197 DnsDestroyInstance (Instance);
1208 @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
1227 DNS_INSTANCE *Instance;
1253 Instance = DNS_INSTANCE_FROM_THIS_PROTOCOL4 (Dns4);
1256 if (Instance->Service != DnsSb) {
1260 if (Instance->InDestroy) {
1266 Instance->InDestroy = TRUE;
1279 Instance->UdpIo->UdpHandle,
1299 Instance->InDestroy = FALSE;
1304 RemoveEntryList (&Instance->Link);
1309 DnsDestroyInstance (Instance);
1320 @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
1340 DNS_INSTANCE *Instance;
1351 Status = DnsCreateInstance (DnsSb, &Instance);
1355 ASSERT (Instance != NULL);
1363 &Instance->Dns6,
1370 Instance->ChildHandle = *ChildHandle;
1380 Instance->ChildHandle,
1385 Instance->ChildHandle,
1387 &Instance->Dns6,
1398 Instance->UdpIo->UdpHandle,
1402 Instance->ChildHandle,
1417 Instance->ChildHandle,
1419 &Instance->Dns6,
1431 InsertTailList (&DnsSb->Dns6ChildrenList, &Instance->Link);
1440 DnsDestroyInstance (Instance);
1451 @param[in] This Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
1470 DNS_INSTANCE *Instance;
1496 Instance = DNS_INSTANCE_FROM_THIS_PROTOCOL6 (Dns6);
1499 if (Instance->Service != DnsSb) {
1503 if (Instance->InDestroy) {
1509 Instance->InDestroy = TRUE;
1522 Instance->UdpIo->UdpHandle,
1542 Instance->InDestroy = FALSE;
1547 RemoveEntryList (&Instance->Link);
1552 DnsDestroyInstance (Instance);