Lines Matching defs:buf
105 static ssize_t driver_stats_read(struct file *file, char __user *buf,
109 return simple_read_from_buffer(buf, count, ppos, &qib_stats,
133 static ssize_t driver_names_read(struct file *file, char __user *buf,
136 return simple_read_from_buffer(buf, count, ppos, qib_statnames,
146 static ssize_t dev_counters_read(struct file *file, char __user *buf,
154 return simple_read_from_buffer(buf, count, ppos, counters, avail);
158 static ssize_t dev_names_read(struct file *file, char __user *buf,
166 return simple_read_from_buffer(buf, count, ppos, names, avail);
180 static ssize_t portnames_read(struct file *file, char __user *buf,
188 return simple_read_from_buffer(buf, count, ppos, names, avail);
192 static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
200 return simple_read_from_buffer(buf, count, ppos, counters, avail);
204 static ssize_t portcntrs_2_read(struct file *file, char __user *buf,
212 return simple_read_from_buffer(buf, count, ppos, counters, avail);
224 static ssize_t qsfp_1_read(struct file *file, char __user *buf,
237 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
245 static ssize_t qsfp_2_read(struct file *file, char __user *buf,
261 ret = simple_read_from_buffer(buf, count, ppos, tmp, ret);
271 static ssize_t flash_read(struct file *file, char __user *buf,
307 if (copy_to_user(buf, tmp, count)) {
322 static ssize_t flash_write(struct file *file, const char __user *buf,
335 tmp = memdup_user(buf, count);