Home | History | Annotate | Download | only in SnpNt32Dxe

Lines Matching refs:Instance

58   @param  This Protocol instance pointer.

72 @param This Protocol instance pointer.
88 @param This Protocol instance pointer.
115 @param This Protocol instance pointer.
134 @param This Protocol instance pointer.
148 @param This Protocol instance pointer.
180 @param This Protocol instance pointer.
199 @param This Protocol instance pointer.
227 @param This Protocol instance pointer.
256 @param This Protocol instance pointer.
282 @param This Protocol instance pointer.
310 @param This Protocol instance pointer.
351 @param This Protocol instance pointer.
459 @param This Protocol instance pointer.
479 SNPNT32_INSTANCE_DATA *Instance;
485 Instance = NET_LIST_USER_STRUCT_S (Entry, SNPNT32_INSTANCE_DATA, Entry, SNP_NT32_INSTANCE_SIGNATURE);
487 if (Instance->DeviceHandle == ControllerHandle) {
505 @param This Protocol instance pointer.
532 @param This Protocol instance pointer.
557 @param This Protocol instance pointer.
575 @param This Protocol instance pointer.
594 @param This Protocol instance pointer.
624 @param This Protocol instance pointer.
646 @param This Protocol instance pointer.
663 @param This Protocol instance pointer.
692 SNPNT32_INSTANCE_DATA *Instance;
696 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
698 GlobalData = Instance->GlobalData;
705 Instance->InterfaceInfo.InterfaceIndex,
723 @param This Protocol instance pointer.
745 @param This Protocol instance pointer.
776 @param This Protocol instance pointer.
809 @param This Protocol instance pointer.
839 @param This Protocol instance pointer.
880 @param This Protocol instance pointer.
918 SNPNT32_INSTANCE_DATA *Instance;
922 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
924 GlobalData = Instance->GlobalData;
927 SrcAddr = &Instance->Mode.CurrentAddress;
935 Instance->InterfaceInfo.InterfaceIndex,
956 @param This Protocol instance pointer.
995 SNPNT32_INSTANCE_DATA *Instance;
1002 Instance = SNP_NT32_INSTANCE_DATA_FROM_SNP_THIS (This);
1004 GlobalData = Instance->GlobalData;
1013 Instance->InterfaceInfo.InterfaceIndex,
1074 SNPNT32_INSTANCE_DATA *Instance;
1178 Instance = AllocatePool (sizeof (SNPNT32_INSTANCE_DATA));
1180 if (NULL == Instance) {
1187 CopyMem (Instance, &gSnpNt32InstanceTemplate, sizeof (SNPNT32_INSTANCE_DATA));
1192 CopyMem (&Instance->InterfaceInfo, &NetInterfaceInfoBuffer[Index], sizeof(Instance->InterfaceInfo));
1194 // Initialize this instance
1196 Status = This->InitializeInstanceData (This, Instance);
1199 gBS->FreePool (Instance);
1203 // Insert this instance into the instance list
1205 InsertTailList (&This->InstanceList, &Instance->Entry);
1216 Instance = NET_LIST_USER_STRUCT_S (Entry, SNPNT32_INSTANCE_DATA, Entry, SNP_NT32_INSTANCE_SIGNATURE);
1220 This->CloseInstance (This, Instance);
1221 gBS->FreePool (Instance);
1239 Initialize the snpnt32 driver instance.
1242 @param Instance Pointer to the instance context data.
1244 @retval EFI_SUCCESS The driver instance is initialized.
1251 IN OUT SNPNT32_INSTANCE_DATA *Instance
1258 Instance->GlobalData = This;
1259 Instance->Snp.Mode = &Instance->Mode;
1263 SetMem (&Instance->Mode.BroadcastAddress, sizeof (EFI_MAC_ADDRESS), 0xFF);
1268 CopyMem (&Instance->Mode.CurrentAddress, &Instance->InterfaceInfo.MacAddr, sizeof(Instance->Mode.CurrentAddress));
1269 CopyMem (&Instance->Mode.PermanentAddress, &Instance->InterfaceInfo.MacAddr, sizeof(Instance->Mode.PermanentAddress));
1276 Instance->Mode.CurrentAddress.Addr[NET_ETHER_ADDR_LEN - 1]++;
1279 // Create a fake device path for the instance
1289 &Instance->Mode.CurrentAddress,
1293 Node.MacAddr.IfType = Instance->Mode.IfType;
1297 Instance->DevicePath = AppendDevicePathNode (
1306 &Instance->DeviceHandle,
1308 &Instance->Snp,
1310 Instance->DevicePath,
1318 Close the SnpNt32 driver instance.
1321 @param Instance Pointer to the instance context data.
1323 @retval EFI_SUCCESS The instance is closed.
1329 IN OUT SNPNT32_INSTANCE_DATA *Instance
1333 ASSERT (Instance != NULL);
1336 Instance->DeviceHandle,
1338 &Instance->Snp,
1340 Instance->DevicePath,
1344 if (Instance->DevicePath != NULL) {
1345 gBS->FreePool (Instance->DevicePath);
1369 SNPNT32_INSTANCE_DATA *Instance;
1381 // Walkthrough the interfaces and remove all the SNP instance
1385 Instance = NET_LIST_USER_STRUCT_S (Entry, SNPNT32_INSTANCE_DATA, Entry, SNP_NT32_INSTANCE_SIGNATURE);
1389 This->CloseInstance (This, Instance);
1390 gBS->FreePool (Instance);