Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/ioat/ioat.c
Show First 20 Lines • Show All 1,572 Lines • ▼ Show 20 Lines | out: | ||||
return (error); | return (error); | ||||
} | } | ||||
static void | static void | ||||
ioat_free_ring(struct ioat_softc *ioat, uint32_t size, | ioat_free_ring(struct ioat_softc *ioat, uint32_t size, | ||||
struct ioat_descriptor *ring) | struct ioat_descriptor *ring) | ||||
{ | { | ||||
free_domain(ring, M_IOAT); | free(ring, M_IOAT); | ||||
} | } | ||||
static struct ioat_descriptor * | static struct ioat_descriptor * | ||||
ioat_get_ring_entry(struct ioat_softc *ioat, uint32_t index) | ioat_get_ring_entry(struct ioat_softc *ioat, uint32_t index) | ||||
{ | { | ||||
return (&ioat->ring[index % (1 << ioat->ring_size_order)]); | return (&ioat->ring[index % (1 << ioat->ring_size_order)]); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 557 Lines • Show Last 20 Lines |