Lines Matching defs:bytes_to_read
356 ssize_t bytes_to_read = 0;
370 bytes_to_read =
375 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) {
379 drvdata->read_buffer_in_use -= bytes_to_read;
381 drvdata->read_buffer + bytes_to_read,
382 4 - bytes_to_read);
400 bytes_to_read = words << 2;
402 if (bytes_to_read > PAGE_SIZE)
403 bytes_to_read = PAGE_SIZE;
406 bytes_remaining = bytes_to_read & 3;
407 bytes_to_read &= ~3;
408 words = bytes_to_read >> 2;
420 if (copy_to_user(buf, kbuf, bytes_to_read)) {
431 status = bytes_to_read;