Home
last modified time | relevance | path

Searched refs:csrwr32 (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/net/ethernet/altera/
H A Daltera_msgdma.c31 csrwr32(MSGDMA_CSR_STAT_MASK, priv->rx_dma_csr, in msgdma_reset()
33 csrwr32(MSGDMA_CSR_CTL_RESET, priv->rx_dma_csr, in msgdma_reset()
52 csrwr32(MSGDMA_CSR_STAT_MASK, priv->tx_dma_csr, in msgdma_reset()
55 csrwr32(MSGDMA_CSR_CTL_RESET, priv->tx_dma_csr, in msgdma_reset()
111 csrwr32(lower_32_bits(buffer->dma_addr), priv->tx_dma_desc, in msgdma_tx_buffer()
113 csrwr32(upper_32_bits(buffer->dma_addr), priv->tx_dma_desc, in msgdma_tx_buffer()
119 csrwr32(MSGDMA_DESC_TX_STRIDE, priv->tx_dma_desc, in msgdma_tx_buffer()
121 csrwr32(MSGDMA_DESC_CTL_TX_SINGLE, priv->tx_dma_desc, in msgdma_tx_buffer()
166 csrwr32(lower_32_bits(dma_addr), priv->rx_dma_desc, in msgdma_add_rx_desc()
168 csrwr32(upper_32_bits(dma_addr), priv->rx_dma_desc, in msgdma_add_rx_desc()
[all …]
H A Daltera_sgdma.c123 csrwr32(0, priv->tx_dma_csr, sgdma_csroffs(control)); in sgdma_reset()
126 csrwr32(0, priv->rx_dma_csr, sgdma_csroffs(control)); in sgdma_reset()
262 csrwr32(0, priv->rx_dma_csr, sgdma_csroffs(control)); in sgdma_rx_status()
318 csrwr32(0, desc, sgdma_descroffs(pad1)); in sgdma_setup_descrip()
319 csrwr32(0, desc, sgdma_descroffs(pad2)); in sgdma_setup_descrip()
367 csrwr32(lower_32_bits(sgdma_rxphysaddr(priv, cdesc)), in sgdma_async_read()
371 csrwr32((priv->rxctrlreg | SGDMA_CTRLREG_START), in sgdma_async_read()
388 csrwr32(0, priv->tx_dma_csr, sgdma_csroffs(control)); in sgdma_async_write()
389 csrwr32(0x1f, priv->tx_dma_csr, sgdma_csroffs(status)); in sgdma_async_write()
394 csrwr32(lower_32_bits(sgdma_txphysaddr(priv, desc)), in sgdma_async_write()
[all …]
H A Daltera_tse_main.c100 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_read()
115 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_write()
652 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
700 csrwr32(ALTERA_TSE_RX_SECTION_FULL, priv->mac_dev, in init_mac()
703 csrwr32(ALTERA_TSE_RX_ALMOST_EMPTY, priv->mac_dev, in init_mac()
706 csrwr32(ALTERA_TSE_RX_ALMOST_FULL, priv->mac_dev, in init_mac()
713 csrwr32(ALTERA_TSE_TX_SECTION_FULL, priv->mac_dev, in init_mac()
716 csrwr32(ALTERA_TSE_TX_ALMOST_EMPTY, priv->mac_dev, in init_mac()
719 csrwr32(ALTERA_TSE_TX_ALMOST_FULL, priv->mac_dev, in init_mac()
729 csrwr32(ALTERA_TSE_TX_IPG_LENGTH, priv->mac_dev, in init_mac()
[all …]
H A Daltera_utils.c13 csrwr32(value, ioaddr, offs); in tse_set_bit()
20 csrwr32(value, ioaddr, offs); in tse_clear_bit()
H A Daltera_tse.h508 void csrwr32(u32 val, void __iomem *mac, size_t offs) in csrwr32() function