Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/char/xilinx_hwicap/
H A Dxilinx_hwicap.c361 ssize_t bytes_to_read = 0; in hwicap_read() local
375 bytes_to_read = in hwicap_read()
386 drvdata->read_buffer + bytes_to_read, in hwicap_read()
387 4 - bytes_to_read); in hwicap_read()
405 bytes_to_read = words << 2; in hwicap_read()
407 if (bytes_to_read > PAGE_SIZE) in hwicap_read()
408 bytes_to_read = PAGE_SIZE; in hwicap_read()
411 bytes_remaining = bytes_to_read & 3; in hwicap_read()
412 bytes_to_read &= ~3; in hwicap_read()
413 words = bytes_to_read >> 2; in hwicap_read()
[all …]
/openbmc/u-boot/drivers/spi/
H A Dcadence_qspi_apb.c629 unsigned int bytes_to_read = 0; in cadence_qspi_apb_indirect_read_execute() local
645 bytes_to_read = ret; in cadence_qspi_apb_indirect_read_execute()
647 while (bytes_to_read != 0) { in cadence_qspi_apb_indirect_read_execute()
648 bytes_to_read *= plat->fifo_width; in cadence_qspi_apb_indirect_read_execute()
649 bytes_to_read = bytes_to_read > remaining ? in cadence_qspi_apb_indirect_read_execute()
650 remaining : bytes_to_read; in cadence_qspi_apb_indirect_read_execute()
655 if (((uintptr_t)rxbuf % 4) || (bytes_to_read % 4)) in cadence_qspi_apb_indirect_read_execute()
656 readsb(plat->ahbbase, rxbuf, bytes_to_read); in cadence_qspi_apb_indirect_read_execute()
659 bytes_to_read >> 2); in cadence_qspi_apb_indirect_read_execute()
660 rxbuf += bytes_to_read; in cadence_qspi_apb_indirect_read_execute()
[all …]
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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()
/openbmc/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 Dldusb.c441 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()
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()
/openbmc/linux/drivers/spi/
H A Dspi-cadence-quadspi.c703 unsigned int bytes_to_read = 0; in cqspi_indirect_read_execute() local
749 while (bytes_to_read != 0) { in cqspi_indirect_read_execute()
753 bytes_to_read = bytes_to_read > remaining ? in cqspi_indirect_read_execute()
754 remaining : bytes_to_read; in cqspi_indirect_read_execute()
755 bytes_to_read = round_down(bytes_to_read, 4); in cqspi_indirect_read_execute()
757 if (bytes_to_read) { in cqspi_indirect_read_execute()
759 (bytes_to_read / 4)); in cqspi_indirect_read_execute()
763 bytes_to_read = mod_bytes; in cqspi_indirect_read_execute()
766 bytes_to_read)); in cqspi_indirect_read_execute()
768 rxbuf += bytes_to_read; 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.c814 unsigned int bytes_to_read; in geni_spi_handle_rx() local
817 bytes_to_read = min(bytes_per_fifo_word, rx_bytes - i); in geni_spi_handle_rx()
819 for (j = 0; j < bytes_to_read; j++) in geni_spi_handle_rx()
/openbmc/u-boot/drivers/i2c/
H A Dkona_i2c.c304 unsigned int bytes_to_read = MAX_RX_FIFO_SIZE; in bcm_kona_i2c_read_fifo() local
314 bytes_to_read = msg->len - bytes_read; in bcm_kona_i2c_read_fifo()
317 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo()
322 bytes_read += bytes_to_read; in bcm_kona_i2c_read_fifo()
323 tmp_buf += bytes_to_read; in bcm_kona_i2c_read_fifo()
/openbmc/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()
/openbmc/linux/drivers/staging/pi433/
H A Dpi433_if.c411 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()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_ctl.h432 uint32_t bytes_to_read; member
/openbmc/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()
/openbmc/phosphor-host-ipmid/
H A Dsensorhandler.cpp1245 dataLength = std::min(static_cast<size_t>(req->bytes_to_read), in ipmi_fru_get_sdr()
1318 dataLength = std::min(static_cast<size_t>(req->bytes_to_read), in ipmi_entity_get_sdr()
1426 *data_len = std::min(static_cast<size_t>(req->bytes_to_read), in ipmi_sen_get_sdr()
H A Dsensorhandler.hpp132 uint8_t bytes_to_read; member

12