Lines Matching refs:field_l
58 #define FIELD_LOC(field_type, field_h, field_l) field_type, field_h, field_l argument
60 #define _hr_reg_enable(ptr, field_type, field_h, field_l) \ argument
64 BIT((field_l) % 32) + \
65 BUILD_BUG_ON_ZERO((field_h) != (field_l))); \
70 #define _hr_reg_clear(ptr, field_type, field_h, field_l) \ argument
73 BUILD_BUG_ON(((field_h) / 32) != ((field_l) / 32)); \
75 ~cpu_to_le32(GENMASK((field_h) % 32, (field_l) % 32)); \
80 #define _hr_reg_write_bool(ptr, field_type, field_h, field_l, val) \ argument
82 (val) ? _hr_reg_enable(ptr, field_type, field_h, field_l) : \
83 _hr_reg_clear(ptr, field_type, field_h, field_l); \
88 #define _hr_reg_write(ptr, field_type, field_h, field_l, val) \ argument
90 _hr_reg_clear(ptr, field_type, field_h, field_l); \
92 GENMASK((field_h) % 32, (field_l) % 32), val)); \
97 #define _hr_reg_read(ptr, field_type, field_h, field_l) \ argument
100 BUILD_BUG_ON(((field_h) / 32) != ((field_l) / 32)); \
101 FIELD_GET(GENMASK((field_h) % 32, (field_l) % 32), \