mtk_w32 195 drivers/media/rc/mtk-cir.c mtk_w32(ir, val & ~mask, ir->data->regs[MTK_IRINT_EN_REG]); mtk_w32 203 drivers/media/rc/mtk-cir.c mtk_w32(ir, val | mask, ir->data->regs[MTK_IRINT_EN_REG]); mtk_w32 410 drivers/media/rc/mtk-cir.c mtk_w32(ir, val, MTK_CONFIG_HIGH_REG); mtk_w32 65 drivers/net/ethernet/mediatek/mtk_eth_path.c mtk_w32(eth, val, MTK_MAC_MISC); mtk_w32 75 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val, reg); mtk_w32 103 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, PHY_IAC_ACCESS | PHY_IAC_START | PHY_IAC_WRITE | mtk_w32 121 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, PHY_IAC_ACCESS | PHY_IAC_START | PHY_IAC_READ | mtk_w32 181 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val, INTF_MODE); mtk_w32 194 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val, TRGMII_RCK_CTRL); mtk_w32 198 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val, TRGMII_TCK_CTRL); mtk_w32 272 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, mtk_w32 372 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, mcr_new, MTK_MAC_MCR(mac->id)); mtk_w32 436 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); mtk_w32 448 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, mcr, MTK_MAC_MCR(mac->id)); mtk_w32 597 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val & ~mask, eth->tx_int_mask_reg); mtk_w32 608 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val | mask, eth->tx_int_mask_reg); mtk_w32 619 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val & ~mask, MTK_PDMA_INT_MASK); mtk_w32 630 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val | mask, MTK_PDMA_INT_MASK); mtk_w32 649 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, (macaddr[0] << 8) | macaddr[1], mtk_w32 651 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, (macaddr[2] << 24) | (macaddr[3] << 16) | mtk_w32 655 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, (macaddr[0] << 8) | macaddr[1], mtk_w32 657 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(mac->hw, (macaddr[2] << 24) | (macaddr[3] << 16) | mtk_w32 813 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, eth->phy_scratch_ring, MTK_QDMA_FQ_HEAD); mtk_w32 814 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, phy_ring_tail, MTK_QDMA_FQ_TAIL); mtk_w32 815 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (cnt << 16) | cnt, MTK_QDMA_FQ_CNT); mtk_w32 816 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_QDMA_PAGE_SIZE << 16, MTK_QDMA_FQ_BLEN); mtk_w32 1044 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, txd->txd2, MTK_QTX_CTX_PTR); mtk_w32 1048 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, next_idx, MT7628_TX_CTX_IDX0); mtk_w32 1213 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); mtk_w32 1219 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg); mtk_w32 1384 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, cpu, MTK_QTX_CRX_PTR); mtk_w32 1462 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (MTK_GDM1_AF | MTK_GDM2_AF), mtk_w32 1475 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_TX_DONE_INT, eth->tx_int_status_reg); mtk_w32 1509 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_RX_DONE_INT, MTK_PDMA_INT_STATUS); mtk_w32 1585 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->phys, MTK_QTX_CTX_PTR); mtk_w32 1586 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->phys, MTK_QTX_DTX_PTR); mtk_w32 1587 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, mtk_w32 1590 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, mtk_w32 1593 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (QDMA_RES_THRES << 8) | QDMA_RES_THRES, mtk_w32 1596 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->phys_pdma, MT7628_TX_BASE_PTR0); mtk_w32 1597 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_DMA_SIZE, MT7628_TX_MAX_CNT0); mtk_w32 1598 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0, MT7628_TX_CTX_IDX0); mtk_w32 1599 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MT7628_PST_DTX_IDX0, MTK_PDMA_RST_IDX); mtk_w32 1703 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->phys, MTK_PRX_BASE_PTR_CFG(ring_no) + offset); mtk_w32 1704 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, rx_dma_size, MTK_PRX_MAX_CNT_CFG(ring_no) + offset); mtk_w32 1705 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring->calc_idx, ring->crx_idx_reg + offset); mtk_w32 1706 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_PST_DRX_IDX_CFG(ring_no), MTK_PDMA_RST_IDX + offset); mtk_w32 1764 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring_ctrl_dw1, MTK_LRO_CTRL_DW1_CFG(i)); mtk_w32 1765 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring_ctrl_dw2, MTK_LRO_CTRL_DW2_CFG(i)); mtk_w32 1766 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ring_ctrl_dw3, MTK_LRO_CTRL_DW3_CFG(i)); mtk_w32 1776 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_HW_LRO_BW_THRE, MTK_PDMA_LRO_CTRL_DW2); mtk_w32 1779 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_HW_LRO_REPLACE_DELTA, MTK_PDMA_LRO_ALT_SCORE_DELTA); mtk_w32 1782 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (MTK_HW_LRO_TIMER_UNIT << 16) | MTK_HW_LRO_REFRESH_TIME, mtk_w32 1794 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, lro_ctrl_dw3, MTK_PDMA_LRO_CTRL_DW3); mtk_w32 1795 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, lro_ctrl_dw0, MTK_PDMA_LRO_CTRL_DW0); mtk_w32 1806 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_LRO_RING_RELINQUISH_REQ, MTK_PDMA_LRO_CTRL_DW0); mtk_w32 1820 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0, MTK_LRO_CTRL_DW2_CFG(i)); mtk_w32 1823 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0, MTK_PDMA_LRO_CTRL_DW0); mtk_w32 1833 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (reg_val & ~MTK_RING_MYIP_VLD), MTK_LRO_CTRL_DW2_CFG(idx)); mtk_w32 1835 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, ip, MTK_LRO_DIP_DW0_CFG(idx)); mtk_w32 1838 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (reg_val | MTK_RING_MYIP_VLD), MTK_LRO_CTRL_DW2_CFG(idx)); mtk_w32 1848 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, (reg_val & ~MTK_RING_MYIP_VLD), MTK_LRO_CTRL_DW2_CFG(idx)); mtk_w32 1850 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0, MTK_LRO_DIP_DW0_CFG(idx)); mtk_w32 2072 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, FC_THRES_DROP_MODE | FC_THRES_DROP_EN | mtk_w32 2074 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0x0, MTK_QDMA_HRED2); mtk_w32 2185 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, mtk_w32 2192 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, mtk_w32 2197 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_TX_WB_DDONE | MTK_TX_DMA_EN | MTK_RX_DMA_EN | mtk_w32 2247 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val & ~(MTK_TX_WB_DDONE | MTK_RX_DMA_EN | MTK_TX_DMA_EN), mtk_w32 2353 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_PDMA_DELAY_RX_DELAY, MTK_PDMA_DELAY_INT); mtk_w32 2382 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MAC_MCR_FORCE_LINK_DOWN, MTK_MAC_MCR(i)); mtk_w32 2388 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val | MTK_CDMQ_STAG_EN, MTK_CDMQ_IG_CTRL); mtk_w32 2391 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 1, MTK_CDMP_EG_CTRL); mtk_w32 2394 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_PDMA_DELAY_RX_DELAY, MTK_PDMA_DELAY_INT); mtk_w32 2397 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0, MTK_QDMA_DELAY_INT); mtk_w32 2400 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, RST_GL_PSE, MTK_RST_GL); mtk_w32 2401 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0, MTK_RST_GL); mtk_w32 2404 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_TX_DONE_INT, MTK_PDMA_INT_GRP1); mtk_w32 2405 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_RX_DONE_INT, MTK_PDMA_INT_GRP2); mtk_w32 2406 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_TX_DONE_INT, MTK_QDMA_INT_GRP1); mtk_w32 2407 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, MTK_RX_DONE_INT, MTK_QDMA_INT_GRP2); mtk_w32 2408 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, 0x21021000, MTK_FE_INT_GRP); mtk_w32 2420 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtk_w32(eth, val, MTK_GDMA_FWD_CFG(i)); mtk_w32 926 drivers/net/ethernet/mediatek/mtk_eth_soc.h void mtk_w32(struct mtk_eth *eth, u32 val, unsigned reg); mtk_w32 62 drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c mtk_w32(pctl, i, reg, val); mtk_w32 125 drivers/rtc/rtc-mt7622.c mtk_w32(rtc, reg, val); mtk_w32 141 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_PWRCHK1, RTC_PWRCHK1_MAGIC); mtk_w32 142 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_PWRCHK2, RTC_PWRCHK2_MAGIC); mtk_w32 143 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_KEY, RTC_KEY_MAGIC); mtk_w32 144 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_PROT1, RTC_PROT1_MAGIC); mtk_w32 145 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_PROT2, RTC_PROT2_MAGIC); mtk_w32 146 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_PROT3, RTC_PROT3_MAGIC); mtk_w32 147 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_PROT4, RTC_PROT4_MAGIC); mtk_w32 192 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA), year); mtk_w32 193 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_MON), tm->tm_mon + 1); mtk_w32 194 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_DOW), tm->tm_wday); mtk_w32 195 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM), tm->tm_mday); mtk_w32 196 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_HOU), tm->tm_hour); mtk_w32 197 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_MIN), tm->tm_min); mtk_w32 198 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC), tm->tm_sec); mtk_w32 209 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_AL_CTL, 0); mtk_w32 213 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_INT, RTC_INT_AL_STA); mtk_w32 284 drivers/rtc/rtc-mt7622.c mtk_w32(hw, MTK_RTC_AL_CTL, RTC_AL_ALL);