/linux-6.1.9/drivers/char/xilinx_hwicap/ |
D | xilinx_hwicap.c | 359 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 …]
|
/linux-6.1.9/drivers/media/pci/saa7164/ |
D | saa7164-bus.c | 309 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-6.1.9/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_console.c | 761 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()
|
/linux-6.1.9/drivers/net/wwan/iosm/ |
D | iosm_ipc_coredump.c | 21 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()
|
D | iosm_ipc_imem_ops.h | 133 u32 bytes_to_read, u32 *bytes_read);
|
D | iosm_ipc_imem_ops.c | 626 u32 bytes_to_read, u32 *bytes_read) in ipc_imem_sys_devlink_read() argument 643 if (bytes_to_read < skb->len) { in ipc_imem_sys_devlink_read()
|
/linux-6.1.9/drivers/iio/common/st_sensors/ |
D | st_sensors_buffer.c | 30 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-6.1.9/drivers/spi/ |
D | spi-cadence-quadspi.c | 671 unsigned int bytes_to_read = 0; in cqspi_indirect_read_execute() local 710 bytes_to_read = cqspi_get_rd_sram_level(cqspi); in cqspi_indirect_read_execute() 712 if (ret && bytes_to_read == 0) { in cqspi_indirect_read_execute() 717 while (bytes_to_read != 0) { in cqspi_indirect_read_execute() 720 bytes_to_read *= cqspi->fifo_width; in cqspi_indirect_read_execute() 721 bytes_to_read = bytes_to_read > remaining ? in cqspi_indirect_read_execute() 722 remaining : bytes_to_read; in cqspi_indirect_read_execute() 723 bytes_to_read = round_down(bytes_to_read, 4); in cqspi_indirect_read_execute() 725 if (bytes_to_read) { in cqspi_indirect_read_execute() 727 (bytes_to_read / 4)); in cqspi_indirect_read_execute() [all …]
|
D | spi-qcom-qspi.c | 335 unsigned int bytes_to_read; in pio_read() local 352 bytes_to_read = wr_cnts % QSPI_BYTES_PER_WORD; in pio_read() 361 if (bytes_to_read) { in pio_read() 364 ctrl->xfer.rem_bytes -= bytes_to_read; in pio_read() 365 for (i = 0; i < bytes_to_read; i++) in pio_read()
|
D | spi-geni-qcom.c | 708 unsigned int bytes_to_read; in geni_spi_handle_rx() local 711 bytes_to_read = min(bytes_per_fifo_word, rx_bytes - i); in geni_spi_handle_rx() 713 for (j = 0; j < bytes_to_read; j++) in geni_spi_handle_rx()
|
/linux-6.1.9/drivers/usb/misc/ |
D | legousbtower.c | 495 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()
|
D | ldusb.c | 441 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() 497 retval = bytes_to_read; in ld_usb_read()
|
D | adutux.c | 348 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-6.1.9/drivers/i2c/busses/ |
D | i2c-bcm-kona.c | 319 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()
|
D | i2c-fsi.c | 298 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()
|
/linux-6.1.9/drivers/staging/pi433/ |
D | pi433_if.c | 411 int bytes_to_read, bytes_total; in pi433_receive() local 522 bytes_to_read = dev->rx_bytes_to_drop - in pi433_receive() 525 bytes_to_read = bytes_total - dev->rx_position; in pi433_receive() 528 if (bytes_to_read > FIFO_SIZE - dev->free_in_fifo) in pi433_receive() 529 bytes_to_read = FIFO_SIZE - dev->free_in_fifo; in pi433_receive() 532 bytes_to_read); in pi433_receive() 536 dev->free_in_fifo += bytes_to_read; in pi433_receive() 540 dev->rx_bytes_dropped += bytes_to_read; in pi433_receive() 542 dev->rx_position += bytes_to_read; in pi433_receive()
|
/linux-6.1.9/drivers/char/pcmcia/ |
D | cm4040_cs.c | 220 size_t bytes_to_read; in cm4040_read() local 260 bytes_to_read = 5 + le32_to_cpu(*(__le32 *)&dev->r_buf[1]); 262 DEBUGP(6, dev, "BytesToRead=%zu\n", bytes_to_read); 264 min_bytes_to_read = min(count, bytes_to_read + 5);
|
/linux-6.1.9/fs/hfs/ |
D | bnode.c | 23 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-6.1.9/drivers/gpu/drm/sprd/ |
D | sprd_dsi.c | 679 u8 *buffer, u8 bytes_to_read) in sprd_dsi_rd_pkt() argument 714 if (count < bytes_to_read) in sprd_dsi_rd_pkt() 716 if (count < bytes_to_read) in sprd_dsi_rd_pkt() 718 if (count < bytes_to_read) in sprd_dsi_rd_pkt() 720 if (count < bytes_to_read) in sprd_dsi_rd_pkt()
|
/linux-6.1.9/drivers/scsi/mpt3sas/ |
D | mpt3sas_ctl.h | 432 uint32_t bytes_to_read; member
|
D | mpt3sas_ctl.c | 2369 if ((karg.starting_offset % 4) || (karg.bytes_to_read % 4)) { in _ctl_diag_read_buffer() 2382 karg.bytes_to_read)); in _ctl_diag_read_buffer() 2385 if ((diag_data + karg.bytes_to_read < diag_data) || in _ctl_diag_read_buffer() 2386 (diag_data + karg.bytes_to_read > request_data + request_size)) in _ctl_diag_read_buffer() 2389 copy_size = karg.bytes_to_read; in _ctl_diag_read_buffer()
|
/linux-6.1.9/fs/jfs/ |
D | xattr.c | 361 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-6.1.9/sound/pci/asihpi/ |
D | hpi.h | 1285 u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_read_buf, u32 bytes_to_read);
|
D | hpifunc.c | 922 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()
|