Lines Matching defs:buf
103 static ssize_t driver_stats_read(struct file *file, char __user *buf,
107 return simple_read_from_buffer(buf, count, ppos, &qib_stats,
131 static ssize_t driver_names_read(struct file *file, char __user *buf,
134 return simple_read_from_buffer(buf, count, ppos, qib_statnames,
144 static ssize_t dev_counters_read(struct file *file, char __user *buf,
152 return simple_read_from_buffer(buf, count, ppos, counters, avail);
156 static ssize_t dev_names_read(struct file *file, char __user *buf,
164 return simple_read_from_buffer(buf, count, ppos, names, avail);
178 static ssize_t portnames_read(struct file *file, char __user *buf,
186 return simple_read_from_buffer(buf, count, ppos, names, avail);
190 static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
198 return simple_read_from_buffer(buf, count, ppos, counters, avail);
202 static ssize_t portcntrs_2_read(struct file *file, char __user *buf,
210 return simple_read_from_buffer(buf, count, ppos, counters, avail);
222 static ssize_t qsfp_1_read(struct file *file, char __user *buf,
235 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
243 static ssize_t qsfp_2_read(struct file *file, char __user *buf,
259 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
269 static ssize_t flash_read(struct file *file, char __user *buf,
305 if (copy_to_user(buf, tmp, count)) {
320 static ssize_t flash_write(struct file *file, const char __user *buf,
333 tmp = memdup_user(buf, count);