Lines Matching refs:field_h
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
63 *((__le32 *)_ptr + (field_h) / 32) |= cpu_to_le32( \
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)); \
74 *((__le32 *)_ptr + (field_h) / 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); \
91 *((__le32 *)ptr + (field_h) / 32) |= cpu_to_le32(FIELD_PREP( \
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), \
102 le32_to_cpu(*((__le32 *)_ptr + (field_h) / 32))); \