Lines Matching defs:buf
19 struct attribute *attr, char *buf)
23 return attribute->show ? attribute->show(slot, buf) : -EIO;
27 struct attribute *attr, const char *buf, size_t len)
31 return attribute->store ? attribute->store(slot, buf, len) : -EIO;
39 static ssize_t address_read_file(struct pci_slot *slot, char *buf)
42 return sysfs_emit(buf, "%04x:%02x\n",
46 return sysfs_emit(buf, "%04x:%02x:%02x\n",
52 static ssize_t bus_speed_read(enum pci_bus_speed speed, char *buf)
54 return sysfs_emit(buf, "%s\n", pci_speed_string(speed));
57 static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf)
59 return bus_speed_read(slot->bus->max_bus_speed, buf);
62 static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf)
64 return bus_speed_read(slot->bus->cur_bus_speed, buf);