What does cpu_to_le64 function do? Where can I find the definition? The function gets an unsigned int as the input parameter. I have different variation in my device driver code, e.g. cpu_to_le32 or cpu_to_le16. Any idea what is this about?
It translates value to little endian representation . If your system uses little endian order, than it does nothing, if big endian then it swaps the order of the bytes