Lines Matching refs:newval
85 static __u16 verify_ckctl_value(__u16 newval) in verify_ckctl_value() argument
107 per_exp = (newval >> CKCTL_PERDIV_OFFSET) & 3; in verify_ckctl_value()
108 lcd_exp = (newval >> CKCTL_LCDDIV_OFFSET) & 3; in verify_ckctl_value()
109 arm_exp = (newval >> CKCTL_ARMDIV_OFFSET) & 3; in verify_ckctl_value()
110 dsp_exp = (newval >> CKCTL_DSPDIV_OFFSET) & 3; in verify_ckctl_value()
111 tc_exp = (newval >> CKCTL_TCDIV_OFFSET) & 3; in verify_ckctl_value()
112 dspmmu_exp = (newval >> CKCTL_DSPMMUDIV_OFFSET) & 3; in verify_ckctl_value()
127 newval &= 0xf000; in verify_ckctl_value()
128 newval |= per_exp << CKCTL_PERDIV_OFFSET; in verify_ckctl_value()
129 newval |= lcd_exp << CKCTL_LCDDIV_OFFSET; in verify_ckctl_value()
130 newval |= arm_exp << CKCTL_ARMDIV_OFFSET; in verify_ckctl_value()
131 newval |= dsp_exp << CKCTL_DSPDIV_OFFSET; in verify_ckctl_value()
132 newval |= tc_exp << CKCTL_TCDIV_OFFSET; in verify_ckctl_value()
133 newval |= dspmmu_exp << CKCTL_DSPMMUDIV_OFFSET; in verify_ckctl_value()
135 return newval; in verify_ckctl_value()