• Home
  • Raw
  • Download

Lines Matching full:addr

24 	u8 (*read8)(struct rtw_dev *rtwdev, u32 addr);
25 u16 (*read16)(struct rtw_dev *rtwdev, u32 addr);
26 u32 (*read32)(struct rtw_dev *rtwdev, u32 addr);
27 void (*write8)(struct rtw_dev *rtwdev, u32 addr, u8 val);
28 void (*write16)(struct rtw_dev *rtwdev, u32 addr, u16 val);
29 void (*write32)(struct rtw_dev *rtwdev, u32 addr, u32 val);
86 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() argument
88 return rtwdev->hci.ops->read8(rtwdev, addr); in rtw_read8()
91 static inline u16 rtw_read16(struct rtw_dev *rtwdev, u32 addr) in rtw_read16() argument
93 return rtwdev->hci.ops->read16(rtwdev, addr); in rtw_read16()
96 static inline u32 rtw_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_read32() argument
98 return rtwdev->hci.ops->read32(rtwdev, addr); in rtw_read32()
101 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() argument
103 rtwdev->hci.ops->write8(rtwdev, addr, val); in rtw_write8()
106 static inline void rtw_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_write16() argument
108 rtwdev->hci.ops->write16(rtwdev, addr, val); in rtw_write16()
111 static inline void rtw_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) in rtw_write32() argument
113 rtwdev->hci.ops->write32(rtwdev, addr, val); in rtw_write32()
116 static inline void rtw_write8_set(struct rtw_dev *rtwdev, u32 addr, u8 bit) in rtw_write8_set() argument
120 val = rtw_read8(rtwdev, addr); in rtw_write8_set()
121 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set()
124 static inline void rtw_write16_set(struct rtw_dev *rtwdev, u32 addr, u16 bit) in rtw_write16_set() argument
128 val = rtw_read16(rtwdev, addr); in rtw_write16_set()
129 rtw_write16(rtwdev, addr, val | bit); in rtw_write16_set()
132 static inline void rtw_write32_set(struct rtw_dev *rtwdev, u32 addr, u32 bit) in rtw_write32_set() argument
136 val = rtw_read32(rtwdev, addr); in rtw_write32_set()
137 rtw_write32(rtwdev, addr, val | bit); in rtw_write32_set()
140 static inline void rtw_write8_clr(struct rtw_dev *rtwdev, u32 addr, u8 bit) in rtw_write8_clr() argument
144 val = rtw_read8(rtwdev, addr); in rtw_write8_clr()
145 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr()
148 static inline void rtw_write16_clr(struct rtw_dev *rtwdev, u32 addr, u16 bit) in rtw_write16_clr() argument
152 val = rtw_read16(rtwdev, addr); in rtw_write16_clr()
153 rtw_write16(rtwdev, addr, val & ~bit); in rtw_write16_clr()
156 static inline void rtw_write32_clr(struct rtw_dev *rtwdev, u32 addr, u32 bit) in rtw_write32_clr() argument
160 val = rtw_read32(rtwdev, addr); in rtw_write32_clr()
161 rtw_write32(rtwdev, addr, val & ~bit); in rtw_write32_clr()
166 u32 addr, u32 mask) in rtw_read_rf() argument
172 val = rtwdev->chip->ops->read_rf(rtwdev, rf_path, addr, mask); in rtw_read_rf()
180 u32 addr, u32 mask, u32 data) in rtw_write_rf() argument
185 rtwdev->chip->ops->write_rf(rtwdev, rf_path, addr, mask, data); in rtw_write_rf()
190 rtw_read32_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read32_mask() argument
196 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask()
203 rtw_read16_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read16_mask() argument
209 orig = rtw_read16(rtwdev, addr); in rtw_read16_mask()
216 rtw_read8_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask) in rtw_read8_mask() argument
222 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask()
229 rtw_write32_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u32 data) in rtw_write32_mask() argument
235 WARN(addr & 0x3, "should be 4-byte aligned, addr = 0x%08x\n", addr); in rtw_write32_mask()
237 orig = rtw_read32(rtwdev, addr); in rtw_write32_mask()
239 rtw_write32(rtwdev, addr, set); in rtw_write32_mask()
243 rtw_write8_mask(struct rtw_dev *rtwdev, u32 addr, u32 mask, u8 data) in rtw_write8_mask() argument
251 orig = rtw_read8(rtwdev, addr); in rtw_write8_mask()
253 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()