Lines Matching refs:ch_ring

491 	struct gpi_ring ch_ring;  member
927 struct gpi_ring *ch_ring = &gchan->ch_ring; in gpi_process_imed_data_event() local
928 void *tre = ch_ring->base + (ch_ring->el_size * imed_event->tre_index); in gpi_process_imed_data_event()
971 tre += ch_ring->el_size; in gpi_process_imed_data_event()
972 if (tre >= (ch_ring->base + ch_ring->len)) in gpi_process_imed_data_event()
973 tre = ch_ring->base; in gpi_process_imed_data_event()
974 ch_ring->rp = tre; in gpi_process_imed_data_event()
1009 struct gpi_ring *ch_ring = &gchan->ch_ring; in gpi_process_xfer_compl_event() local
1010 void *ev_rp = to_virtual(ch_ring, compl_event->ptr); in gpi_process_xfer_compl_event()
1046 ev_rp += ch_ring->el_size; in gpi_process_xfer_compl_event()
1047 if (ev_rp >= (ch_ring->base + ch_ring->len)) in gpi_process_xfer_compl_event()
1048 ev_rp = ch_ring->base; in gpi_process_xfer_compl_event()
1049 ch_ring->rp = ev_rp; in gpi_process_xfer_compl_event()
1193 struct gpi_ring *ch_ring = &gchan->ch_ring; in gpi_reset_chan() local
1205 ch_ring->rp = ch_ring->base; in gpi_reset_chan()
1206 ch_ring->wp = ch_ring->base; in gpi_reset_chan()
1264 struct gpi_ring *ring = &chan->ch_ring; in gpi_alloc_chan()
1455 ret = gpi_ring_add_element(&gchan->ch_ring, (void **)&ch_tre); in gpi_queue_xfer()
1791 struct gpi_ring *ch_ring = &gchan->ch_ring; in gpi_prep_slave_sg() local
1816 nr = gpi_ring_num_elements_avail(ch_ring); in gpi_prep_slave_sg()
1853 struct gpi_ring *ch_ring = &gchan->ch_ring; in gpi_issue_pending() local
1878 gpi_desc->db = ch_ring->wp; in gpi_issue_pending()
1879 gpi_write_ch_db(gchan, &gchan->ch_ring, gpi_desc->db); in gpi_issue_pending()
1994 gpi_free_ring(&gchan->ch_ring, gpii); in gpi_free_chan_resources()
2004 if (gpii->gchan[i].ch_ring.configured) in gpi_free_chan_resources()
2045 ret = gpi_alloc_ring(&gchan->ch_ring, CHAN_TRES, in gpi_alloc_chan_resources()