/linux-4.4.14/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 …]
|
/linux-4.4.14/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()
|
/linux-4.4.14/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() 464 bus->m_pdwGetRing, bytes_to_read - in saa7164_bus_get()
|
/linux-4.4.14/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()
|
/linux-4.4.14/drivers/usb/misc/ |
D | legousbtower.c | 550 size_t bytes_to_read; in tower_read() local 606 bytes_to_read = min(count, dev->read_packet_length); in tower_read() 608 if (copy_to_user (buffer, dev->read_buffer, bytes_to_read)) { in tower_read() 614 dev->read_buffer_length -= bytes_to_read; in tower_read() 615 dev->read_packet_length -= bytes_to_read; in tower_read() 617 dev->read_buffer[i] = dev->read_buffer[i+bytes_to_read]; in tower_read() 621 retval = bytes_to_read; in tower_read()
|
D | ldusb.c | 446 size_t bytes_to_read; in ld_usb_read() local 487 bytes_to_read = min(count, *actual_buffer); in ld_usb_read() 488 if (bytes_to_read < *actual_buffer) in ld_usb_read() 490 *actual_buffer-bytes_to_read); in ld_usb_read() 493 if (copy_to_user(buffer, actual_buffer+1, bytes_to_read)) { in ld_usb_read() 499 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()
|
/linux-4.4.14/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()
|
/linux-4.4.14/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);
|
/linux-4.4.14/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.h | 418 uint32_t bytes_to_read; member
|
D | mpt3sas_ctl.c | 2021 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer() 2035 diag_data, karg.starting_offset, karg.bytes_to_read)); in _ctl_diag_read_buffer() 2038 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer() 2039 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer() 2042 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
|
/linux-4.4.14/fs/jfs/ |
D | xattr.c | 376 s32 bytes_to_read; in ea_read() local 407 bytes_to_read = in ea_read() 411 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) in ea_read()
|
/linux-4.4.14/sound/pci/asihpi/ |
D | hpi.h | 1296 u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_read_buf, u32 bytes_to_read);
|
D | hpifunc.c | 921 u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_data, u32 bytes_to_read) in hpi_instream_read_buf() argument 930 hm.u.d.u.data.data_size = bytes_to_read; in hpi_instream_read_buf()
|