Lines Matching refs:ix
223 int ix = to_sensor_dev_attr(devattr)->index;
225 return sprintf(buf, "%d\n", data->temp[ix] * 1000);
238 int ix = to_sensor_dev_attr(attr)->index;
247 data->temp[ix] = val;
248 if (i2c_smbus_write_byte_data(client, temp_reg[ix], data->temp[ix])) {
265 int ix = to_sensor_dev_attr(devattr)->index;
268 switch (ix) {
288 dev_dbg(dev, "Unknown attr->index (%d).\n", ix);
412 int ix = to_sensor_dev_attr_2(devattr)->index;
418 data->temp1_auto_point_temp[ix] * 1000);
422 data->temp2_auto_point_temp[ix] * 1000);
436 int ix = to_sensor_dev_attr(devattr)->index;
438 return sprintf(buf, "%d\n", data->pwm1_auto_point_pwm[ix]);
474 int ix = to_sensor_dev_attr_2(attr)->index;
500 switch (ix) {
534 dev_dbg(dev, "Unknown attr->index (%d).\n", ix);
595 int ix = to_sensor_dev_attr(devattr)->index;
596 if (0 == data->fan[ix])
598 return sprintf(buf, "%d\n", (int)(6000000 / data->fan[ix]));
625 int ix = to_sensor_dev_attr(attr)->index;
632 data->fan[ix] = (u16) SENSORS_LIMIT(val, 1, 0xFFFF);
633 if (i2c_smbus_write_byte_data(client, fan_reg_low[ix],
634 data->fan[ix] & 0xFF)) {
640 fan_reg_hi[ix], data->fan[ix] >> 8)) {