Lines Matching refs:sz
23 #define CPS_ACCESSOR_R(unit, sz, name) \ argument
24 static inline uint##sz##_t read_##unit##_##name(void) \
28 switch (sz) { \
46 #define CPS_ACCESSOR_W(unit, sz, name) \ argument
47 static inline void write_##unit##_##name(uint##sz##_t val) \
49 switch (sz) { \
71 #define CPS_ACCESSOR_M(unit, sz, name) \ argument
72 static inline void change_##unit##_##name(uint##sz##_t mask, \
73 uint##sz##_t val) \
75 uint##sz##_t reg_val = read_##unit##_##name(); \
81 static inline void set_##unit##_##name(uint##sz##_t val) \
86 static inline void clear_##unit##_##name(uint##sz##_t val) \
91 #define CPS_ACCESSOR_RO(unit, sz, off, name) \ argument
93 CPS_ACCESSOR_R(unit, sz, name)
95 #define CPS_ACCESSOR_WO(unit, sz, off, name) \ argument
97 CPS_ACCESSOR_W(unit, sz, name)
99 #define CPS_ACCESSOR_RW(unit, sz, off, name) \ argument
101 CPS_ACCESSOR_R(unit, sz, name) \
102 CPS_ACCESSOR_W(unit, sz, name) \
103 CPS_ACCESSOR_M(unit, sz, name)