Searched refs:csrwr32 (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/altera/ |
D | altera_msgdma.c | 42 csrwr32(MSGDMA_CSR_STAT_MASK, priv->rx_dma_csr, in msgdma_reset() 44 csrwr32(MSGDMA_CSR_CTL_RESET, priv->rx_dma_csr, in msgdma_reset() 60 csrwr32(MSGDMA_CSR_STAT_MASK, priv->rx_dma_csr, msgdma_csroffs(status)); in msgdma_reset() 63 csrwr32(MSGDMA_CSR_STAT_MASK, priv->tx_dma_csr, in msgdma_reset() 66 csrwr32(MSGDMA_CSR_CTL_RESET, priv->tx_dma_csr, in msgdma_reset() 82 csrwr32(MSGDMA_CSR_STAT_MASK, priv->tx_dma_csr, msgdma_csroffs(status)); in msgdma_reset() 111 csrwr32(MSGDMA_CSR_STAT_IRQ, priv->rx_dma_csr, msgdma_csroffs(status)); in msgdma_clear_rxirq() 116 csrwr32(MSGDMA_CSR_STAT_IRQ, priv->tx_dma_csr, msgdma_csroffs(status)); in msgdma_clear_txirq() 122 csrwr32(lower_32_bits(buffer->dma_addr), priv->tx_dma_desc, in msgdma_tx_buffer() 124 csrwr32(upper_32_bits(buffer->dma_addr), priv->tx_dma_desc, in msgdma_tx_buffer() [all …]
|
D | altera_sgdma.c | 133 csrwr32(SGDMA_CTRLREG_RESET, priv->tx_dma_csr, sgdma_csroffs(control)); in sgdma_reset() 134 csrwr32(0, priv->tx_dma_csr, sgdma_csroffs(control)); in sgdma_reset() 136 csrwr32(SGDMA_CTRLREG_RESET, priv->rx_dma_csr, sgdma_csroffs(control)); in sgdma_reset() 137 csrwr32(0, priv->rx_dma_csr, sgdma_csroffs(control)); in sgdma_reset() 273 csrwr32(0, priv->rx_dma_csr, sgdma_csroffs(control)); in sgdma_rx_status() 275 csrwr32(0xf, priv->rx_dma_csr, sgdma_csroffs(status)); in sgdma_rx_status() 326 csrwr32(lower_32_bits(raddr), desc, sgdma_descroffs(raddr)); in sgdma_setup_descrip() 327 csrwr32(lower_32_bits(waddr), desc, sgdma_descroffs(waddr)); in sgdma_setup_descrip() 329 csrwr32(0, desc, sgdma_descroffs(pad1)); in sgdma_setup_descrip() 330 csrwr32(0, desc, sgdma_descroffs(pad2)); in sgdma_setup_descrip() [all …]
|
D | altera_tse_main.c | 111 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy0) + regnum * 4); in sgmii_pcs_write() 129 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_read() 144 csrwr32((mii_id & 0x1f), priv->mac_dev, in altera_tse_mdio_write() 148 csrwr32(value, priv->mac_dev, tse_csroffs(mdio_phy1) + regnum * 4); in altera_tse_mdio_write() 873 csrwr32(msb, priv->mac_dev, tse_csroffs(mac_addr_0)); in tse_update_mac_addr() 874 csrwr32(lsb, priv->mac_dev, tse_csroffs(mac_addr_1)); in tse_update_mac_addr() 891 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac() 904 csrwr32(dat, priv->mac_dev, tse_csroffs(command_config)); in reset_mac() 918 csrwr32(priv->rx_fifo_depth - ALTERA_TSE_RX_SECTION_EMPTY, in init_mac() 921 csrwr32(ALTERA_TSE_RX_SECTION_FULL, priv->mac_dev, in init_mac() [all …]
|
D | altera_utils.c | 24 csrwr32(value, ioaddr, offs); in tse_set_bit() 31 csrwr32(value, ioaddr, offs); in tse_clear_bit()
|
D | altera_tse.h | 522 void csrwr32(u32 val, void __iomem *mac, size_t offs) in csrwr32() function
|