Home
last modified time | relevance | path

Searched refs:field_mask (Results 1 – 2 of 2) sorted by relevance

/include/rdma/
Diba.h56 #define _IBA_SET(field_struct, field_offset, field_mask, num_bits, ptr, value) \ argument
59 _iba_set##num_bits((void *)_ptr + (field_offset), field_mask, \
60 FIELD_PREP(field_mask, value)); \
84 #define _IBA_GET(field_struct, field_offset, field_mask, num_bits, ptr) \ argument
88 field_mask, _iba_get##num_bits((const void *)_ptr + \
/include/linux/
Dbitfield.h139 static __always_inline u64 field_mask(u64 field) in field_mask() function
143 #define field_max(field) ((typeof(field))field_mask(field))
147 if (__builtin_constant_p(v) && (v & ~field_mask(field))) \
149 return to((v & field_mask(field)) * field_multiplier(field)); \