Lines Matching defs:buf
76 struct device_attribute *attr, char *buf)
83 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK,
90 struct device_attribute *attr, const char *buf,
99 err = kstrtoul(buf, 10, &vcore);
152 char *buf)
159 size = sprintf(buf, "0x%02x\n", data->reg.gpio1 & ATXP1_GPIO1MASK);
165 const char *buf, size_t count)
172 err = kstrtoul(buf, 16, &value);
197 char *buf)
204 size = sprintf(buf, "0x%02x\n", data->reg.gpio2);
210 const char *buf, size_t count)
217 err = kstrtoul(buf, 16, &value);