Lines Matching refs:tc_writel
380 #define tc_writel(d, addr) iowrite32(d, addr) macro
509 tc_writel(MD_CA_Busy | (mii_id << 5) | (regnum & 0x1f), &tr->MD_CA); in tc_mdio_read()
526 tc_writel(val, &tr->MD_Data); in tc_mdio_write()
527 tc_writel(MD_CA_Busy | MD_CA_Wr | (mii_id << 5) | (regnum & 0x1f), in tc_mdio_write()
554 tc_writel(reg, &tr->MAC_Ctl); in tc_handle_link_change()
559 tc_writel(reg, &tr->MAC_Ctl); in tc_handle_link_change()
561 tc_writel(reg, &tr->MAC_Ctl); in tc_handle_link_change()
574 tc_writel(tc_readl(&tr->Tx_Ctl) | Tx_EnLCarr, in tc_handle_link_change()
734 tc_writel(PROM_Busy | PROM_Read | (i / 2 + 2), &tr->PROM_Ctl); in tc35815_init_dev_addr()
1189 tc_writel(0, &tr->Int_En); in tc35815_schedule_restart()
1190 tc_writel(tc_readl(&tr->DMA_Ctl) | DMA_IntMask, &tr->DMA_Ctl); in tc35815_schedule_restart()
1321 tc_writel(fd_virt_to_bus(lp, txfd), &tr->TxFrmPtr); in tc35815_send_packet()
1438 tc_writel(dmactl | DMA_IntMask, &tr->DMA_Ctl); in tc35815_interrupt()
1637 tc_writel(status & ~(Int_BLEx | Int_FDAEx), in tc35815_poll()
1642 tc_writel(status & (Int_BLEx | Int_FDAEx), in tc35815_poll()
1656 tc_writel(tc_readl(&tr->DMA_Ctl) & ~DMA_IntMask, &tr->DMA_Ctl); in tc35815_poll()
1701 tc_writel(TX_THRESHOLD_MAX, &tr->TxThrsh); in tc35815_check_tx_stat()
1812 tc_writel(fd_virt_to_bus(lp, txfd), &tr->TxFrmPtr); in tc35815_txdone()
1880 tc_writel(cam_index - 2, &tr->CAM_Adr); in tc35815_set_cam_entry()
1883 tc_writel(cam_data, &tr->CAM_Data); in tc35815_set_cam_entry()
1885 tc_writel(cam_index + 2, &tr->CAM_Adr); in tc35815_set_cam_entry()
1887 tc_writel(cam_data, &tr->CAM_Data); in tc35815_set_cam_entry()
1890 tc_writel(cam_index, &tr->CAM_Adr); in tc35815_set_cam_entry()
1892 tc_writel(cam_data, &tr->CAM_Data); in tc35815_set_cam_entry()
1894 tc_writel(cam_index + 4, &tr->CAM_Adr); in tc35815_set_cam_entry()
1897 tc_writel(cam_data, &tr->CAM_Data); in tc35815_set_cam_entry()
1900 tc_writel(saved_addr, &tr->CAM_Adr); in tc35815_set_cam_entry()
1926 tc_writel(CAM_CompEn | CAM_BroadAcc | CAM_GroupAcc | CAM_StationAcc, &tr->CAM_Ctl); in tc35815_set_multicast_list()
1931 tc_writel(CAM_CompEn | CAM_BroadAcc | CAM_GroupAcc, &tr->CAM_Ctl); in tc35815_set_multicast_list()
1937 tc_writel(0, &tr->CAM_Ctl); in tc35815_set_multicast_list()
1946 tc_writel(ena_bits, &tr->CAM_Ena); in tc35815_set_multicast_list()
1947 tc_writel(CAM_CompEn | CAM_BroadAcc, &tr->CAM_Ctl); in tc35815_set_multicast_list()
1949 tc_writel(CAM_Ena_Bit(CAM_ENTRY_SOURCE), &tr->CAM_Ena); in tc35815_set_multicast_list()
1950 tc_writel(CAM_CompEn | CAM_BroadAcc, &tr->CAM_Ctl); in tc35815_set_multicast_list()
2028 tc_writel(MAC_Reset, &tr->MAC_Ctl); in tc35815_chip_reset()
2038 tc_writel(0, &tr->MAC_Ctl); in tc35815_chip_reset()
2041 tc_writel(0, &tr->DMA_Ctl); in tc35815_chip_reset()
2042 tc_writel(0, &tr->TxThrsh); in tc35815_chip_reset()
2043 tc_writel(0, &tr->TxPollCtr); in tc35815_chip_reset()
2044 tc_writel(0, &tr->RxFragSize); in tc35815_chip_reset()
2045 tc_writel(0, &tr->Int_En); in tc35815_chip_reset()
2046 tc_writel(0, &tr->FDA_Bas); in tc35815_chip_reset()
2047 tc_writel(0, &tr->FDA_Lim); in tc35815_chip_reset()
2048 tc_writel(0xffffffff, &tr->Int_Src); /* Write 1 to clear */ in tc35815_chip_reset()
2049 tc_writel(0, &tr->CAM_Ctl); in tc35815_chip_reset()
2050 tc_writel(0, &tr->Tx_Ctl); in tc35815_chip_reset()
2051 tc_writel(0, &tr->Rx_Ctl); in tc35815_chip_reset()
2052 tc_writel(0, &tr->CAM_Ena); in tc35815_chip_reset()
2056 tc_writel(DMA_TestMode, &tr->DMA_Ctl); in tc35815_chip_reset()
2058 tc_writel(i, &tr->CAM_Adr); in tc35815_chip_reset()
2059 tc_writel(0, &tr->CAM_Data); in tc35815_chip_reset()
2061 tc_writel(0, &tr->DMA_Ctl); in tc35815_chip_reset()
2075 tc_writel(CAM_Ena_Bit(CAM_ENTRY_SOURCE), &tr->CAM_Ena); in tc35815_chip_init()
2076 tc_writel(CAM_CompEn | CAM_BroadAcc, &tr->CAM_Ctl); in tc35815_chip_init()
2080 tc_writel(DMA_BURST_SIZE | DMA_RxAlign_2, &tr->DMA_Ctl); in tc35815_chip_init()
2082 tc_writel(DMA_BURST_SIZE, &tr->DMA_Ctl); in tc35815_chip_init()
2083 tc_writel(0, &tr->TxPollCtr); /* Batch mode */ in tc35815_chip_init()
2084 tc_writel(TX_THRESHOLD, &tr->TxThrsh); in tc35815_chip_init()
2085 tc_writel(INT_EN_CMD, &tr->Int_En); in tc35815_chip_init()
2088 tc_writel(fd_virt_to_bus(lp, lp->rfd_base), &tr->FDA_Bas); in tc35815_chip_init()
2089 tc_writel((unsigned long)lp->rfd_limit - (unsigned long)lp->rfd_base, in tc35815_chip_init()
2096 tc_writel(fd_virt_to_bus(lp, lp->fbl_ptr), &tr->BLFrmPtr); /* start DMA receiver */ in tc35815_chip_init()
2097 tc_writel(RX_CTL_CMD, &tr->Rx_Ctl); /* start MAC receiver */ in tc35815_chip_init()
2106 tc_writel(txctl, &tr->Tx_Ctl); in tc35815_chip_init()