Home
last modified time | relevance | path

Searched refs:mtk_r32 (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.1/drivers/rtc/
Drtc-mt7622.c113 static u32 mtk_r32(struct mtk_rtc *rtc, u32 reg) in mtk_r32() function
122 val = mtk_r32(rtc, reg); in mtk_rmw()
164 sec = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC)); in mtk_rtc_get_alarm_or_time()
165 min = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_MIN)); in mtk_rtc_get_alarm_or_time()
166 hour = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_HOU)); in mtk_rtc_get_alarm_or_time()
167 wday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOW)); in mtk_rtc_get_alarm_or_time()
168 mday = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_DOM)); in mtk_rtc_get_alarm_or_time()
169 mon = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_MON)); in mtk_rtc_get_alarm_or_time()
170 year = mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_YEA)); in mtk_rtc_get_alarm_or_time()
171 } while (sec != mtk_r32(hw, MTK_RTC_TREG(time_alarm, MTK_SEC))); in mtk_rtc_get_alarm_or_time()
[all …]
/Linux-v6.1/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c181 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() function
190 val = mtk_r32(eth, reg); in mtk_m32()
202 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait()
299 return mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_DATA_MASK; in _mtk_mdio_read()
561 mcr_cur = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_finish()
578 u32 pmsr = mtk_r32(mac->hw, MTK_MAC_MSR(mac->id)); in mtk_mac_pcs_get_state()
610 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_down()
625 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_up()
716 val = mtk_r32(eth, eth->soc->reg_map->tx_irq_mask); in mtk_tx_irq_disable()
727 val = mtk_r32(eth, eth->soc->reg_map->tx_irq_mask); in mtk_tx_irq_enable()
[all …]
Dmtk_eth_path.c63 val = mtk_r32(eth, MTK_MAC_MISC); in set_mux_gdm1_to_gmac1_esw()
Dmtk_eth_soc.h1232 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
Dmtk_ppe.c59 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp()
/Linux-v6.1/drivers/media/rc/
Dmtk-cir.c183 static u32 mtk_r32(struct mtk_ir *ir, unsigned int reg) in mtk_r32() function
192 val = mtk_r32(ir, ir->data->regs[MTK_IRINT_EN_REG]); in mtk_irq_disable()
200 val = mtk_r32(ir, ir->data->regs[MTK_IRINT_EN_REG]); in mtk_irq_enable()
227 val = mtk_r32(ir, mtk_chkdata_reg(ir, i)); in mtk_ir_irq()
404 val = mtk_r32(ir, MTK_CONFIG_HIGH_REG) & ~MTK_OK_COUNT_MASK; in mtk_ir_probe()
/Linux-v6.1/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.c52 static u32 mtk_r32(struct mtk_pinctrl *pctl, u8 i, u32 reg) in mtk_r32() function
64 val = mtk_r32(pctl, i, reg); in mtk_rmw()
184 l = (mtk_r32(hw, pf->index, pf->offset) in mtk_hw_read_cross_field()
186 h = (mtk_r32(hw, pf->index, pf->offset + pf->next)) in mtk_hw_read_cross_field()
226 *value = (mtk_r32(hw, pf.index, pf.offset) in mtk_hw_get_value()