Home
last modified time | relevance | path

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

12

/drivers/nvme/host/
Dscsi.c224 u32 xfer_len; member
239 size_t xfer_len; in nvme_trans_copy_to_user() local
249 xfer_len = min(remaining, sgl.iov_len); in nvme_trans_copy_to_user()
250 if (copy_to_user(sgl.iov_base, index, xfer_len)) in nvme_trans_copy_to_user()
253 index += xfer_len; in nvme_trans_copy_to_user()
254 remaining -= xfer_len; in nvme_trans_copy_to_user()
274 size_t xfer_len; in nvme_trans_copy_from_user() local
284 xfer_len = min(remaining, sgl.iov_len); in nvme_trans_copy_from_user()
285 if (copy_from_user(index, sgl.iov_base, xfer_len)) in nvme_trans_copy_from_user()
287 index += xfer_len; in nvme_trans_copy_from_user()
[all …]
/drivers/spi/
Dspi-mt65xx.c92 u32 xfer_len; member
248 packet_size = min_t(u32, mdata->xfer_len, MTK_SPI_PACKET_SIZE); in mtk_spi_setup_packet()
249 packet_loop = mdata->xfer_len / packet_size; in mtk_spi_setup_packet()
271 static int mtk_spi_get_mult_delta(u32 xfer_len) in mtk_spi_get_mult_delta() argument
275 if (xfer_len > MTK_SPI_PACKET_SIZE) in mtk_spi_get_mult_delta()
276 mult_delta = xfer_len % MTK_SPI_PACKET_SIZE; in mtk_spi_get_mult_delta()
291 mdata->xfer_len = mdata->rx_sgl_len - mult_delta; in mtk_spi_update_mdata_len()
293 mdata->tx_sgl_len -= mdata->xfer_len; in mtk_spi_update_mdata_len()
296 mdata->xfer_len = mdata->tx_sgl_len - mult_delta; in mtk_spi_update_mdata_len()
298 mdata->rx_sgl_len -= mdata->xfer_len; in mtk_spi_update_mdata_len()
[all …]
Dspi-xlp.c262 static void xlp_spi_send_cmd(struct xlp_spi_priv *xspi, int xfer_len, in xlp_spi_send_cmd() argument
273 cmd |= ((xfer_len * 8 - 1) << XLP_SPI_XFR_BITCNT_SHIFT); in xlp_spi_send_cmd()
279 unsigned char *rx_buf, int xfer_len, int cmd_cont) in xlp_spi_xfer_block() argument
286 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
287 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block()
294 xlp_spi_send_cmd(xs, xfer_len, cmd_cont); in xlp_spi_xfer_block()
320 xs->rxerrors, xs->txerrors, xfer_len); in xlp_spi_xfer_block()
322 return xfer_len; in xlp_spi_xfer_block()
Dspi-ti-qspi.c232 int wlen, xfer_len; in qspi_write_msg() local
240 xfer_len = wlen; in qspi_write_msg()
265 xfer_len = QSPI_WLEN_MAX_BYTES; in qspi_write_msg()
270 xfer_len = wlen; in qspi_write_msg()
291 txbuf += xfer_len; in qspi_write_msg()
292 count -= xfer_len; in qspi_write_msg()
Dspi-fsl-cpm.c79 unsigned int xfer_len = min(mspi->count, SPI_MRBLR); in fsl_spi_cpm_bufs_start() local
96 out_be16(&tx_bd->cbd_datlen, xfer_len); in fsl_spi_cpm_bufs_start()
Dspi-fsl-espi.c438 unsigned int xfer_len = 0; in fsl_espi_do_one_msg() local
449 xfer_len += t->len; in fsl_espi_do_one_msg()
454 espi_trans.len = xfer_len; in fsl_espi_do_one_msg()
/drivers/i2c/busses/
Di2c-wmt.c133 int xfer_len = 0; in wmt_i2c_write() local
146 xfer_len = -1; in wmt_i2c_write()
179 while (xfer_len < pmsg->len) { in wmt_i2c_write()
190 xfer_len++; in wmt_i2c_write()
204 if (xfer_len == pmsg->len) { in wmt_i2c_write()
208 writew(pmsg->buf[xfer_len] & 0xFF, i2c_dev->base + in wmt_i2c_write()
224 u32 xfer_len = 0; in wmt_i2c_read() local
269 while (xfer_len < pmsg->len) { in wmt_i2c_read()
280 pmsg->buf[xfer_len] = readw(i2c_dev->base + REG_CDR) >> 8; in wmt_i2c_read()
281 xfer_len++; in wmt_i2c_read()
[all …]
/drivers/dma/
Dqcom_bam_dma.c70 u32 xfer_len; member
773 async_desc->num_desc -= async_desc->xfer_len; in process_channel_irqs()
774 async_desc->curr_desc += async_desc->xfer_len; in process_channel_irqs()
778 bchan->head += async_desc->xfer_len; in process_channel_irqs()
926 async_desc->xfer_len = MAX_DESCRIPTORS; in bam_start_dma()
928 async_desc->xfer_len = async_desc->num_desc; in bam_start_dma()
931 if (async_desc->num_desc == async_desc->xfer_len) in bam_start_dma()
932 desc[async_desc->xfer_len - 1].flags = async_desc->flags; in bam_start_dma()
934 desc[async_desc->xfer_len - 1].flags |= DESC_FLAG_INT; in bam_start_dma()
936 if (bchan->tail + async_desc->xfer_len > MAX_DESCRIPTORS) { in bam_start_dma()
[all …]
/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c44 seq->offset, seq->xfer_len, seq->seq_send_order, in iscsit_dump_seq_list()
345 seq[seq_no].xfer_len = in iscsit_do_build_pdu_and_seq_lists()
366 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
385 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
417 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
434 seq[seq_no].xfer_len = (burstlength + in iscsit_do_build_pdu_and_seq_lists()
687 cmd->seq_list[i].orig_offset, cmd->seq_list[i].xfer_len, in iscsit_get_seq_holder()
691 cmd->seq_list[i].xfer_len) >= in iscsit_get_seq_holder()
Discsi_target_tmr.c645 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
651 cmd->r2t_offset -= (r2t->xfer_len - in iscsit_task_reassign_prepare_write()
658 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
668 r2t->xfer_len))) { in iscsit_task_reassign_prepare_write()
680 r2t->xfer_len); in iscsit_task_reassign_prepare_write()
743 r2t->offset, r2t->xfer_len); in iscsit_task_reassign_prepare_write()
770 cmd->r2t_offset -= r2t->xfer_len; in iscsit_task_reassign_prepare_write()
Discsi_target_erl1.c300 read_data_done += cmd->seq_list[i].xfer_len; in iscsit_create_recovery_datain_values_datasequenceinorder_no()
602 u32 xfer_len) in iscsit_send_recovery_r2t() argument
607 ret = iscsit_add_r2t_to_list(cmd, offset, xfer_len, 1, 0); in iscsit_send_recovery_r2t()
618 u32 length = 0, offset = 0, pdu_count = 0, xfer_len = 0; in iscsit_dataout_datapduinorder_no_fbit() local
631 xfer_len += cmd->pdu_list[i].length; in iscsit_dataout_datapduinorder_no_fbit()
739 *r2t_length = seq->xfer_len; in iscsit_recalculate_dataout_values()
1135 *length = r2t->xfer_len; in iscsit_set_dataout_timeout_values()
Discsi_target_seq_pdu_list.h78 u32 xfer_len; member
Discsi_target_erl0.c301 if (next_burst_len < seq->xfer_len) { in iscsit_dataout_check_sequence()
327 if (next_burst_len == seq->xfer_len) { in iscsit_dataout_check_sequence()
609 seq->xfer_len) { in iscsit_dataout_post_crc_passed()
Discsi_target_util.c64 u32 xfer_len, in iscsit_add_r2t_to_list() argument
80 r2t->xfer_len = xfer_len; in iscsit_add_r2t_to_list()
100 (r2t->offset + r2t->xfer_len) >= (offset + length)) { in iscsit_get_r2t_for_eos()
/drivers/scsi/libfc/
Dfc_fcp.c334 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); in fc_fcp_ddp_done()
488 if (offset != fsp->xfer_len) in fc_fcp_recv_data()
532 fsp->xfer_len += copy_len; in fc_fcp_recv_data()
539 fsp->xfer_len == fsp->data_len - fsp->scsi_resid) in fc_fcp_recv_data()
587 } else if (offset != fsp->xfer_len) { in fc_fcp_send_data()
697 fsp->xfer_len += seq_blen; /* premature count? */ in fc_fcp_send_data()
793 seq->rec_data = fsp->xfer_len; in fc_fcp_recv()
906 fsp->xfer_len != expected_len)) { in fc_fcp_resp()
907 if (fsp->xfer_len < expected_len) { in fc_fcp_resp()
920 fsp->xfer_len, expected_len, fsp->data_len); in fc_fcp_resp()
[all …]
/drivers/usb/dwc2/
Dhcd_ddma.c622 int len = chan->xfer_len; in dwc2_fill_host_dma_desc()
654 if (len > chan->xfer_len) { in dwc2_fill_host_dma_desc()
655 chan->xfer_len = 0; in dwc2_fill_host_dma_desc()
658 chan->xfer_len -= len; in dwc2_fill_host_dma_desc()
670 (unsigned long)chan->xfer_dma, chan->xfer_len); in dwc2_init_non_isoc_dma_desc()
686 chan->xfer_len = qtd->urb->length - in dwc2_init_non_isoc_dma_desc()
689 (unsigned long)chan->xfer_dma, chan->xfer_len); in dwc2_init_non_isoc_dma_desc()
709 } while (chan->xfer_len > 0 && in dwc2_init_non_isoc_dma_desc()
Dcore.c1375 chan->xfer_len); in dwc2_hc_init()
1644 remaining_count = chan->xfer_len - chan->xfer_count; in dwc2_hc_write_packet()
1738 chan->xfer_len = 0; in dwc2_hc_start_transfer()
1739 else if (chan->ep_is_in || chan->xfer_len > chan->max_packet) in dwc2_hc_start_transfer()
1740 chan->xfer_len = chan->max_packet; in dwc2_hc_start_transfer()
1741 else if (!chan->ep_is_in && chan->xfer_len > 188) in dwc2_hc_start_transfer()
1742 chan->xfer_len = 188; in dwc2_hc_start_transfer()
1744 hctsiz |= chan->xfer_len << TSIZ_XFERSIZE_SHIFT & in dwc2_hc_start_transfer()
1765 if (chan->xfer_len > max_periodic_len) in dwc2_hc_start_transfer()
1766 chan->xfer_len = max_periodic_len; in dwc2_hc_start_transfer()
[all …]
Dhcd.c103 dev_dbg(hsotg->dev, " xfer_len: %d\n", chan->xfer_len); in dwc2_dump_channel_info()
623 chan->xfer_len = 8; in dwc2_hc_init_xfer()
646 chan->xfer_len = 0; in dwc2_hc_init_xfer()
682 chan->xfer_len = frame_desc->length - qtd->isoc_split_offset; in dwc2_hc_init_xfer()
693 if (chan->xfer_len <= 188) in dwc2_hc_init_xfer()
725 if (chan->xfer_len) { in dwc2_hc_setup_align_buf()
738 chan->xfer_len); in dwc2_hc_setup_align_buf()
844 chan->xfer_len = urb->length - urb->actual_length; in dwc2_assign_and_init_hc()
1969 dev_dbg(hsotg->dev, " xfer_len: %d\n", chan->xfer_len); in dwc2_hcd_dump_state()
/drivers/media/platform/soc_camera/
Dpxa_camera.c293 int i, offset, dma_len, xfer_len; in calculate_dma_sglen() local
301 xfer_len = roundup(min(dma_len - offset, size), 8); in calculate_dma_sglen()
303 size = max(0, size - xfer_len); in calculate_dma_sglen()
339 int dma_len = 0, xfer_len = 0; in pxa_init_dma_channel() local
365 xfer_len = roundup(min(dma_len - offset, size), 8); in pxa_init_dma_channel()
367 size = max(0, size - xfer_len); in pxa_init_dma_channel()
372 DCMD_FLOWSRC | DCMD_BURST8 | DCMD_INCTRGADDR | xfer_len; in pxa_init_dma_channel()
382 sg_dma_address(sg) + offset, xfer_len); in pxa_init_dma_channel()
399 if (xfer_len >= dma_len) { in pxa_init_dma_channel()
400 *sg_first_ofs = xfer_len - dma_len; in pxa_init_dma_channel()
[all …]
/drivers/input/touchscreen/
Drohm_bu21023.c656 unsigned int offset, len, xfer_len; in rohm_ts_load_firmware() local
701 xfer_len = min(FIRMWARE_BLOCK_SIZE, len); in rohm_ts_load_firmware()
704 xfer_len, &fw->data[offset]); in rohm_ts_load_firmware()
708 len -= xfer_len; in rohm_ts_load_firmware()
709 offset += xfer_len; in rohm_ts_load_firmware()
/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.c1821 size_t xfer_len; in musb_host_rx() local
1836 xfer_len = 0; in musb_host_rx()
1914 xfer_len = dma->actual_len; in musb_host_rx()
1944 xfer_len = dma->actual_len; in musb_host_rx()
1949 xfer_len, dma ? ", dma" : ""); in musb_host_rx()
1958 xfer_len = dma->actual_len; in musb_host_rx()
1968 done = musb_rx_dma_inventra_cppi41(c, hw_ep, qh, urb, xfer_len); in musb_host_rx()
2006 xfer_len, iso_err)) in musb_host_rx()
2055 urb->actual_length += xfer_len; in musb_host_rx()
2056 qh->offset += xfer_len; in musb_host_rx()
/drivers/scsi/aic7xxx/
Daic7xxx_osm.h345 uint32_t xfer_len; member
609 return (scb->platform_data->xfer_len); in ahc_get_transfer_length()
Daic79xx_osm.h341 uint32_t xfer_len; member
598 return (scb->platform_data->xfer_len); in ahd_get_transfer_length()
/drivers/scsi/ibmvscsi/
Dibmvfc.h432 __be32 xfer_len; member
494 u32 xfer_len; member

12