Re: [PATCH v4 3/6] bswap: Add the ability to store to an unaligned 24 bit field

2023-03-14 Thread Philippe Mathieu-Daudé
On 3/3/23 16:09, Jonathan Cameron wrote: From: Ira Weiny CXL has 24 bit unaligned fields which need to be stored to. CXL is specified as little endian. Define st24_le_p() and the supporting functions to store such a field from a 32 bit host native value. The use of b, w, l, q as the size

[PATCH v4 3/6] bswap: Add the ability to store to an unaligned 24 bit field

2023-03-03 Thread Jonathan Cameron via
From: Ira Weiny CXL has 24 bit unaligned fields which need to be stored to. CXL is specified as little endian. Define st24_le_p() and the supporting functions to store such a field from a 32 bit host native value. The use of b, w, l, q as the size specifier is limiting. So "24" was used for