Lines Matching +full:bus +full:- +full:addr
18 struct ssb_bus *bus = dev->bus; in ssb_host_soc_read8() local
20 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read8()
21 return readb(bus->mmio + offset); in ssb_host_soc_read8()
26 struct ssb_bus *bus = dev->bus; in ssb_host_soc_read16() local
28 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read16()
29 return readw(bus->mmio + offset); in ssb_host_soc_read16()
34 struct ssb_bus *bus = dev->bus; in ssb_host_soc_read32() local
36 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_read32()
37 return readl(bus->mmio + offset); in ssb_host_soc_read32()
44 struct ssb_bus *bus = dev->bus; in ssb_host_soc_block_read() local
45 void __iomem *addr; in ssb_host_soc_block_read() local
47 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_block_read()
48 addr = bus->mmio + offset; in ssb_host_soc_block_read()
55 *buf = __raw_readb(addr); in ssb_host_soc_block_read()
57 count--; in ssb_host_soc_block_read()
66 *buf = (__force __le16)__raw_readw(addr); in ssb_host_soc_block_read()
68 count -= 2; in ssb_host_soc_block_read()
77 *buf = (__force __le32)__raw_readl(addr); in ssb_host_soc_block_read()
79 count -= 4; in ssb_host_soc_block_read()
91 struct ssb_bus *bus = dev->bus; in ssb_host_soc_write8() local
93 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write8()
94 writeb(value, bus->mmio + offset); in ssb_host_soc_write8()
99 struct ssb_bus *bus = dev->bus; in ssb_host_soc_write16() local
101 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write16()
102 writew(value, bus->mmio + offset); in ssb_host_soc_write16()
107 struct ssb_bus *bus = dev->bus; in ssb_host_soc_write32() local
109 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_write32()
110 writel(value, bus->mmio + offset); in ssb_host_soc_write32()
117 struct ssb_bus *bus = dev->bus; in ssb_host_soc_block_write() local
118 void __iomem *addr; in ssb_host_soc_block_write() local
120 offset += dev->core_index * SSB_CORE_SIZE; in ssb_host_soc_block_write()
121 addr = bus->mmio + offset; in ssb_host_soc_block_write()
128 __raw_writeb(*buf, addr); in ssb_host_soc_block_write()
130 count--; in ssb_host_soc_block_write()
139 __raw_writew((__force u16)(*buf), addr); in ssb_host_soc_block_write()
141 count -= 2; in ssb_host_soc_block_write()
150 __raw_writel((__force u32)(*buf), addr); in ssb_host_soc_block_write()
152 count -= 4; in ssb_host_soc_block_write()
162 /* Ops for the plain SSB bus without a host-device (no PCI or PCMCIA). */
176 int ssb_host_soc_get_invariants(struct ssb_bus *bus, in ssb_host_soc_get_invariants() argument
183 memset(&iv->boardinfo, 0, sizeof(struct ssb_boardinfo)); in ssb_host_soc_get_invariants()
187 err = kstrtou16(strim(buf), 0, &iv->boardinfo.vendor); in ssb_host_soc_get_invariants()
192 if (!iv->boardinfo.vendor) in ssb_host_soc_get_invariants()
193 iv->boardinfo.vendor = SSB_BOARDVENDOR_BCM; in ssb_host_soc_get_invariants()
197 err = kstrtou16(strim(buf), 0, &iv->boardinfo.type); in ssb_host_soc_get_invariants()
203 memset(&iv->sprom, 0, sizeof(struct ssb_sprom)); in ssb_host_soc_get_invariants()
204 ssb_fill_sprom_with_fallback(bus, &iv->sprom); in ssb_host_soc_get_invariants()
207 iv->has_cardbus_slot = !!simple_strtoul(buf, NULL, 10); in ssb_host_soc_get_invariants()