Home
last modified time | relevance | path

Searched refs:max_xfer_len (Results 1 – 11 of 11) sorted by relevance

/openbmc/u-boot/drivers/usb/host/
H A Ddwc2.c922 uint32_t max_xfer_len; in chunk_msg() local
928 max_xfer_len = CONFIG_DWC2_MAX_PACKET_COUNT * max; in chunk_msg()
929 if (max_xfer_len > CONFIG_DWC2_MAX_TRANSFER_SIZE) in chunk_msg()
930 max_xfer_len = CONFIG_DWC2_MAX_TRANSFER_SIZE; in chunk_msg()
931 if (max_xfer_len > DWC2_DATA_BUF_SIZE) in chunk_msg()
932 max_xfer_len = DWC2_DATA_BUF_SIZE; in chunk_msg()
935 num_packets = max_xfer_len / max; in chunk_msg()
936 max_xfer_len = num_packets * max; in chunk_msg()
955 max_xfer_len = max; in chunk_msg()
965 if (xfer_len > max_xfer_len) in chunk_msg()
[all …]
/openbmc/linux/include/linux/platform_data/
H A Dspi-omap2-mcspi.h14 size_t max_xfer_len; member
/openbmc/linux/include/linux/
H A Dshdma-base.h65 size_t max_xfer_len; /* max transfer length */ member
/openbmc/linux/drivers/spi/
H A Dspi-omap2-mcspi.c132 size_t max_xfer_len; member
1315 if (mcspi->max_xfer_len && mcspi_dma->dma_rx) in omap2_mcspi_max_xfer_size()
1316 return mcspi->max_xfer_len; in omap2_mcspi_max_xfer_size()
1404 .max_xfer_len = SZ_4K - 1,
1476 if (pdata->max_xfer_len) { in omap2_mcspi_probe()
1477 mcspi->max_xfer_len = pdata->max_xfer_len; in omap2_mcspi_probe()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_spi.c47 num_chunks = DIV_ROUND_UP(len, priv->max_xfer_len); in sja1105_xfer()
51 chunk.len = min_t(size_t, len, priv->max_xfer_len); in sja1105_xfer()
103 priv->max_xfer_len); in sja1105_xfer()
H A Dsja1105.h259 size_t max_xfer_len; member
H A Dsja1105_main.c3353 priv->max_xfer_len = SJA1105_SIZE_SPI_MSG_MAXLEN; in sja1105_probe()
3354 if (priv->max_xfer_len > max_xfer) in sja1105_probe()
3355 priv->max_xfer_len = max_xfer; in sja1105_probe()
3356 if (priv->max_xfer_len > max_msg - SJA1105_SIZE_SPI_MSG_HEADER) in sja1105_probe()
3357 priv->max_xfer_len = max_msg - SJA1105_SIZE_SPI_MSG_HEADER; in sja1105_probe()
/openbmc/qemu/block/
H A Discsi.c2073 uint64_t max_xfer_len = iscsilun->use_16_for_rw ? 0xffffffff : 0xffff; in iscsi_refresh_limits() local
2080 if (iscsilun->bl.max_xfer_len) { in iscsi_refresh_limits()
2081 max_xfer_len = MIN(max_xfer_len, iscsilun->bl.max_xfer_len); in iscsi_refresh_limits()
2084 if (max_xfer_len * block_size < INT_MAX) { in iscsi_refresh_limits()
2085 bs->bl.max_transfer = max_xfer_len * iscsilun->block_size; in iscsi_refresh_limits()
2100 max_xfer_len * iscsilun->block_size); in iscsi_refresh_limits()
/openbmc/linux/drivers/dma/sh/
H A Dshdmac.c383 if (*len > schan->max_xfer_len) in sh_dmae_desc_setup()
384 *len = schan->max_xfer_len; in sh_dmae_desc_setup()
532 schan->max_xfer_len = SH_DMA_TCR_MAX + 1; in sh_dmae_chan_probe()
H A Dshdma-base.c572 chunks += DIV_ROUND_UP(sg_dma_len(sg), schan->max_xfer_len); in shdma_prep_sg()
959 if (!schan->max_xfer_len) in shdma_chan_probe()
960 schan->max_xfer_len = PAGE_SIZE; in shdma_chan_probe()
/openbmc/linux/drivers/scsi/arcmsr/
H A Darcmsr_hba.c763 unsigned long max_xfer_len; in arcmsr_alloc_ccb_pool() local
771 max_xfer_len = ARCMSR_MAX_XFER_LEN; in arcmsr_alloc_ccb_pool()
775max_xfer_len = (ARCMSR_CDB_SG_PAGE_LENGTH << ((firm_config_version >> 8) & 0xFF)) * 1024;/* max 4M… in arcmsr_alloc_ccb_pool()
776 max_sg_entrys = (max_xfer_len/4096); in arcmsr_alloc_ccb_pool()
778 acb->host->max_sectors = max_xfer_len/512; in arcmsr_alloc_ccb_pool()