Lines Matching refs:oword
148 #define EFAB_OWORD_VAL(oword) \ argument
149 ( ( unsigned int ) le32_to_cpu ( (oword).u32[3] ) ), \
150 ( ( unsigned int ) le32_to_cpu ( (oword).u32[2] ) ), \
151 ( ( unsigned int ) le32_to_cpu ( (oword).u32[1] ) ), \
152 ( ( unsigned int ) le32_to_cpu ( (oword).u32[0] ) )
189 #define EFAB_EXTRACT_OWORD64( oword, low, high ) \ argument
190 ( EFAB_EXTRACT64 ( (oword).u64[0], 0, 63, low, high ) | \
191 EFAB_EXTRACT64 ( (oword).u64[1], 64, 127, low, high ) )
196 #define EFAB_EXTRACT_OWORD32( oword, low, high ) \ argument
197 ( EFAB_EXTRACT32 ( (oword).u32[0], 0, 31, low, high ) | \
198 EFAB_EXTRACT32 ( (oword).u32[1], 32, 63, low, high ) | \
199 EFAB_EXTRACT32 ( (oword).u32[2], 64, 95, low, high ) | \
200 EFAB_EXTRACT32 ( (oword).u32[3], 96, 127, low, high ) )
209 #define EFAB_OWORD_FIELD64( oword, field ) \ argument
210 ( EFAB_EXTRACT_OWORD64 ( oword, EFAB_LOW_BIT ( field ), \
219 #define EFAB_OWORD_FIELD32( oword, field ) \ argument
220 ( EFAB_EXTRACT_OWORD32 ( oword, EFAB_LOW_BIT ( field ), \
234 #define EFAB_OWORD_IS_ZERO64( oword ) \ argument
235 ( ! ( (oword).u64[0] || (oword).u64[1] ) )
240 #define EFAB_OWORD_IS_ZERO32( oword ) \ argument
241 ( ! ( (oword).u32[0] || (oword).u32[1] || \
242 (oword).u32[2] || (oword).u32[3] ) )
250 #define EFAB_OWORD_IS_ALL_ONES64( oword ) \ argument
251 ( ( (oword).u64[0] & (oword).u64[1] ) == ~( ( uint64_t ) 0 ) )
256 #define EFAB_OWORD_IS_ALL_ONES32( oword ) \ argument
257 ( ( (oword).u32[0] & (oword).u32[1] & \
258 (oword).u32[2] & (oword).u32[3] ) == ~( ( uint32_t ) 0 ) )
350 #define EFAB_POPULATE_OWORD64( oword, ... ) do { \ argument
351 (oword).u64[0] = EFAB_INSERT_FIELDS64 ( 0, 63, __VA_ARGS__ );\
352 (oword).u64[1] = EFAB_INSERT_FIELDS64 ( 64, 127, __VA_ARGS__ );\
359 #define EFAB_POPULATE_OWORD32( oword, ... ) do { \ argument
360 (oword).u32[0] = EFAB_INSERT_FIELDS32 ( 0, 31, __VA_ARGS__ );\
361 (oword).u32[1] = EFAB_INSERT_FIELDS32 ( 32, 63, __VA_ARGS__ );\
362 (oword).u32[2] = EFAB_INSERT_FIELDS32 ( 64, 95, __VA_ARGS__ );\
363 (oword).u32[3] = EFAB_INSERT_FIELDS32 ( 96, 127, __VA_ARGS__ );\
385 #define EFAB_POPULATE_OWORD_9( oword, ... ) \ argument
386 EFAB_POPULATE_OWORD_10 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
387 #define EFAB_POPULATE_OWORD_8( oword, ... ) \ argument
388 EFAB_POPULATE_OWORD_9 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
389 #define EFAB_POPULATE_OWORD_7( oword, ... ) \ argument
390 EFAB_POPULATE_OWORD_8 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
391 #define EFAB_POPULATE_OWORD_6( oword, ... ) \ argument
392 EFAB_POPULATE_OWORD_7 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
393 #define EFAB_POPULATE_OWORD_5( oword, ... ) \ argument
394 EFAB_POPULATE_OWORD_6 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
395 #define EFAB_POPULATE_OWORD_4( oword, ... ) \ argument
396 EFAB_POPULATE_OWORD_5 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
397 #define EFAB_POPULATE_OWORD_3( oword, ... ) \ argument
398 EFAB_POPULATE_OWORD_4 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
399 #define EFAB_POPULATE_OWORD_2( oword, ... ) \ argument
400 EFAB_POPULATE_OWORD_3 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
401 #define EFAB_POPULATE_OWORD_1( oword, ... ) \ argument
402 EFAB_POPULATE_OWORD_2 ( oword, EFAB_DUMMY_FIELD, 0, __VA_ARGS__ )
403 #define EFAB_ZERO_OWORD( oword ) \ argument
404 EFAB_POPULATE_OWORD_1 ( oword, EFAB_DUMMY_FIELD, 0 )
405 #define EFAB_SET_OWORD( oword ) \ argument
406 EFAB_POPULATE_OWORD_4 ( oword, \
482 #define EFAB_SET_OWORD_FIELD64( oword, field, value ) do { \ argument
483 (oword).u64[0] = ( ( (oword).u64[0] \
486 (oword).u64[1] = ( ( (oword).u64[1] \
497 #define EFAB_SET_OWORD_FIELD32( oword, field, value ) do { \ argument
498 (oword).u32[0] = ( ( (oword).u32[0] \
501 (oword).u32[1] = ( ( (oword).u32[1] \
504 (oword).u32[2] = ( ( (oword).u32[2] \
507 (oword).u32[3] = ( ( (oword).u32[3] \