Searched refs:bytes_to_read (Results 1 – 11 of 11) sorted by relevance
/linux-3.4.99/drivers/char/xilinx_hwicap/ |
D | xilinx_hwicap.c | 329 ssize_t bytes_to_read = 0; in hwicap_read() local 343 bytes_to_read = in hwicap_read() 348 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { in hwicap_read() 352 drvdata->read_buffer_in_use -= bytes_to_read; in hwicap_read() 354 drvdata->read_buffer + bytes_to_read, in hwicap_read() 355 4 - bytes_to_read); in hwicap_read() 373 bytes_to_read = words << 2; in hwicap_read() 375 if (bytes_to_read > PAGE_SIZE) in hwicap_read() 376 bytes_to_read = PAGE_SIZE; in hwicap_read() 379 bytes_remaining = bytes_to_read & 3; in hwicap_read() [all …]
|
/linux-3.4.99/drivers/media/video/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()
|
/linux-3.4.99/drivers/usb/misc/ |
D | legousbtower.c | 593 size_t bytes_to_read; in tower_read() local 651 bytes_to_read = min(count, dev->read_packet_length); in tower_read() 653 if (copy_to_user (buffer, dev->read_buffer, bytes_to_read)) { in tower_read() 659 dev->read_buffer_length -= bytes_to_read; in tower_read() 660 dev->read_packet_length -= bytes_to_read; in tower_read() 662 dev->read_buffer[i] = dev->read_buffer[i+bytes_to_read]; in tower_read() 666 retval = bytes_to_read; in tower_read()
|
D | ldusb.c | 469 size_t bytes_to_read; in ld_usb_read() local 510 bytes_to_read = min(count, *actual_buffer); in ld_usb_read() 511 if (bytes_to_read < *actual_buffer) in ld_usb_read() 513 *actual_buffer-bytes_to_read); in ld_usb_read() 516 if (copy_to_user(buffer, actual_buffer+1, bytes_to_read)) { in ld_usb_read() 522 retval = bytes_to_read; in ld_usb_read()
|
D | adutux.c | 400 size_t bytes_to_read = count; in adu_read() local 432 while (bytes_to_read) { in adu_read() 440 int amount = bytes_to_read < data_in_secondary ? bytes_to_read : data_in_secondary; in adu_read() 448 bytes_to_read -= (amount - i); in adu_read()
|
/linux-3.4.99/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-3.4.99/drivers/scsi/mpt2sas/ |
D | mpt2sas_ctl.h | 413 uint32_t bytes_to_read; member
|
D | mpt2sas_ctl.c | 2014 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer() 2027 diag_data, karg.starting_offset, karg.bytes_to_read)); in _ctl_diag_read_buffer() 2030 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer() 2031 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer() 2034 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
|
/linux-3.4.99/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-3.4.99/sound/pci/asihpi/ |
D | hpi.h | 1288 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()
|