Lines Matching refs:rtwdev
9 bool check_hw_ready(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 target) in check_hw_ready() argument
14 if (rtw_read32_mask(rtwdev, addr, mask) == target) in check_hw_ready()
23 bool ltecoex_read_reg(struct rtw_dev *rtwdev, u16 offset, u32 *val) in ltecoex_read_reg() argument
25 if (!check_hw_ready(rtwdev, LTECOEX_ACCESS_CTRL, LTECOEX_READY, 1)) in ltecoex_read_reg()
28 rtw_write32(rtwdev, LTECOEX_ACCESS_CTRL, 0x800F0000 | offset); in ltecoex_read_reg()
29 *val = rtw_read32(rtwdev, LTECOEX_READ_DATA); in ltecoex_read_reg()
34 bool ltecoex_reg_write(struct rtw_dev *rtwdev, u16 offset, u32 value) in ltecoex_reg_write() argument
36 if (!check_hw_ready(rtwdev, LTECOEX_ACCESS_CTRL, LTECOEX_READY, 1)) in ltecoex_reg_write()
39 rtw_write32(rtwdev, LTECOEX_WRITE_DATA, value); in ltecoex_reg_write()
40 rtw_write32(rtwdev, LTECOEX_ACCESS_CTRL, 0xC00F0000 | offset); in ltecoex_reg_write()
45 void rtw_restore_reg(struct rtw_dev *rtwdev, in rtw_restore_reg() argument
60 rtw_write8(rtwdev, reg, (u8)val); in rtw_restore_reg()
63 rtw_write16(rtwdev, reg, (u16)val); in rtw_restore_reg()
66 rtw_write32(rtwdev, reg, (u32)val); in rtw_restore_reg()