Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/altera/
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()
49 csrwr32(MSGDMA_CSR_STAT_MASK, priv->rx_dma_csr, msgdma_csroffs(status)); 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()
71 csrwr32(MSGDMA_CSR_STAT_MASK, priv->tx_dma_csr, msgdma_csroffs(status)); in msgdma_reset()
100 csrwr32(MSGDMA_CSR_STAT_IRQ, priv->rx_dma_csr, msgdma_csroffs(status)); in msgdma_clear_rxirq()
105 csrwr32(MSGDMA_CSR_STAT_IRQ, priv->tx_dma_csr, msgdma_csroffs(status)); in msgdma_clear_txirq()
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()
[all …]
Daltera_sgdma.c122 csrwr32(SGDMA_CTRLREG_RESET, priv->tx_dma_csr, sgdma_csroffs(control)); in sgdma_reset()
123 csrwr32(0, priv->tx_dma_csr, sgdma_csroffs(control)); in sgdma_reset()
125 csrwr32(SGDMA_CTRLREG_RESET, priv->rx_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()
264 csrwr32(0xf, priv->rx_dma_csr, sgdma_csroffs(status)); in sgdma_rx_status()
315 csrwr32(lower_32_bits(raddr), desc, sgdma_descroffs(raddr)); in sgdma_setup_descrip()
316 csrwr32(lower_32_bits(waddr), desc, sgdma_descroffs(waddr)); in sgdma_setup_descrip()
318 csrwr32(0, desc, sgdma_descroffs(pad1)); in sgdma_setup_descrip()
319 csrwr32(0, desc, sgdma_descroffs(pad2)); in sgdma_setup_descrip()
[all …]
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()
119 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write()
652 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr()
653 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr()
670 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
683 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac()
697 csrwr32(priv->rx_fifo_depth - ALTERA_TSE_RX_SECTION_EMPTY, in init_mac()
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()
[all …]
Daltera_utils.c13 csrwr32(value, ioaddr, offs); in tse_set_bit()
20 csrwr32(value, ioaddr, offs); in tse_clear_bit()
Daltera_tse.h508 void csrwr32(u32 val, void __iomem *mac, size_t offs) in csrwr32() function