Lines Matching defs:buf
166 char *buf;
171 buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
172 if (buf == NULL)
176 vsnprintf(buf, PAGE_SIZE, fmt, args);
177 dev_info(dev, "%s", buf);
180 kfree(buf);
2096 char *buf;
2101 buf = kmalloc(PAGE_SIZE, GFP_KERNEL);
2102 if (!buf)
2116 ret = scnprintf(buf, PAGE_SIZE, "%s: %s%s in %d out %d",
2121 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
2125 ret += scnprintf(buf + ret, PAGE_SIZE - ret, "\n");
2128 ret += scnprintf(buf + ret, PAGE_SIZE - ret, " stream %s %s\n",
2141 ret += scnprintf(buf + ret, PAGE_SIZE - ret,
2151 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
2153 kfree(buf);
2388 char *buf, int count)
2424 count += sysfs_emit_at(buf, count, "%s: %s\n",
2446 count += sysfs_emit_at(buf, count, "PM State: %s\n", state);
2453 struct device_attribute *attr, char *buf)
2464 count = dapm_widget_show_component(cmpnt, buf, count);