Lines Matching full:off
31 size_t count, loff_t *off) in acpi_ec_read_io() argument
37 loff_t init_off = *off; in acpi_ec_read_io()
40 if (*off >= size) in acpi_ec_read_io()
42 if (*off + count >= size) { in acpi_ec_read_io()
43 size -= *off; in acpi_ec_read_io()
50 err = ec_read(*off, &byte_read); in acpi_ec_read_io()
53 if (put_user(byte_read, buf + *off - init_off)) { in acpi_ec_read_io()
54 if (*off - init_off) in acpi_ec_read_io()
55 return *off - init_off; /* partial read */ in acpi_ec_read_io()
58 *off += 1; in acpi_ec_read_io()
65 size_t count, loff_t *off) in acpi_ec_write_io() argument
72 loff_t init_off = *off; in acpi_ec_write_io()
78 if (*off >= EC_SPACE_SIZE) in acpi_ec_write_io()
80 if (*off + count >= EC_SPACE_SIZE) { in acpi_ec_write_io()
81 size = EC_SPACE_SIZE - *off; in acpi_ec_write_io()
87 if (get_user(byte_write, buf + *off - init_off)) { in acpi_ec_write_io()
88 if (*off - init_off) in acpi_ec_write_io()
89 return *off - init_off; /* partial write */ in acpi_ec_write_io()
92 err = ec_write(*off, byte_write); in acpi_ec_write_io()
96 *off += 1; in acpi_ec_write_io()