I have looked into it, and seems like wherever this is getting used it is written as a custom function for that driver. Seems like writing our own is inevitable.I think you need to write a custom one. Example:Ok thank you. I will add custom function for this and update the patch.
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/tree/drivers/net/ethernet/meta/fbnic/fbnic_time.c#n40
Maybe look around and see if they could be reused by other drivers. If
so, they should be put somewhere central.
Andrew