Home
last modified time | relevance | path

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

123

/drivers/gpu/drm/nouveau/nvkm/falcon/
Dbase.c129 int xfer_len; in nvkm_falcon_pio_rd() local
140 xfer_len = min(len, pio->max); in nvkm_falcon_pio_rd()
141 pio->rd(falcon, port, img, xfer_len); in nvkm_falcon_pio_rd()
144 for (img_base = 0; img_base < xfer_len; img_base += 4, mem_base += 4) { in nvkm_falcon_pio_rd()
151 img += xfer_len; in nvkm_falcon_pio_rd()
152 len -= xfer_len; in nvkm_falcon_pio_rd()
164 int xfer_len; in nvkm_falcon_pio_wr() local
175 xfer_len = min(len, pio->max); in nvkm_falcon_pio_wr()
176 pio->wr(falcon, port, img, xfer_len, tag++); in nvkm_falcon_pio_wr()
179 for (img_base = 0; img_base < xfer_len; img_base += 4, mem_base += 4) { in nvkm_falcon_pio_wr()
[all …]
Dga102.c42 ga102_flcn_dma_init(struct nvkm_falcon *falcon, u64 dma_addr, int xfer_len, in ga102_flcn_dma_init() argument
45 *cmd = (ilog2(xfer_len) - 2) << 8; in ga102_flcn_dma_init()
/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 …]
/drivers/i2c/busses/
Di2c-wmt.c129 int xfer_len = 0; in wmt_i2c_write() local
142 xfer_len = -1; in wmt_i2c_write()
175 while (xfer_len < pmsg->len) { in wmt_i2c_write()
186 xfer_len++; in wmt_i2c_write()
200 if (xfer_len == pmsg->len) { in wmt_i2c_write()
204 writew(pmsg->buf[xfer_len] & 0xFF, i2c_dev->base + in wmt_i2c_write()
220 u32 xfer_len = 0; in wmt_i2c_read() local
265 while (xfer_len < pmsg->len) { in wmt_i2c_read()
276 pmsg->buf[xfer_len] = readw(i2c_dev->base + REG_CDR) >> 8; in wmt_i2c_read()
277 xfer_len++; in wmt_i2c_read()
[all …]
/drivers/spi/
Dspi-mt65xx.c163 u32 xfer_len; member
521 mdata->xfer_len, in mtk_spi_setup_packet()
525 mdata->xfer_len, in mtk_spi_setup_packet()
528 packet_loop = mdata->xfer_len / packet_size; in mtk_spi_setup_packet()
554 static int mtk_spi_get_mult_delta(struct mtk_spi *mdata, u32 xfer_len) in mtk_spi_get_mult_delta() argument
559 if (xfer_len > MTK_SPI_IPM_PACKET_SIZE) in mtk_spi_get_mult_delta()
560 mult_delta = xfer_len % MTK_SPI_IPM_PACKET_SIZE; in mtk_spi_get_mult_delta()
562 if (xfer_len > MTK_SPI_PACKET_SIZE) in mtk_spi_get_mult_delta()
563 mult_delta = xfer_len % MTK_SPI_PACKET_SIZE; in mtk_spi_get_mult_delta()
577 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_master_transfer_one() local
317 xfer_len = last_len; in sp7021_spi_master_transfer_one()
319 xfer_len = SP7021_SPI_DATA_SIZE; in sp7021_spi_master_transfer_one()
324 if (pspim->tx_cur_len < xfer_len) { in sp7021_spi_master_transfer_one()
325 len_temp = min(pspim->data_unit, xfer_len); in sp7021_spi_master_transfer_one()
336 reg_temp = FIELD_PREP(SP7021_SET_TX_LEN, xfer_len) | in sp7021_spi_master_transfer_one()
337 FIELD_PREP(SP7021_SET_XFER_LEN, xfer_len) | in sp7021_spi_master_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()
/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 …]
/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.c648 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()
/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_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()
586 u32 length = 0, offset = 0, pdu_count = 0, xfer_len = 0; in iscsit_dataout_datapduinorder_no_fbit() local
599 xfer_len += cmd->pdu_list[i].length; in iscsit_dataout_datapduinorder_no_fbit()
707 *r2t_length = seq->xfer_len; in iscsit_recalculate_dataout_values()
1078 *length = r2t->xfer_len; in iscsit_set_dataout_timeout_values()
Discsi_target_seq_pdu_list.h82 u32 xfer_len; member
/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 …]
/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 …]
/drivers/i3c/master/
Dsvc-i3c-master.c1036 u8 *in, const u8 *out, unsigned int xfer_len, in svc_i3c_master_xfer() argument
1081 ret = svc_i3c_master_read(master, in, xfer_len); in svc_i3c_master_xfer()
1083 ret = svc_i3c_master_write(master, out, xfer_len); in svc_i3c_master_xfer()
1229 unsigned int xfer_len = ccc->dests[0].payload.len + 1; in svc_i3c_master_send_bdcast_ccc_cmd() local
1239 buf = kmalloc(xfer_len, GFP_KERNEL); in svc_i3c_master_send_bdcast_ccc_cmd()
1255 cmd->len = xfer_len; in svc_i3c_master_send_bdcast_ccc_cmd()
1275 unsigned int xfer_len = ccc->dests[0].payload.len; in svc_i3c_master_send_direct_ccc_cmd() local
1276 unsigned int read_len = ccc->rnw ? xfer_len : 0; in svc_i3c_master_send_direct_ccc_cmd()
1303 cmd->len = xfer_len; in svc_i3c_master_send_direct_ccc_cmd()
1313 if (cmd->read_len != xfer_len) in svc_i3c_master_send_direct_ccc_cmd()
/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c879 size_t block_ts, max_block_ts, xfer_len; in dma_chan_prep_dma_memcpy() local
900 xfer_len = len; in dma_chan_prep_dma_memcpy()
908 xfer_width = axi_chan_get_xfer_width(chan, src_adr, dst_adr, xfer_len); in dma_chan_prep_dma_memcpy()
915 block_ts = xfer_len >> xfer_width; in dma_chan_prep_dma_memcpy()
918 xfer_len = max_block_ts << xfer_width; in dma_chan_prep_dma_memcpy()
951 hw_desc->len = xfer_len; in dma_chan_prep_dma_memcpy()
954 len -= xfer_len; in dma_chan_prep_dma_memcpy()
955 dst_adr += xfer_len; in dma_chan_prep_dma_memcpy()
956 src_adr += xfer_len; in dma_chan_prep_dma_memcpy()
/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()
/drivers/usb/musb/
Dmusb_host.c1736 size_t xfer_len; in musb_host_rx() local
1750 xfer_len = 0; in musb_host_rx()
1833 xfer_len = dma->actual_len; in musb_host_rx()
1863 xfer_len = dma->actual_len; in musb_host_rx()
1868 xfer_len, dma ? ", dma" : ""); in musb_host_rx()
1877 xfer_len = dma->actual_len; in musb_host_rx()
1887 done = musb_rx_dma_inventra_cppi41(c, hw_ep, qh, urb, xfer_len); in musb_host_rx()
1925 xfer_len, iso_err)) in musb_host_rx()
1974 urb->actual_length += xfer_len; in musb_host_rx()
1975 qh->offset += xfer_len; in musb_host_rx()
/drivers/scsi/aic7xxx/
Daic7xxx_osm.h340 uint32_t xfer_len; member
579 return (scb->platform_data->xfer_len); in ahc_get_transfer_length()

123