Lines Matching refs:index
355 u8 index;
357 int index;
359 bool s2; /* true if both index and nr are used */
378 .u.index = _index, \
384 .u.s.index = _index, \
455 a2->index = (*t)->u.s.index;
465 a->index = (*t)->u.index + i;
521 static int get_in_reg(struct nct6683_data *data, int nr, int index)
523 int ch = data->in_index[index];
544 static int get_temp_reg(struct nct6683_data *data, int nr, int index)
546 int ch = data->temp_index[index];
658 int nr = sattr->index;
668 int index = sattr->index;
672 in_from_reg(data->in[index][nr], data->in_index[index]));
676 struct attribute *attr, int index)
680 int nr = index % 4; /* attribute */
717 return sprintf(buf, "%d\n", data->rpm[sattr->index]);
725 int nr = sattr->index;
737 ((data->fanin_cfg[sattr->index] >> 5) & 0x03) + 1);
741 struct attribute *attr, int index)
745 int fan = index / 3; /* fan index */
746 int nr = index % 3; /* attribute index */
766 * nct6683_fan_is_visible uses the index into the following array
788 int nr = sattr->index;
798 int index = sattr->index;
801 return sprintf(buf, "%d\n", data->temp[index][nr] * 1000);
809 int nr = sattr->index;
820 int index = sattr->index;
822 return sprintf(buf, "%d\n", (data->temp_in[index] / 128) * 500);
854 int nr = sattr->index;
859 struct attribute *attr, int index)
863 int temp = index / 7; /* temp index */
864 int nr = index % 7; /* attribute index */
890 * nct6683_temp_is_visible uses the index into the following array
916 int index = sattr->index;
918 return sprintf(buf, "%d\n", data->pwm[index]);
927 int index = sattr->index;
936 nct6683_write(data, NCT6683_REG_PWM_WRITE(index), val);
946 struct attribute *attr, int index)
950 int pwm = index; /* pwm index */
1156 * a temperature, temp_index[n] is set to the monitor register index, and