Searched refs:bytes_to_read (Results 1 – 11 of 11) 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 | 323 u32 bytes_to_read, write_distance, curr_grp, curr_gwp, in saa7164_bus_get() local 359 bytes_to_read = sizeof(*msg); in saa7164_bus_get() 370 if (bytes_to_read > write_distance) { in saa7164_bus_get() 377 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get() 386 bytes_to_read - space_rem); in saa7164_bus_get() 390 memcpy_fromio(&msg_tmp, bus->m_pdwGetRing + curr_grp, bytes_to_read); in saa7164_bus_get() 419 bytes_to_read = sizeof(*msg) + msg->size; in saa7164_bus_get() 429 if (bytes_to_read > write_distance) { in saa7164_bus_get() 437 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get() 458 bus->m_pdwGetRing, bytes_to_read - in saa7164_bus_get()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_console.c | 681 int bytes_to_read; in octeon_console_read() local 701 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read() 703 if (bytes_to_read <= 0) in octeon_console_read() 704 return bytes_to_read; in octeon_console_read() 706 bytes_to_read = MIN(bytes_to_read, (s32)buf_size); in octeon_console_read() 711 if (rd_idx + bytes_to_read >= console->buffer_size) in octeon_console_read() 712 bytes_to_read = console->buffer_size - rd_idx; in octeon_console_read() 715 buffer, bytes_to_read); in octeon_console_read() 719 (rd_idx + bytes_to_read) % in octeon_console_read() 722 return bytes_to_read; in octeon_console_read()
|
/drivers/hv/ |
D | connection.c | 321 u32 bytes_to_read; in process_chn_event() local 361 bytes_to_read = hv_end_read(&channel->inbound); in process_chn_event() 363 bytes_to_read = 0; in process_chn_event() 364 } while (read_state && (bytes_to_read != 0)); in process_chn_event()
|
/drivers/usb/misc/ |
D | legousbtower.c | 544 size_t bytes_to_read; in tower_read() local 600 bytes_to_read = min(count, dev->read_packet_length); in tower_read() 602 if (copy_to_user (buffer, dev->read_buffer, bytes_to_read)) { in tower_read() 608 dev->read_buffer_length -= bytes_to_read; in tower_read() 609 dev->read_packet_length -= bytes_to_read; in tower_read() 611 dev->read_buffer[i] = dev->read_buffer[i+bytes_to_read]; in tower_read() 615 retval = bytes_to_read; in tower_read()
|
D | ldusb.c | 446 size_t bytes_to_read; in ld_usb_read() local 492 bytes_to_read = min(count, *actual_buffer); in ld_usb_read() 493 if (bytes_to_read < *actual_buffer) in ld_usb_read() 495 *actual_buffer-bytes_to_read); in ld_usb_read() 498 if (copy_to_user(buffer, actual_buffer+1, bytes_to_read)) { in ld_usb_read() 502 retval = bytes_to_read; in ld_usb_read()
|
D | adutux.c | 349 size_t bytes_to_read = count; in adu_read() local 377 while (bytes_to_read) { in adu_read() 386 int amount = bytes_to_read < data_in_secondary ? bytes_to_read : data_in_secondary; in adu_read() 394 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 | 418 uint32_t bytes_to_read; member
|
D | mpt3sas_ctl.c | 2022 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer() 2036 diag_data, karg.starting_offset, karg.bytes_to_read)); in _ctl_diag_read_buffer() 2039 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer() 2040 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer() 2043 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
|