Lines Matching refs:buf_ring
584 struct mhi_ring *buf_ring; in mhi_deinit_chan_ctxt() local
589 buf_ring = &mhi_chan->buf_ring; in mhi_deinit_chan_ctxt()
598 vfree(buf_ring->base); in mhi_deinit_chan_ctxt()
600 buf_ring->base = tre_ring->base = NULL; in mhi_deinit_chan_ctxt()
619 struct mhi_ring *buf_ring; in mhi_init_chan_ctxt() local
625 buf_ring = &mhi_chan->buf_ring; in mhi_init_chan_ctxt()
634 buf_ring->el_size = sizeof(struct mhi_buf_info); in mhi_init_chan_ctxt()
635 buf_ring->len = buf_ring->el_size * buf_ring->elements; in mhi_init_chan_ctxt()
636 buf_ring->base = vzalloc(buf_ring->len); in mhi_init_chan_ctxt()
638 if (!buf_ring->base) { in mhi_init_chan_ctxt()
655 buf_ring->rp = buf_ring->wp = buf_ring->base; in mhi_init_chan_ctxt()
796 mhi_chan->buf_ring.elements = ch_cfg->local_elements; in parse_ch_cfg()
797 if (!mhi_chan->buf_ring.elements) in parse_ch_cfg()
798 mhi_chan->buf_ring.elements = mhi_chan->tre_ring.elements; in parse_ch_cfg()