Lines Matching refs:res
139 ssize_t res; in snapshot_read() local
146 res = -ENODATA; in snapshot_read()
150 res = snapshot_read_next(&data->handle); in snapshot_read()
151 if (res <= 0) in snapshot_read()
154 res = PAGE_SIZE - pg_offp; in snapshot_read()
157 res = simple_read_from_buffer(buf, count, &pg_offp, in snapshot_read()
158 data_of(data->handle), res); in snapshot_read()
159 if (res > 0) in snapshot_read()
160 *offp += res; in snapshot_read()
165 return res; in snapshot_read()
172 ssize_t res; in snapshot_write() local
180 res = snapshot_write_next(&data->handle); in snapshot_write()
181 if (res <= 0) in snapshot_write()
184 res = PAGE_SIZE - pg_offp; in snapshot_write()
187 res = simple_write_to_buffer(data_of(data->handle), res, &pg_offp, in snapshot_write()
189 if (res > 0) in snapshot_write()
190 *offp += res; in snapshot_write()
194 return res; in snapshot_write()