+ //\r
+ // Map Buffer's system phyiscal address to device address\r
+ //\r
+ Status = VirtioMapAllBytesInSharedBuffer (\r
+ Dev->VirtIo,\r
+ VirtioOperationBusMasterWrite,\r
+ (VOID *)Buffer,\r
+ RNGValueLength,\r
+ &DeviceAddress,\r
+ &Mapping\r
+ );\r
+ if (EFI_ERROR (Status)) {\r
+ Status = EFI_DEVICE_ERROR;\r
+ goto FreeBuffer;\r
+ }\r