Lines Matching defs:buf
62 show_rc6_mask(struct device *kdev, struct device_attribute *attr, char *buf)
75 return snprintf(buf, PAGE_SIZE, "%x\n", mask);
79 show_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf)
83 return snprintf(buf, PAGE_SIZE, "%u\n", rc6_residency);
87 show_rc6p_ms(struct device *kdev, struct device_attribute *attr, char *buf)
91 return snprintf(buf, PAGE_SIZE, "%u\n", rc6p_residency);
95 show_rc6pp_ms(struct device *kdev, struct device_attribute *attr, char *buf)
99 return snprintf(buf, PAGE_SIZE, "%u\n", rc6pp_residency);
103 show_media_rc6_ms(struct device *kdev, struct device_attribute *attr, char *buf)
107 return snprintf(buf, PAGE_SIZE, "%u\n", rc6_residency);
165 struct bin_attribute *attr, char *buf,
179 memset(buf, 0, count);
183 memcpy(buf,
193 struct bin_attribute *attr, char *buf,
224 memcpy(remap_info + offset / sizeof(u32), buf, count);
261 struct device_attribute *attr, char *buf)
266 return snprintf(buf, PAGE_SIZE, "%d\n",
271 struct device_attribute *attr, char *buf)
276 return snprintf(buf, PAGE_SIZE, "%d\n",
280 static ssize_t gt_boost_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf)
285 return snprintf(buf, PAGE_SIZE, "%d\n",
291 const char *buf, size_t count)
299 ret = kstrtou32(buf, 0, &val);
321 struct device_attribute *attr, char *buf)
326 return snprintf(buf, PAGE_SIZE, "%d\n",
330 static ssize_t gt_max_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf)
335 return snprintf(buf, PAGE_SIZE, "%d\n",
341 const char *buf, size_t count)
348 ret = kstrtou32(buf, 0, &val);
385 static ssize_t gt_min_freq_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf)
390 return snprintf(buf, PAGE_SIZE, "%d\n",
396 const char *buf, size_t count)
403 ret = kstrtou32(buf, 0, &val);
444 static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf);
450 static ssize_t gt_rp_mhz_show(struct device *kdev, struct device_attribute *attr, char *buf)
465 return snprintf(buf, PAGE_SIZE, "%d\n", val);
496 struct bin_attribute *attr, char *buf,
516 ret = i915_gpu_coredump_copy_to_buffer(gpu, buf, off, count);
524 memcpy(buf, str + off, ret);
532 struct bin_attribute *attr, char *buf,