Searched refs:dma_conf (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_main.c | 81 #define STMMAC_TX_THRESH(x) ((x)->dma_conf.dma_tx_size / 4) 282 rx_q = &priv->dma_conf.rx_queue[queue]; in stmmac_disable_all_queues() 341 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_tx_avail() 347 avail = priv->dma_conf.dma_tx_size - tx_q->cur_tx + tx_q->dirty_tx - 1; in stmmac_tx_avail() 359 struct stmmac_rx_queue *rx_q = &priv->dma_conf.rx_queue[queue]; in stmmac_rx_dirty() 365 dirty = priv->dma_conf.dma_rx_size - rx_q->dirty_rx + rx_q->cur_rx; in stmmac_rx_dirty() 377 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_eee_tx_busy() 1363 struct stmmac_dma_conf *dma_conf) in stmmac_display_rx_rings() argument 1372 struct stmmac_rx_queue *rx_q = &dma_conf->rx_queue[queue]; in stmmac_display_rx_rings() 1385 stmmac_display_ring(priv, head_rx, dma_conf->dma_rx_size, true, in stmmac_display_rx_rings() [all …]
|
| H A D | stmmac_tc.c | 1165 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()
|
| /linux/arch/powerpc/platforms/512x/ |
| H A D | mpc512x_lpbfifo.c | 168 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/usb/gadget/udc/aspeed-vhub/ |
| H A D | epn.c | 463 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 D | vhub.h | 323 unsigned int dma_conf; member
|
| /linux/drivers/mmc/host/ |
| H A D | loongson2-mmc.c | 644 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()
|
| /linux/drivers/crypto/ |
| H A D | img-hash.c | 334 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()
|
| /linux/drivers/spi/ |
| H A D | spi-stm32.c | 1272 struct dma_slave_config *dma_conf, in stm32_spi_dma_config() argument 1296 memset(dma_conf, 0, sizeof(struct dma_slave_config)); in stm32_spi_dma_config() 1297 dma_conf->direction = dir; in stm32_spi_dma_config() 1298 if (dma_conf->direction == DMA_DEV_TO_MEM) { /* RX */ in stm32_spi_dma_config() 1299 dma_conf->src_addr = spi->phys_addr + spi->cfg->regs->rx.reg; in stm32_spi_dma_config() 1300 dma_conf->src_addr_width = buswidth; in stm32_spi_dma_config() 1301 dma_conf->src_maxburst = maxburst; in stm32_spi_dma_config() 1305 } else if (dma_conf->direction == DMA_MEM_TO_DEV) { /* TX */ in stm32_spi_dma_config() 1306 dma_conf->dst_addr = spi->phys_addr + spi->cfg->regs->tx.reg; in stm32_spi_dma_config() 1307 dma_conf->dst_addr_width = buswidth; in stm32_spi_dma_config() [all …]
|
| /linux/Documentation/arch/arm/stm32/ |
| H A D | stm32-dma-mdma-chaining.rst | 314 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
|