Lines Matching refs:eromptr

156 static u32 bcma_erom_get_ent(struct bcma_bus *bus, u32 __iomem **eromptr)
158 u32 ent = readl(*eromptr);
159 (*eromptr)++;
163 static void bcma_erom_push_ent(u32 __iomem **eromptr)
165 (*eromptr)--;
168 static s32 bcma_erom_get_ci(struct bcma_bus *bus, u32 __iomem **eromptr)
170 u32 ent = bcma_erom_get_ent(bus, eromptr);
178 static bool bcma_erom_is_end(struct bcma_bus *bus, u32 __iomem **eromptr)
180 u32 ent = bcma_erom_get_ent(bus, eromptr);
181 bcma_erom_push_ent(eromptr);
185 static bool bcma_erom_is_bridge(struct bcma_bus *bus, u32 __iomem **eromptr)
187 u32 ent = bcma_erom_get_ent(bus, eromptr);
188 bcma_erom_push_ent(eromptr);
194 static void bcma_erom_skip_component(struct bcma_bus *bus, u32 __iomem **eromptr)
198 ent = bcma_erom_get_ent(bus, eromptr);
205 bcma_erom_push_ent(eromptr);
208 static s32 bcma_erom_get_mst_port(struct bcma_bus *bus, u32 __iomem **eromptr)
210 u32 ent = bcma_erom_get_ent(bus, eromptr);
218 static u32 bcma_erom_get_addr_desc(struct bcma_bus *bus, u32 __iomem **eromptr,
224 u32 ent = bcma_erom_get_ent(bus, eromptr);
229 bcma_erom_push_ent(eromptr);
235 bcma_erom_get_ent(bus, eromptr);
238 size = bcma_erom_get_ent(bus, eromptr);
240 bcma_erom_get_ent(bus, eromptr);
271 static int bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr,
281 cia = bcma_erom_get_ci(bus, eromptr);
283 bcma_erom_push_ent(eromptr);
284 if (bcma_erom_is_end(bus, eromptr))
288 cib = bcma_erom_get_ci(bus, eromptr);
305 bcma_erom_skip_component(bus, eromptr);
320 bcma_erom_skip_component(bus, eromptr);
325 if (bcma_erom_is_bridge(bus, eromptr)) {
326 bcma_erom_skip_component(bus, eromptr);
331 bcma_erom_skip_component(bus, eromptr);
341 bcma_erom_skip_component(bus, eromptr);
347 s32 mst_port_d = bcma_erom_get_mst_port(bus, eromptr);
355 tmp = bcma_erom_get_addr_desc(bus, eromptr, SCAN_ADDR_TYPE_SLAVE, 0);
358 tmp = bcma_erom_get_addr_desc(bus, eromptr,
373 tmp = bcma_erom_get_addr_desc(bus, eromptr,
390 tmp = bcma_erom_get_addr_desc(bus, eromptr,
408 tmp = bcma_erom_get_addr_desc(bus, eromptr,
459 u32 __iomem *eromptr, *eromend;
469 eromptr = ioremap(erombase, BCMA_CORE_SIZE);
470 if (!eromptr)
473 eromptr = bus->mmio;
476 eromend = eromptr + BCMA_CORE_SIZE / sizeof(u32);
480 while (eromptr < eromend) {
490 err = bcma_get_next_core(bus, &eromptr, NULL, core_num, core);
521 iounmap(eromptr);