/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-mt65xx.c | 102 u32 xfer_len; member 333 packet_size = min_t(u32, mdata->xfer_len, MTK_SPI_PACKET_SIZE); in mtk_spi_setup_packet() 334 packet_loop = mdata->xfer_len / packet_size; in mtk_spi_setup_packet() 356 static int mtk_spi_get_mult_delta(u32 xfer_len) in mtk_spi_get_mult_delta() argument 360 if (xfer_len > MTK_SPI_PACKET_SIZE) in mtk_spi_get_mult_delta() 361 mult_delta = xfer_len % MTK_SPI_PACKET_SIZE; in mtk_spi_get_mult_delta() 376 mdata->xfer_len = mdata->rx_sgl_len - mult_delta; in mtk_spi_update_mdata_len() 378 mdata->tx_sgl_len -= mdata->xfer_len; in mtk_spi_update_mdata_len() 381 mdata->xfer_len = mdata->tx_sgl_len - mult_delta; in mtk_spi_update_mdata_len() 383 mdata->rx_sgl_len -= mdata->xfer_len; in mtk_spi_update_mdata_len() [all …]
|
D | spi-xlp.c | 255 static void xlp_spi_send_cmd(struct xlp_spi_priv *xspi, int xfer_len, in xlp_spi_send_cmd() argument 266 cmd |= ((xfer_len * 8 - 1) << XLP_SPI_XFR_BITCNT_SHIFT); in xlp_spi_send_cmd() 272 unsigned char *rx_buf, int xfer_len, int cmd_cont) in xlp_spi_xfer_block() argument 279 xs->tx_len = (xs->tx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 280 xs->rx_len = (xs->rx_buf == NULL) ? 0 : xfer_len; in xlp_spi_xfer_block() 287 xlp_spi_send_cmd(xs, xfer_len, cmd_cont); in xlp_spi_xfer_block() 313 xs->rxerrors, xs->txerrors, xfer_len); in xlp_spi_xfer_block() 315 return xfer_len; in xlp_spi_xfer_block()
|
D | spi-ti-qspi.c | 247 int wlen, xfer_len; in qspi_write_msg() local 255 xfer_len = wlen; in qspi_write_msg() 280 xfer_len = QSPI_WLEN_MAX_BYTES; in qspi_write_msg() 285 xfer_len = wlen; in qspi_write_msg() 306 txbuf += xfer_len; in qspi_write_msg() 307 count -= xfer_len; in qspi_write_msg() 492 size_t xfer_len = min_t(size_t, QSPI_DMA_BUFFER_SIZE, in ti_qspi_dma_bounce_buffer() local 496 dma_src, xfer_len); in ti_qspi_dma_bounce_buffer() 499 memcpy(to, qspi->rx_bb_addr, xfer_len); in ti_qspi_dma_bounce_buffer() 500 readsize -= xfer_len; in ti_qspi_dma_bounce_buffer() [all …]
|
D | spi-pic32-sqi.c | 131 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()
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
D | spilib.c | 170 u32 tx_size = 0, rx_size = 0, count = 0, xfer_len = 0, request_size; in gb_spi_operation_create() local 249 xfer_len = spi->last_xfer_size; in gb_spi_operation_create() 251 xfer_len = xfer->len; in gb_spi_operation_create() 254 xfer_timeout = xfer_len * 8 * MSEC_PER_SEC / xfer->speed_hz; in gb_spi_operation_create() 261 gb_xfer->len = cpu_to_le32(xfer_len); in gb_spi_operation_create() 270 xfer_len); in gb_spi_operation_create() 271 tx_data += xfer_len; in gb_spi_operation_create() 299 u32 xfer_len; in gb_spi_decode_response() local 305 xfer_len = xfer->len - spi->rx_xfer_offset; in gb_spi_decode_response() 307 xfer_len = spi->last_xfer_size; in gb_spi_decode_response() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-wmt.c | 129 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 …]
|
D | i2c-qcom-geni.c | 90 size_t xfer_len; member 361 geni_se_rx_dma_unprep(&gi2c->se, gi2c->dma_addr, gi2c->xfer_len); in geni_i2c_rx_msg_cleanup() 373 geni_se_tx_dma_unprep(&gi2c->se, gi2c->dma_addr, gi2c->xfer_len); in geni_i2c_tx_msg_cleanup() 404 gi2c->xfer_len = len; in geni_i2c_rx_one_msg() 445 gi2c->xfer_len = len; in geni_i2c_tx_one_msg()
|
/kernel/linux/linux-5.10/include/scsi/ |
D | scsi_cmnd.h | 328 unsigned int xfer_len = scmd->sdb.length; in scsi_transfer_length() local 332 xfer_len += (xfer_len >> ilog2(prot_interval)) * 8; in scsi_transfer_length() 334 return xfer_len; in scsi_transfer_length()
|
/kernel/linux/linux-5.10/drivers/dma/qcom/ |
D | bam_dma.c | 66 u32 xfer_len; member 826 if (avail < async_desc->xfer_len) in process_channel_irqs() 830 bchan->head += async_desc->xfer_len; in process_channel_irqs() 833 async_desc->num_desc -= async_desc->xfer_len; in process_channel_irqs() 834 async_desc->curr_desc += async_desc->xfer_len; in process_channel_irqs() 835 avail -= async_desc->xfer_len; in process_channel_irqs() 1016 async_desc->xfer_len = avail; in bam_start_dma() 1018 async_desc->xfer_len = async_desc->num_desc; in bam_start_dma() 1021 if (async_desc->num_desc == async_desc->xfer_len) in bam_start_dma() 1022 desc[async_desc->xfer_len - 1].flags |= in bam_start_dma() [all …]
|
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
D | hideep.c | 465 size_t xfer_len; in hideep_program_nvm() local 475 xfer_len = min_t(size_t, ucode_len, HIDEEP_NVM_PAGE_SIZE); in hideep_program_nvm() 476 xfer_count = xfer_len / sizeof(*ucode); in hideep_program_nvm() 488 if (memcmp(ucode, current_ucode, xfer_len)) { in hideep_program_nvm() 502 addr += xfer_len; in hideep_program_nvm() 503 ucode_len -= xfer_len; in hideep_program_nvm() 514 size_t xfer_len; in hideep_verify_nvm() local 521 xfer_len = min_t(size_t, ucode_len, HIDEEP_NVM_PAGE_SIZE); in hideep_verify_nvm() 522 xfer_count = xfer_len / sizeof(*ucode); in hideep_verify_nvm() 533 if (memcmp(ucode, current_ucode, xfer_len)) { in hideep_verify_nvm() [all …]
|
D | raydium_i2c_ts.c | 233 size_t xfer_len = min_t(size_t, len, RM_MAX_READ_SIZE); in raydium_i2c_read() local 258 .len = xfer_len, in raydium_i2c_read() 268 len -= xfer_len; in raydium_i2c_read() 269 data += xfer_len; in raydium_i2c_read() 270 addr += xfer_len; in raydium_i2c_read() 613 size_t xfer_len; in raydium_i2c_fw_write_page() local 624 xfer_len = min_t(size_t, len, RM_BL_WRT_PKG_SIZE); in raydium_i2c_fw_write_page() 625 memcpy(&buf[BL_DATA_STR], data, xfer_len); in raydium_i2c_fw_write_page() 627 memset(&buf[BL_DATA_STR + xfer_len], 0xff, in raydium_i2c_fw_write_page() 628 RM_BL_WRT_PKG_SIZE - xfer_len); in raydium_i2c_fw_write_page() [all …]
|
D | rohm_bu21023.c | 648 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()
|
/kernel/linux/linux-5.10/drivers/target/iscsi/ |
D | iscsi_target_seq_pdu_list.c | 34 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()
|
D | iscsi_target_tmr.c | 637 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()
|
D | iscsi_target_erl1.c | 268 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() 1080 *length = r2t->xfer_len; in iscsit_set_dataout_timeout_values()
|
D | iscsi_target_seq_pdu_list.h | 82 u32 xfer_len; member
|
/kernel/linux/linux-5.10/drivers/scsi/libfc/ |
D | fc_fcp.c | 347 fsp->xfer_len = lport->tt.ddp_done(lport, fsp->xfer_ddp); in fc_fcp_ddp_done() 521 if (offset != fsp->xfer_len) in fc_fcp_recv_data() 565 fsp->xfer_len += copy_len; in fc_fcp_recv_data() 572 fsp->xfer_len == fsp->data_len - fsp->scsi_resid) { in fc_fcp_recv_data() 622 } else if (offset != fsp->xfer_len) { in fc_fcp_send_data() 732 fsp->xfer_len += seq_blen; /* premature count? */ in fc_fcp_send_data() 826 seq->rec_data = fsp->xfer_len; in fc_fcp_recv() 939 fsp->xfer_len != expected_len)) { in fc_fcp_resp() 940 if (fsp->xfer_len < expected_len) { in fc_fcp_resp() 954 fsp->xfer_len, expected_len, fsp->data_len); in fc_fcp_resp() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 430 size_t block_ts, max_block_ts, xfer_len; in dma_chan_prep_dma_memcpy() local 440 xfer_len = len; in dma_chan_prep_dma_memcpy() 447 xfer_width = axi_chan_get_xfer_width(chan, src_adr, dst_adr, xfer_len); in dma_chan_prep_dma_memcpy() 454 block_ts = xfer_len >> xfer_width; in dma_chan_prep_dma_memcpy() 457 xfer_len = max_block_ts << xfer_width; in dma_chan_prep_dma_memcpy() 500 len -= xfer_len; in dma_chan_prep_dma_memcpy() 501 dst_adr += xfer_len; in dma_chan_prep_dma_memcpy() 502 src_adr += xfer_len; in dma_chan_prep_dma_memcpy()
|
/kernel/linux/linux-5.10/drivers/usb/dwc2/ |
D | hcd_ddma.c | 695 int len = chan->xfer_len; in dwc2_fill_host_dma_desc() 733 if (len > chan->xfer_len) { in dwc2_fill_host_dma_desc() 734 chan->xfer_len = 0; in dwc2_fill_host_dma_desc() 737 chan->xfer_len -= len; in dwc2_fill_host_dma_desc() 749 (unsigned long)chan->xfer_dma, chan->xfer_len); in dwc2_init_non_isoc_dma_desc() 765 chan->xfer_len = qtd->urb->length - in dwc2_init_non_isoc_dma_desc() 768 (unsigned long)chan->xfer_dma, chan->xfer_len); in dwc2_init_non_isoc_dma_desc() 794 } while (chan->xfer_len > 0 && in dwc2_init_non_isoc_dma_desc()
|
D | hcd.c | 472 dev_dbg(hsotg->dev, " xfer_len: %d\n", chan->xfer_len); in dwc2_dump_channel_info() 766 chan->xfer_len); in dwc2_hc_init() 1049 chan->xfer_len + bytes_in_fifo); in dwc2_hc_set_even_odd_frame() 1140 remaining_count = chan->xfer_len - chan->xfer_count; in dwc2_hc_write_packet() 1265 chan->xfer_len = 0; in dwc2_hc_start_transfer() 1266 else if (chan->ep_is_in || chan->xfer_len > chan->max_packet) in dwc2_hc_start_transfer() 1267 chan->xfer_len = chan->max_packet; in dwc2_hc_start_transfer() 1268 else if (!chan->ep_is_in && chan->xfer_len > 188) in dwc2_hc_start_transfer() 1269 chan->xfer_len = 188; in dwc2_hc_start_transfer() 1271 hctsiz |= chan->xfer_len << TSIZ_XFERSIZE_SHIFT & in dwc2_hc_start_transfer() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
D | csio_scsi.c | 296 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()
|
/kernel/linux/linux-5.10/drivers/bus/mhi/core/ |
D | main.c | 534 u16 xfer_len; in parse_xfer_event() local 555 xfer_len = MHI_TRE_GET_EV_LEN(event); in parse_xfer_event() 557 xfer_len = buf_info->len; in parse_xfer_event() 567 min_t(u16, xfer_len, buf_info->len); in parse_xfer_event() 635 u16 xfer_len; in parse_rsc_event() local 642 xfer_len = MHI_TRE_GET_EV_LEN(event); in parse_rsc_event() 653 result.bytes_xferd = min_t(u16, xfer_len, buf_info->len); in parse_rsc_event()
|
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/ |
D | aic7xxx_osm.h | 340 uint32_t xfer_len; member 604 return (scb->platform_data->xfer_len); in ahc_get_transfer_length()
|
D | aic79xx_osm.h | 329 uint32_t xfer_len; member 586 return (scb->platform_data->xfer_len); in ahd_get_transfer_length()
|
/kernel/linux/linux-5.10/drivers/usb/musb/ |
D | musb_host.c | 1736 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()
|