Home
last modified time | relevance | path

Searched refs:bytes_to_read (Results 1 – 21 of 21) sorted by relevance

/linux/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c356 ssize_t bytes_to_read = 0; in hwicap_read() local
370 bytes_to_read = in hwicap_read()
375 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { in hwicap_read()
379 drvdata->read_buffer_in_use -= bytes_to_read; in hwicap_read()
381 drvdata->read_buffer + bytes_to_read, in hwicap_read()
382 4 - bytes_to_read); in hwicap_read()
400 bytes_to_read = words << 2; in hwicap_read()
402 if (bytes_to_read > PAGE_SIZE) in hwicap_read()
403 bytes_to_read = PAGE_SIZE; in hwicap_read()
406 bytes_remaining = bytes_to_read & 3; in hwicap_read()
[all …]
/linux/drivers/media/pci/saa7164/
H A Dsaa7164-bus.c309 u32 bytes_to_read, write_distance, curr_grp, curr_gwp, in saa7164_bus_get() local
345 bytes_to_read = sizeof(*msg); in saa7164_bus_get()
356 if (bytes_to_read > write_distance) { in saa7164_bus_get()
363 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get()
372 bytes_to_read - space_rem); in saa7164_bus_get()
376 memcpy_fromio(&msg_tmp, bus->m_pdwGetRing + curr_grp, bytes_to_read); in saa7164_bus_get()
405 bytes_to_read = sizeof(*msg) + msg->size; in saa7164_bus_get()
415 if (bytes_to_read > write_distance) { in saa7164_bus_get()
423 new_grp = curr_grp + bytes_to_read; in saa7164_bus_get()
444 bus->m_pdwGetRing, bytes_to_read - in saa7164_bus_get()
/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_console.c760 int bytes_to_read; in octeon_console_read() local
780 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read()
782 if (bytes_to_read <= 0) in octeon_console_read()
783 return bytes_to_read; in octeon_console_read()
785 bytes_to_read = min_t(s32, bytes_to_read, buf_size); in octeon_console_read()
790 if (rd_idx + bytes_to_read >= console->buffer_size) in octeon_console_read()
791 bytes_to_read = console->buffer_size - rd_idx; in octeon_console_read()
794 (u8 *)buffer, bytes_to_read); in octeon_console_read()
798 (rd_idx + bytes_to_read) % in octeon_console_read()
801 return bytes_to_read; in octeon_console_read()
/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_coredump.c21 int ret, bytes_to_read, bytes_read = 0, i = 0; in ipc_coredump_collect() local
36 bytes_to_read = min(remaining, MAX_DATA_SIZE); in ipc_coredump_collect()
39 bytes_to_read, &bytes_read); in ipc_coredump_collect()
H A Diosm_ipc_imem_ops.h135 u32 bytes_to_read, u32 *bytes_read);
H A Diosm_ipc_imem_ops.c630 u32 bytes_to_read, u32 *bytes_read) in ipc_imem_sys_devlink_read() argument
647 if (bytes_to_read < skb->len) { in ipc_imem_sys_devlink_read()
/linux/drivers/iio/common/st_sensors/
H A Dst_sensors_buffer.c30 unsigned int bytes_to_read = in st_sensors_get_buffer_element() local
38 buf, bytes_to_read) < 0) in st_sensors_get_buffer_element()
/linux/drivers/usb/misc/
H A Dlegousbtower.c495 size_t bytes_to_read; in tower_read() local
548 bytes_to_read = min(count, dev->read_packet_length); in tower_read()
550 if (copy_to_user(buffer, dev->read_buffer, bytes_to_read)) { in tower_read()
556 dev->read_buffer_length -= bytes_to_read; in tower_read()
557 dev->read_packet_length -= bytes_to_read; in tower_read()
559 dev->read_buffer[i] = dev->read_buffer[i+bytes_to_read]; in tower_read()
562 retval = bytes_to_read; in tower_read()
H A Dadutux.c348 size_t bytes_to_read = count; in adu_read() local
375 while (bytes_to_read) { in adu_read()
384 size_t amount = min(bytes_to_read, data_in_secondary); in adu_read()
391 bytes_to_read -= amount; in adu_read()
/linux/drivers/spi/
H A Dspi-cadence-quadspi.c727 unsigned int bytes_to_read = 0; in cqspi_indirect_read_execute() local
769 bytes_to_read = cqspi_get_rd_sram_level(cqspi); in cqspi_indirect_read_execute()
771 if (ret && bytes_to_read == 0) { in cqspi_indirect_read_execute()
776 while (bytes_to_read != 0) { in cqspi_indirect_read_execute()
779 bytes_to_read *= cqspi->fifo_width; in cqspi_indirect_read_execute()
780 bytes_to_read = bytes_to_read > remaining ? in cqspi_indirect_read_execute()
781 remaining : bytes_to_read; in cqspi_indirect_read_execute()
782 bytes_to_read = round_down(bytes_to_read, 4); in cqspi_indirect_read_execute()
784 if (bytes_to_read) { in cqspi_indirect_read_execute()
786 (bytes_to_read / 4)); in cqspi_indirect_read_execute()
[all …]
H A Dspi-qcom-qspi.c529 unsigned int bytes_to_read; in pio_read() local
546 bytes_to_read = wr_cnts % QSPI_BYTES_PER_WORD; in pio_read()
555 if (bytes_to_read) { in pio_read()
558 ctrl->xfer.rem_bytes -= bytes_to_read; in pio_read()
559 for (i = 0; i < bytes_to_read; i++) in pio_read()
H A Dspi-geni-qcom.c822 unsigned int bytes_to_read; in geni_spi_handle_rx() local
825 bytes_to_read = min(bytes_per_fifo_word, rx_bytes - i); in geni_spi_handle_rx()
827 for (j = 0; j < bytes_to_read; j++) in geni_spi_handle_rx()
/linux/drivers/i2c/busses/
H A Di2c-fsi.c298 int bytes_to_read; in fsi_i2c_read_fifo() local
302 bytes_to_read = min_t(int, fifo_count, xfr_remaining); in fsi_i2c_read_fifo()
304 while (bytes_to_read) { in fsi_i2c_read_fifo()
305 read = fsi_i2c_get_op_bytes(bytes_to_read); in fsi_i2c_read_fifo()
323 bytes_to_read -= read; in fsi_i2c_read_fifo()
H A Di2c-bcm-kona.c319 unsigned int bytes_to_read = MAX_RX_FIFO_SIZE; in bcm_kona_i2c_read_fifo() local
329 bytes_to_read = msg->len - bytes_read; in bcm_kona_i2c_read_fifo()
332 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo()
337 bytes_read += bytes_to_read; in bcm_kona_i2c_read_fifo()
338 tmp_buf += bytes_to_read; in bcm_kona_i2c_read_fifo()
H A Di2c-xiic.c546 u8 bytes_in_fifo, cr = 0, bytes_to_read = 0; in xiic_read_rx() local
561 bytes_to_read = bytes_in_fifo; in xiic_read_rx()
573 bytes_to_read = bytes_in_fifo; in xiic_read_rx()
575 bytes_to_read = bytes_rem - 1; in xiic_read_rx()
577 bytes_to_read = 1; in xiic_read_rx()
583 bytes_to_read = bytes_in_fifo; in xiic_read_rx()
600 for (i = 0; i < bytes_to_read; i++) { in xiic_read_rx()
/linux/fs/hfs/
H A Dbnode.c23 int bytes_to_read; in hfs_bnode_read() local
29 for (bytes_read = 0; bytes_read < len; bytes_read += bytes_to_read) { in hfs_bnode_read()
33 bytes_to_read = min_t(int, len - bytes_read, PAGE_SIZE - off); in hfs_bnode_read()
35 memcpy_from_page(buf + bytes_read, page, off, bytes_to_read); in hfs_bnode_read()
/linux/drivers/gpu/drm/sprd/
H A Dsprd_dsi.c676 u8 *buffer, u8 bytes_to_read) in sprd_dsi_rd_pkt() argument
711 if (count < bytes_to_read) in sprd_dsi_rd_pkt()
713 if (count < bytes_to_read) in sprd_dsi_rd_pkt()
715 if (count < bytes_to_read) in sprd_dsi_rd_pkt()
717 if (count < bytes_to_read) in sprd_dsi_rd_pkt()
/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_ctl.h434 uint32_t bytes_to_read; member
/linux/fs/jfs/
H A Dxattr.c361 s32 bytes_to_read; in ea_read() local
392 bytes_to_read = in ea_read()
396 if (!(mp = read_metapage(ip, blkno + i, bytes_to_read, 1))) in ea_read()
/linux/sound/pci/asihpi/
H A Dhpi.h1272 u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_read_buf, u32 bytes_to_read);
H A Dhpifunc.c922 u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_data, u32 bytes_to_read) in hpi_instream_read_buf() argument
931 hm.u.d.u.data.data_size = bytes_to_read; in hpi_instream_read_buf()