Lines Matching refs:offset
15 static u8 ssb_host_soc_read8(struct ssb_device *dev, u16 offset) in ssb_host_soc_read8() argument
19 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read8()
20 return readb(bus->mmio + offset); in ssb_host_soc_read8()
23 static u16 ssb_host_soc_read16(struct ssb_device *dev, u16 offset) in ssb_host_soc_read16() argument
27 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read16()
28 return readw(bus->mmio + offset); in ssb_host_soc_read16()
31 static u32 ssb_host_soc_read32(struct ssb_device *dev, u16 offset) in ssb_host_soc_read32() argument
35 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read32()
36 return readl(bus->mmio + offset); in ssb_host_soc_read32()
41 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_read() argument
46 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_block_read()
47 addr = bus->mmio + offset; in ssb_host_soc_block_read()
88 static void ssb_host_soc_write8(struct ssb_device *dev, u16 offset, u8 value) in ssb_host_soc_write8() argument
92 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write8()
93 writeb(value, bus->mmio + offset); in ssb_host_soc_write8()
96 static void ssb_host_soc_write16(struct ssb_device *dev, u16 offset, u16 value) in ssb_host_soc_write16() argument
100 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write16()
101 writew(value, bus->mmio + offset); in ssb_host_soc_write16()
104 static void ssb_host_soc_write32(struct ssb_device *dev, u16 offset, u32 value) in ssb_host_soc_write32() argument
108 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write32()
109 writel(value, bus->mmio + offset); in ssb_host_soc_write32()
114 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_write() argument
119 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_block_write()
120 addr = bus->mmio + offset; in ssb_host_soc_block_write()