Lines Matching defs:count
257 * @count: how much bytes to write
266 const void __user *buf, int count)
268 int lnum, offs, err = 0, len, to_write = count;
271 count, vol->upd_bytes, vol->upd_received);
277 if (vol->upd_received + count > vol->upd_bytes)
278 to_write = count = vol->upd_bytes - vol->upd_received;
293 if (len > count)
294 len = count;
316 count -= len;
325 while (count) {
326 if (count > vol->usable_leb_size)
329 len = count;
344 count -= len;
371 * @count: how much bytes to write
381 const void __user *buf, int count)
386 count, vol->upd_bytes, vol->upd_received);
391 if (vol->upd_received + count > vol->upd_bytes)
392 count = vol->upd_bytes - vol->upd_received;
394 err = copy_from_user(vol->upd_buf + vol->upd_received, buf, count);
398 vol->upd_received += count;
415 err = count;