Lines Matching full:addr
26 u8 (*read8)(struct rtw_dev *rtwdev, u32 addr);
27 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr);
28 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr);
29 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val);
30 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val);
31 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val);
94 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument
96 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8()
99 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument
101 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16()
104 static inline u32 rtw_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_read32() argument
106 return rtwdev->hci.ops->read32(rtwdev, addr); in rtw_read32()
109 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() argument
111 rtwdev->hci.ops->write8(rtwdev, addr, val); in rtw_write8()
114 static inline void rtw_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_write16() argument
116 rtwdev->hci.ops->write16(rtwdev, addr, val); in rtw_write16()
119 static inline void rtw_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) in rtw_write32() argument
121 rtwdev->hci.ops->write32(rtwdev, addr, val); in rtw_write32()
124 static inline void rtw_write8_set(struct rtw_dev *rtwdev, u32 addr, u8 bit) in rtw_write8_set() argument
128 val = rtw_read8(rtwdev, addr); in rtw_write8_set()
129 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set()
132 static inline void rtw_write16_set(struct rtw_dev *rtwdev, u32 addr, u16 bit) in rtw_write16_set() argument
136 val = rtw_read16(rtwdev, addr); in rtw_write16_set()
137 rtw_write16(rtwdev, addr, val | bit); in rtw_write16_set()
140 static inline void rtw_write32_set(struct rtw_dev *rtwdev, u32 addr, u32 bit) in rtw_write32_set() argument
144 val = rtw_read32(rtwdev, addr); in rtw_write32_set()
145 rtw_write32(rtwdev, addr, val | bit); in rtw_write32_set()
148 static inline void rtw_write8_clr(struct rtw_dev *rtwdev, u32 addr, u8 bit) in rtw_write8_clr() argument
152 val = rtw_read8(rtwdev, addr); in rtw_write8_clr()
153 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr()
156 static inline void rtw_write16_clr(struct rtw_dev *rtwdev, u32 addr, u16 bit) in rtw_write16_clr() argument
160 val = rtw_read16(rtwdev, addr); in rtw_write16_clr()
161 rtw_write16(rtwdev, addr, val & ~bit); in rtw_write16_clr()
164 static inline void rtw_write32_clr(struct rtw_dev *rtwdev, u32 addr, u32 bit) in rtw_write32_clr() argument
168 val = rtw_read32(rtwdev, addr); in rtw_write32_clr()
169 rtw_write32(rtwdev, addr, val & ~bit); in rtw_write32_clr()
174 u32 addr, u32 mask) in rtw_read_rf() argument
180 val = rtwdev->chip->ops->read_rf(rtwdev, rf_path, addr, mask); in rtw_read_rf()
187 u32 addr, u32 mask, u32 data) in rtw_write_rf() argument
191 rtwdev->chip->ops->write_rf(rtwdev, rf_path, addr, mask, data); in rtw_write_rf()
195 rtw_read32_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read32_mask() argument
201 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask()
208 rtw_read16_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read16_mask() argument
214 orig = rtw_read16(rtwdev, addr); in rtw_read16_mask()
221 rtw_read8_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read8_mask() argument
227 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask()
234 rtw_write32_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 data) in rtw_write32_mask() argument
240 WARN(addr & 0x3, "should be 4-byte aligned, addr = 0x%08x\n", addr); in rtw_write32_mask()
242 orig = rtw_read32(rtwdev, addr); in rtw_write32_mask()
244 rtw_write32(rtwdev, addr, set); in rtw_write32_mask()
248 rtw_write8_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u8 data) in rtw_write8_mask() argument
256 orig = rtw_read8(rtwdev, addr); in rtw_write8_mask()
258 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()