Lines Matching refs:offset

42 	u8 (*read8)(struct bcma_device *core, u16 offset);
43 u16 (*read16)(struct bcma_device *core, u16 offset);
44 u32 (*read32)(struct bcma_device *core, u16 offset);
45 void (*write8)(struct bcma_device *core, u16 offset, u8 value);
46 void (*write16)(struct bcma_device *core, u16 offset, u16 value);
47 void (*write32)(struct bcma_device *core, u16 offset, u32 value);
50 size_t count, u16 offset, u8 reg_width);
52 size_t count, u16 offset, u8 reg_width);
55 u32 (*aread32)(struct bcma_device *core, u16 offset);
56 void (*awrite32)(struct bcma_device *core, u16 offset, u32 value);
352 static inline u32 bcma_read8(struct bcma_device *core, u16 offset) in bcma_read8() argument
354 return core->bus->ops->read8(core, offset); in bcma_read8()
356 static inline u32 bcma_read16(struct bcma_device *core, u16 offset) in bcma_read16() argument
358 return core->bus->ops->read16(core, offset); in bcma_read16()
360 static inline u32 bcma_read32(struct bcma_device *core, u16 offset) in bcma_read32() argument
362 return core->bus->ops->read32(core, offset); in bcma_read32()
365 void bcma_write8(struct bcma_device *core, u16 offset, u32 value) in bcma_write8() argument
367 core->bus->ops->write8(core, offset, value); in bcma_write8()
370 void bcma_write16(struct bcma_device *core, u16 offset, u32 value) in bcma_write16() argument
372 core->bus->ops->write16(core, offset, value); in bcma_write16()
375 void bcma_write32(struct bcma_device *core, u16 offset, u32 value) in bcma_write32() argument
377 core->bus->ops->write32(core, offset, value); in bcma_write32()
381 size_t count, u16 offset, u8 reg_width) in bcma_block_read() argument
383 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
387 u16 offset, u8 reg_width) in bcma_block_write() argument
389 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write()
392 static inline u32 bcma_aread32(struct bcma_device *core, u16 offset) in bcma_aread32() argument
394 return core->bus->ops->aread32(core, offset); in bcma_aread32()
397 void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) in bcma_awrite32() argument
399 core->bus->ops->awrite32(core, offset, value); in bcma_awrite32()
402 static inline void bcma_mask32(struct bcma_device *cc, u16 offset, u32 mask) in bcma_mask32() argument
404 bcma_write32(cc, offset, bcma_read32(cc, offset) & mask); in bcma_mask32()
406 static inline void bcma_set32(struct bcma_device *cc, u16 offset, u32 set) in bcma_set32() argument
408 bcma_write32(cc, offset, bcma_read32(cc, offset) | set); in bcma_set32()
411 u16 offset, u32 mask, u32 set) in bcma_maskset32() argument
413 bcma_write32(cc, offset, (bcma_read32(cc, offset) & mask) | set); in bcma_maskset32()
415 static inline void bcma_mask16(struct bcma_device *cc, u16 offset, u16 mask) in bcma_mask16() argument
417 bcma_write16(cc, offset, bcma_read16(cc, offset) & mask); in bcma_mask16()
419 static inline void bcma_set16(struct bcma_device *cc, u16 offset, u16 set) in bcma_set16() argument
421 bcma_write16(cc, offset, bcma_read16(cc, offset) | set); in bcma_set16()
424 u16 offset, u16 mask, u16 set) in bcma_maskset16() argument
426 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set); in bcma_maskset16()
465 extern u32 bcma_chipco_pll_read(struct bcma_drv_cc *cc, u32 offset);