Lines Matching refs:rem
318 int rem; in persistent_ram_write() local
331 rem = prz->buffer_size - start; in persistent_ram_write()
332 if (unlikely(rem < c)) { in persistent_ram_write()
333 persistent_ram_update(prz, s, start, rem); in persistent_ram_write()
334 s += rem; in persistent_ram_write()
335 c -= rem; in persistent_ram_write()
348 int rem, ret = 0, c = count; in persistent_ram_write_user() local
360 rem = prz->buffer_size - start; in persistent_ram_write_user()
361 if (unlikely(rem < c)) { in persistent_ram_write_user()
362 ret = persistent_ram_update_user(prz, s, start, rem); in persistent_ram_write_user()
363 s += rem; in persistent_ram_write_user()
364 c -= rem; in persistent_ram_write_user()