Lines Matching refs:bytes_to_read
330 ssize_t bytes_to_read = 0; in hwicap_read() local
344 bytes_to_read = in hwicap_read()
349 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { in hwicap_read()
353 drvdata->read_buffer_in_use -= bytes_to_read; in hwicap_read()
355 drvdata->read_buffer + bytes_to_read, in hwicap_read()
356 4 - bytes_to_read); in hwicap_read()
374 bytes_to_read = words << 2; in hwicap_read()
376 if (bytes_to_read > PAGE_SIZE) in hwicap_read()
377 bytes_to_read = PAGE_SIZE; in hwicap_read()
380 bytes_remaining = bytes_to_read & 3; in hwicap_read()
381 bytes_to_read &= ~3; in hwicap_read()
382 words = bytes_to_read >> 2; in hwicap_read()
394 if (copy_to_user(buf, kbuf, bytes_to_read)) { in hwicap_read()
405 status = bytes_to_read; in hwicap_read()