Lines Matching refs:offset
35 u8 (*read8)(struct bcma_device *core, u16 offset);
36 u16 (*read16)(struct bcma_device *core, u16 offset);
37 u32 (*read32)(struct bcma_device *core, u16 offset);
38 void (*write8)(struct bcma_device *core, u16 offset, u8 value);
39 void (*write16)(struct bcma_device *core, u16 offset, u16 value);
40 void (*write32)(struct bcma_device *core, u16 offset, u32 value);
43 size_t count, u16 offset, u8 reg_width);
45 size_t count, u16 offset, u8 reg_width);
48 u32 (*aread32)(struct bcma_device *core, u16 offset);
49 void (*awrite32)(struct bcma_device *core, u16 offset, u32 value);
216 static inline u32 bcma_read8(struct bcma_device *core, u16 offset) in bcma_read8() argument
218 return core->bus->ops->read8(core, offset); in bcma_read8()
220 static inline u32 bcma_read16(struct bcma_device *core, u16 offset) in bcma_read16() argument
222 return core->bus->ops->read16(core, offset); in bcma_read16()
224 static inline u32 bcma_read32(struct bcma_device *core, u16 offset) in bcma_read32() argument
226 return core->bus->ops->read32(core, offset); in bcma_read32()
229 void bcma_write8(struct bcma_device *core, u16 offset, u32 value) in bcma_write8() argument
231 core->bus->ops->write8(core, offset, value); in bcma_write8()
234 void bcma_write16(struct bcma_device *core, u16 offset, u32 value) in bcma_write16() argument
236 core->bus->ops->write16(core, offset, value); in bcma_write16()
239 void bcma_write32(struct bcma_device *core, u16 offset, u32 value) in bcma_write32() argument
241 core->bus->ops->write32(core, offset, value); in bcma_write32()
245 size_t count, u16 offset, u8 reg_width) in bcma_block_read() argument
247 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
251 u16 offset, u8 reg_width) in bcma_block_write() argument
253 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write()
256 static inline u32 bcma_aread32(struct bcma_device *core, u16 offset) in bcma_aread32() argument
258 return core->bus->ops->aread32(core, offset); in bcma_aread32()
261 void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) in bcma_awrite32() argument
263 core->bus->ops->awrite32(core, offset, value); in bcma_awrite32()
266 static inline void bcma_mask32(struct bcma_device *cc, u16 offset, u32 mask) in bcma_mask32() argument
268 bcma_write32(cc, offset, bcma_read32(cc, offset) & mask); in bcma_mask32()
270 static inline void bcma_set32(struct bcma_device *cc, u16 offset, u32 set) in bcma_set32() argument
272 bcma_write32(cc, offset, bcma_read32(cc, offset) | set); in bcma_set32()
275 u16 offset, u32 mask, u32 set) in bcma_maskset32() argument
277 bcma_write32(cc, offset, (bcma_read32(cc, offset) & mask) | set); in bcma_maskset32()
279 static inline void bcma_mask16(struct bcma_device *cc, u16 offset, u16 mask) in bcma_mask16() argument
281 bcma_write16(cc, offset, bcma_read16(cc, offset) & mask); in bcma_mask16()
283 static inline void bcma_set16(struct bcma_device *cc, u16 offset, u16 set) in bcma_set16() argument
285 bcma_write16(cc, offset, bcma_read16(cc, offset) | set); in bcma_set16()
288 u16 offset, u16 mask, u16 set) in bcma_maskset16() argument
290 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set); in bcma_maskset16()