Lines Matching defs:buf

12 static ssize_t clk_max_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf)
26 return sprintf(buf, "%lu\n", (value / 1000 / 1000));
30 const char *buf, size_t count)
41 rc = kstrtoull(buf, 0, &value);
55 static ssize_t clk_cur_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf)
67 return sprintf(buf, "%lu\n", (value / 1000 / 1000));
79 static ssize_t vrm_ver_show(struct device *dev, struct device_attribute *attr, char *buf)
87 return sprintf(buf, "%#04x %#04x\n", le32_to_cpu(cpucp_info->infineon_version),
90 return sprintf(buf, "%#04x\n", le32_to_cpu(cpucp_info->infineon_version));
101 char *buf)
105 return sprintf(buf, "%s\n", hdev->asic_prop.uboot_ver);
109 struct device_attribute *attr, char *buf)
113 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version);
117 char *buf)
121 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version);
125 char *buf)
129 return sprintf(buf, "0x%08x\n",
134 struct device_attribute *attr, char *buf)
138 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.kernel_version);
142 char *buf)
146 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.cpucp_version);
150 char *buf)
154 return sprintf(buf, "%s\n", hdev->asic_prop.cpucp_info.fuse_version);
158 struct device_attribute *attr, char *buf)
162 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.thermal_version);
166 struct device_attribute *attr, char *buf)
170 return sprintf(buf, "%s", hdev->asic_prop.cpucp_info.fw_os_version);
174 struct device_attribute *attr, char *buf)
178 return sprintf(buf, "%s\n", hdev->asic_prop.preboot_ver);
182 struct device_attribute *attr, const char *buf,
189 rc = kstrtoul(buf, 0, &value);
211 const char *buf, size_t count)
217 rc = kstrtoul(buf, 0, &value);
233 struct device_attribute *attr, char *buf)
263 return sprintf(buf, "%s\n", str);
267 char *buf)
271 return sprintf(buf, "%04x:%02x:%02x.%x\n",
279 char *buf)
289 return sprintf(buf, "%s\n", str);
293 struct device_attribute *attr, char *buf)
297 return sprintf(buf, "%d\n", hdev->reset_info.compute_reset_cnt);
301 struct device_attribute *attr, char *buf)
305 return sprintf(buf, "%d\n", hdev->reset_info.hard_reset_cnt);
309 char *buf)
321 return sprintf(buf, "%lu\n", val);
325 struct device_attribute *attr, const char *buf, size_t count)
336 rc = kstrtoul(buf, 0, &value);
351 struct bin_attribute *attr, char *buf, loff_t offset,
373 memcpy(buf, data, max_size);
382 struct device_attribute *attr, char *buf)
386 return sprintf(buf, "%d\n", hdev->asic_prop.fw_security_enabled);