Lines Matching defs:buf
23 struct device_attribute *attr, char *buf)
27 return sysfs_emit(buf, "%d\n", ac->ap_dev.device_type);
33 struct device_attribute *attr, char *buf)
37 return sysfs_emit(buf, "%d\n", ac->raw_hwtype);
43 char *buf)
47 return sysfs_emit(buf, "%d\n", ac->queue_depth);
53 struct device_attribute *attr, char *buf)
57 return sysfs_emit(buf, "0x%08X\n", ac->functions);
64 char *buf)
73 return sysfs_emit(buf, "%llu\n", req_cnt);
78 const char *buf, size_t count)
97 struct device_attribute *attr, char *buf)
110 return sysfs_emit(buf, "%d\n", reqq_cnt);
116 struct device_attribute *attr, char *buf)
129 return sysfs_emit(buf, "%d\n", penq_cnt);
135 struct device_attribute *attr, char *buf)
137 return sysfs_emit(buf, "ap:t%02X\n", to_ap_dev(dev)->device_type);
143 struct device_attribute *attr, char *buf)
147 return sysfs_emit(buf, "%d\n", ac->config ? 1 : 0);
152 const char *buf, size_t count)
157 if (sscanf(buf, "%d\n", &cfg) != 1 || cfg < 0 || cfg > 1)
177 struct device_attribute *attr, char *buf)
181 return sysfs_emit(buf, "%d\n", ac->chkstop ? 1 : 0);
187 struct device_attribute *attr, char *buf)
191 return sysfs_emit(buf, "%u\n", ac->maxmsgsize);