Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c287 u32 mtk_r32(struct mtk_eth *eth, unsigned reg) in mtk_r32() function
296 val = mtk_r32(eth, reg); in mtk_m32()
308 if (!(mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_ACCESS)) in mtk_mdio_busy_wait()
398 return mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_DATA_MASK; in _mtk_mdio_read_c22()
433 return mtk_r32(eth, MTK_PHY_IAC) & PHY_IAC_DATA_MASK; in _mtk_mdio_read_c45()
676 mcr_cur = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_finish()
694 u32 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_down()
778 mcr = mtk_r32(mac->hw, MTK_MAC_MCR(mac->id)); in mtk_mac_link_up()
894 val = mtk_r32(eth, eth->soc->reg_map->tx_irq_mask); in mtk_tx_irq_disable()
905 val = mtk_r32(eth, eth->soc->reg_map->tx_irq_mask); in mtk_tx_irq_enable()
[all …]
Dmtk_eth_soc.h1428 u32 mtk_r32(struct mtk_eth *eth, unsigned reg);
Dmtk_ppe.c60 return mtk_r32(eth, 0x0010) & mtk_get_ib1_ts_mask(eth); in mtk_eth_timestamp()
/linux-6.6.21/drivers/media/rc/
Dmtk-cir.c184 static u32 mtk_r32(struct mtk_ir *ir, unsigned int reg) in mtk_r32() function
193 val = mtk_r32(ir, ir->data->regs[MTK_IRINT_EN_REG]); in mtk_irq_disable()
201 val = mtk_r32(ir, ir->data->regs[MTK_IRINT_EN_REG]); in mtk_irq_enable()
228 val = mtk_r32(ir, mtk_chkdata_reg(ir, i)); in mtk_ir_irq()
405 val = mtk_r32(ir, MTK_CONFIG_HIGH_REG) & ~MTK_OK_COUNT_MASK; in mtk_ir_probe()
/linux-6.6.21/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()