Lines Matching refs:min

123 #define EFX_EXTRACT_NATIVE(native_element, min, max, low, high)		\  argument
124 ((low) > (max) || (high) < (min) ? 0 : \
125 (low) > (min) ? \
126 (native_element) >> ((low) - (min)) : \
127 (native_element) << ((min) - (low)))
133 #define EFX_EXTRACT64(element, min, max, low, high) \ argument
134 EFX_EXTRACT_NATIVE(le64_to_cpu(element), min, max, low, high)
140 #define EFX_EXTRACT32(element, min, max, low, high) \ argument
141 EFX_EXTRACT_NATIVE(le32_to_cpu(element), min, max, low, high)
242 #define EFX_INSERT_NATIVE64(min, max, low, high, value) \ argument
243 (((low > max) || (high < min)) ? 0 : \
244 ((low > min) ? \
245 (((u64) (value)) << (low - min)) : \
246 (((u64) (value)) >> (min - low))))
248 #define EFX_INSERT_NATIVE32(min, max, low, high, value) \ argument
249 (((low > max) || (high < min)) ? 0 : \
250 ((low > min) ? \
251 (((u32) (value)) << (low - min)) : \
252 (((u32) (value)) >> (min - low))))
254 #define EFX_INSERT_NATIVE(min, max, low, high, value) \ argument
255 ((((max - min) >= 32) || ((high - low) >= 32)) ? \
256 EFX_INSERT_NATIVE64(min, max, low, high, value) : \
257 EFX_INSERT_NATIVE32(min, max, low, high, value))
265 #define EFX_INSERT_FIELD_NATIVE(min, max, field, value) \ argument
266 EFX_INSERT_NATIVE(min, max, EFX_LOW_BIT(field), \
275 #define EFX_INSERT_FIELDS_NATIVE(min, max, \ argument
295 (EFX_INSERT_FIELD_NATIVE((min), (max), field1, (value1)) | \
296 EFX_INSERT_FIELD_NATIVE((min), (max), field2, (value2)) | \
297 EFX_INSERT_FIELD_NATIVE((min), (max), field3, (value3)) | \
298 EFX_INSERT_FIELD_NATIVE((min), (max), field4, (value4)) | \
299 EFX_INSERT_FIELD_NATIVE((min), (max), field5, (value5)) | \
300 EFX_INSERT_FIELD_NATIVE((min), (max), field6, (value6)) | \
301 EFX_INSERT_FIELD_NATIVE((min), (max), field7, (value7)) | \
302 EFX_INSERT_FIELD_NATIVE((min), (max), field8, (value8)) | \
303 EFX_INSERT_FIELD_NATIVE((min), (max), field9, (value9)) | \
304 EFX_INSERT_FIELD_NATIVE((min), (max), field10, (value10)) | \
305 EFX_INSERT_FIELD_NATIVE((min), (max), field11, (value11)) | \
306 EFX_INSERT_FIELD_NATIVE((min), (max), field12, (value12)) | \
307 EFX_INSERT_FIELD_NATIVE((min), (max), field13, (value13)) | \
308 EFX_INSERT_FIELD_NATIVE((min), (max), field14, (value14)) | \
309 EFX_INSERT_FIELD_NATIVE((min), (max), field15, (value15)) | \
310 EFX_INSERT_FIELD_NATIVE((min), (max), field16, (value16)) | \
311 EFX_INSERT_FIELD_NATIVE((min), (max), field17, (value17)) | \
312 EFX_INSERT_FIELD_NATIVE((min), (max), field18, (value18)) | \
313 EFX_INSERT_FIELD_NATIVE((min), (max), field19, (value19)))
514 #define EFX_INSERT64(min, max, low, high, value) \ argument
515 cpu_to_le64(EFX_INSERT_NATIVE(min, max, low, high, value))
517 #define EFX_INSERT32(min, max, low, high, value) \ argument
518 cpu_to_le32(EFX_INSERT_NATIVE(min, max, low, high, value))
520 #define EFX_INPLACE_MASK64(min, max, low, high) \ argument
521 EFX_INSERT64(min, max, low, high, EFX_MASK64((high) + 1 - (low)))
523 #define EFX_INPLACE_MASK32(min, max, low, high) \ argument
524 EFX_INSERT32(min, max, low, high, EFX_MASK32((high) + 1 - (low)))