Home
last modified time | relevance | path

Searched refs:dma_conf (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/stmicro/stmmac/
Dstmmac_main.c77 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4)
78 #define STMMAC_RX_THRESH(x) ((x)->dma_conf.dma_rx_size / 4)
237 rx_q = &priv->dma_conf.rx_queue[queue]; in stmmac_disable_all_queues()
363 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_tx_avail()
369 avail = priv->dma_conf.dma_tx_size - tx_q->cur_tx + tx_q->dirty_tx - 1; in stmmac_tx_avail()
381 struct stmmac_rx_queue *rx_q = &priv->dma_conf.rx_queue[queue]; in stmmac_rx_dirty()
387 dirty = priv->dma_conf.dma_rx_size - rx_q->dirty_rx + rx_q->cur_rx; in stmmac_rx_dirty()
415 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_enable_eee_mode()
1254 struct stmmac_dma_conf *dma_conf) in stmmac_display_rx_rings() argument
1263 struct stmmac_rx_queue *rx_q = &dma_conf->rx_queue[queue]; in stmmac_display_rx_rings()
[all …]
Dchain_mode.c49 entry = STMMAC_GET_ENTRY(entry, priv->dma_conf.dma_tx_size); in jumbo_frm()
140 priv->dma_conf.dma_rx_size) * in refill_desc3()
158 priv->dma_conf.dma_tx_size)) in clean_desc3()
Dring_mode.c54 entry = STMMAC_GET_ENTRY(entry, priv->dma_conf.dma_tx_size); in jumbo_frm()
110 if (priv->dma_conf.dma_buf_sz == BUF_SIZE_16KiB) in refill_desc3()
Dstmmac_tc.c1095 if (!(priv->dma_conf.tx_queue[qopt->queue].tbs & STMMAC_TBS_AVAIL)) in tc_setup_etf()
1099 priv->dma_conf.tx_queue[qopt->queue].tbs |= STMMAC_TBS_EN; in tc_setup_etf()
1101 priv->dma_conf.tx_queue[qopt->queue].tbs &= ~STMMAC_TBS_EN; in tc_setup_etf()
Dstmmac.h227 struct stmmac_dma_conf dma_conf; member
Dstmmac_selftests.c798 tail = priv->dma_conf.rx_queue[i].dma_rx_phy + in stmmac_test_flowctrl()
799 (priv->dma_conf.dma_rx_size * sizeof(struct dma_desc)); in stmmac_test_flowctrl()
1687 int size = priv->dma_conf.dma_buf_sz; in __stmmac_test_jumbo()
1770 if (priv->dma_conf.tx_queue[i].tbs & STMMAC_TBS_AVAIL) in stmmac_test_tbs()
Dstmmac_ethtool.c488 ring->rx_pending = priv->dma_conf.dma_rx_size; in stmmac_get_ringparam()
489 ring->tx_pending = priv->dma_conf.dma_tx_size; in stmmac_get_ringparam()
/drivers/crypto/
Datmel-tdes.c91 struct dma_slave_config dma_conf; member
448 dd->dma_lch_in.dma_conf.dst_addr_width = addr_width; in atmel_tdes_crypt_dma()
449 dd->dma_lch_out.dma_conf.src_addr_width = addr_width; in atmel_tdes_crypt_dma()
451 dmaengine_slave_config(dd->dma_lch_in.chan, &dd->dma_lch_in.dma_conf); in atmel_tdes_crypt_dma()
452 dmaengine_slave_config(dd->dma_lch_out.chan, &dd->dma_lch_out.dma_conf); in atmel_tdes_crypt_dma()
748 dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base + in atmel_tdes_dma_init()
750 dd->dma_lch_in.dma_conf.src_maxburst = 1; in atmel_tdes_dma_init()
751 dd->dma_lch_in.dma_conf.src_addr_width = in atmel_tdes_dma_init()
753 dd->dma_lch_in.dma_conf.dst_maxburst = 1; in atmel_tdes_dma_init()
754 dd->dma_lch_in.dma_conf.dst_addr_width = in atmel_tdes_dma_init()
[all …]
Dimg-hash.c334 struct dma_slave_config dma_conf; in img_hash_dma_init() local
342 dma_conf.direction = DMA_MEM_TO_DEV; in img_hash_dma_init()
343 dma_conf.dst_addr = hdev->bus_addr; in img_hash_dma_init()
344 dma_conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in img_hash_dma_init()
345 dma_conf.dst_maxburst = IMG_HASH_DMA_BURST; in img_hash_dma_init()
346 dma_conf.device_fc = false; in img_hash_dma_init()
348 err = dmaengine_slave_config(hdev->dma_lch, &dma_conf); in img_hash_dma_init()
Datmel-sha.c124 struct dma_slave_config dma_conf; member
647 dd->dma_lch_in.dma_conf.src_maxburst = 16; in atmel_sha_xmit_dma()
648 dd->dma_lch_in.dma_conf.dst_maxburst = 16; in atmel_sha_xmit_dma()
650 dmaengine_slave_config(dd->dma_lch_in.chan, &dd->dma_lch_in.dma_conf); in atmel_sha_xmit_dma()
1448 struct dma_slave_config *config = &dma->dma_conf; in atmel_sha_dma_start()
2481 dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base + in atmel_sha_dma_init()
2483 dd->dma_lch_in.dma_conf.src_maxburst = 1; in atmel_sha_dma_init()
2484 dd->dma_lch_in.dma_conf.src_addr_width = in atmel_sha_dma_init()
2486 dd->dma_lch_in.dma_conf.dst_maxburst = 1; in atmel_sha_dma_init()
2487 dd->dma_lch_in.dma_conf.dst_addr_width = in atmel_sha_dma_init()
[all …]
/drivers/usb/gadget/udc/aspeed-vhub/
Depn.c456 writel(ep->epn.dma_conf, in ast_vhub_stop_active_req()
460 writel(ep->epn.dma_conf, in ast_vhub_stop_active_req()
711 ep->epn.dma_conf = VHUB_EP_DMA_DESC_MODE; in ast_vhub_epn_enable()
713 ep->epn.dma_conf |= VHUB_EP_DMA_IN_LONG_MODE; in ast_vhub_epn_enable()
716 writel(ep->epn.dma_conf | VHUB_EP_DMA_CTRL_RESET, in ast_vhub_epn_enable()
720 writel(ep->epn.dma_conf, in ast_vhub_epn_enable()
724 ep->epn.dma_conf = VHUB_EP_DMA_SINGLE_STAGE; in ast_vhub_epn_enable()
727 writel(ep->epn.dma_conf | VHUB_EP_DMA_CTRL_RESET, in ast_vhub_epn_enable()
729 writel(ep->epn.dma_conf, in ast_vhub_epn_enable()
Dvhub.h323 unsigned int dma_conf; member
/drivers/crypto/stm32/
Dstm32-hash.c511 struct dma_slave_config dma_conf; in stm32_hash_dma_init() local
515 memset(&dma_conf, 0, sizeof(dma_conf)); in stm32_hash_dma_init()
517 dma_conf.direction = DMA_MEM_TO_DEV; in stm32_hash_dma_init()
518 dma_conf.dst_addr = hdev->phys_base + HASH_DIN; in stm32_hash_dma_init()
519 dma_conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_hash_dma_init()
520 dma_conf.src_maxburst = hdev->dma_maxburst; in stm32_hash_dma_init()
521 dma_conf.dst_maxburst = hdev->dma_maxburst; in stm32_hash_dma_init()
522 dma_conf.device_fc = false; in stm32_hash_dma_init()
530 err = dmaengine_slave_config(hdev->dma_lch, &dma_conf); in stm32_hash_dma_init()
/drivers/spi/
Dspi-stm32.c1054 struct dma_slave_config *dma_conf, in stm32_spi_dma_config() argument
1077 memset(dma_conf, 0, sizeof(struct dma_slave_config)); in stm32_spi_dma_config()
1078 dma_conf->direction = dir; in stm32_spi_dma_config()
1079 if (dma_conf->direction == DMA_DEV_TO_MEM) { /* RX */ in stm32_spi_dma_config()
1080 dma_conf->src_addr = spi->phys_addr + spi->cfg->regs->rx.reg; in stm32_spi_dma_config()
1081 dma_conf->src_addr_width = buswidth; in stm32_spi_dma_config()
1082 dma_conf->src_maxburst = maxburst; in stm32_spi_dma_config()
1086 } else if (dma_conf->direction == DMA_MEM_TO_DEV) { /* TX */ in stm32_spi_dma_config()
1087 dma_conf->dst_addr = spi->phys_addr + spi->cfg->regs->tx.reg; in stm32_spi_dma_config()
1088 dma_conf->dst_addr_width = buswidth; in stm32_spi_dma_config()
[all …]
/drivers/mmc/host/
Datmel-mci.c325 struct dma_slave_config dma_conf; member
1132 host->dma_conf.direction = slave_dirn = DMA_DEV_TO_MEM; in atmci_prepare_data_dma()
1134 host->dma_conf.src_maxburst); in atmci_prepare_data_dma()
1136 host->dma_conf.direction = slave_dirn = DMA_MEM_TO_DEV; in atmci_prepare_data_dma()
1138 host->dma_conf.dst_maxburst); in atmci_prepare_data_dma()
1148 dmaengine_slave_config(chan, &host->dma_conf); in atmci_prepare_data_dma()
2379 host->dma_conf.src_addr = host->mapbase + ATMCI_RDR; in atmci_configure_dma()
2380 host->dma_conf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in atmci_configure_dma()
2381 host->dma_conf.src_maxburst = 1; in atmci_configure_dma()
2382 host->dma_conf.dst_addr = host->mapbase + ATMCI_TDR; in atmci_configure_dma()
[all …]