Home
last modified time | relevance | path

Searched refs:xfer_len (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.12.1/drivers/i2c/busses/
Di2c-viai2c-zhaoxin.c49 u16 xfer_len; member
66 priv->xfer_len = min_t(u16, msg->len - i2c->xfered_len, ZXI2C_FIFO_SIZE); in viai2c_fifo_xfer()
68 iowrite8(priv->xfer_len - 1, base + ZXI2C_REG_HRLR); in viai2c_fifo_xfer()
70 iowrite8(priv->xfer_len - 1, base + ZXI2C_REG_HTLR); in viai2c_fifo_xfer()
72 for (i = 0; i < priv->xfer_len; i++) in viai2c_fifo_xfer()
77 if (priv->hrv && msg->len == (i2c->xfered_len + priv->xfer_len)) { in viai2c_fifo_xfer()
103 for (i = 0; i < priv->xfer_len; i++) in viai2c_fifo_irq_xfer()
106 i2c->xfered_len += priv->xfer_len; in viai2c_fifo_irq_xfer()
115 priv->xfer_len = min_t(u16, msg->len - i2c->xfered_len, ZXI2C_FIFO_SIZE); in viai2c_fifo_irq_xfer()
117 iowrite8(priv->xfer_len - 1, base + ZXI2C_REG_HRLR); in viai2c_fifo_irq_xfer()
[all …]
/linux-6.12.1/drivers/gpu/drm/nouveau/nvkm/falcon/
Dbase.c145 int xfer_len; in nvkm_falcon_pio_rd() local
156 xfer_len = min(len, pio->max); in nvkm_falcon_pio_rd()
157 pio->rd(falcon, port, img, xfer_len); in nvkm_falcon_pio_rd()
160 for (img_base = 0; img_base < xfer_len; img_base += 4, mem_base += 4) { in nvkm_falcon_pio_rd()
167 img += xfer_len; in nvkm_falcon_pio_rd()
168 len -= xfer_len; in nvkm_falcon_pio_rd()
180 int xfer_len; in nvkm_falcon_pio_wr() local
191 xfer_len = min(len, pio->max); in nvkm_falcon_pio_wr()
192 pio->wr(falcon, port, img, xfer_len, tag++); in nvkm_falcon_pio_wr()
195 for (img_base = 0; img_base < xfer_len; img_base += 4, mem_base += 4) { in nvkm_falcon_pio_wr()
[all …]
Dga102.c48 ga102_flcn_dma_init(struct nvkm_falcon *falcon, u64 dma_addr, int xfer_len, in ga102_flcn_dma_init() argument
51 *cmd = (ilog2(xfer_len) - 2) << 8; in ga102_flcn_dma_init()
/linux-6.12.1/drivers/staging/greybus/
Dspilib.c170 u32 tx_size = 0, rx_size = 0, count = 0, xfer_len = 0, request_size; in gb_spi_operation_create() local
251 xfer_len = spi->last_xfer_size; in gb_spi_operation_create()
253 xfer_len = xfer->len; in gb_spi_operation_create()
256 xfer_timeout = xfer_len * 8 * MSEC_PER_SEC / xfer->speed_hz; in gb_spi_operation_create()
263 gb_xfer->len = cpu_to_le32(xfer_len); in gb_spi_operation_create()
274 xfer_len); in gb_spi_operation_create()
275 tx_data += xfer_len; in gb_spi_operation_create()
303 u32 xfer_len; in gb_spi_decode_response() local
309 xfer_len = xfer->len - spi->rx_xfer_offset; in gb_spi_decode_response()
311 xfer_len = spi->last_xfer_size; in gb_spi_decode_response()
[all …]
/linux-6.12.1/drivers/spi/
Dspi-mt65xx.c164 u32 xfer_len; member
522 mdata->xfer_len, in mtk_spi_setup_packet()
526 mdata->xfer_len, in mtk_spi_setup_packet()
529 packet_loop = mdata->xfer_len / packet_size; in mtk_spi_setup_packet()
555 static int mtk_spi_get_mult_delta(struct mtk_spi *mdata, u32 xfer_len) in mtk_spi_get_mult_delta() argument
560 if (xfer_len > MTK_SPI_IPM_PACKET_SIZE) in mtk_spi_get_mult_delta()
561 mult_delta = xfer_len % MTK_SPI_IPM_PACKET_SIZE; in mtk_spi_get_mult_delta()
563 if (xfer_len > MTK_SPI_PACKET_SIZE) in mtk_spi_get_mult_delta()
564 mult_delta = xfer_len % MTK_SPI_PACKET_SIZE; in mtk_spi_get_mult_delta()
578 mdata->xfer_len = mdata->rx_sgl_len - mult_delta; in mtk_spi_update_mdata_len()
[all …]
Dspi-xlp.c254 static void xlp_spi_send_cmd(struct xlp_spi_priv *xspi, int xfer_len, in xlp_spi_send_cmd() argument
265 cmd |= ((xfer_len * 8 - 1) << XLP_SPI_XFR_BITCNT_SHIFT); in xlp_spi_send_cmd()
271 unsigned char *rx_buf, int xfer_len, int cmd_cont) in xlp_spi_xfer_block() argument
278 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
279 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
286 xlp_spi_send_cmd(xs, xfer_len, cmd_cont); in xlp_spi_xfer_block()
312 xs->rxerrors, xs->txerrors, xfer_len); in xlp_spi_xfer_block()
314 return xfer_len; in xlp_spi_xfer_block()
Dspi-ti-qspi.c245 int wlen, xfer_len; in qspi_write_msg() local
253 xfer_len = wlen; in qspi_write_msg()
278 xfer_len = QSPI_WLEN_MAX_BYTES; in qspi_write_msg()
283 xfer_len = wlen; in qspi_write_msg()
304 txbuf += xfer_len; in qspi_write_msg()
305 count -= xfer_len; in qspi_write_msg()
491 size_t xfer_len = min_t(size_t, QSPI_DMA_BUFFER_SIZE, in ti_qspi_dma_bounce_buffer() local
495 dma_src, xfer_len); in ti_qspi_dma_bounce_buffer()
498 memcpy(to, qspi->rx_bb_addr, xfer_len); in ti_qspi_dma_bounce_buffer()
499 readsize -= xfer_len; in ti_qspi_dma_bounce_buffer()
[all …]
Dspi-sunplus-sp7021.c303 unsigned int xfer_cnt, xfer_len, last_len; in sp7021_spi_host_transfer_one() local
317 xfer_len = last_len; in sp7021_spi_host_transfer_one()
319 xfer_len = SP7021_SPI_DATA_SIZE; in sp7021_spi_host_transfer_one()
324 if (pspim->tx_cur_len < xfer_len) { in sp7021_spi_host_transfer_one()
325 len_temp = min(pspim->data_unit, xfer_len); in sp7021_spi_host_transfer_one()
336 reg_temp = FIELD_PREP(SP7021_SET_TX_LEN, xfer_len) | in sp7021_spi_host_transfer_one()
337 FIELD_PREP(SP7021_SET_XFER_LEN, xfer_len) | in sp7021_spi_host_transfer_one()
Dspi-pic32-sqi.c131 u32 xfer_len; member
305 rdesc->xfer_len = sg_dma_len(sg); in pic32_sqi_one_transfer()
307 bd->bd_ctrl |= rdesc->xfer_len; in pic32_sqi_one_transfer()
433 msg->actual_length += rdesc->xfer_len; in pic32_sqi_one_message()
/linux-6.12.1/drivers/dma/qcom/
Dbam_dma.c66 u32 xfer_len; member
864 if (avail < async_desc->xfer_len) in process_channel_irqs()
868 bchan->head += async_desc->xfer_len; in process_channel_irqs()
871 async_desc->num_desc -= async_desc->xfer_len; in process_channel_irqs()
872 async_desc->curr_desc += async_desc->xfer_len; in process_channel_irqs()
873 avail -= async_desc->xfer_len; in process_channel_irqs()
1054 async_desc->xfer_len = avail; in bam_start_dma()
1056 async_desc->xfer_len = async_desc->num_desc; in bam_start_dma()
1059 if (async_desc->num_desc == async_desc->xfer_len) in bam_start_dma()
1060 desc[async_desc->xfer_len - 1].flags |= in bam_start_dma()
[all …]
/linux-6.12.1/drivers/input/touchscreen/
Dhideep.c471 size_t xfer_len; in hideep_program_nvm() local
481 xfer_len = min_t(size_t, ucode_len, HIDEEP_NVM_PAGE_SIZE); in hideep_program_nvm()
482 xfer_count = xfer_len / sizeof(*ucode); in hideep_program_nvm()
494 if (memcmp(ucode, current_ucode, xfer_len)) { in hideep_program_nvm()
508 addr += xfer_len; in hideep_program_nvm()
509 ucode_len -= xfer_len; in hideep_program_nvm()
520 size_t xfer_len; in hideep_verify_nvm() local
527 xfer_len = min_t(size_t, ucode_len, HIDEEP_NVM_PAGE_SIZE); in hideep_verify_nvm()
528 xfer_count = xfer_len / sizeof(*ucode); in hideep_verify_nvm()
539 if (memcmp(ucode, current_ucode, xfer_len)) { in hideep_verify_nvm()
[all …]
Draydium_i2c_ts.c235 size_t xfer_len = min_t(size_t, len, RM_MAX_READ_SIZE); in raydium_i2c_read() local
260 .len = xfer_len, in raydium_i2c_read()
270 len -= xfer_len; in raydium_i2c_read()
271 data += xfer_len; in raydium_i2c_read()
272 addr += xfer_len; in raydium_i2c_read()
650 size_t xfer_len; in raydium_i2c_fw_write_page() local
661 xfer_len = min_t(size_t, len, RM_BL_WRT_PKG_SIZE); in raydium_i2c_fw_write_page()
662 memcpy(&buf[BL_DATA_STR], data, xfer_len); in raydium_i2c_fw_write_page()
664 memset(&buf[BL_DATA_STR + xfer_len], 0xff, in raydium_i2c_fw_write_page()
665 RM_BL_WRT_PKG_SIZE - xfer_len); in raydium_i2c_fw_write_page()
[all …]
Drohm_bu21023.c647 unsigned int offset, len, xfer_len; in rohm_ts_load_firmware() local
693 xfer_len = min(FIRMWARE_BLOCK_SIZE, len); in rohm_ts_load_firmware()
696 xfer_len, &fw->data[offset]); in rohm_ts_load_firmware()
700 len -= xfer_len; in rohm_ts_load_firmware()
701 offset += xfer_len; in rohm_ts_load_firmware()
/linux-6.12.1/include/scsi/
Dscsi_cmnd.h385 unsigned int xfer_len = scmd->sdb.length; in scsi_transfer_length() local
389 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; in scsi_transfer_length()
391 return xfer_len; in scsi_transfer_length()
/linux-6.12.1/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c34 seq->offset, seq->xfer_len, seq->seq_send_order, in iscsit_dump_seq_list()
335 seq[seq_no].xfer_len = in iscsit_do_build_pdu_and_seq_lists()
356 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
375 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
407 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
424 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
677 cmd->seq_list[i].orig_offset, cmd->seq_list[i].xfer_len, in iscsit_get_seq_holder()
681 cmd->seq_list[i].xfer_len) >= in iscsit_get_seq_holder()
Discsi_target_tmr.c637 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
643 cmd->r2t_offset -= (r2t->xfer_len - in iscsit_task_reassign_prepare_write()
650 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
660 r2t->xfer_len))) { in iscsit_task_reassign_prepare_write()
672 r2t->xfer_len); in iscsit_task_reassign_prepare_write()
735 r2t->offset, r2t->xfer_len); in iscsit_task_reassign_prepare_write()
762 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
Discsi_target_seq_pdu_list.h82 u32 xfer_len; member
Discsi_target_erl1.c268 read_data_done += cmd->seq_list[i].xfer_len; in iscsit_create_recovery_datain_values_datasequenceinorder_no()
570 u32 xfer_len) in iscsit_send_recovery_r2t() argument
575 ret = iscsit_add_r2t_to_list(cmd, offset, xfer_len, 1, 0); in iscsit_send_recovery_r2t()
706 *r2t_length = seq->xfer_len; in iscsit_recalculate_dataout_values()
1077 *length = r2t->xfer_len; in iscsit_set_dataout_timeout_values()
/linux-6.12.1/drivers/scsi/libfc/
Dfc_fcp.c346 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); in fc_fcp_ddp_done()
518 if (offset != fsp->xfer_len) in fc_fcp_recv_data()
560 fsp->xfer_len += copy_len; in fc_fcp_recv_data()
567 fsp->xfer_len == fsp->data_len - fsp->scsi_resid) { in fc_fcp_recv_data()
617 } else if (offset != fsp->xfer_len) { in fc_fcp_send_data()
727 fsp->xfer_len += seq_blen; /* premature count? */ in fc_fcp_send_data()
821 seq->rec_data = fsp->xfer_len; in fc_fcp_recv()
934 fsp->xfer_len != expected_len)) { in fc_fcp_resp()
935 if (fsp->xfer_len < expected_len) { in fc_fcp_resp()
949 fsp->xfer_len, expected_len, fsp->data_len); in fc_fcp_resp()
[all …]
/linux-6.12.1/drivers/usb/dwc2/
Dhcd_ddma.c665 int len = chan->xfer_len; in dwc2_fill_host_dma_desc()
703 if (len > chan->xfer_len) { in dwc2_fill_host_dma_desc()
704 chan->xfer_len = 0; in dwc2_fill_host_dma_desc()
707 chan->xfer_len -= len; in dwc2_fill_host_dma_desc()
719 (unsigned long)chan->xfer_dma, chan->xfer_len); in dwc2_init_non_isoc_dma_desc()
735 chan->xfer_len = qtd->urb->length - in dwc2_init_non_isoc_dma_desc()
738 (unsigned long)chan->xfer_dma, chan->xfer_len); in dwc2_init_non_isoc_dma_desc()
764 } while (chan->xfer_len > 0 && in dwc2_init_non_isoc_dma_desc()
Dhcd.c437 dev_dbg(hsotg->dev, " xfer_len: %d\n", chan->xfer_len); in dwc2_dump_channel_info()
731 chan->xfer_len); in dwc2_hc_init()
1014 chan->xfer_len + bytes_in_fifo); in dwc2_hc_set_even_odd_frame()
1105 remaining_count = chan->xfer_len - chan->xfer_count; in dwc2_hc_write_packet()
1230 chan->xfer_len = 0; in dwc2_hc_start_transfer()
1231 else if (chan->ep_is_in || chan->xfer_len > chan->max_packet) in dwc2_hc_start_transfer()
1232 chan->xfer_len = chan->max_packet; in dwc2_hc_start_transfer()
1233 else if (!chan->ep_is_in && chan->xfer_len > 188) in dwc2_hc_start_transfer()
1234 chan->xfer_len = 188; in dwc2_hc_start_transfer()
1236 hctsiz |= chan->xfer_len << TSIZ_XFERSIZE_SHIFT & in dwc2_hc_start_transfer()
[all …]
/linux-6.12.1/drivers/i3c/master/
Dsvc-i3c-master.c1141 u8 *in, const u8 *out, unsigned int xfer_len, in svc_i3c_master_xfer() argument
1218 ret = svc_i3c_master_read(master, in, xfer_len); in svc_i3c_master_xfer()
1220 ret = svc_i3c_master_write(master, out, xfer_len); in svc_i3c_master_xfer()
1370 unsigned int xfer_len = ccc->dests[0].payload.len + 1; in svc_i3c_master_send_bdcast_ccc_cmd() local
1380 buf = kmalloc(xfer_len, GFP_KERNEL); in svc_i3c_master_send_bdcast_ccc_cmd()
1396 cmd->len = xfer_len; in svc_i3c_master_send_bdcast_ccc_cmd()
1416 unsigned int xfer_len = ccc->dests[0].payload.len; in svc_i3c_master_send_direct_ccc_cmd() local
1417 unsigned int actual_len = ccc->rnw ? xfer_len : 0; in svc_i3c_master_send_direct_ccc_cmd()
1444 cmd->len = xfer_len; in svc_i3c_master_send_direct_ccc_cmd()
1454 if (cmd->actual_len != xfer_len) in svc_i3c_master_send_direct_ccc_cmd()
/linux-6.12.1/drivers/hwmon/
Dpt5161l.c86 u8 xfer_len, curr_len; in pt5161l_write_block_data() local
105 xfer_len = 3 + curr_len; in pt5161l_write_block_data()
106 ret = i2c_smbus_write_block_data(client, cmd, xfer_len, buf); in pt5161l_write_block_data()
/linux-6.12.1/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c925 size_t block_ts, max_block_ts, xfer_len; in dma_chan_prep_dma_memcpy() local
946 xfer_len = len; in dma_chan_prep_dma_memcpy()
954 xfer_width = axi_chan_get_xfer_width(chan, src_adr, dst_adr, xfer_len); in dma_chan_prep_dma_memcpy()
961 block_ts = xfer_len >> xfer_width; in dma_chan_prep_dma_memcpy()
964 xfer_len = max_block_ts << xfer_width; in dma_chan_prep_dma_memcpy()
997 hw_desc->len = xfer_len; in dma_chan_prep_dma_memcpy()
1000 len -= xfer_len; in dma_chan_prep_dma_memcpy()
1001 dst_adr += xfer_len; in dma_chan_prep_dma_memcpy()
1002 src_adr += xfer_len; in dma_chan_prep_dma_memcpy()
/linux-6.12.1/drivers/scsi/csiostor/
Dcsio_scsi.c296 uint32_t xfer_len; in csio_scsi_init_ultptx_dsgl() local
327 xfer_len = scsi_bufflen(scmnd); in csio_scsi_init_ultptx_dsgl()
333 min(xfer_len, dma_buf->len)); in csio_scsi_init_ultptx_dsgl()
338 min(xfer_len, dma_buf->len)); in csio_scsi_init_ultptx_dsgl()
343 min(xfer_len, dma_buf->len)); in csio_scsi_init_ultptx_dsgl()
345 xfer_len -= min(xfer_len, dma_buf->len); in csio_scsi_init_ultptx_dsgl()
565 uint32_t xfer_len = 0; in csio_setup_ddp() local
608 xfer_len = scsi_bufflen(scmnd); in csio_setup_ddp()
612 while (alloc_len < xfer_len) { in csio_setup_ddp()

123