Lines Matching refs:ctrlval
634 int ret, base_freq, ctrlval; in sca3000_write_raw_samp_freq() local
644 ctrlval = ret & ~SCA3000_REG_OUT_CTRL_BUF_DIV_MASK; in sca3000_write_raw_samp_freq()
647 ctrlval |= SCA3000_REG_OUT_CTRL_BUF_DIV_2; in sca3000_write_raw_samp_freq()
649 ctrlval |= SCA3000_REG_OUT_CTRL_BUF_DIV_4; in sca3000_write_raw_samp_freq()
654 ctrlval); in sca3000_write_raw_samp_freq()
1178 int ret, ctrlval; in sca3000_motion_detect_set_state() local
1187 ctrlval = ret; in sca3000_motion_detect_set_state()
1189 if (state && !(ctrlval & sca3000_addresses[axis][2])) { in sca3000_motion_detect_set_state()
1192 ctrlval | in sca3000_motion_detect_set_state()
1197 } else if (!state && (ctrlval & sca3000_addresses[axis][2])) { in sca3000_motion_detect_set_state()
1200 ctrlval & in sca3000_motion_detect_set_state()