gpi_alloc_ring
ret = gpi_alloc_ring(&gpii->ev_ring, elements,
ret = gpi_alloc_ring(&gchan->ch_ring, CHAN_TRES,