Lines Matching refs:rb
174 struct mpic_reg_bank *rb, in _mpic_read() argument
180 return dcr_read(rb->dhost, reg); in _mpic_read()
183 return in_be32(rb->base + (reg >> 2)); in _mpic_read()
186 return in_le32(rb->base + (reg >> 2)); in _mpic_read()
191 struct mpic_reg_bank *rb, in _mpic_write() argument
197 dcr_write(rb->dhost, reg, value); in _mpic_write()
201 out_be32(rb->base + (reg >> 2), value); in _mpic_write()
205 out_le32(rb->base + (reg >> 2), value); in _mpic_write()
315 struct mpic_reg_bank *rb, unsigned int offset, in _mpic_map_mmio() argument
318 rb->base = ioremap(phys_addr + offset, size); in _mpic_map_mmio()
319 BUG_ON(rb->base == NULL); in _mpic_map_mmio()
323 static void _mpic_map_dcr(struct mpic *mpic, struct mpic_reg_bank *rb, in _mpic_map_dcr() argument
327 rb->dhost = dcr_map(mpic->node, phys_addr + offset, size); in _mpic_map_dcr()
328 BUG_ON(!DCR_MAP_OK(rb->dhost)); in _mpic_map_dcr()
332 phys_addr_t phys_addr, struct mpic_reg_bank *rb, in mpic_map() argument
336 _mpic_map_dcr(mpic, rb, offset, size); in mpic_map()
338 _mpic_map_mmio(mpic, phys_addr, rb, offset, size); in mpic_map()