Lines Matching defs:buf
20 struct mdev_type_attribute *attr, char *buf);
22 struct mdev_type_attribute *attr, const char *buf,
32 struct attribute *__attr, char *buf)
39 ret = attr->show(type, attr, buf);
45 const char *buf, size_t count)
52 ret = attr->store(type, attr, buf, count);
62 struct mdev_type_attribute *attr, const char *buf,
72 str = kstrndup(buf, count, GFP_KERNEL);
90 struct mdev_type_attribute *attr, char *buf)
92 return sysfs_emit(buf, "%s\n", mtype->parent->mdev_driver->device_api);
97 struct mdev_type_attribute *attr, char *buf)
99 return sysfs_emit(buf, "%s\n",
107 char *buf)
112 return sysfs_emit(buf, "%u\n", drv->get_available(mtype));
113 return sysfs_emit(buf, "%u\n",
120 char *buf)
122 return mtype->parent->mdev_driver->show_description(mtype, buf);
241 const char *buf, size_t count)
246 if (kstrtoul(buf, 0, &val) < 0)