Lines Matching defs:buf
23 * @buf: Data read from NVM is stored here
26 * Reads retimer NVM and copies the contents to @buf. Returns %0 if the
29 int tb_retimer_nvm_read(struct tb_retimer *rt, unsigned int address, void *buf,
32 return usb4_port_retimer_nvm_read(rt->port, rt->index, address, buf, size);
110 const u8 *buf;
117 buf = rt->nvm->buf_data_start;
120 ret = usb4_port_retimer_nvm_write(rt->port, rt->index, 0, buf,
161 char *buf)
165 return sysfs_emit(buf, "%#x\n", rt->device);
170 struct device_attribute *attr, char *buf)
183 ret = sysfs_emit(buf, "%#x\n", rt->auth_status);
241 struct device_attribute *attr, const char *buf, size_t count)
258 ret = kstrtoint(buf, 10, &val);
278 if (!rt->nvm->buf) {
307 struct device_attribute *attr, char *buf)
318 ret = sysfs_emit(buf, "%x.%x\n", rt->nvm->major, rt->nvm->minor);
326 char *buf)
330 return sysfs_emit(buf, "%#x\n", rt->vendor);