Lines Matching full:bar0
188 * Read the specified 32bit register value from BAR0 and return its contents.
195 return bus_space_read_4(sc->bar0.tag, sc->bar0.handle, reg); in rd32()
203 * Read the specified 64bit register value from BAR0 and return its contents.
215 data = bus_space_read_8(sc->bar0.tag, sc->bar0.handle, reg); in rd64()
221 data = bus_space_read_4(sc->bar0.tag, sc->bar0.handle, reg); in rd64()
222 data |= ((uint64_t)bus_space_read_4(sc->bar0.tag, sc->bar0.handle, reg + 4)) << 32; in rd64()
234 * Write the specified 32bit value to a register address in BAR0.
241 bus_space_write_4(sc->bar0.tag, sc->bar0.handle, reg, val); in wr32()
250 * Write the specified 64bit value to a register address in BAR0.
261 bus_space_write_8(sc->bar0.tag, sc->bar0.handle, reg, val); in wr64()
271 bus_space_write_4(sc->bar0.tag, sc->bar0.handle, reg, lo_val); in wr64()
272 bus_space_write_4(sc->bar0.tag, sc->bar0.handle, reg + 4, hi_val); in wr64()