Home | History | Annotate | Download | only in Ip6Dxe

Lines Matching refs:Data

25   @param[in]     Context       Pointer to the IP6 config instance data.

139 @param[in] Instance Pointer to the IP6 config instance data.
224 *((UINT16 *) &Oro->Data[0]) = HTONS (IP6_CONFIG_DHCP6_OPTION_DNS_SERVERS);
308 Read the configuration data from variable storage according to the VarName and
309 gEfiIp6ConfigProtocolGuid. It checks the integrity of variable data. If the
310 data is corrupted, it clears the variable data to ZERO. Othewise, it outputs the
311 configuration data to IP6_CONFIG_INSTANCE.
314 @param[in, out] Instance The pointer to the IP6 config instance data.
318 @retval EFI_SUCCESS The configuration data was retrieved successfully.
333 CHAR8 *Data;
399 // Perhaps a corrupted data record...
406 // This data item has variable length data.
408 DataItem->Data.Ptr = AllocatePool (DataRecord.DataSize);
409 if (DataItem->Data.Ptr == NULL) {
417 Data = (CHAR8 *) Variable + DataRecord.Offset;
418 CopyMem (DataItem->Data.Ptr, Data, DataRecord.DataSize);
432 Write the configuration data from IP6_CONFIG_INSTANCE to variable storage.
435 @param[in] Instance The pointer to the IP6 configuration instance data.
438 @retval EFI_SUCCESS The configuration data is written successfully.
481 CopyMem (Heap, DataItem->Data.Ptr, DataItem->DataSize);
512 @param[in] Instance Pointer to the IP6 config instance data.
513 @param[in, out] DataSize On input, in bytes, the size of Data. On output, in
515 configuration data.
516 @param[in] Data The data buffer in which the configuration data is returned.
519 @retval EFI_BUFFER_TOO_SMALL The size of Data is too small for the specified
520 data, and the required size is
522 @retval EFI_SUCCESS The specified configuration data was obtained.
529 IN VOID *Data OPTIONAL
560 IfInfo = (EFI_IP6_CONFIG_INTERFACE_INFO *) Data;
561 CopyMem (IfInfo, Item->Data.Ptr, sizeof (EFI_IP6_CONFIG_INTERFACE_INFO));
592 @param[in] Instance Pointer to the IP6 configuration instance data.
593 @param[in] DataSize Size of the buffer pointed to by Data in bytes.
594 @param[in] Data The data buffer to set.
598 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
606 IN VOID *Data
618 OldIfId = DataItem->Data.AltIfId;
619 NewIfId = (EFI_IP6_CONFIG_INTERFACE_ID *) Data;
632 @param[in] Instance Pointer to the IP6 config instance data.
633 @param[in] DataSize Size of the buffer pointed to by Data in bytes.
634 @param[in] Data The data buffer to set.
639 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
647 IN VOID *Data
658 NewPolicy = *((EFI_IP6_CONFIG_POLICY *) Data);
672 // data size, and fire up all the related events.
675 if (DataItem->Data.Ptr != NULL) {
676 FreePool (DataItem->Data.Ptr);
678 DataItem->Data.Ptr = NULL;
684 if (DataItem->Data.Ptr != NULL) {
685 FreePool (DataItem->Data.Ptr);
687 DataItem->Data.Ptr = NULL;
693 DataItem->Data.Ptr = NULL;
722 @param[in] Instance The Instance Pointer to the IP6 config instance data.
723 @param[in] DataSize Size of the buffer pointed to by Data in bytes.
724 @param[in] Data The data buffer to set.
728 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
736 IN VOID *Data
745 OldDadXmits = Instance->DataItem[Ip6ConfigDataTypeDupAddrDetectTransmits].Data.DadXmits;
747 if ((*(UINT32 *) Data) == OldDadXmits->DupAddrDetectTransmits) {
752 OldDadXmits->DupAddrDetectTransmits = *((UINT32 *) Data);
764 @param[in] Context Pointer to the IP6 configuration instance data.
792 ManualAddr = Item->Data.ManualAddress + Index;
817 FreePool (Item->Data.Ptr);
824 Item->Data.Ptr = NULL;
829 // data with those passed.
834 Item->Data.Ptr = PassedAddr;
844 ASSERT ((UINTN) PassedAddr - (UINTN) Item->Data.Ptr == Item->DataSize);
878 @param[in] Instance Pointer to the IP6 configuration instance data.
879 @param[in] DataSize Size of the buffer pointed to by Data in bytes.
880 @param[in] Data The data buffer to set.
883 @retval EFI_WRITE_PROTECTED The specified configuration data cannot be set
885 @retval EFI_INVALID_PARAMETER One or more fields in Data is invalid.
888 configuration data, and the process is not finished.
891 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
899 IN VOID *Data
931 NewAddress = (EFI_IP6_CONFIG_MANUAL_ADDRESS *) Data;
985 NewAddress = AllocateCopyPool (DataSize, Data);
993 // Store the new data, and init the DataItem status to EFI_NOT_READY because
997 if (DataItem->Data.Ptr != NULL) {
998 FreePool (DataItem->Data.Ptr);
1000 Data.Ptr = NewAddress;
1150 // actually synchronous, and the data item's status will be changed to
1174 @param[in] Instance The pointer to the IP6 config instance data.
1175 @param[in] DataSize The size of the buffer pointed to by Data in bytes.
1176 @param[in] Data The data buffer to set. This points to an array of
1180 @retval EFI_WRITE_PROTECTED The specified configuration data cannot be set
1182 @retval EFI_INVALID_PARAMETER One or more fields in Data is invalid.
1186 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
1194 IN VOID *Data
1218 NewGateway = (EFI_IPv6_ADDRESS *) Data;
1236 OldGateway = Item->Data.Gateway;
1287 if (Item->Data.Ptr != NULL) {
1288 FreePool (Item->Data.Ptr);
1290 Item->Data.Ptr = Tmp;
1293 CopyMem (Item->Data.Ptr, Data, DataSize);
1306 @param[in] Instance The pointer to the IP6 config instance data.
1307 @param[in] DataSize The size of the buffer pointed to by Data in bytes.
1308 @param[in] Data The data buffer to set, points to an array of
1312 @retval EFI_WRITE_PROTECTED The specified configuration data cannot be set
1314 @retval EFI_INVALID_PARAMETER One or more fields in Data is invalid.
1318 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
1326 IN VOID *Data
1349 NewDns = (EFI_IPv6_ADDRESS *) Data;
1350 OldDns = Item->Data.DnsServers;
1411 if (Item->Data.Ptr != NULL) {
1412 FreePool (Item->Data.Ptr);
1414 Item->Data.Ptr = Tmp;
1417 CopyMem (Item->Data.Ptr, Data, DataSize);
1454 @param[in, out] Instance The pointer to the IP6 configuration instance data.
1526 DnsServer = (EFI_IPv6_ADDRESS *) OptList[Index]->Data;
1539 if (Item->Data.Ptr != NULL) {
1540 FreePool (Item->Data.Ptr);
1543 Item->Data.Ptr = AllocatePool (Length);
1544 ASSERT (Item->Data.Ptr != NULL);
1547 CopyMem (Item->Data.Ptr, OptList[Index]->Data, Length);
1573 @param[in] Context Pointer to the IP6 configuration instance data.
1635 @param[in] Context The pointer to the IP6 configuration instance data.
1749 @param[in] Context The pointer to the IP6 configuration instance data.
1773 @param[in] Context The pointer to the IP6 config instance data.
1801 This function is used to set the configuration data of type DataType for the EFI
1805 DataSize is used to calculate the count of structure instances in the Data for
1808 This function is always non-blocking. When setting some type of configuration data,
1809 an asynchronous process is invoked to check the correctness of the data, such as
1814 event on the specified configuration data. Once the event is signaled, the caller
1815 can call GetData() to obtain the configuration data and know the result.
1816 For other types of configuration data that do not require an asynchronous configuration
1820 @param[in] DataType The type of data to set.
1821 @param[in] DataSize Size of the buffer pointed to by Data in bytes.
1822 @param[in] Data The data buffer to set. The type of the data buffer is
1825 @retval EFI_SUCCESS The specified configuration data for the EFI IPv6
1829 - Data is NULL.
1830 - One or more fields in Data do not match the requirement of the
1831 data type indicated by DataType.
1832 @retval EFI_WRITE_PROTECTED The specified configuration data is read-only or the specified
1833 configuration data cannot be set under the current policy.
1835 data is already in process.
1837 configuration data, and the process is not finished yet.
1851 IN VOID *Data
1859 if ((This == NULL) || (Data == NULL)) {
1882 // This type of data is readonly.
1887 Status = Instance->DataItem[DataType].SetData (Instance, DataSize, Data);
1890 // Fire up the events registered with this type of data.
1896 // The SetData is aborted because the data to set is the same with
1916 Get the configuration data for the EFI IPv6 network stack running on the communication
1919 This function returns the configuration data of type DataType for the EFI IPv6 network
1924 configuration data. The required size will be returned to the caller if the size of
1927 EFI_NOT_READY is returned if the specified configuration data is not ready due to an
1929 to register an event on the specified configuration data. Once the asynchronous configuration
1931 the specified configuration data.
1934 @param[in] DataType The type of data to get.
1935 @param[in, out] DataSize On input, in bytes, the size of Data. On output, in bytes, the
1936 size of buffer required to store the specified configuration data.
1937 @param[in] Data The data buffer in which the configuration data is returned. The
1938 type of the data buffer is associated with the DataType.
1941 @retval EFI_SUCCESS The specified configuration data was obtained successfully.
1945 - Data is NULL if *DataSize is not zero.
1946 @retval EFI_BUFFER_TOO_SMALL The size of Data is too small for the specified configuration data,
1948 @retval EFI_NOT_READY The specified configuration data is not ready due to an
1950 @retval EFI_NOT_FOUND The specified configuration data is not found.
1959 IN VOID *Data OPTIONAL
1967 if ((This == NULL) || (DataSize == NULL) || ((*DataSize != 0) && (Data == NULL))) {
1985 Status = DataItem->GetData (Instance, DataSize, Data);
1995 CopyMem (Data, Instance->DataItem[DataType].Data.Ptr, *DataSize);
2006 configuration data is done.
2009 process on the specified configuration data is performed. An event can be registered
2011 which type of configuration data causes the signaling of the event in such an event.
2014 @param[in] DataType The type of data to unregister the event for.
2017 @retval EFI_SUCCESS The notification event for the specified configuration data is
2020 @retval EFI_UNSUPPORTED The configuration data type specified by DataType is not
2077 Remove a previously registered event for the specified configuration data.
2080 @param DataType The type of data to remove from the previously
2085 configuration data was removed.
2179 // Initialize the event map for each data item.
2191 // Initialize each data type: associate storage and set data size for the
2192 // fixed size data types, hook the SetData function, set the data attribute.
2196 DataItem->Data.Ptr = &Instance->InterfaceInfo;
2203 DataItem->Data.Ptr = &Instance->AltIfId;
2210 DataItem->Data.Ptr = &Instance->Policy;
2217 DataItem->Data.Ptr = &Instance->DadXmits;
2249 // Try to read the config data from NV variable.
2322 if (DataItem->Data.Ptr != NULL) {
2323 FreePool (DataItem->Data.Ptr);
2325 DataItem->Data.Ptr = NULL;