WinCE replacement for MmGetPhysicalAddress() ?

While porting a network driver from Windows7 to WinCE700 . I struct while transferring data from driver to target.

This all happened when i replaced MmGetPhysicalAddress() with LockPages(). Even though other Virtual to Physical conversion API available in WinCE but LockPages() seems suitable at this point.

But i am reading FW crash state after sending my payload. This means something gone wrong with my data. Is that the LockPages() is not the suitable one or how can i know where thing went wrong while transferring data.

Thanks & Reagards
SP