Lines Matching defs:index
303 int ret, volt, index;
305 index = nct7904_chan_to_index[channel];
310 VSEN1_HV_REG + index * 2);
314 if (index < 14)
322 VSEN1_HV_LL_REG + index * 4);
326 if (index < 14)
334 VSEN1_HV_HL_REG + index * 4);
338 if (index < 14)
346 SMI_STS1_REG + (index >> 3));
349 if (!data->vsen_alarm[index >> 3])
350 data->vsen_alarm[index >> 3] = ret & 0xff;
353 data->vsen_alarm[index >> 3] |= (ret & 0xff);
354 *val = (data->vsen_alarm[index >> 3] >> (index & 0x07)) & 1;
357 data->vsen_alarm[index >> 3] ^= 1 << (index & 0x07);
367 int index = nct7904_chan_to_index[channel];
372 if (channel > 0 && (data->vsen_mask & BIT(index)))
377 if (channel > 0 && (data->vsen_mask & BIT(index)))
640 int ret, index, tmp;
642 index = nct7904_chan_to_index[channel];
644 if (index < 14)
654 VSEN1_LV_LL_REG + index * 4);
660 VSEN1_LV_LL_REG + index * 4, tmp);
664 VSEN1_HV_LL_REG + index * 4);
669 VSEN1_HV_LL_REG + index * 4, tmp);
673 VSEN1_LV_HL_REG + index * 4);
679 VSEN1_LV_HL_REG + index * 4, tmp);
683 VSEN1_HV_HL_REG + index * 4);
688 VSEN1_HV_HL_REG + index * 4, tmp);