Lines Matching refs:scan_mask
820 unsigned long scan_mask;
824 scan_mask = 1; /* Run calibration as part of the sequence */
826 scan_mask |= BIT(indio_dev->channels[i].scan_index);
829 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff);
833 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16);
848 unsigned long scan_mask;
857 scan_mask = *indio_dev->active_scan_mask;
858 seq_mode = xadc_get_seq_mode(xadc, scan_mask);
860 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff);
872 scan_mask = ((scan_mask >> 8) | scan_mask) & 0xff0000;
874 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16);