Lines Matching defs:buf
77 struct device_attribute *attr, char *buf)
84 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK,
91 struct device_attribute *attr, const char *buf,
100 err = kstrtoul(buf, 10, &vcore);
153 char *buf)
160 size = sprintf(buf, "0x%02x\n", data->reg.gpio1 & ATXP1_GPIO1MASK);
166 const char *buf, size_t count)
173 err = kstrtoul(buf, 16, &value);
198 char *buf)
205 size = sprintf(buf, "0x%02x\n", data->reg.gpio2);
211 const char *buf, size_t count)
218 err = kstrtoul(buf, 16, &value);