Lines Matching refs:high

125 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high)		\  argument
126 ((low) > (max) || (high) < (min) ? 0 : \
135 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
136 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
142 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
143 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
145 #define EFX_EXTRACT_OWORD64(oword, low, high) \ argument
146 ((EFX_EXTRACT64((oword).u64[0], 0, 63, low, high) | \
147 EFX_EXTRACT64((oword).u64[1], 64, 127, low, high)) & \
148 EFX_MASK64((high) + 1 - (low)))
150 #define EFX_EXTRACT_QWORD64(qword, low, high) \ argument
151 (EFX_EXTRACT64((qword).u64[0], 0, 63, low, high) & \
152 EFX_MASK64((high) + 1 - (low)))
154 #define EFX_EXTRACT_OWORD32(oword, low, high) \ argument
155 ((EFX_EXTRACT32((oword).u32[0], 0, 31, low, high) | \
156 EFX_EXTRACT32((oword).u32[1], 32, 63, low, high) | \
157 EFX_EXTRACT32((oword).u32[2], 64, 95, low, high) | \
158 EFX_EXTRACT32((oword).u32[3], 96, 127, low, high)) & \
159 EFX_MASK32((high) + 1 - (low)))
161 #define EFX_EXTRACT_QWORD32(qword, low, high) \ argument
162 ((EFX_EXTRACT32((qword).u32[0], 0, 31, low, high) | \
163 EFX_EXTRACT32((qword).u32[1], 32, 63, low, high)) & \
164 EFX_MASK32((high) + 1 - (low)))
166 #define EFX_EXTRACT_DWORD(dword, low, high) \ argument
167 (EFX_EXTRACT32((dword).u32[0], 0, 31, low, high) & \
168 EFX_MASK32((high) + 1 - (low)))
244 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ argument
245 (((low > max) || (high < min)) ? 0 : \
250 #define EFX_INSERT_NATIVE32(min, max, low, high, value) \ argument
251 (((low > max) || (high < min)) ? 0 : \
256 #define EFX_INSERT_NATIVE(min, max, low, high, value) \ argument
257 ((((max - min) >= 32) || ((high - low) >= 32)) ? \
258 EFX_INSERT_NATIVE64(min, max, low, high, value) : \
259 EFX_INSERT_NATIVE32(min, max, low, high, value))
516 #define EFX_INSERT64(min, max, low, high, value) \ argument
517 cpu_to_le64(EFX_INSERT_NATIVE(min, max, low, high, value))
519 #define EFX_INSERT32(min, max, low, high, value) \ argument
520 cpu_to_le32(EFX_INSERT_NATIVE(min, max, low, high, value))
522 #define EFX_INPLACE_MASK64(min, max, low, high) \ argument
523 EFX_INSERT64(min, max, low, high, EFX_MASK64((high) + 1 - (low)))
525 #define EFX_INPLACE_MASK32(min, max, low, high) \ argument
526 EFX_INSERT32(min, max, low, high, EFX_MASK32((high) + 1 - (low)))
528 #define EFX_SET_OWORD64(oword, low, high, value) do { \ argument
530 & ~EFX_INPLACE_MASK64(0, 63, low, high)) \
531 | EFX_INSERT64(0, 63, low, high, value)); \
533 & ~EFX_INPLACE_MASK64(64, 127, low, high)) \
534 | EFX_INSERT64(64, 127, low, high, value)); \
537 #define EFX_SET_QWORD64(qword, low, high, value) do { \ argument
539 & ~EFX_INPLACE_MASK64(0, 63, low, high)) \
540 | EFX_INSERT64(0, 63, low, high, value)); \
543 #define EFX_SET_OWORD32(oword, low, high, value) do { \ argument
545 & ~EFX_INPLACE_MASK32(0, 31, low, high)) \
546 | EFX_INSERT32(0, 31, low, high, value)); \
548 & ~EFX_INPLACE_MASK32(32, 63, low, high)) \
549 | EFX_INSERT32(32, 63, low, high, value)); \
551 & ~EFX_INPLACE_MASK32(64, 95, low, high)) \
552 | EFX_INSERT32(64, 95, low, high, value)); \
554 & ~EFX_INPLACE_MASK32(96, 127, low, high)) \
555 | EFX_INSERT32(96, 127, low, high, value)); \
558 #define EFX_SET_QWORD32(qword, low, high, value) do { \ argument
560 & ~EFX_INPLACE_MASK32(0, 31, low, high)) \
561 | EFX_INSERT32(0, 31, low, high, value)); \
563 & ~EFX_INPLACE_MASK32(32, 63, low, high)) \
564 | EFX_INSERT32(32, 63, low, high, value)); \
567 #define EFX_SET_DWORD32(dword, low, high, value) do { \ argument
569 & ~EFX_INPLACE_MASK32(0, 31, low, high)) \
570 | EFX_INSERT32(0, 31, low, high, value)); \