Lines Matching defs:offset
259 static ssize_t command_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
266 if (*offset < 0)
270 if (*offset != 0)
296 static ssize_t command_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t *offset)
302 if (*offset < 0)
306 if (*offset != 0)
368 static ssize_t event_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
376 if (*offset < 0)
380 if (*offset != 0)
411 static ssize_t event_file_write(struct file *file, const char __user *buf, size_t count, loff_t *offset)
415 if (*offset < 0)
419 if (*offset != 0)
452 static ssize_t r_heartbeat_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
458 if (*offset < 0)
462 if (*offset != 0)
480 static ssize_t r_heartbeat_file_write(struct file *file, const char __user *buf, size_t count, loff_t *offset)
484 if (*offset < 0)
488 if (*offset != 0)
502 static ssize_t remote_settings_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset)
512 return simple_read_from_buffer(buf, count, offset, lbuf, len);
515 static ssize_t remote_settings_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t *offset)
521 if (*offset < 0)
525 if (*offset != 0)