Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/char/xilinx_hwicap/
Dxilinx_hwicap.c359 ssize_t bytes_to_read = 0; in hwicap_read() local
373 bytes_to_read = in hwicap_read()
378 if (copy_to_user(buf, drvdata->read_buffer, bytes_to_read)) { in hwicap_read()
382 drvdata->read_buffer_in_use -= bytes_to_read; in hwicap_read()
384 drvdata->read_buffer + bytes_to_read, in hwicap_read()
385 4 - bytes_to_read); in hwicap_read()
403 bytes_to_read = words << 2; in hwicap_read()
405 if (bytes_to_read > PAGE_SIZE) in hwicap_read()
406 bytes_to_read = PAGE_SIZE; in hwicap_read()
409 bytes_remaining = bytes_to_read & 3; in hwicap_read()
[all …]
/kernel/linux/linux-5.10/drivers/media/pci/saa7164/
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()
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/liquidio/
Docteon_console.c761 int bytes_to_read; in octeon_console_read() local
781 bytes_to_read = octeon_console_avail_bytes(console->buffer_size, in octeon_console_read()
783 if (bytes_to_read <= 0) in octeon_console_read()
784 return bytes_to_read; in octeon_console_read()
786 bytes_to_read = min_t(s32, bytes_to_read, buf_size); in octeon_console_read()
791 if (rd_idx + bytes_to_read >= console->buffer_size) in octeon_console_read()
792 bytes_to_read = console->buffer_size - rd_idx; in octeon_console_read()
795 (u8 *)buffer, bytes_to_read); in octeon_console_read()
799 (rd_idx + bytes_to_read) % in octeon_console_read()
802 return bytes_to_read; in octeon_console_read()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-cadence-quadspi.c490 unsigned int bytes_to_read = 0; in cqspi_indirect_read_execute() local
511 bytes_to_read = cqspi_get_rd_sram_level(cqspi); in cqspi_indirect_read_execute()
513 if (ret && bytes_to_read == 0) { in cqspi_indirect_read_execute()
518 while (bytes_to_read != 0) { in cqspi_indirect_read_execute()
521 bytes_to_read *= cqspi->fifo_width; in cqspi_indirect_read_execute()
522 bytes_to_read = bytes_to_read > remaining ? in cqspi_indirect_read_execute()
523 remaining : bytes_to_read; in cqspi_indirect_read_execute()
524 bytes_to_read = round_down(bytes_to_read, 4); in cqspi_indirect_read_execute()
526 if (bytes_to_read) { in cqspi_indirect_read_execute()
528 (bytes_to_read / 4)); in cqspi_indirect_read_execute()
[all …]
Dspi-qcom-qspi.c336 unsigned int bytes_to_read; in pio_read() local
353 bytes_to_read = wr_cnts % QSPI_BYTES_PER_WORD; in pio_read()
362 if (bytes_to_read) { in pio_read()
365 ctrl->xfer.rem_bytes -= bytes_to_read; in pio_read()
366 for (i = 0; i < bytes_to_read; i++) in pio_read()
Dspi-geni-qcom.c472 unsigned int bytes_to_read; in geni_spi_handle_rx() local
475 bytes_to_read = min(bytes_per_fifo_word, rx_bytes - i); in geni_spi_handle_rx()
477 for (j = 0; j < bytes_to_read; j++) in geni_spi_handle_rx()
/kernel/linux/linux-5.10/drivers/iio/common/st_sensors/
Dst_sensors_buffer.c33 unsigned int bytes_to_read = in st_sensors_get_buffer_element() local
41 buf, bytes_to_read) < 0) in st_sensors_get_buffer_element()
/kernel/linux/linux-5.10/drivers/usb/misc/
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()
Dldusb.c442 size_t bytes_to_read; in ld_usb_read() local
488 bytes_to_read = min(count, *actual_buffer); in ld_usb_read()
489 if (bytes_to_read < *actual_buffer) in ld_usb_read()
491 *actual_buffer-bytes_to_read); in ld_usb_read()
494 if (copy_to_user(buffer, actual_buffer+1, bytes_to_read)) { in ld_usb_read()
498 retval = bytes_to_read; in ld_usb_read()
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()
/kernel/linux/linux-5.10/drivers/staging/pi433/
Dpi433_if.c408 int bytes_to_read, bytes_total; in pi433_receive() local
519 bytes_to_read = dev->rx_bytes_to_drop - in pi433_receive()
522 bytes_to_read = bytes_total - dev->rx_position; in pi433_receive()
525 if (bytes_to_read > FIFO_SIZE - dev->free_in_fifo) in pi433_receive()
526 bytes_to_read = FIFO_SIZE - dev->free_in_fifo; in pi433_receive()
529 bytes_to_read); in pi433_receive()
533 dev->free_in_fifo += bytes_to_read; in pi433_receive()
537 dev->rx_bytes_dropped += bytes_to_read; in pi433_receive()
539 dev->rx_position += bytes_to_read; in pi433_receive()
/kernel/linux/linux-5.10/drivers/i2c/busses/
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()
Di2c-bcm-kona.c329 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()
/kernel/linux/linux-5.10/drivers/char/pcmcia/
Dcm4040_cs.c220 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);
/kernel/linux/linux-5.10/fs/hfs/
Dbnode.c23 int bytes_to_read; in hfs_bnode_read() local
30 for (bytes_read = 0; bytes_read < len; bytes_read += bytes_to_read) { in hfs_bnode_read()
34 bytes_to_read = min_t(int, len - bytes_read, PAGE_SIZE - off); in hfs_bnode_read()
37 memcpy(buf + bytes_read, vaddr + off, bytes_to_read); in hfs_bnode_read()
/kernel/linux/linux-5.10/drivers/scsi/mpt3sas/
Dmpt3sas_ctl.h428 uint32_t bytes_to_read; member
Dmpt3sas_ctl.c2349 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer()
2362 karg.bytes_to_read)); in _ctl_diag_read_buffer()
2365 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer()
2366 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer()
2369 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
/kernel/linux/linux-5.10/fs/jfs/
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()
/kernel/linux/linux-5.10/sound/pci/asihpi/
Dhpi.h1285 u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_read_buf, u32 bytes_to_read);
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()
/kernel/linux/patches/linux-4.19/hispark_taurus_patch/
Dhispark_taurus.patch341869 "mlx4_get_module_info i(%d) offset(%d) bytes_to_read(%d) - FAILED (0x%x)\n",