Lines Matching refs:len_read
125 size_t len_read; in settings_next_line_ctx() local
134 &len_read, entry_ctx); in settings_next_line_ctx()
136 if (len_read != sizeof(readout)) { in settings_next_line_ctx()
137 if (len_read != 0) { in settings_next_line_ctx()
173 size_t *len_read, char const *until_char, in settings_line_raw_read_until() argument
225 *len_read = len_req - rem_size; in settings_line_raw_read_until()
235 size_t *len_read, void *cb_arg) in settings_line_raw_read() argument
237 return settings_line_raw_read_until(seek, out, len_req, len_read, in settings_line_raw_read()
243 size_t *len_read, void *cb_arg) 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()
265 int settings_line_name_read(char *out, size_t len_req, size_t *len_read, in settings_line_name_read() argument
270 return settings_line_raw_read_until(0, out, len_req, len_read, in settings_line_name_read()
329 size_t len_read, exp_len; in settings_line_cmp() local
339 for (rem = val_len; rem > 0; rem -= len_read) { in settings_line_cmp()
340 len_read = exp_len = MIN(sizeof(buf), rem); in settings_line_cmp()
341 rc = settings_line_val_read(val_off, off, buf, len_read, in settings_line_cmp()
342 &len_read, val_read_cb_ctx); in settings_line_cmp()
347 if (len_read != exp_len) { in settings_line_cmp()
352 rc = memcmp(val, buf, len_read); in settings_line_cmp()
356 val += len_read; in settings_line_cmp()
357 off += len_read; in settings_line_cmp()
367 size_t len_read; in settings_line_dup_check_cb() local
374 len_read = settings_line_val_get_len(off, val_read_cb_ctx); in settings_line_dup_check_cb()
375 if (len_read != cdca->val_len) { in settings_line_dup_check_cb()
377 } else if (len_read == 0) { in settings_line_dup_check_cb()
393 size_t len_read; in settings_line_read_cb() local
397 &len_read, in settings_line_read_cb()
401 return len_read; in settings_line_read_cb()