Lines Matching refs:buf

50  * @buf: the buffer returned
55 struct device_attribute *attr, char *buf)
62 return snprintf(buf, PAGE_SIZE, "%d\n",
65 return snprintf(buf, PAGE_SIZE, "%d\n",
75 * @buf: the buffer returned
80 struct device_attribute *attr, char *buf)
87 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n",
93 return snprintf(buf, PAGE_SIZE, "%02x.%02x.%02x.%02x\n",
104 * @buf: the buffer returned
109 struct device_attribute *attr, char *buf)
116 return snprintf(buf, PAGE_SIZE, "%d\n",
119 return snprintf(buf, PAGE_SIZE, "%d\n",
127 * @buf: the buffer returned
132 struct device_attribute *attr, char *buf)
139 return snprintf(buf, PAGE_SIZE, "%04d\n",
143 return snprintf(buf, PAGE_SIZE, "%04d\n",
153 * @buf: the buffer returned
158 struct device_attribute *attr, char *buf)
165 return snprintf(buf, PAGE_SIZE, "%04d\n",
169 return snprintf(buf, PAGE_SIZE, "%04d\n",
181 show_sas_spec_support_status(unsigned int mode, char *buf)
186 len = sprintf(buf, "%s", "SAS1.1");
188 len += sprintf(buf + len, "%s%s", len ? ", " : "", "SAS2.0");
189 len += sprintf(buf + len, "\n");
197 * @buf: the buffer returned
202 struct device_attribute *attr, char *buf)
216 return show_sas_spec_support_status(mode, buf);
224 * @buf: the buffer returned
231 struct device_attribute *attr, char *buf)
236 return snprintf(buf, PAGE_SIZE, "0x%016llx\n",
245 * @buf: the buffer returned
250 struct device_attribute *attr, char *buf)
256 return snprintf(buf, PAGE_SIZE, "%08xh\n", pm8001_ha->logging_level);
259 struct device_attribute *attr, const char *buf, size_t count)
266 if (sscanf(buf, "%x", &val) != 1)
270 return strlen(buf);
278 * @buf: the buffer returned
283 struct device_attribute *attr, char *buf)
293 char *str = buf;
308 return str - buf;
314 * @buf: the buffer returned
318 struct device_attribute *attr, char *buf)
324 char *str = buf;
339 return str - buf;
346 * @buf: the buffer returned
351 struct device_attribute *attr, char *buf)
357 char *str = buf;
372 return str - buf;
378 * @buf:the buffer returned
382 struct device_attribute *attr, char *buf)
387 char *str = buf;
409 return str - buf;
415 * @buf: the buffer returned
420 struct device_attribute *attr, char *buf)
429 char *str = buf;
444 return str - buf;
451 ** @buf: the buffer returned
457 struct device_attribute *attr, char *buf)
461 count = pm80xx_get_fatal_dump(cdev, attr, buf);
471 ** @buf: the buffer returned
475 struct device_attribute *attr, char *buf)
479 count = pm8001_get_gsm_dump(cdev, SYSFS_OFFSET, buf);
637 const char *buf, size_t count)
663 res = sscanf(buf, "%s %s", cmd_ptr, filename_ptr);
713 struct device_attribute *attr, char *buf)
727 return snprintf(buf, PAGE_SIZE, "status=%x %s\n",