Lines Matching refs:Instance
37 Returns the current operating mode data for the MTFTP6 instance.
40 cached data packet for the MTFTP6 instance.
42 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
58 MTFTP6_INSTANCE *Instance;
66 Instance = MTFTP6_INSTANCE_FROM_THIS (This);
69 // Copy back the configure data if the instance already configured.
71 if (Instance->Config != NULL) {
74 Instance->Config,
98 this EFI MTFTPv6 Protocol driver instance.
101 data for this EFI MTFTPv6 Protocol driver instance. The configuration
103 MtftpConfigData set to NULL. Whenever the instance is reset, any
105 driver instance configuration data, the client can connect to
110 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
113 @retval EFI_SUCCESS The EFI MTFTPv6 Protocol instance was configured successfully.
125 address for this instance, but no source address was available for use.
126 @retval EFI_OUT_OF_RESOURCES The EFI MTFTPv6 Protocol driver instance data could not be
130 MTFTPv6 Protocol driver instance is not configured.
142 MTFTP6_INSTANCE *Instance;
157 Instance = MTFTP6_INSTANCE_FROM_THIS (This);
158 Service = Instance->Service;
163 // Configure the instance as NULL to abort the current session.
165 Mtftp6OperationClean (Instance, EFI_ABORTED);
166 FreePool (Instance->Config);
167 Instance->Config = NULL;
170 // It's not allowed to configure one instance twice without configure null.
172 if (Instance->Config != NULL) {
177 // Allocate the configure buffer of the instance and store the user's data.
179 Instance->Config = AllocateZeroPool (sizeof (EFI_MTFTP6_CONFIG_DATA));
181 if (Instance->Config == NULL) {
186 CopyMem (Instance->Config, MtftpConfigData, sizeof (EFI_MTFTP6_CONFIG_DATA));
192 if (Instance->UdpIo == NULL) {
193 Instance->UdpIo = UdpIoCreateIo (
200 if (Instance->UdpIo != NULL) {
202 Instance->UdpIo->UdpHandle,
206 Instance->Handle,
215 if (Instance->UdpIo == NULL) {
221 // Continue to configure the downside Udp6 instance by user's data.
232 Udp6Cfg.StationPort = Instance->Config->LocalPort;
233 Udp6Cfg.RemotePort = Instance->Config->InitialServerPort;
237 &Instance->Config->StationIp,
243 &Instance->Config->ServerIp,
247 Udp6 = Instance->UdpIo->Protocol.Udp6;
257 if (Instance->Config != NULL) {
258 FreePool (Instance->Config);
259 Instance->Config = NULL;
261 if (Instance->UdpIo != NULL) {
262 UdpIoFreeIo (Instance->UdpIo);
263 Instance->UdpIo = NULL;
280 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
306 address for this instance, but no source address was available for use.
403 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
458 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
511 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
529 address for this instance, but no source address was available for use.
562 @param[in] This Pointer to the EFI_MTFTP6_PROTOCOL instance.
580 address for this instance, but no source address was available for use.
611 @param[in] This The MTFTP6 protocol instance.
615 @retval EFI_NOT_STARTED This EFI MTFTPv6 Protocol instance has not been started.
628 MTFTP6_INSTANCE *Instance;
635 Instance = MTFTP6_INSTANCE_FROM_THIS (This);
638 // Check the instance whether configured or in destroy.
640 if (Instance->Config == NULL) {
644 Udp6 = Instance->UdpIo->Protocol.Udp6;