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);
363 static inline u32 bcma_read8(struct bcma_device *core, u16 offset) in bcma_read8() argument
365 return core->bus->ops->read8(core, offset); in bcma_read8()
367 static inline u32 bcma_read16(struct bcma_device *core, u16 offset) in bcma_read16() argument
369 return core->bus->ops->read16(core, offset); in bcma_read16()
371 static inline u32 bcma_read32(struct bcma_device *core, u16 offset) in bcma_read32() argument
373 return core->bus->ops->read32(core, offset); in bcma_read32()
376 void bcma_write8(struct bcma_device *core, u16 offset, u32 value) in bcma_write8() argument
378 core->bus->ops->write8(core, offset, value); in bcma_write8()
381 void bcma_write16(struct bcma_device *core, u16 offset, u32 value) in bcma_write16() argument
383 core->bus->ops->write16(core, offset, value); in bcma_write16()
386 void bcma_write32(struct bcma_device *core, u16 offset, u32 value) in bcma_write32() argument
388 core->bus->ops->write32(core, offset, value); in bcma_write32()
392 size_t count, u16 offset, u8 reg_width) in bcma_block_read() argument
394 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
398 u16 offset, u8 reg_width) in bcma_block_write() argument
400 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write()
403 static inline u32 bcma_aread32(struct bcma_device *core, u16 offset) in bcma_aread32() argument
405 return core->bus->ops->aread32(core, offset); in bcma_aread32()
408 void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) in bcma_awrite32() argument
410 core->bus->ops->awrite32(core, offset, value); in bcma_awrite32()
413 static inline void bcma_mask32(struct bcma_device *cc, u16 offset, u32 mask) in bcma_mask32() argument
415 bcma_write32(cc, offset, bcma_read32(cc, offset) & mask); in bcma_mask32()
417 static inline void bcma_set32(struct bcma_device *cc, u16 offset, u32 set) in bcma_set32() argument
419 bcma_write32(cc, offset, bcma_read32(cc, offset) | set); in bcma_set32()
422 u16 offset, u32 mask, u32 set) in bcma_maskset32() argument
424 bcma_write32(cc, offset, (bcma_read32(cc, offset) & mask) | set); in bcma_maskset32()
426 static inline void bcma_mask16(struct bcma_device *cc, u16 offset, u16 mask) in bcma_mask16() argument
428 bcma_write16(cc, offset, bcma_read16(cc, offset) & mask); in bcma_mask16()
430 static inline void bcma_set16(struct bcma_device *cc, u16 offset, u16 set) in bcma_set16() argument
432 bcma_write16(cc, offset, bcma_read16(cc, offset) | set); in bcma_set16()
435 u16 offset, u16 mask, u16 set) in bcma_maskset16() argument
437 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set); in bcma_maskset16()
476 extern u32 bcma_chipco_pll_read(struct bcma_drv_cc *cc, u32 offset);