Searched refs:bytes_to_read (Results 1 – 12 of 12) sorted by relevance
/drivers/char/xilinx_hwicap/ |
D | xilinx_hwicap.c | 355 ssize_t bytes_to_read = 0; in hwicap_read() local 369 bytes_to_read = in hwicap_read() 374 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { in hwicap_read() 378 drvdata->read_buffer_in_use -= bytes_to_read; in hwicap_read() 380 drvdata->read_buffer + bytes_to_read, in hwicap_read() 381 4 - bytes_to_read); in hwicap_read() 399 bytes_to_read = words << 2; in hwicap_read() 401 if (bytes_to_read > PAGE_SIZE) in hwicap_read() 402 bytes_to_read = PAGE_SIZE; in hwicap_read() 405 bytes_remaining = bytes_to_read & 3; in hwicap_read() [all …]
|
/drivers/media/pci/saa7164/ |
D | saa7164-bus.c | 311 u32 bytes_to_read, write_distance, curr_grp, curr_gwp, in saa7164_bus_get() local 347 bytes_to_read = sizeof(*msg); in saa7164_bus_get() 358 if (bytes_to_read > write_distance) { in saa7164_bus_get() 365 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get() 374 bytes_to_read - space_rem); in saa7164_bus_get() 378 memcpy(&msg_tmp, bus->m_pdwGetRing + curr_grp, bytes_to_read); in saa7164_bus_get() 403 bytes_to_read = sizeof(*msg) + msg->size; in saa7164_bus_get() 413 if (bytes_to_read > write_distance) { in saa7164_bus_get() 421 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get() 448 bus->m_pdwGetRing, bytes_to_read - in saa7164_bus_get()
|
/drivers/hv/ |
D | connection.c | 304 u32 bytes_to_read; in process_chn_event() local 346 bytes_to_read = hv_end_read(&channel->inbound); in process_chn_event() 348 bytes_to_read = 0; in process_chn_event() 349 } while (read_state && (bytes_to_read != 0)); in process_chn_event()
|
/drivers/usb/misc/ |
D | legousbtower.c | 558 size_t bytes_to_read; in tower_read() local 614 bytes_to_read = min(count, dev->read_packet_length); in tower_read() 616 if (copy_to_user (buffer, dev->read_buffer, bytes_to_read)) { in tower_read() 622 dev->read_buffer_length -= bytes_to_read; in tower_read() 623 dev->read_packet_length -= bytes_to_read; in tower_read() 625 dev->read_buffer[i] = dev->read_buffer[i+bytes_to_read]; in tower_read() 629 retval = bytes_to_read; in tower_read()
|
D | ldusb.c | 456 size_t bytes_to_read; in ld_usb_read() local 497 bytes_to_read = min(count, *actual_buffer); in ld_usb_read() 498 if (bytes_to_read < *actual_buffer) in ld_usb_read() 500 *actual_buffer-bytes_to_read); in ld_usb_read() 503 if (copy_to_user(buffer, actual_buffer+1, bytes_to_read)) { in ld_usb_read() 509 retval = bytes_to_read; in ld_usb_read()
|
D | adutux.c | 346 size_t bytes_to_read = count; in adu_read() local 374 while (bytes_to_read) { in adu_read() 383 int amount = bytes_to_read < data_in_secondary ? bytes_to_read : data_in_secondary; in adu_read() 391 bytes_to_read -= (amount - i); in adu_read()
|
/drivers/i2c/busses/ |
D | i2c-bcm-kona.c | 329 unsigned int bytes_to_read = MAX_RX_FIFO_SIZE; in bcm_kona_i2c_read_fifo() local 339 bytes_to_read = msg->len - bytes_read; in bcm_kona_i2c_read_fifo() 342 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo() 347 bytes_read += bytes_to_read; in bcm_kona_i2c_read_fifo() 348 tmp_buf += bytes_to_read; in bcm_kona_i2c_read_fifo()
|
/drivers/char/pcmcia/ |
D | cm4040_cs.c | 220 size_t bytes_to_read; in cm4040_read() local 261 bytes_to_read = 5 + le32_to_cpu(*(__le32 *)&dev->r_buf[1]); 263 DEBUGP(6, dev, "BytesToRead=%zu\n", bytes_to_read); 265 min_bytes_to_read = min(count, bytes_to_read + 5);
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.h | 413 uint32_t bytes_to_read; member
|
D | mpt3sas_ctl.c | 2001 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer() 2015 diag_data, karg.starting_offset, karg.bytes_to_read)); in _ctl_diag_read_buffer() 2018 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer() 2019 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer() 2022 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
|
/drivers/scsi/mpt2sas/ |
D | mpt2sas_ctl.h | 413 uint32_t bytes_to_read; member
|
D | mpt2sas_ctl.c | 1970 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer() 1983 diag_data, karg.starting_offset, karg.bytes_to_read)); in _ctl_diag_read_buffer() 1986 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer() 1987 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer() 1990 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
|