Lines Matching refs:bytes_to_read
359 ssize_t bytes_to_read = 0; in hwicap_read() local
373 bytes_to_read = in hwicap_read()
378 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { in hwicap_read()
382 drvdata->read_buffer_in_use -= bytes_to_read; in hwicap_read()
384 drvdata->read_buffer + bytes_to_read, in hwicap_read()
385 4 - bytes_to_read); in hwicap_read()
403 bytes_to_read = words << 2; in hwicap_read()
405 if (bytes_to_read > PAGE_SIZE) in hwicap_read()
406 bytes_to_read = PAGE_SIZE; in hwicap_read()
409 bytes_remaining = bytes_to_read & 3; in hwicap_read()
410 bytes_to_read &= ~3; in hwicap_read()
411 words = bytes_to_read >> 2; in hwicap_read()
423 if (copy_to_user(buf, kbuf, bytes_to_read)) { in hwicap_read()
434 status = bytes_to_read; in hwicap_read()