Lines Matching refs:uint32_t
24 #define CPS_REG_READ(reg) (readl((volatile uint32_t*)(reg)))
31 #define CPS_REG_WRITE(reg, value) (writel((uint32_t)(value), (volatile uint32_t*)(reg)))
50 #define CPS_FLD_READ(fld, reg_value) (cps_fldread((uint32_t)(CPS_FLD_MASK(fld)), \
51 (uint32_t)(CPS_FLD_SHIFT(fld)), \
52 (uint32_t)(reg_value)))
62 #define CPS_FLD_WRITE(fld, reg_value, value) (cps_fldwrite((uint32_t)(CPS_FLD_MASK(fld)), \
63 (uint32_t)(CPS_FLD_SHIFT(fld)), \
64 (uint32_t)(reg_value), (uint32_t)(value)))
73 #define CPS_FLD_SET(fld, reg_value) (cps_fldset((uint32_t)(CPS_FLD_WIDTH(fld)), \
74 (uint32_t)(CPS_FLD_MASK(fld)), \
75 (uint32_t)(CPS_FLD_WOCLR(fld)), \
76 (uint32_t)(reg_value)))
78 static inline uint32_t cps_fldread(uint32_t mask, uint32_t shift, uint32_t reg_value) in cps_fldread()
80 uint32_t result = (reg_value & mask) >> shift; in cps_fldread()
93 static inline uint32_t cps_fldwrite(uint32_t mask, uint32_t shift, uint32_t reg_value, uint32_t val… in cps_fldwrite()
95 uint32_t new_value = (value << shift) & mask; in cps_fldwrite()
109 static inline uint32_t cps_fldset(uint32_t width, uint32_t mask, uint32_t is_woclr, uint32_t reg_va… in cps_fldset()
111 uint32_t new_value = reg_value; in cps_fldset()