Lines Matching defs:buf
149 static ssize_t match_busid_show(struct device_driver *drv, char *buf)
152 char *out = buf;
164 return out - buf;
167 static ssize_t match_busid_store(struct device_driver *dev, const char *buf,
176 if (strscpy(busid, buf + 4, BUSID_SIZE) < 0)
179 if (!strncmp(buf, "add ", 4)) {
187 if (!strncmp(buf, "del ", 4)) {
242 static ssize_t rebind_store(struct device_driver *dev, const char *buf,
249 /* buf length should be less that BUSID_SIZE */
250 len = strnlen(buf, BUSID_SIZE);
255 bid = get_busid_priv(buf);
264 ret = do_rebind((char *) buf, bid);
269 del_match_busid((char *) buf);