Lines Matching refs:usr
195 isl1208_i2c_set_usr(struct i2c_client *client, u16 usr) in isl1208_i2c_set_usr() argument
199 buf[0] = usr & 0xff; in isl1208_i2c_set_usr()
200 buf[1] = (usr >> 8) & 0xff; in isl1208_i2c_set_usr()
234 int sr, dtr, atr, usr; in isl1208_rtc_proc() local
262 usr = isl1208_i2c_get_usr(client); in isl1208_rtc_proc()
263 if (usr >= 0) in isl1208_rtc_proc()
264 seq_printf(seq, "user_data\t: 0x%.4x\n", usr); in isl1208_rtc_proc()
577 int usr = isl1208_i2c_get_usr(to_i2c_client(dev)); in isl1208_sysfs_show_usr() local
578 if (usr < 0) in isl1208_sysfs_show_usr()
579 return usr; in isl1208_sysfs_show_usr()
581 return sprintf(buf, "0x%.4x\n", usr); in isl1208_sysfs_show_usr()
589 int usr = -1; in isl1208_sysfs_store_usr() local
592 if (sscanf(buf, "%x", &usr) != 1) in isl1208_sysfs_store_usr()
595 if (sscanf(buf, "%d", &usr) != 1) in isl1208_sysfs_store_usr()
599 if (usr < 0 || usr > 0xffff) in isl1208_sysfs_store_usr()
602 return isl1208_i2c_set_usr(to_i2c_client(dev), usr) ? -EIO : count; in isl1208_sysfs_store_usr()
605 static DEVICE_ATTR(usr, S_IRUGO | S_IWUSR, isl1208_sysfs_show_usr,