MCPcopy Create free account
hub / github.com/F-Stack/f-stack / WR2

Function WR2

freebsd/arm/broadcom/bcm2835/bcm2835_sdhost.c:273–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273static inline void
274WR2(struct bcm_sdhost_softc *sc, bus_size_t off, uint16_t val)
275{
276 uint32_t val32;
277
278 val32 = RD4(sc, off & ~3);
279 val32 &= ~(0xffff << (off & 3)*8);
280 val32 |= (val << (off & 3)*8);
281 WR4(sc, off & ~3, val32);
282}
283
284static inline void
285WR1(struct bcm_sdhost_softc *sc, bus_size_t off, uint8_t val)

Callers 1

bcm_sdhost_write_2Function · 0.70

Calls 2

RD4Function · 0.70
WR4Function · 0.70

Tested by

no test coverage detected