Lines Matching refs:off

18 	int (*read_cb)(void *ctx, off_t off, char *buf, size_t *len);
19 int (*write_cb)(void *ctx, off_t off, char const *buf, size_t len);
180 off_t off; in settings_line_raw_read_until() local
190 off = seek / rbs * rbs; in settings_line_raw_read_until()
195 rc = settings_io_cb.read_cb(cb_arg, off, temp_buf, &read_size); in settings_line_raw_read_until()
200 off = seek - off; in settings_line_raw_read_until()
201 len = read_size - off; in settings_line_raw_read_until()
206 pend = memchr(&temp_buf[off], *until_char, len); in settings_line_raw_read_until()
208 len = pend - &temp_buf[off]; in settings_line_raw_read_until()
213 memcpy(out, &temp_buf[off], len); in settings_line_raw_read_until()
242 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req, in settings_line_val_read() argument
245 return settings_line_raw_read(val_off + off, out, len_req, len_read, in settings_line_val_read()
311 void settings_line_io_init(int (*read_cb)(void *ctx, off_t off, char *buf, in settings_line_io_init() argument
313 int (*write_cb)(void *ctx, off_t off, char const *buf, in settings_line_io_init()
333 off_t off = 0; in settings_line_cmp() local
341 rc = settings_line_val_read(val_off, off, buf, len_read, in settings_line_cmp()
357 off += len_read; in settings_line_cmp()
364 off_t off, void *cb_arg) in settings_line_dup_check_cb() argument
374 len_read = settings_line_val_get_len(off, val_read_cb_ctx); in settings_line_dup_check_cb()
381 val_read_cb_ctx, off)) { in settings_line_dup_check_cb()
396 rc = settings_line_val_read(value_context->off, 0, data, len, in settings_line_read_cb()
407 int settings_line_load_cb(const char *name, void *val_read_cb_ctx, off_t off, in settings_line_load_cb() argument
414 value_ctx.off = off; in settings_line_load_cb()
415 len = settings_line_val_get_len(off, val_read_cb_ctx); in settings_line_load_cb()