Lines Matching defs:buf

247 	cl_dbg(dev, cl, "buf.size = %zu buf.idx = %zu offset = %lld\n",
248 cb->buf.size, cb->buf_idx, *offset);
258 if (copy_to_user(ubuf, cb->buf.data + *offset, length)) {
380 rets = copy_from_user(cb->buf.data, ubuf, length);
930 * @buf: char out buffer
932 * Return: number of the bytes printed into buf or error
935 struct device_attribute *attr, char *buf)
944 return sprintf(buf, "%08X\n", trc);
953 * @buf: char out buffer
955 * Return: number of the bytes printed into buf or error
958 struct device_attribute *attr, char *buf)
974 cnt += scnprintf(buf + cnt, PAGE_SIZE - cnt, "%08X\n",
985 * @buf: char out buffer
987 * Return: number of the bytes printed into buf or error
990 struct device_attribute *attr, char *buf)
999 return sprintf(buf, "%u.%u\n", ver.major_version, ver.minor_version);
1008 * @buf: char out buffer
1010 * Return: number of the bytes printed into buf or error
1013 struct device_attribute *attr, char *buf)
1015 return sprintf(buf, "%u.%u\n", HBM_MAJOR_VERSION, HBM_MINOR_VERSION);
1020 struct device_attribute *attr, char *buf)
1029 return snprintf(buf, PAGE_SIZE, "%u\n", size);
1034 const char *buf, size_t count)
1041 err = kstrtouint(buf, 10, &inp);
1061 * @buf: char out buffer
1063 * Return: number of the bytes printed into buf or error
1066 struct device_attribute *attr, char *buf)
1076 cnt += scnprintf(buf + cnt, PAGE_SIZE - cnt, "%u:%u.%u.%u.%u\n",
1088 * @buf: char out buffer
1090 * Return: number of the bytes printed into buf or error
1093 struct device_attribute *attr, char *buf)
1102 return sprintf(buf, "%s", mei_dev_state_str(dev_state));
1133 * @buf: char out buffer
1135 * Return: number of the bytes printed into buf or error
1138 struct device_attribute *attr, char *buf)
1144 ret = sprintf(buf, "%s\n", dev->kind);
1146 ret = sprintf(buf, "%s\n", "mei");