Searched refs:adcsel (Results 1 - 5 of 5) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/input/touchscreen/
H A Dwm9705.c215 static int wm9705_poll_sample(struct wm97xx *wm, int adcsel, int *sample) argument
227 if (adcsel & 0x8000)
228 adcsel = ((adcsel & 0x7fff) + 3) << 12;
231 wm->mach_ops->pre_sample(adcsel);
233 adcsel | WM97XX_POLL | WM97XX_DELAY(delay));
256 wm->mach_ops->post_sample(adcsel);
259 if ((*sample & WM97XX_ADCSEL_MASK) != adcsel) {
260 dev_dbg(wm->dev, "adc wrong sample, read %x got %x", adcsel,
H A Dwm9712.c255 static int wm9712_poll_sample(struct wm97xx *wm, int adcsel, int *sample) argument
267 if (adcsel & 0x8000)
268 adcsel = ((adcsel & 0x7fff) + 3) << 12;
271 wm->mach_ops->pre_sample(adcsel);
273 adcsel | WM97XX_POLL | WM97XX_DELAY(delay));
296 wm->mach_ops->post_sample(adcsel);
299 if ((*sample & WM97XX_ADCSEL_MASK) != adcsel) {
300 dev_dbg(wm->dev, "adc wrong sample, read %x got %x", adcsel,
H A Dwm9713.c260 static int wm9713_poll_sample(struct wm97xx *wm, int adcsel, int *sample) argument
273 if (adcsel & 0x8000)
274 adcsel = 1 << ((adcsel & 0x7fff) + 3);
280 wm->mach_ops->pre_sample(adcsel);
281 wm97xx_reg_write(wm, AC97_WM9713_DIG1, dig1 | adcsel | WM9713_POLL);
304 wm->mach_ops->post_sample(adcsel);
307 if ((*sample & WM97XX_ADCSRC_MASK) != ffs(adcsel >> 1) << 12) {
308 dev_dbg(wm->dev, "adc wrong sample, read %x got %x", adcsel,
H A Dwm97xx-core.c119 * @adcsel: codec ADC to be read
124 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel) argument
146 wm->codec->poll_sample(wm, adcsel, &auxval);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dwm97xx.h236 int (*poll_sample) (struct wm97xx *, int adcsel, int *sample);
334 int wm97xx_read_aux_adc(struct wm97xx *wm, u16 adcsel);

Completed in 506 milliseconds