Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c81 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4)
299 rx_q = &priv->dma_conf.rx_queue[queue]; in stmmac_disable_all_queues()
358 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_tx_avail()
364 avail = priv->dma_conf.dma_tx_size - tx_q->cur_tx + tx_q->dirty_tx - 1; in stmmac_tx_avail()
376 struct stmmac_rx_queue *rx_q = &priv->dma_conf.rx_queue[queue]; in stmmac_rx_dirty()
382 dirty = priv->dma_conf.dma_rx_size - rx_q->dirty_rx + rx_q->cur_rx; in stmmac_rx_dirty()
394 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_eee_tx_busy()
1413 struct stmmac_dma_conf *dma_conf) in stmmac_display_rx_rings() argument
1422 struct stmmac_rx_queue *rx_q = &dma_conf->rx_queue[queue]; in stmmac_display_rx_rings()
1435 stmmac_display_ring(priv, head_rx, dma_conf->dma_rx_size, true, in stmmac_display_rx_rings()
[all …]
H A Dchain_mode.c50 entry = STMMAC_GET_ENTRY(entry, priv->dma_conf.dma_tx_size); in jumbo_frm()
139 priv->dma_conf.dma_rx_size) * in refill_desc3()
156 priv->dma_conf.dma_tx_size)) in clean_desc3()
H A Dring_mode.c54 entry = STMMAC_GET_ENTRY(entry, priv->dma_conf.dma_tx_size); in jumbo_frm()
104 if (priv->dma_conf.dma_buf_sz == BUF_SIZE_16KiB) in refill_desc3()
H A Dstmmac_tc.c1165 if (!(priv->dma_conf.tx_queue[qopt->queue].tbs & STMMAC_TBS_AVAIL)) in tc_setup_etf()
1169 priv->dma_conf.tx_queue[qopt->queue].tbs |= STMMAC_TBS_EN; in tc_setup_etf()
1171 priv->dma_conf.tx_queue[qopt->queue].tbs &= ~STMMAC_TBS_EN; in tc_setup_etf()
H A Dstmmac.h270 struct stmmac_dma_conf dma_conf; member
H A 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()
H A Dstmmac_ethtool.c400 ring->rx_pending = priv->dma_conf.dma_rx_size; in stmmac_get_ringparam()
401 ring->tx_pending = priv->dma_conf.dma_tx_size; in stmmac_get_ringparam()
/linux/arch/powerpc/platforms/512x/
H A Dmpc512x_lpbfifo.c168 struct dma_slave_config dma_conf = {}; in mpc512x_lpbfifo_kick() local
208 dma_conf.dst_maxburst = max(bpt, 0x4u) / 4; in mpc512x_lpbfifo_kick()
209 dma_conf.src_maxburst = max(bpt, 0x4u) / 4; in mpc512x_lpbfifo_kick()
230 dma_conf.direction = DMA_MEM_TO_DEV; in mpc512x_lpbfifo_kick()
231 dma_conf.dst_addr = lpbfifo.regs_phys + in mpc512x_lpbfifo_kick()
235 dma_conf.direction = DMA_DEV_TO_MEM; in mpc512x_lpbfifo_kick()
236 dma_conf.src_addr = lpbfifo.regs_phys + in mpc512x_lpbfifo_kick()
239 dma_conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in mpc512x_lpbfifo_kick()
240 dma_conf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in mpc512x_lpbfifo_kick()
243 if (dma_dev->device_config(lpbfifo.chan, &dma_conf)) in mpc512x_lpbfifo_kick()
[all …]
/linux/drivers/crypto/
H A Datmel-tdes.c81 struct dma_slave_config dma_conf; member
412 dd->dma_lch_in.dma_conf.dst_addr_width = addr_width; in atmel_tdes_crypt_dma()
413 dd->dma_lch_out.dma_conf.src_addr_width = addr_width; in atmel_tdes_crypt_dma()
415 dmaengine_slave_config(dd->dma_lch_in.chan, &dd->dma_lch_in.dma_conf); in atmel_tdes_crypt_dma()
416 dmaengine_slave_config(dd->dma_lch_out.chan, &dd->dma_lch_out.dma_conf); in atmel_tdes_crypt_dma()
679 dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base + in atmel_tdes_dma_init()
681 dd->dma_lch_in.dma_conf.src_maxburst = 1; in atmel_tdes_dma_init()
682 dd->dma_lch_in.dma_conf.src_addr_width = in atmel_tdes_dma_init()
684 dd->dma_lch_in.dma_conf.dst_maxburst = 1; in atmel_tdes_dma_init()
685 dd->dma_lch_in.dma_conf.dst_addr_width = in atmel_tdes_dma_init()
[all …]
H A 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()
H A 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()
1447 struct dma_slave_config *config = &dma->dma_conf; in atmel_sha_dma_start()
2500 dd->dma_lch_in.dma_conf.dst_addr = dd->phys_base + in atmel_sha_dma_init()
2502 dd->dma_lch_in.dma_conf.src_maxburst = 1; in atmel_sha_dma_init()
2503 dd->dma_lch_in.dma_conf.src_addr_width = in atmel_sha_dma_init()
2505 dd->dma_lch_in.dma_conf.dst_maxburst = 1; in atmel_sha_dma_init()
2506 dd->dma_lch_in.dma_conf.dst_addr_width = in atmel_sha_dma_init()
[all …]
/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.c463 writel(ep->epn.dma_conf, in ast_vhub_stop_active_req()
467 writel(ep->epn.dma_conf, in ast_vhub_stop_active_req()
718 ep->epn.dma_conf = VHUB_EP_DMA_DESC_MODE; in ast_vhub_epn_enable()
720 ep->epn.dma_conf |= VHUB_EP_DMA_IN_LONG_MODE; in ast_vhub_epn_enable()
723 writel(ep->epn.dma_conf | VHUB_EP_DMA_CTRL_RESET, in ast_vhub_epn_enable()
727 writel(ep->epn.dma_conf, in ast_vhub_epn_enable()
731 ep->epn.dma_conf = VHUB_EP_DMA_SINGLE_STAGE; in ast_vhub_epn_enable()
734 writel(ep->epn.dma_conf | VHUB_EP_DMA_CTRL_RESET, in ast_vhub_epn_enable()
736 writel(ep->epn.dma_conf, in ast_vhub_epn_enable()
H A Dvhub.h323 unsigned int dma_conf; member
/linux/drivers/mmc/host/
H A Dloongson2-mmc.c644 struct dma_slave_config dma_conf = { }; in loongson2_mmc_prepare_external_dma() local
653 dma_conf.src_addr = host->res->start + LOONGSON2_MMC_REG_DATA, in loongson2_mmc_prepare_external_dma()
654 dma_conf.dst_addr = host->res->start + LOONGSON2_MMC_REG_DATA, in loongson2_mmc_prepare_external_dma()
655 dma_conf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES, in loongson2_mmc_prepare_external_dma()
656 dma_conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES, in loongson2_mmc_prepare_external_dma()
657 dma_conf.direction = !(data->flags & MMC_DATA_WRITE) ? DMA_DEV_TO_MEM : DMA_MEM_TO_DEV; in loongson2_mmc_prepare_external_dma()
659 dmaengine_slave_config(host->chan, &dma_conf); in loongson2_mmc_prepare_external_dma()
661 dma_conf.direction, in loongson2_mmc_prepare_external_dma()
H A Datmel-mci.c351 struct dma_slave_config dma_conf; member
1157 host->dma_conf.direction = slave_dirn = DMA_DEV_TO_MEM; in atmci_prepare_data_dma()
1159 host->dma_conf.src_maxburst); in atmci_prepare_data_dma()
1161 host->dma_conf.direction = slave_dirn = DMA_MEM_TO_DEV; in atmci_prepare_data_dma()
1163 host->dma_conf.dst_maxburst); in atmci_prepare_data_dma()
1173 dmaengine_slave_config(chan, &host->dma_conf); in atmci_prepare_data_dma()
2375 host->dma_conf.src_addr = host->mapbase + ATMCI_RDR; in atmci_configure_dma()
2376 host->dma_conf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in atmci_configure_dma()
2377 host->dma_conf.src_maxburst = 1; in atmci_configure_dma()
2378 host->dma_conf.dst_addr = host->mapbase + ATMCI_TDR; in atmci_configure_dma()
[all …]
/linux/drivers/crypto/stm32/
H A Dstm32-cryp.c2225 struct dma_slave_config dma_conf; in stm32_cryp_dma_init() local
2229 memset(&dma_conf, 0, sizeof(dma_conf)); in stm32_cryp_dma_init()
2231 dma_conf.direction = DMA_MEM_TO_DEV; in stm32_cryp_dma_init()
2232 dma_conf.dst_addr = cryp->phys_base + cryp->caps->din; in stm32_cryp_dma_init()
2233 dma_conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_cryp_dma_init()
2234 dma_conf.dst_maxburst = CRYP_DMA_BURST_REG; in stm32_cryp_dma_init()
2235 dma_conf.device_fc = false; in stm32_cryp_dma_init()
2242 ret = dmaengine_slave_config(cryp->dma_lch_in, &dma_conf); in stm32_cryp_dma_init()
2250 memset(&dma_conf, 0, sizeof(dma_conf)); in stm32_cryp_dma_init()
2252 dma_conf.direction = DMA_DEV_TO_MEM; in stm32_cryp_dma_init()
[all …]
H A Dstm32-hash.c624 struct dma_slave_config dma_conf; in stm32_hash_dma_init() local
628 memset(&dma_conf, 0, sizeof(dma_conf)); in stm32_hash_dma_init()
630 dma_conf.direction = DMA_MEM_TO_DEV; in stm32_hash_dma_init()
631 dma_conf.dst_addr = hdev->phys_base + HASH_DIN; in stm32_hash_dma_init()
632 dma_conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in stm32_hash_dma_init()
633 dma_conf.src_maxburst = HASH_BURST_LEVEL; in stm32_hash_dma_init()
634 dma_conf.dst_maxburst = HASH_BURST_LEVEL; in stm32_hash_dma_init()
635 dma_conf.device_fc = false; in stm32_hash_dma_init()
643 err = dmaengine_slave_config(hdev->dma_lch, &dma_conf); in stm32_hash_dma_init()
/linux/Documentation/arch/arm/stm32/
H A Dstm32-dma-mdma-chaining.rst314 struct dma_slave_config dma_conf;
317 memset(&dma_conf, 0, sizeof(dma_conf));
329 mdma_conf.peripheral_size = dma_conf.peripheral_size; // <- dma_conf
330 mdma_conf.peripheral_config = dma_config.peripheral_config; // <- dma_conf
/linux/drivers/spi/
H A Dspi-stm32.c1278 struct dma_slave_config *dma_conf, in stm32_spi_dma_config() argument
1302 memset(dma_conf, 0, sizeof(struct dma_slave_config)); in stm32_spi_dma_config()
1303 dma_conf->direction = dir; in stm32_spi_dma_config()
1304 if (dma_conf->direction == DMA_DEV_TO_MEM) { /* RX */ in stm32_spi_dma_config()
1305 dma_conf->src_addr = spi->phys_addr + spi->cfg->regs->rx.reg; in stm32_spi_dma_config()
1306 dma_conf->src_addr_width = buswidth; in stm32_spi_dma_config()
1307 dma_conf->src_maxburst = maxburst; in stm32_spi_dma_config()
1311 } else if (dma_conf->direction == DMA_MEM_TO_DEV) { /* TX */ in stm32_spi_dma_config()
1312 dma_conf->dst_addr = spi->phys_addr + spi->cfg->regs->tx.reg; in stm32_spi_dma_config()
1313 dma_conf->dst_addr_width = buswidth; in stm32_spi_dma_config()
[all …]