Lines Matching defs:core
16 static u8 bcma_host_soc_read8(struct bcma_device *core, u16 offset)
18 return readb(core->io_addr + offset);
21 static u16 bcma_host_soc_read16(struct bcma_device *core, u16 offset)
23 return readw(core->io_addr + offset);
26 static u32 bcma_host_soc_read32(struct bcma_device *core, u16 offset)
28 return readl(core->io_addr + offset);
31 static void bcma_host_soc_write8(struct bcma_device *core, u16 offset,
34 writeb(value, core->io_addr + offset);
37 static void bcma_host_soc_write16(struct bcma_device *core, u16 offset,
40 writew(value, core->io_addr + offset);
43 static void bcma_host_soc_write32(struct bcma_device *core, u16 offset,
46 writel(value, core->io_addr + offset);
50 static void bcma_host_soc_block_read(struct bcma_device *core, void *buffer,
53 void __iomem *addr = core->io_addr + offset;
93 static void bcma_host_soc_block_write(struct bcma_device *core,
97 void __iomem *addr = core->io_addr + offset;
138 static u32 bcma_host_soc_aread32(struct bcma_device *core, u16 offset)
140 if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
142 return readl(core->io_wrap + offset);
145 static void bcma_host_soc_awrite32(struct bcma_device *core, u16 offset,
148 if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
150 writel(value, core->io_wrap + offset);
172 /* iomap only first core. We have to read some register on this core