Lines Matching refs:rem
27 size_t w_size, rem, add; in settings_line_write() local
38 rem = strlen(name); in settings_line_write()
49 if (rem < w_size) { in settings_line_write()
50 w_size = rem; in settings_line_write()
55 rem -= w_size; in settings_line_write()
68 w_size = rem - rem % wbs; in settings_line_write()
69 rem %= wbs; in settings_line_write()
74 w_size = rem; in settings_line_write()
76 if (rem) { in settings_line_write()
77 memcpy(w_buf, name, rem); in settings_line_write()
80 w_buf[rem] = '='; in settings_line_write()
83 rem = val_len; in settings_line_write()
88 if (rem) { in settings_line_write()
89 add = MIN(rem, sizeof(w_buf) - w_size); in settings_line_write()
92 rem -= add; in settings_line_write()
330 size_t rem; 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()