Go to the documentation of this file.
30 #include <linux/types.h>
56 #define LEFTMOSTONE 0x80000000
57 #define HIGHORDER 0x80000000u
58 #define ONES 0xffffffffu
71 #define PXDlength(pxd, length32) ((pxd)->len = __cpu_to_le24(length32))
72 #define PXDaddress(pxd, address64)\
74 (pxd)->addr1 = ((s64)address64) >> 32;\
75 (pxd)->addr2 = __cpu_to_le32((address64) & 0xffffffff);\
79 #define lengthPXD(pxd) __le24_to_cpu((pxd)->len)
80 #define addressPXD(pxd)\
81 ( ((s64)((pxd)->addr1)) << 32 | __le32_to_cpu((pxd)->addr2))
83 #define MAXTREEHEIGHT 8
105 #define DXD_INDEX 0x80
106 #define DXD_INLINE 0x40
107 #define DXD_EXTENT 0x20
108 #define DXD_FILE 0x10
109 #define DXD_CORRUPT 0x08
114 #define DXDlength PXDlength
115 #define DXDaddress PXDaddress
116 #define lengthDXD lengthPXD
117 #define addressDXD addressPXD
118 #define DXDsize(dxd, size32) ((dxd)->size = cpu_to_le32(size32))
119 #define sizeDXD(dxd) le32_to_cpu((dxd)->size)
144 #define DASDLIMIT(dasdp) \
145 (((u64)((dasdp)->limit_hi) << 32) + __le32_to_cpu((dasdp)->limit_lo))
146 #define setDASDLIMIT(dasdp, limit)\
148 (dasdp)->limit_hi = ((u64)limit) >> 32;\
149 (dasdp)->limit_lo = __cpu_to_le32(limit);\
151 #define DASDUSED(dasdp) \
152 (((u64)((dasdp)->used_hi) << 32) + __le32_to_cpu((dasdp)->used_lo))
153 #define setDASDUSED(dasdp, used)\
155 (dasdp)->used_hi = ((u64)used) >> 32;\
156 (dasdp)->used_lo = __cpu_to_le32(used);\