Lines Matching refs:res
136 ssize_t res; in snapshot_read() local
143 res = -ENODATA; in snapshot_read()
147 res = snapshot_read_next(&data->handle); in snapshot_read()
148 if (res <= 0) in snapshot_read()
151 res = PAGE_SIZE - pg_offp; in snapshot_read()
154 res = simple_read_from_buffer(buf, count, &pg_offp, in snapshot_read()
155 data_of(data->handle), res); in snapshot_read()
156 if (res > 0) in snapshot_read()
157 *offp += res; in snapshot_read()
162 return res; in snapshot_read()
169 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()