Lines Matching refs:attr
307 static int tmp401_temp_read(struct device *dev, u32 attr, int channel, long *val)
314 switch (attr) {
321 reg = TMP401_TEMP_MSB[tmp401_temp_reg_index[attr]][channel];
347 reg = TMP432_STATUS_REG[tmp401_status_reg_index[attr]];
359 static int tmp401_temp_write(struct device *dev, u32 attr, int channel,
368 switch (attr) {
372 reg = TMP401_TEMP_MSB[tmp401_temp_reg_index[attr]][channel];
374 attr == hwmon_temp_crit ? 8 : 4);
400 static int tmp401_chip_read(struct device *dev, u32 attr, int channel, long *val)
406 switch (attr) {
440 static int tmp401_chip_write(struct device *dev, u32 attr, int channel, long val)
447 switch (attr) {
472 u32 attr, int channel, long *val)
476 return tmp401_chip_read(dev, attr, channel, val);
478 return tmp401_temp_read(dev, attr, channel, val);
485 u32 attr, int channel, long val)
489 return tmp401_chip_write(dev, attr, channel, val);
491 return tmp401_temp_write(dev, attr, channel, val);
498 u32 attr, int channel)
502 switch (attr) {
511 switch (attr) {