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