Lines Matching defs:buf
330 static ssize_t raw_ip_show(struct device *d, struct device_attribute *attr, char *buf)
335 return sprintf(buf, "%c\n", info->flags & QMI_WWAN_FLAG_RAWIP ? 'Y' : 'N');
338 static ssize_t raw_ip_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len)
345 if (strtobool(buf, &enable))
382 static ssize_t add_mux_show(struct device *d, struct device_attribute *attr, char *buf)
393 count += scnprintf(&buf[count], PAGE_SIZE - count,
400 static ssize_t add_mux_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len)
407 if (kstrtou8(buf, 0, &mux_id))
433 static ssize_t del_mux_show(struct device *d, struct device_attribute *attr, char *buf)
435 return add_mux_show(d, attr, buf);
438 static ssize_t del_mux_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len)
446 if (kstrtou8(buf, 0, &mux_id))
688 u8 *buf = intf->cur_altsetting->extra;
705 cdc_parse_cdc_header(&hdr, intf, buf, len);