Lines Matching refs:res
141 ssize_t res; in snapshot_read() local
148 res = -ENODATA; in snapshot_read()
152 res = snapshot_read_next(&data->handle); in snapshot_read()
153 if (res <= 0) in snapshot_read()
156 res = PAGE_SIZE - pg_offp; in snapshot_read()
159 res = simple_read_from_buffer(buf, count, &pg_offp, in snapshot_read()
160 data_of(data->handle), res); in snapshot_read()
161 if (res > 0) in snapshot_read()
162 *offp += res; in snapshot_read()
167 return res; in snapshot_read()
174 ssize_t res; in snapshot_write() local
182 res = snapshot_write_next(&data->handle); in snapshot_write()
183 if (res <= 0) in snapshot_write()
186 res = PAGE_SIZE - pg_offp; in snapshot_write()
190 res = -EINVAL; in snapshot_write()
194 res = simple_write_to_buffer(data_of(data->handle), res, &pg_offp, in snapshot_write()
196 if (res > 0) in snapshot_write()
197 *offp += res; in snapshot_write()
201 return res; in snapshot_write()