Lines Matching full:addr

25 	u8 (*read8)(struct rtw_dev *rtwdev, u32 addr);
26 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr);
27 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr);
28 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val);
29 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val);
30 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val);
87 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument
89 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8()
92 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument
94 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16()
97 static inline u32 rtw_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_read32() argument
99 return rtwdev->hci.ops->read32(rtwdev, addr); in rtw_read32()
102 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() argument
104 rtwdev->hci.ops->write8(rtwdev, addr, val); in rtw_write8()
107 static inline void rtw_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_write16() argument
109 rtwdev->hci.ops->write16(rtwdev, addr, val); in rtw_write16()
112 static inline void rtw_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) in rtw_write32() argument
114 rtwdev->hci.ops->write32(rtwdev, addr, val); in rtw_write32()
117 static inline void rtw_write8_set(struct rtw_dev *rtwdev, u32 addr, u8 bit) in rtw_write8_set() argument
121 val = rtw_read8(rtwdev, addr); in rtw_write8_set()
122 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set()
125 static inline void rtw_write16_set(struct rtw_dev *rtwdev, u32 addr, u16 bit) in rtw_write16_set() argument
129 val = rtw_read16(rtwdev, addr); in rtw_write16_set()
130 rtw_write16(rtwdev, addr, val | bit); in rtw_write16_set()
133 static inline void rtw_write32_set(struct rtw_dev *rtwdev, u32 addr, u32 bit) in rtw_write32_set() argument
137 val = rtw_read32(rtwdev, addr); in rtw_write32_set()
138 rtw_write32(rtwdev, addr, val | bit); in rtw_write32_set()
141 static inline void rtw_write8_clr(struct rtw_dev *rtwdev, u32 addr, u8 bit) in rtw_write8_clr() argument
145 val = rtw_read8(rtwdev, addr); in rtw_write8_clr()
146 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr()
149 static inline void rtw_write16_clr(struct rtw_dev *rtwdev, u32 addr, u16 bit) in rtw_write16_clr() argument
153 val = rtw_read16(rtwdev, addr); in rtw_write16_clr()
154 rtw_write16(rtwdev, addr, val & ~bit); in rtw_write16_clr()
157 static inline void rtw_write32_clr(struct rtw_dev *rtwdev, u32 addr, u32 bit) in rtw_write32_clr() argument
161 val = rtw_read32(rtwdev, addr); in rtw_write32_clr()
162 rtw_write32(rtwdev, addr, val & ~bit); in rtw_write32_clr()
167 u32 addr, u32 mask) in rtw_read_rf() argument
173 val = rtwdev->chip->ops->read_rf(rtwdev, rf_path, addr, mask); in rtw_read_rf()
181 u32 addr, u32 mask, u32 data) in rtw_write_rf() argument
186 rtwdev->chip->ops->write_rf(rtwdev, rf_path, addr, mask, data); in rtw_write_rf()
191 rtw_read32_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read32_mask() argument
197 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask()
204 rtw_read16_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read16_mask() argument
210 orig = rtw_read16(rtwdev, addr); in rtw_read16_mask()
217 rtw_read8_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read8_mask() argument
223 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask()
230 rtw_write32_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 data) in rtw_write32_mask() argument
236 WARN(addr & 0x3, "should be 4-byte aligned, addr = 0x%08x\n", addr); in rtw_write32_mask()
238 orig = rtw_read32(rtwdev, addr); in rtw_write32_mask()
240 rtw_write32(rtwdev, addr, set); in rtw_write32_mask()
244 rtw_write8_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u8 data) in rtw_write8_mask() argument
252 orig = rtw_read8(rtwdev, addr); in rtw_write8_mask()
254 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()