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

Function awg_setup_rxdesc

freebsd/arm/allwinner/if_awg.c:726–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726static void
727awg_setup_rxdesc(struct awg_softc *sc, int index, bus_addr_t paddr)
728{
729 uint32_t status, size;
730
731 status = RX_DESC_CTL;
732 size = MCLBYTES - 1;
733
734 sc->rx.desc_ring[index].addr = htole32((uint32_t)paddr);
735 sc->rx.desc_ring[index].size = htole32(size);
736 sc->rx.desc_ring[index].status = htole32(status);
737}
738
739static void
740awg_reuse_rxdesc(struct awg_softc *sc, int index)

Callers 1

awg_newbuf_rxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected