Lines Matching refs:index
343 u8 index;
345 int index;
347 bool s2; /* true if both index and nr are used */
366 .u.index = _index, \
372 .u.s.index = _index, \
443 a2->index = (*t)->u.s.index;
453 a->index = (*t)->u.index + i;
520 static int get_in_reg(struct nct6683_data *data, int nr, int index)
522 int ch = data->in_index[index];
543 static int get_temp_reg(struct nct6683_data *data, int nr, int index)
545 int ch = data->temp_index[index];
657 int nr = sattr->index;
667 int index = sattr->index;
671 in_from_reg(data->in[index][nr], data->in_index[index]));
675 struct attribute *attr, int index)
679 int nr = index % 4; /* attribute */
716 return sprintf(buf, "%d\n", data->rpm[sattr->index]);
724 int nr = sattr->index;
736 ((data->fanin_cfg[sattr->index] >> 5) & 0x03) + 1);
740 struct attribute *attr, int index)
744 int fan = index / 3; /* fan index */
745 int nr = index % 3; /* attribute index */
765 * nct6683_fan_is_visible uses the index into the following array
787 int nr = sattr->index;
797 int index = sattr->index;
800 return sprintf(buf, "%d\n", data->temp[index][nr] * 1000);
808 int nr = sattr->index;
819 int index = sattr->index;
821 return sprintf(buf, "%d\n", (data->temp_in[index] / 128) * 500);
853 int nr = sattr->index;
858 struct attribute *attr, int index)
862 int temp = index / 7; /* temp index */
863 int nr = index % 7; /* attribute index */
889 * nct6683_temp_is_visible uses the index into the following array
915 int index = sattr->index;
917 return sprintf(buf, "%d\n", data->pwm[index]);
926 int index = sattr->index;
935 nct6683_write(data, NCT6683_REG_PWM_WRITE(index), val);
945 struct attribute *attr, int index)
949 int pwm = index; /* pwm index */
1155 * a temperature, temp_index[n] is set to the monitor register index, and