Lines Matching refs:core
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);
51 void (*block_read)(struct bcma_device *core, void *buffer,
53 void (*block_write)(struct bcma_device *core, const void *buffer,
57 u32 (*aread32)(struct bcma_device *core, u16 offset);
58 void (*awrite32)(struct bcma_device *core, u16 offset, u32 value);
291 static inline void *bcma_get_drvdata(struct bcma_device *core) in bcma_get_drvdata() argument
293 return core->drvdata; in bcma_get_drvdata()
295 static inline void bcma_set_drvdata(struct bcma_device *core, void *drvdata) in bcma_set_drvdata() argument
297 core->drvdata = drvdata; in bcma_set_drvdata()
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()
395 static inline void bcma_block_read(struct bcma_device *core, void *buffer, in bcma_block_read() argument
398 core->bus->ops->block_read(core, buffer, count, offset, reg_width); in bcma_block_read()
400 static inline void bcma_block_write(struct bcma_device *core, 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()
456 struct bcma_device *core, bool enable);
465 struct bcma_device *core, bool enable) in bcma_host_pci_irq_ctl() argument
473 extern bool bcma_core_is_enabled(struct bcma_device *core);
474 extern void bcma_core_disable(struct bcma_device *core, u32 flags);
475 extern int bcma_core_enable(struct bcma_device *core, u32 flags);
476 extern void bcma_core_set_clockmode(struct bcma_device *core,
478 extern void bcma_core_pll_ctl(struct bcma_device *core, u32 req, u32 status,
485 extern u32 bcma_core_dma_translation(struct bcma_device *core);
487 extern unsigned int bcma_core_irq(struct bcma_device *core, int num);