Home | History | Annotate | Download | only in SnpNt32Dxe

Lines Matching refs:Instance

61   @param  This Protocol instance pointer.

75 @param This Protocol instance pointer.
91 @param This Protocol instance pointer.
118 @param This Protocol instance pointer.
137 @param This Protocol instance pointer.
151 @param This Protocol instance pointer.
183 @param This Protocol instance pointer.
202 @param This Protocol instance pointer.
230 @param This Protocol instance pointer.
259 @param This Protocol instance pointer.
285 @param This Protocol instance pointer.
313 @param This Protocol instance pointer.
354 @param This Protocol instance pointer.
462 @param This Protocol instance pointer.
482 SNPNT32_INSTANCE_DATA *Instance;
488 Instance = NET_LIST_USER_STRUCT_S (Entry, SNPNT32_INSTANCE_DATA, Entry, SNP_NT32_INSTANCE_SIGNATURE);
490 if (Instance->DeviceHandle == ControllerHandle) {
508 @param This Protocol instance pointer.
535 @param This Protocol instance pointer.
560 @param This Protocol instance pointer.
578 @param This Protocol instance pointer.
597 @param This Protocol instance pointer.
627 @param This Protocol instance pointer.
649 @param This Protocol instance pointer.
666 @param This Protocol instance pointer.
695 SNPNT32_INSTANCE_DATA *Instance;
699 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
701 GlobalData = Instance->GlobalData;
708 Instance->InterfaceInfo.InterfaceIndex,
726 @param This Protocol instance pointer.
748 @param This Protocol instance pointer.
779 @param This Protocol instance pointer.
812 @param This Protocol instance pointer.
842 @param This Protocol instance pointer.
867 SNPNT32_INSTANCE_DATA *Instance;
870 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
872 GlobalData = Instance->GlobalData;
894 @param This Protocol instance pointer.
932 SNPNT32_INSTANCE_DATA *Instance;
937 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
939 GlobalData = Instance->GlobalData;
942 SrcAddr = &Instance->Mode.CurrentAddress;
950 Instance->InterfaceInfo.InterfaceIndex,
989 @param This Protocol instance pointer.
1028 SNPNT32_INSTANCE_DATA *Instance;
1035 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
1037 GlobalData = Instance->GlobalData;
1046 Instance->InterfaceInfo.InterfaceIndex,
1107 SNPNT32_INSTANCE_DATA *Instance;
1216 Instance = AllocatePool (sizeof (SNPNT32_INSTANCE_DATA));
1218 if (NULL == Instance) {
1225 CopyMem (Instance, &gSnpNt32InstanceTemplate, sizeof (SNPNT32_INSTANCE_DATA));
1230 CopyMem (&Instance->InterfaceInfo, &NetInterfaceInfoBuffer[Index], sizeof(Instance->InterfaceInfo));
1232 // Initialize this instance
1234 Status = This->InitializeInstanceData (This, Instance);
1237 gBS->FreePool (Instance);
1241 // Insert this instance into the instance list
1243 InsertTailList (&This->InstanceList, &Instance->Entry);
1254 Instance = NET_LIST_USER_STRUCT_S (Entry, SNPNT32_INSTANCE_DATA, Entry, SNP_NT32_INSTANCE_SIGNATURE);
1258 This->CloseInstance (This, Instance);
1259 gBS->FreePool (Instance);
1277 Initialize the snpnt32 driver instance.
1280 @param Instance Pointer to the instance context data.
1282 @retval EFI_SUCCESS The driver instance is initialized.
1289 IN OUT SNPNT32_INSTANCE_DATA *Instance
1296 Instance->GlobalData = This;
1297 Instance->Snp.Mode = &Instance->Mode;
1301 SetMem (&Instance->Mode.BroadcastAddress, sizeof (EFI_MAC_ADDRESS), 0xFF);
1306 CopyMem (&Instance->Mode.CurrentAddress, &Instance->InterfaceInfo.MacAddr, sizeof(Instance->Mode.CurrentAddress));
1307 CopyMem (&Instance->Mode.PermanentAddress, &Instance->InterfaceInfo.MacAddr, sizeof(Instance->Mode.PermanentAddress));
1314 Instance->Mode.CurrentAddress.Addr[NET_ETHER_ADDR_LEN - 1]++;
1317 // Create a fake device path for the instance
1327 &Instance->Mode.CurrentAddress,
1331 Node.MacAddr.IfType = Instance->Mode.IfType;
1335 Instance->DevicePath = AppendDevicePathNode (
1344 &Instance->DeviceHandle,
1346 &Instance->Snp,
1348 Instance->DevicePath,
1356 Close the SnpNt32 driver instance.
1359 @param Instance Pointer to the instance context data.
1361 @retval EFI_SUCCESS The instance is closed.
1367 IN OUT SNPNT32_INSTANCE_DATA *Instance
1371 ASSERT (Instance != NULL);
1374 Instance->DeviceHandle,
1376 &Instance->Snp,
1378 Instance->DevicePath,
1382 if (Instance->DevicePath != NULL) {
1383 gBS->FreePool (Instance->DevicePath);
1407 SNPNT32_INSTANCE_DATA *Instance;
1419 // Walkthrough the interfaces and remove all the SNP instance
1423 Instance = NET_LIST_USER_STRUCT_S (Entry, SNPNT32_INSTANCE_DATA, Entry, SNP_NT32_INSTANCE_SIGNATURE);
1427 This->CloseInstance (This, Instance);
1428 gBS->FreePool (Instance);