• Home
  • Raw
  • Download

Lines Matching refs:offset

44 	u8 (*read8)(struct bcma_device *core, u16 offset);
45 u16 (*read16)(struct bcma_device *core, u16 offset);
46 u32 (*read32)(struct bcma_device *core, u16 offset);
47 void (*write8)(struct bcma_device *core, u16 offset, u8 value);
48 void (*write16)(struct bcma_device *core, u16 offset, u16 value);
49 void (*write32)(struct bcma_device *core, u16 offset, u32 value);
52 size_t count, u16 offset, u8 reg_width);
54 size_t count, u16 offset, u8 reg_width);
57 u32 (*aread32)(struct bcma_device *core, u16 offset);
58 void (*awrite32)(struct bcma_device *core, u16 offset, u32 value);
367 static inline u32 bcma_read8(struct bcma_device *core, u16 offset) in bcma_read8() argument
369 return core->bus->ops->read8(core, offset); in bcma_read8()
371 static inline u32 bcma_read16(struct bcma_device *core, u16 offset) in bcma_read16() argument
373 return core->bus->ops->read16(core, offset); in bcma_read16()
375 static inline u32 bcma_read32(struct bcma_device *core, u16 offset) in bcma_read32() argument
377 return core->bus->ops->read32(core, offset); in bcma_read32()
380 void bcma_write8(struct bcma_device *core, u16 offset, u32 value) in bcma_write8() argument
382 core->bus->ops->write8(core, offset, value); in bcma_write8()
385 void bcma_write16(struct bcma_device *core, u16 offset, u32 value) in bcma_write16() argument
387 core->bus->ops->write16(core, offset, value); in bcma_write16()
390 void bcma_write32(struct bcma_device *core, u16 offset, u32 value) in bcma_write32() argument
392 core->bus->ops->write32(core, offset, value); in bcma_write32()
396 size_t count, u16 offset, u8 reg_width) in bcma_block_read() argument
398 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
402 u16 offset, u8 reg_width) in bcma_block_write() argument
404 core->bus->ops->block_write(core, buffer, count, offset, reg_width); in bcma_block_write()
407 static inline u32 bcma_aread32(struct bcma_device *core, u16 offset) in bcma_aread32() argument
409 return core->bus->ops->aread32(core, offset); in bcma_aread32()
412 void bcma_awrite32(struct bcma_device *core, u16 offset, u32 value) in bcma_awrite32() argument
414 core->bus->ops->awrite32(core, offset, value); in bcma_awrite32()
417 static inline void bcma_mask32(struct bcma_device *cc, u16 offset, u32 mask) in bcma_mask32() argument
419 bcma_write32(cc, offset, bcma_read32(cc, offset) & mask); in bcma_mask32()
421 static inline void bcma_set32(struct bcma_device *cc, u16 offset, u32 set) in bcma_set32() argument
423 bcma_write32(cc, offset, bcma_read32(cc, offset) | set); in bcma_set32()
426 u16 offset, u32 mask, u32 set) in bcma_maskset32() argument
428 bcma_write32(cc, offset, (bcma_read32(cc, offset) & mask) | set); in bcma_maskset32()
430 static inline void bcma_mask16(struct bcma_device *cc, u16 offset, u16 mask) in bcma_mask16() argument
432 bcma_write16(cc, offset, bcma_read16(cc, offset) & mask); in bcma_mask16()
434 static inline void bcma_set16(struct bcma_device *cc, u16 offset, u16 set) in bcma_set16() argument
436 bcma_write16(cc, offset, bcma_read16(cc, offset) | set); in bcma_set16()
439 u16 offset, u16 mask, u16 set) in bcma_maskset16() argument
441 bcma_write16(cc, offset, (bcma_read16(cc, offset) & mask) | set); in bcma_maskset16()
480 extern u32 bcma_chipco_pll_read(struct bcma_drv_cc *cc, u32 offset);